WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Lua/XML Help (https://www.wowinterface.com/forums/forumdisplay.php?f=16)
-   -   ToolTip white out on first mouse over. (https://www.wowinterface.com/forums/showthread.php?t=32955)

Grimsin 06-04-10 10:08 AM

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)

v6o 06-04-10 02:09 PM

Have you tried setting the backdrop color after the first backdrop change?

Grimsin 06-04-10 04:59 PM

hmm no, you mean after the first time my code sets it?

Thanks i added the setbackdropcolor to that matched the numbers up to bliz's onload code and bingo :) thanks!!!!


All times are GMT -6. The time now is 04:24 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI