Originally Posted by Xrystal
Looking at the code you put there I am sure you are missing the Script assignments for OnEnter and OnLeave to call your functions for that functionality. At the moment I think the frame is unaware of them and thus can't show a tooltip.
|
thank you for the eye balls, i fixed it and i will leave the code here so others may look at it later
Lua Code:
local frame = CreateFrame("Button", "Options7", Config_BaseFrame, nil)
frame:SetHeight(96)
frame:SetWidth(96)
frame:SetNormalTexture("Interface\\AddOns\\_Deranjata\\media\\cfgiwin\\paladin.tga")
frame:SetPushedTexture("Interface\\AddOns\\_Deranjata\\media\\cfgiwin\\paladin.tag")
frame:SetHighlightTexture("Interface\\AddOns\\_Deranjata\\media\\cfgiwin\\paladin.tga")
frame:SetText("")
frame:ClearAllPoints()
frame:SetPoint("BOTTOM", 96, 60)
Options7:SetScript("OnEnter", function(self)
GameTooltip:SetOwner(self, "ANCHOR_CURSOR");
GameTooltip:ClearLines();
GameTooltip:SetText("PALADIN", 0.990, 0.614, 0.946, 0.75, 1)
GameTooltip:Show() PlaySound(53693)
end)
Options7:SetScript("OnLeave", function(self)
GameTooltip:Hide()
end)
Options7:SetScript("OnClick", function() PALADIN_OnClick()
end)