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

AzCastBar

parent d5e3f0ec
...@@ -48,7 +48,7 @@ AddOn.UIScale = UIParent:GetScale() ...@@ -48,7 +48,7 @@ AddOn.UIScale = UIParent:GetScale()
AddOn.ScreenWidth, AddOn.ScreenHeight = GetPhysicalScreenSize() AddOn.ScreenWidth, AddOn.ScreenHeight = GetPhysicalScreenSize()
local Color = RAID_CLASS_COLORS[AddOn.MyClass] 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.Mult = 1
AddOn.skins = {} AddOn.skins = {}
...@@ -70,4 +70,4 @@ end ...@@ -70,4 +70,4 @@ end
TEXTURE_ITEM_QUEST_BANG = "Interface\\AddOns\\AddOnSkins\\Media\\Textures\\UI-Icon-QuestBang" TEXTURE_ITEM_QUEST_BANG = "Interface\\AddOns\\AddOnSkins\\Media\\Textures\\UI-Icon-QuestBang"
AddOn.Hider = CreateFrame('Frame', nil, UIParent) AddOn.Hider = CreateFrame('Frame', nil, UIParent)
AddOn.Hider:Hide() AddOn.Hider:Hide()
\ No newline at end of file
...@@ -158,7 +158,7 @@ function AS:Blizzard_Collections(event, addon) ...@@ -158,7 +158,7 @@ function AS:Blizzard_Collections(event, addon)
AS:CreateBackdrop(Button) AS:CreateBackdrop(Button)
AS:SkinFrame(Button.Backdrop) AS:SkinFrame(Button.Backdrop)
Button.Backdrop:SetInside(Button) Button.Backdrop:SetInside(Button)
Button.Backdrop:SetBackdropBorderColor(0,0,0,0) Button.Backdrop:SetBackdropColor(0,0,0,0)
AS:StyleButton(Button) AS:StyleButton(Button)
AS:SkinTexture(Button.icon) AS:SkinTexture(Button.icon)
AS:StyleButton(Button.dragButton) AS:StyleButton(Button.dragButton)
...@@ -437,4 +437,4 @@ function AS:Blizzard_Collections(event, addon) ...@@ -437,4 +437,4 @@ function AS:Blizzard_Collections(event, addon)
end end
end end
AS:RegisterSkin("Blizzard_Collections", AS.Blizzard_Collections, 'ADDON_LOADED') AS:RegisterSkin("Blizzard_Collections", AS.Blizzard_Collections, 'ADDON_LOADED')
\ No newline at end of file
...@@ -2,12 +2,27 @@ local AS = unpack(AddOnSkins) ...@@ -2,12 +2,27 @@ local AS = unpack(AddOnSkins)
if not AS:CheckAddOn('acb_CastBar') then return end if not AS:CheckAddOn('acb_CastBar') then return end
function AS:acb_CastBar(event, addon) function AS:acb_CastBar()
AS:SkinBackdropFrame(AzCastBarPluginPlayer) local Bars = { 'Player', 'Pet', 'Target', 'Focus', 'Mirror' }
AS:SkinBackdropFrame(AzCastBarPluginTarget)
AS:SkinBackdropFrame(AzCastBarPluginFocus) for _, Frame in pairs(Bars) do
AS:SkinBackdropFrame(AzCastBarPluginMirror) local Bar = _G['AzCastBarPlugin'..Frame]
AS:SkinBackdropFrame(AzCastBarPluginPet) 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 end
AS:RegisterSkin('acb_CastBar', AS.acb_CastBar) 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