Commit 77d65ba3 authored by Azilroka's avatar Azilroka

Ovale

parent 472c2ae4
......@@ -3,23 +3,23 @@ local AS = unpack(AddOnSkins)
if not AS:CheckAddOn('Ovale') then return end
function AS:Ovale()
hooksecurefunc(LibStub:GetLibrary("ovale/Icon").OvaleIcon, 'OvaleIcon_OnLoad', function(self)
hooksecurefunc(LibStub:GetLibrary("ovale/Icon").OvaleIcon, 'Update', function(self)
AS:StripTextures(self.parent.frame)
if not self.frame.Backdrop then
AS:SkinBackdropFrame(self.frame, true)
self.frame.Backdrop:SetFrameLevel(0)
self.frame.Backdrop:SetAllPoints()
self.frame.Backdrop:SetScale(AS.UIScale)
end
if self.shortcut then
self.shortcut:ClearAllPoints()
self.shortcut:SetPoint('TOPLEFT', self.frame, 'TOPLEFT', -1, -3)
end
if self.icone then
AS:SkinTexture(self.icone)
AS:SetInside(self.icone)
end
if not self.frame.Backdrop then
AS:SkinBackdropFrame(self.frame, true)
self.frame.Backdrop:SetFrameLevel(0)
self.frame.Backdrop:SetAllPoints()
self.frame.Backdrop:SetScale(AS.UIScale)
end
if self.shortcut then
self.shortcut:ClearAllPoints()
self.shortcut:SetPoint('TOPLEFT', self.frame, 'TOPLEFT', -1, -3)
end
if self.icone then
AS:SkinTexture(self.icone)
AS:SetInside(self.icone)
end
end)
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment