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