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,56 @@
local E, L, V, P, G, _ = unpack(ElvUI)
local S = E:GetModule("Skins")
local AS = E:GetModule("AddOnSkins")
if not AS:IsAddonLODorEnabled("TrinketMenu") then return end
local _G = _G
local unpack = unpack
-- TrinketMenu 3.81
-- https://www.curseforge.com/wow/addons/trinket-menu/files/305868
S:AddCallbackForAddon("TrinketMenu", "TrinketMenu", function()
if not E.private.addOnSkins.TrinketMenu then return end
-- TrinketMenu_TimersFrame:SetScript("OnUpdate", nil)
TrinketMenu.WriteWornCooldowns = E.noop
TrinketMenu.WriteMenuCooldowns = E.noop
TrinketMenu.WriteCooldown = E.noop
TrinketMenu_MainFrame:SetTemplate("Transparent", nil, true)
TrinketMenu_MenuFrame:SetTemplate("Transparent", nil, true)
hooksecurefunc(TrinketMenu, "ReflectLock", function()
if TrinketMenuOptions.Locked == "ON" then return end
local r, g, b = unpack(E.media.bordercolor)
TrinketMenu_MainFrame:SetBackdropBorderColor(r, g, b, 1)
TrinketMenu_MenuFrame:SetBackdropBorderColor(r, g, b, 1)
local a
r, g, b, a = unpack(E.media.backdropfadecolor)
TrinketMenu_MainFrame:SetBackdropColor(r, g, b, a)
TrinketMenu_MenuFrame:SetBackdropColor(r, g, b, a)
end)
local AB = E:GetModule("ActionBars")
local function skinButton(button)
local name = button:GetName()
local cooldown = _G[name .. "Cooldown"]
AB:StyleButton(button)
cooldown.timer = E:CreateCooldownTimer(cooldown)
_G[name .. "Time"] = cooldown.timer.text
end
for i = 0, 1 do
skinButton(_G["TrinketMenu_Trinket" .. i])
end
for i = 1, 30 do
skinButton(_G["TrinketMenu_Menu"..i])
end
end)