self:SetFrameLevel(10);
self:SetScale(0.75);
self.shoppingTooltips = GameTooltip.shoppingTooltips;
if ( self.SetBackdropBorderColor ) then
self:SetBackdropBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b);
elseif ( self.NineSlice and self.NineSlice.SetBorderColor ) then
self.NineSlice:SetBorderColor(TOOLTIP_DEFAULT_COLOR.r, TOOLTIP_DEFAULT_COLOR.g, TOOLTIP_DEFAULT_COLOR.b);
end
if ( self.SetBackdropColor ) then
self:SetBackdropColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b);
elseif ( self.NineSlice and self.NineSlice.SetCenterColor ) then
self.NineSlice:SetCenterColor(TOOLTIP_DEFAULT_BACKGROUND_COLOR.r, TOOLTIP_DEFAULT_BACKGROUND_COLOR.g, TOOLTIP_DEFAULT_BACKGROUND_COLOR.b);
end
-- Readjust tooltip size to fit the icon
C_Timer.After(0, function()
local width, height = self:GetSize()
self:SetSize(width + 30, height + 4)
end)
self.Buttons = {};
self.Active = {};
self.idx = 1;