Skip to content

Commit

Permalink
add option to adjust size of mirror timers
Browse files Browse the repository at this point in the history
  • Loading branch information
eltreum0 committed Jun 19, 2023
1 parent ef58f87 commit 36c7a20
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ElvUI_EltreumUI/Core/Options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2600,6 +2600,8 @@ function ElvUI_EltreumUI:Configtable()
ElvUI_EltreumUI.Options.args.skins.args.general.args.blizzard.args.lootscale = ACH:Range(E.NewSign..L["Scale"], nil, 33, { min = 0.1, max = 4, step = 0.01 }, "full", function() return E.db.ElvUI_EltreumUI.otherstuff.lootscale end, function(_, value) E.db.ElvUI_EltreumUI.otherstuff.lootscale = value if _G["ElvLootFrame"] then _G["ElvLootFrame"]:SetScale(value) end end)
ElvUI_EltreumUI.Options.args.skins.args.general.args.blizzard.args.description13 = ACH:Description(EXHAUSTION_LABEL.. ", "..BREATH_LABEL, 34, nil, 'Interface\\AddOns\\ElvUI_EltreumUI\\Media\\Textures\\EltreumHeader', nil, 3240, 1, "full")
ElvUI_EltreumUI.Options.args.skins.args.general.args.blizzard.args.mirrorscale = ACH:Range(E.NewSign..L["Scale"], nil, 35, { min = 0.1, max = 4, step = 0.01 }, "full", function() return E.db.ElvUI_EltreumUI.otherstuff.mirrorscale end, function(_, value) E.db.ElvUI_EltreumUI.otherstuff.mirrorscale = value end)
ElvUI_EltreumUI.Options.args.skins.args.general.args.blizzard.args.mirrorx = ACH:Range(E.NewSign..L["Width"], nil, 36, { min = 20, max = 600, step = 1 }, "full", function() return E.db.ElvUI_EltreumUI.otherstuff.mirrorx end, function(_, value) E.db.ElvUI_EltreumUI.otherstuff.mirrorx = value end)
ElvUI_EltreumUI.Options.args.skins.args.general.args.blizzard.args.mirrory = ACH:Range(E.NewSign..L["Height"], nil, 36, { min = 10, max = 200, step = 1 }, "full", function() return E.db.ElvUI_EltreumUI.otherstuff.mirrory end, function(_, value) E.db.ElvUI_EltreumUI.otherstuff.mirrory = value end)
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)
Expand Down
4 changes: 2 additions & 2 deletions ElvUI_EltreumUI/Modules/Skins/Other/Other.lua
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,10 @@ function S:HandleMirrorTimer() --(timer, value, maxvalue, scale, paused, label)

frame.StatusBar:SetParent(frame.atlasHolder)
frame.StatusBar:ClearAllPoints()
frame.StatusBar:SetSize(204, 22)
frame.StatusBar:SetSize(E.db.ElvUI_EltreumUI.otherstuff.mirrorx +4, E.db.ElvUI_EltreumUI.otherstuff.mirrory+4)
frame.StatusBar:Point('TOP', 0, 2)

frame:SetSize(200, 18)
frame:SetSize(E.db.ElvUI_EltreumUI.otherstuff.mirrorx, E.db.ElvUI_EltreumUI.otherstuff.mirrory)

frame.Text:FontTemplate()
frame.Text:ClearAllPoints()
Expand Down
2 changes: 2 additions & 0 deletions ElvUI_EltreumUI/Settings/Profile.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1419,6 +1419,8 @@ P.ElvUI_EltreumUI = {
bankscale = 1,
lootscale = 1,
mirrorscale = 1,
mirrorx = 200,
mirrory = 18,
colorbg = false,
musicshuffle = false,
datatextteleport = "Hearthstone",
Expand Down

0 comments on commit 36c7a20

Please sign in to comment.