Originally Posted by Seerah
Use that in the panel's OnLoad instead.
|
Thanks for that suggestion, that seems to work well.
OnLoad:
Code:
if IsAddOnLoaded("Skada") then
self:Show()
else
self:Hide()
end
OnEnter:
Code:
local c = RAID_CLASS_COLORS[select(2, UnitClass("player"))]
self.bg:SetGradientAlpha("VERTICAL",c.r,c.g,c.b,1,0.074,0.074,0.074,1)
OnLeave:
Code:
self.bg:SetGradientAlpha("VERTICAL",0.28,0.28,0.28,1,0.074,0.074,0.074,1)
OnClick:
Code:
if pressed and IsAddOnLoaded("Skada") then
Skada:ToggleWindow()
self:SetAlpha(0.25)
elseif released then
self:SetAlpha(1)
end
Thank you all for your suggestions as well <3