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:
@@ -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"],
|
||||
|
||||
Reference in New Issue
Block a user