View Single Post
12-01-22, 01:42 PM   #1
Uitat
A Chromatic Dragonspawn
 
Uitat's Avatar
AddOn Author - Click to view addons
Join Date: May 2011
Posts: 162
help creating a tooltip for button

im trying to get a tooltip for my config frame, cant seem to get it to work though anyone have any ideas?
button works but the mouse of tool tip does not.
Lua Code:
  1. local frame = CreateFrame("Button", "Options7", Config_BaseFrame, nil)
  2.     frame:SetHeight(96)
  3.     frame:SetWidth(96)                       
  4.     frame:SetNormalTexture("Interface\\AddOns\\_Deranjata\\media\\cfgiwin\\paladin.tga")                     
  5.     frame:SetPushedTexture("Interface\\AddOns\\_Deranjata\\media\\cfgiwin\\paladin.tag")                     
  6.     frame:SetHighlightTexture("Interface\\AddOns\\_Deranjata\\media\\cfgiwin\\paladin.tga")
  7.     frame:SetText("")
  8.     frame:ClearAllPoints()
  9.     frame:SetPoint("BOTTOM", 96, 60)
  10.     Options7:SetScript("OnClick", function() PALADIN_OnClick()
  11. end)
  12.  
  13. function Options7_OnEnter()
  14.     GameTooltip_SetDefaultAnchor( GameTooltip, UIParent )
  15.     GameTooltip:SetText( "Paladin" )
  16.     GameTooltip:Show()
  17. end
  18.  
  19. function Options7_OnLeave()
  20.     GameTooltip:Hide()
  21. end
__________________
  Reply With Quote