Skip to content

Commit

Permalink
if cata stable is intended then return the skin
Browse files Browse the repository at this point in the history
  • Loading branch information
eltreum0 committed May 7, 2024
1 parent 003679f commit 76facc1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ElvUI_EltreumUI/Core/Options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3090,6 +3090,8 @@ function ElvUI_EltreumUI:Configtable()
ElvUI_EltreumUI.Options.args.skins.args.general.args.misc = ACH:Group(L["Misc"], nil, 3, "tab")
ElvUI_EltreumUI.Options.args.skins.args.general.args.misc.args.description1 = ACH:Description(L["Add a Level Up toast"], 1, nil, 'Interface\\AddOns\\ElvUI_EltreumUI\\Media\\Textures\\EltreumHeader', nil, 3240, 1, "full", E.Retail)
ElvUI_EltreumUI.Options.args.skins.args.general.args.misc.args.levelup = ACH:Toggle(L["Enable"], L["Enable a toast showing up when you level up"], 2, nil, false, "full", function() return E.db.ElvUI_EltreumUI.skins.levelbossinstance end, function(_, value) E.db.ElvUI_EltreumUI.skins.levelbossinstance = value E:StaticPopup_Show('CONFIG_RL') end, nil, E.Retail)
ElvUI_EltreumUI.Options.args.skins.args.general.args.misc.args.description2 = ACH:Description(L["Expand Hunter Stables to show all pets and improve search"], 3, nil, 'Interface\\AddOns\\ElvUI_EltreumUI\\Media\\Textures\\EltreumHeader', nil, 3240, 1, "full", not E.Cata)
ElvUI_EltreumUI.Options.args.skins.args.general.args.misc.args.expandedstable = ACH:Toggle(L["Enable"], L["Enable the Expanded Stable"], 4, nil, false, "full", function() return E.db.ElvUI_EltreumUI.skins.expandedstable end, function(_, value) E.db.ElvUI_EltreumUI.skins.expandedstable = value E:StaticPopup_Show('CONFIG_RL') end, nil, not E.Cata)
ElvUI_EltreumUI.Options.args.skins.args.general.args.misc.args.description3 = ACH:Description(L["Hide Actionbar Button Press"], 5, nil, 'Interface\\AddOns\\ElvUI_EltreumUI\\Media\\Textures\\EltreumHeader', nil, 3240, 1, "full")
ElvUI_EltreumUI.Options.args.skins.args.general.args.misc.args.hidekeypress = ACH:Toggle(L["Enable"], nil, 6, nil, false, "full", function() return E.db.ElvUI_EltreumUI.skins.hideABkeypress end, function(_, value) E.db.ElvUI_EltreumUI.skins.hideABkeypress = value E:StaticPopup_Show('CONFIG_RL') end)
ElvUI_EltreumUI.Options.args.skins.args.general.args.misc.args.description4 = ACH:Description(L["Color Modifier Keys"], 7, nil, 'Interface\\AddOns\\ElvUI_EltreumUI\\Media\\Textures\\EltreumHeader', nil, 3240, 1, "full")
Expand Down
4 changes: 4 additions & 0 deletions ElvUI_EltreumUI/Init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ function ElvUI_EltreumUI:PLAYER_ENTERING_WORLD(_, initLogin)
ElvUI_EltreumUI:DynamicClassicDatatext() --toggles datatext for warlocks/hunters to show soulshards/ammo
ElvUI_EltreumUI:UpdateAvgIlvl() --updates the ilvl of the character at login so its not 0
ElvUI_EltreumUI:ClassicSockets() --adds sockets and enchants into the character panel, based on Kibs Item Level by Kibsgaard
else
if E.myclass == 'HUNTER' then
ElvUI_EltreumUI:ExpandedStable()
end
end
ElvUI_EltreumUI:SkinProfessions() --makes professions wider
end
Expand Down
4 changes: 4 additions & 0 deletions ElvUI_EltreumUI/Modules/Skins/Other/ExpandedStable.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ local _G = _G
local S = E:GetModule('Skins')
local CreateFrame = _G.CreateFrame

if not E.Cata then return end

--based on Improved Stable Frame by Cybeloras
function ElvUI_EltreumUI:ExpandedStable()
if E.db.ElvUI_EltreumUI.skins.expandedstable and not self.StableSkinned then
Expand Down Expand Up @@ -96,6 +98,8 @@ function ElvUI_EltreumUI:ExpandedStable()
EltruismExpandedStableFrame.NineSlice:Hide()
end

S:HandleFrame(EltruismExpandedStableFrame)

--fix diet icon
local texture = _G.PetStableDiet:GetRegions()
texture:SetTexture(134372)
Expand Down
1 change: 1 addition & 0 deletions ElvUI_EltreumUI/Modules/Skins/load_skins_classic.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
<Script file='Other/Databars.lua'/>
<Script file='Other/Doom.lua'/>
<Script file='Other/ExpandedTalents.lua'/>
<Script file='Other/ExpandedStable.lua'/>
<Script file='Other/LevelUp.lua'/>
<Script file='Other/Other.lua'/>
<Script file='Other/QuestSkin.lua'/>
Expand Down

0 comments on commit 76facc1

Please sign in to comment.