this works (tool tip shows on hover over button):
Code: Select all
buttonToolTip = defaultToolTip;
buttonToolTip.Parent = NativePanel;
aButton = DaggerfallUI.AddButton(new Rect(78, 171, 27, 19), NativePanel);
aButton.ToolTip = buttonToolTip;
aButton.ToolTipText = "this is a tool tip";
Code: Select all
buttonToolTip = new ToolTip();
buttonToolTip.CloneSettings(defaultToolTip);
buttonToolTip.Parent = NativePanel;
aButton = DaggerfallUI.AddButton(new Rect(78, 171, 27, 19), NativePanel);
aButton.ToolTip = buttonToolTip;
aButton.ToolTipText = "this is a tool tip";
As mentioned above TextLabel class allows custom ToolTips to be used.
Is this a bug or am I doing something wrong?