Skip to content

Commit

Permalink
not on these
Browse files Browse the repository at this point in the history
  • Loading branch information
eltreum0 committed Dec 29, 2024
1 parent 5b4c06f commit 0e533f6
Showing 1 changed file with 0 additions and 44 deletions.
44 changes: 0 additions & 44 deletions ElvUI_EltreumUI/Modules/Skins/Ace3.lua
Original file line number Diff line number Diff line change
Expand Up @@ -194,28 +194,6 @@ local function CreateFader(frame,isTree)
end
end
end)
else
frame:SetScript("OnClick", function()
if not E.db.ElvUI_EltreumUI.skins.ace3.enable then return end
local frametext = (frame.Text) or (frame.text) or (_G[frame:GetName()] and _G[frame:GetName() .. "Text"]) --using frame.Text.GetText would return the function instead
if frametext and frametext.GetText then
if frame.selected then
if not E.db.ElvUI_EltreumUI.skins.ace3.tab.TextSelected.classcolor then
frametext:SetTextColor(E.db.ElvUI_EltreumUI.skins.ace3.tab.TextSelected.r, E.db.ElvUI_EltreumUI.skins.ace3.tab.TextSelected.g, E.db.ElvUI_EltreumUI.skins.ace3.tab.TextSelected.b)
else
frametext:SetTextColor(valuecolors.r, valuecolors.g, valuecolors.b)
end
elseif frame.disabled or (frame.GetButtonState and frame:GetButtonState() == "DISABLED") then
frametext:SetTextColor(0.5,0.5,0.5)
else
if not E.db.ElvUI_EltreumUI.skins.ace3.tab.TextEnabled.classcolor then
frametext:SetTextColor(E.db.ElvUI_EltreumUI.skins.ace3.tab.TextEnabled.r, E.db.ElvUI_EltreumUI.skins.ace3.tab.TextEnabled.g, E.db.ElvUI_EltreumUI.skins.ace3.tab.TextEnabled.b)
else
frametext:SetTextColor(valuecolors.r, valuecolors.g, valuecolors.b)
end
end
end
end)
end

if frame.OnDisable then
Expand All @@ -240,28 +218,6 @@ local function CreateFader(frame,isTree)
end
end
end)
else
frame:SetScript("OnDisable", function()
if not E.db.ElvUI_EltreumUI.skins.ace3.enable then return end
local frametext = (frame.Text) or (frame.text) or (_G[frame:GetName()] and _G[frame:GetName() .. "Text"]) --using frame.Text.GetText would return the function instead
if frametext and frametext.GetText then
if frame.selected then
if not E.db.ElvUI_EltreumUI.skins.ace3.tab.TextSelected.classcolor then
frametext:SetTextColor(E.db.ElvUI_EltreumUI.skins.ace3.tab.TextSelected.r, E.db.ElvUI_EltreumUI.skins.ace3.tab.TextSelected.g, E.db.ElvUI_EltreumUI.skins.ace3.tab.TextSelected.b)
else
frametext:SetTextColor(valuecolors.r, valuecolors.g, valuecolors.b)
end
elseif frame.disabled or (frame.GetButtonState and frame:GetButtonState() == "DISABLED") then
frametext:SetTextColor(0.5,0.5,0.5)
else
if not E.db.ElvUI_EltreumUI.skins.ace3.tab.TextEnabled.classcolor then
frametext:SetTextColor(E.db.ElvUI_EltreumUI.skins.ace3.tab.TextEnabled.r, E.db.ElvUI_EltreumUI.skins.ace3.tab.TextEnabled.g, E.db.ElvUI_EltreumUI.skins.ace3.tab.TextEnabled.b)
else
frametext:SetTextColor(valuecolors.r, valuecolors.g, valuecolors.b)
end
end
end
end)
end

if frame.OnLeave then
Expand Down

0 comments on commit 0e533f6

Please sign in to comment.