Skip to content

Commit

Permalink
Rearranged some settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Pingumania committed Dec 18, 2023
1 parent e5a9dac commit 9bd150c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 27 deletions.
56 changes: 31 additions & 25 deletions config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -305,8 +305,32 @@ local function CreateConfig()
ns.UpdateGameTooltipStatusBarVisibility()
end,
},
showBarValues = {
barTexture = {
order = 62,
name = L["barTexture"],
type = "select",
width = 1.5,
values = statusbars,
disabled = function() return not ns.cfg.showBar end,
get = function()
for i, v in next, statusbars do
if v == ns.cfg.barTexture then return i end
end
end,
set = function(_, value)
ns.cfg.barTexture = statusbars[value]
ns.UpdateGameTooltipStatusBarTexture()
end,
itemControl = "DDI-Statusbar",
},
spacer4 = {
order = 63,
type = "description",
name = " ",
width = "full",
},
showBarValues = {
order = 64,
name = L["showBarValues"],
type = "toggle",
width = "full",
Expand All @@ -317,7 +341,7 @@ local function CreateConfig()
end,
},
barFontFace = {
order = 63,
order = 65,
name = L["barFontFace"],
type = "select",
width = 1.5,
Expand All @@ -334,14 +358,14 @@ local function CreateConfig()
end,
itemControl = "DDI-Font",
},
spacer4 = {
order = 64,
spacer5 = {
order = 66,
type = "description",
name = "",
width = 0.1,
},
barFontSize = {
order = 65,
order = 67,
name = L["barFontSize"],
type = "range",
max = 26,
Expand All @@ -354,13 +378,13 @@ local function CreateConfig()
end,
},
spacer5 = {
order = 66,
order = 68,
type = "description",
name = "",
width = 0.1,
},
barFontFlags = {
order = 67,
order = 69,
name = L["barFontFlags"],
type = "select",
width = 0.6,
Expand All @@ -371,24 +395,6 @@ local function CreateConfig()
ns.UpdateGameTooltipStatusBarText()
end,
},
barTexture = {
order = 68,
name = L["barTexture"],
type = "select",
width = 1.5,
values = statusbars,
disabled = function() return not ns.cfg.showBar end,
get = function()
for i, v in next, statusbars do
if v == ns.cfg.barTexture then return i end
end
end,
set = function(_, value)
ns.cfg.barTexture = statusbars[value]
ns.UpdateGameTooltipStatusBarTexture()
end,
itemControl = "DDI-Statusbar",
},
},
})

Expand Down
4 changes: 2 additions & 2 deletions locales.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ L["textFontFlags"] = "Outline"
L["textFontSize"] = "Size"
L["thick"] = "Thick"
L["thin"] = "Thin"
L["tipBorderColor"] = "Tooltip Border Color"
L["tipColor"] = "Tooltip Background Color"
L["tipBorderColor"] = "Border Color"
L["tipColor"] = "Background Color"
L["fontSettings"] = "Tooltip Font Settings"
L["showBar"] = "Show Healthbar"
L["showBarValues"] = "Show health values on Healthbar"
Expand Down

0 comments on commit 9bd150c

Please sign in to comment.