View Single Post
09-16-12, 02:08 PM   #17
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
Well sure. That is because it is changed everytime Gametooltip:Show() is called.

What you can do is sth like this:
Lua Code:
  1. local backdropColor = {0,0,0}
  2. local backdropBorderColor = {0,0,0}
  3. local tooltipList = {GameTooltip, ItemRefTooltip, ShoppingTooltip1, ShoppingTooltip2, ShoppingTooltip3}
  4. for index, frame in ipairs(tooltipList) do
  5.   frame:SetScript("OnShow", function(self)
  6.     self:SetBackdropColor(unpack(backdropColor))
  7.     self:SetBackdropBorderColor(unpack(backdropBorderColor))
  8.   end)
  9. end
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote