add configuration option for health bar texture (#39)

* add configuration option for health bar texture

* add usage example for bartexture

* add desc

* fix needing to reload ui

* fix needing to reload ui

---------

Co-authored-by: pepopo978 <149287158+pepopo978@users.noreply.github.com>
This commit is contained in:
seybsen
2025-07-27 12:27:32 -07:00
committed by GitHub
co-authored by pepopo978
parent cd1b47ec45
commit 01385ba2a7
3 changed files with 29 additions and 2 deletions
+19
View File
@@ -29,6 +29,8 @@ Cursive:RegisterDefaults("profile", {
scale = 1,
healthwidth = 100,
height = 16,
bartexture = "Interface\\TargetingFrame\\UI-StatusBar",
raidiconsize = 16,
curseiconsize = 16,
maxcurses = 5,
@@ -165,6 +167,23 @@ local barOptions = {
end
end,
},
["bartexture"] = {
type = "text",
name = L["Health Bar Texture"],
desc = L["Health Bar Texture Desc"],
order = 55,
usage = "Interface\\TargetingFrame\\UI-StatusBar",
get = function()
return Cursive.db.profile.bartexture
end,
set = function(v)
if v ~= Cursive.db.profile.bartexture then
Cursive.db.profile.bartexture = v
Cursive.UpdateFramesFromConfig()
Cursive.ResetUnitFrames()
end
end,
},
["raidiconsize"] = {
type = "range",
name = L["Raid Icon Size"],