Thread Tools Display Modes
10-24-10, 04:01 AM   #1
StarRocks
A Kobold Labourer
Join Date: Oct 2010
Posts: 1
Question Need Help Creating ToolTips

I have tried following a guide on wowwiki to create a tool tip and I have come up with this
Code:
		<Scripts>
		<GameTooltip name="ToolTip" inherits="GameTooltipTemplate">
		<OnEnter>
       			self:SetOwner(Test_Button, "TOPRIGHT");
			self:SetText("I am a tool tip");
			GameTooltip:Show()
		</OnEnter>
		<OnLeave>
		GameTooltip:Hide()
		</Onleave>
   		</Scripts>
 		</GameTooltip>
Its seems to be wrong. So I just need some help to create a tooltip in XML that when I mouse over a button, it creates a tooltip with custom text.

The guide I tried to follow is this http://www.wowwiki.com/UIOBJECT_GameTooltip
  Reply With Quote
11-03-10, 09:14 PM   #2
Zealer
A Deviate Faerie Dragon
Join Date: Nov 2010
Posts: 16
Issue

LOL, I'm trying to do the exact same thing . . . If I figure it out I'll let you know. Seems like it should be easy if you just want some text displayed . . .
  Reply With Quote
11-03-10, 09:18 PM   #3
Zealer
A Deviate Faerie Dragon
Join Date: Nov 2010
Posts: 16
Got mine working. Give this a whirl:
<OnEnter>
GameTooltip:SetOwner(FRAME_NAME_HERE,"ANCHOR_CURSOR");
GameTooltip:SetText("Head Slot");
GameTooltip:Show();
</OnEnter>
<OnLeave>
GameTooltip:Hide();
</OnLeave>

Instead of creating a new gametooltip, which you can do, I just used the default one and set the anchor pt as the cursor position.
Hope that helps.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Need Help Creating ToolTips


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off