Thread Tools Display Modes
Prev Previous Post   Next Post Next
06-04-10, 10:08 AM   #1
Grimsin
A Molten Giant
 
Grimsin's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2006
Posts: 990
ToolTip white out on first mouse over.

Wondering if someone might know why when i first log in the first thing i mouse over has a white out background at first? I am trying to hook my own background and boarder. Some methods the background whites out at different times or all the time.

this is the method im trying right now and it only whites out on first mouse over. id like it to never whiteout the perfectionist in me...

this method also allows for other tooltip addons to take over if they are installed or so it should anyhow... or at lest TipTac has no trouble over riding my code.

lua Code:
  1. -------------------
  2. -- GUI TT Anchor
  3. --------------------
  4. GUITTAnchor = CreateFrame("Frame", "GUITTAnchor", UIParent, "SecureHandlerStateTemplate");
  5. GUITTAnchor:SetPoint("LEFT", UIParent, "LEFT", 35, -130)
  6.  
  7.  
  8. GameTooltip:SetBackdrop{
  9.         bgFile = "Interface\\AddOns\\!GrimUI\\Art\\GrimMainbg",
  10.         edgeFile = "Interface\\AddOns\\!GrimUI\\Art\\HordeBoarder1", tile = false, edgeSize = 15,
  11.         insets = { left = 0, right = 0, top = 0, bottom = 0 }
  12.         }
  13.  
  14. hooksecurefunc("GameTooltip_OnLoad", function (self)
  15.  
  16.     GameTooltip:SetBackdrop{
  17.         bgFile = "Interface\\AddOns\\!GrimUI\\Art\\GrimMainbg",
  18.         edgeFile = "Interface\\AddOns\\!GrimUI\\Art\\HordeBoarder1", tile = false, edgeSize = 15,
  19.         insets = { left = 0, right = 0, top = 0, bottom = 0 }
  20.         }
  21.        
  22.        
  23. end)
  24.  
  25. hooksecurefunc("GameTooltip_SetDefaultAnchor", function (tooltip, parent)
  26.            
  27.             local tooltips = {GameTooltip, ItemRefTooltip, ShoppingTooltip1, ShoppingTooltip2, ShoppingTooltip3, WorldMapTooltip}
  28.             tooltip:SetOwner(parent,"ANCHOR_NONE")
  29.        
  30.             tooltip:SetPoint("LEFT",GUITTAnchor,"LEFT", 0, 0)
  31.             tooltip:SetPoint("BOTTOM",GUITTAnchor,"BOTTOM", 0, 0)
  32.            
  33.        
  34. end)
__________________
"Are we there yet?"

GrimUI
[SIGPIC][/SIGPIC]
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » ToolTip white out on first mouse over.


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