Skip to content

Commit

Permalink
better way to apply gradient
Browse files Browse the repository at this point in the history
  • Loading branch information
eltreum0 committed Sep 23, 2023
1 parent 8a79e62 commit 69aeecd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 41 deletions.
13 changes: 1 addition & 12 deletions ElvUI_EltreumUI/Core/Install.lua
Original file line number Diff line number Diff line change
Expand Up @@ -440,18 +440,7 @@ ElvUI_EltreumUI.InstallerData = {
_G.PluginInstallFrame.Option2:Enable()
_G.PluginInstallFrame.Option2:Show()
_G.PluginInstallFrame.Option2:SetScript('OnClick', function()
if E.db.ElvUI_EltreumUI.unitframes.gradientmode.enable then
E.db.ElvUI_EltreumUI.unitframes.gradientmode.enable = false
E.db.ElvUI_EltreumUI.unitframes.gradientmode.npenable = false
E.db.ElvUI_EltreumUI.unitframes.gradientmode.enablepower = false
E.db.ElvUI_EltreumUI.nameplates.nameplateOptions.nameplatetexture = true
E:UpdateMediaItems()
E:UpdateUnitFrames()

ElvUI_EltreumUI:Print("Gradient Mode Disabled")
else
ElvUI_EltreumUI:GradientMode()
end
ElvUI_EltreumUI:GradientMode()
end)
_G.PluginInstallFrame.Option2:SetText(L["Gradient Mode"])
_G.PluginInstallFrame.Option2:SetScript('OnEnter', function() ElvUI_EltreumUI:ImproveInstall("gradient","ENTERING") end)
Expand Down
1 change: 1 addition & 0 deletions ElvUI_EltreumUI/Layouts/UpdateEltruismSettings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ function ElvUI_EltreumUI:UpdateEltruismSettings()
E.db.ElvUI_EltreumUI.unitframes.gradientmode.enabletargetcastbar = true
E.db.ElvUI_EltreumUI.unitframes.gradientmode.enabletargetcastbarinterrupted = true
E.db.ElvUI_EltreumUI.unitframes.gradientmode.enabletargetcastbarnoninterruptible = true
E.db.ElvUI_EltreumUI.unitframes.gradientmode.enablegroupunits = true
E.db.ElvUI_EltreumUI.unitframes.gradientmode.classcolorplayercastbar = true
E.db.ElvUI_EltreumUI.unitframes.gradientmode.classcolortargetcastbar = true
E.db.ElvUI_EltreumUI.unitframes.gradientmode.nporientation = "VERTICAL"
Expand Down
39 changes: 10 additions & 29 deletions ElvUI_EltreumUI/Modules/Skins/Other/DarkLightColors.lua
Original file line number Diff line number Diff line change
Expand Up @@ -296,45 +296,26 @@ function ElvUI_EltreumUI:GradientMode()

if E.db.ElvUI_EltreumUI.unitframes.gradientmode.enable then
E.db.ElvUI_EltreumUI.unitframes.gradientmode.enable = false
E.db.ElvUI_EltreumUI.unitframes.gradientmode.npenable = false
E.db.ElvUI_EltreumUI.unitframes.gradientmode.enablepower = false
E.db.ElvUI_EltreumUI.nameplates.nameplatepower.gradient = false
E.db.ElvUI_EltreumUI.unitframes.gradientmode.enableaurabars = false
E.db.ElvUI_EltreumUI.unitframes.gradientmode.enablebackdrop = false
E.db.ElvUI_EltreumUI.chat.chatgradient = false
ElvUI_EltreumUI:Print("Gradient Mode Disabled")
E.db.ElvUI_EltreumUI.nameplates.nameplateOptions.nameplatetexture = true
else
E.db.ElvUI_EltreumUI.unitframes.gradientmode.enable = true
ElvUI_EltreumUI:Print("Gradient Mode Enabled")
end
if E.db.ElvUI_EltreumUI.unitframes.gradientmode.npenable then
E.db.ElvUI_EltreumUI.unitframes.gradientmode.npenable = false
else
E.db.ElvUI_EltreumUI.unitframes.gradientmode.npenable = true
end
if E.db.ElvUI_EltreumUI.unitframes.gradientmode.enablepower then
E.db.ElvUI_EltreumUI.unitframes.gradientmode.enablepower = false
else
E.db.ElvUI_EltreumUI.unitframes.gradientmode.enablepower = true
end
if E.db.ElvUI_EltreumUI.nameplates.nameplatepower.gradient then
E.db.ElvUI_EltreumUI.nameplates.nameplatepower.gradient = false
else
E.db.ElvUI_EltreumUI.nameplates.nameplatepower.gradient = true
end
if E.db.ElvUI_EltreumUI.unitframes.gradientmode.enableaurabars then
E.db.ElvUI_EltreumUI.unitframes.gradientmode.enableaurabars = false
else
E.db.ElvUI_EltreumUI.unitframes.gradientmode.enableaurabars = true
end
if E.db.ElvUI_EltreumUI.unitframes.gradientmode.enablebackdrop then
E.db.ElvUI_EltreumUI.unitframes.gradientmode.enablebackdrop = false
else
E.db.ElvUI_EltreumUI.unitframes.gradientmode.enablebackdrop = true
end
if E.db.ElvUI_EltreumUI.chat.chatgradient then
E.db.ElvUI_EltreumUI.chat.chatgradient = false
else
E.db.ElvUI_EltreumUI.nameplates.nameplateOptions.nameplatetexture = false
E.db.ElvUI_EltreumUI.chat.chatgradient = true
ElvUI_EltreumUI:Print("Gradient Mode Enabled")
end
E.db.ElvUI_EltreumUI.nameplates.nameplateOptions.nameplatetexture = false
E.db.ElvUI_EltreumUI.unitframes.ufcustomtexture.enable = false
E.db.ElvUI_EltreumUI.unitframes.gradientmode.enableplayertarget = true
E.db.ElvUI_EltreumUI.unitframes.gradientmode.enablegroupunits = true

E.db.ElvUI_EltreumUI.unitframes.UFmodifications = true

if E.db.ElvUI_EltreumUI.unitframes.darkmode then
Expand Down

0 comments on commit 69aeecd

Please sign in to comment.