Change all use of heroclass to use RAID_CLASS_COLORS instead. This can be changed to CUSTOM_CLASS_COLORS later with a color picker for each class, but to support CoA classes need to go back to being colored properly.

Fix remaining lua errors covered by ascension patches

Add Addon Skins
Add Enhanced Friends List
This commit is contained in:
Andrew6810
2022-10-28 07:12:13 -07:00
parent 60ef8a38af
commit df7cc26a64
205 changed files with 18480 additions and 35 deletions
@@ -0,0 +1,43 @@
local E, L, V, P, G = unpack(ElvUI)
local S = E:GetModule("Skins")
local AS = E:GetModule("AddOnSkins")
if not AS:IsAddonLODorEnabled("FloAspectBar") then return end
local _G = _G
local unpack = unpack
-- FloAspectBar 3.3.0.16
-- https://www.curseforge.com/wow/addons/flo-aspect-bar/files/399320
S:AddCallbackForAddon("FloAspectBar", "FloAspectBar", function()
if not E.private.addOnSkins.FloAspectBar then return end
if E.myclass ~= "HUNTER" then return end
local AB = E:GetModule("ActionBars")
if not S:IsHooked("FloLib_ShowBorders") then
S:RawHook("FloLib_ShowBorders", function(self)
if self.globalSettings.borders then
if not self.template then
self:SetTemplate("Transparent")
end
if self.settings and self.settings.color then
self:SetBackdropBorderColor(unpack(self.settings.color))
end
else
self:SetBackdrop(nil)
self.template = nil
end
end)
end
FloAspectBar:SetClampedToScreen(true)
FloLib_ShowBorders(FloAspectBar)
for i = 1, 10 do
AB:StyleButton(_G["FloAspectBarButton" .. i])
end
end)