Commit 5069c9c4 authored by Azilroka's avatar Azilroka
Browse files

AzCastBar

parent d5e3f0ec
......@@ -48,7 +48,7 @@ AddOn.UIScale = UIParent:GetScale()
AddOn.ScreenWidth, AddOn.ScreenHeight = GetPhysicalScreenSize()
local Color = RAID_CLASS_COLORS[AddOn.MyClass]
AddOn.ClassColor = {Color.r, Color.g, Color.b}
AddOn.ClassColor = { Color.r, Color.g, Color.b }
AddOn.Mult = 1
AddOn.skins = {}
......
......@@ -158,7 +158,7 @@ function AS:Blizzard_Collections(event, addon)
AS:CreateBackdrop(Button)
AS:SkinFrame(Button.Backdrop)
Button.Backdrop:SetInside(Button)
Button.Backdrop:SetBackdropBorderColor(0,0,0,0)
Button.Backdrop:SetBackdropColor(0,0,0,0)
AS:StyleButton(Button)
AS:SkinTexture(Button.icon)
AS:StyleButton(Button.dragButton)
......
......@@ -2,12 +2,27 @@ local AS = unpack(AddOnSkins)
if not AS:CheckAddOn('acb_CastBar') then return end
function AS:acb_CastBar(event, addon)
AS:SkinBackdropFrame(AzCastBarPluginPlayer)
AS:SkinBackdropFrame(AzCastBarPluginTarget)
AS:SkinBackdropFrame(AzCastBarPluginFocus)
AS:SkinBackdropFrame(AzCastBarPluginMirror)
AS:SkinBackdropFrame(AzCastBarPluginPet)
function AS:acb_CastBar()
local Bars = { 'Player', 'Pet', 'Target', 'Focus', 'Mirror' }
for _, Frame in pairs(Bars) do
local Bar = _G['AzCastBarPlugin'..Frame]
if Bar then
AS:StripTextures(Bar)
AS:CreateBackdrop(Bar)
Bar.Backdrop:SetOutside(Bar.icon)
AS:SkinStatusBar(Bar.status)
if not AzCastBar_Config[Frame]['AddOnSkins'] then
AzCastBar_Config[Frame]["useSameBGTexture"] = true
AzCastBar_Config[Frame]["colBackdrop"] = { 0, 0, 0, 0 }
AzCastBar_Config[Frame]["iconOffset"] = 3
AzCastBar_Config[Frame]["texture"] = AS.NormTex
AzCastBar_Config[Frame]['AddOnSkins'] = true
end
end
end
end
AS:RegisterSkin('acb_CastBar', AS.acb_CastBar)
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