force reload for sp settings

This commit is contained in:
Meow
2026-03-24 13:35:19 +01:00
parent 5869c9f519
commit fcae37f9b0
+6 -5
View File
@@ -2392,16 +2392,17 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
CreateConfig(U[c], T["Focus Color"], C.unitframes[c], "focuscolor", "color")
if c == "player" then
local function spHasteReload() if U[c] then U[c]() end Reload() end
CreateConfig(U[c], T["Player SP/Haste Display"], nil, nil, "header")
CreateConfig(U[c], T["Haste Display"], C.unitframes[c], "display_haste", "dropdown", {
CreateConfig(spHasteReload, T["Haste Display"], C.unitframes[c], "display_haste", "dropdown", {
"0:"..T["None"],
"1:"..T["Haste (cast speed increase)"],
"2:"..T["Effective Haste (Haste * cast time reduction)"], -- Only affects mages/warlocks I believe
})
CreateConfig(U[c], T["Haste Display Color"], C.unitframes[c], "display_haste_color", "color")
CreateConfig(U[c], T["Display Spell Power"], C.unitframes[c], "display_spellpower", "checkbox")
CreateConfig(U[c], T["Use Custom Spell Power Color (unchecked = biggest school color)"], C.unitframes[c], "display_sp_color_override", "checkbox")
CreateConfig(U[c], T["Spell Power Color"], C.unitframes[c], "display_sp_color", "color")
CreateConfig(spHasteReload, T["Haste Display Color"], C.unitframes[c], "display_haste_color", "color")
CreateConfig(spHasteReload, T["Display Spell Power"], C.unitframes[c], "display_spellpower", "checkbox")
CreateConfig(spHasteReload, T["Use Custom Spell Power Color (unchecked = biggest school color)"], C.unitframes[c], "display_sp_color_override", "checkbox")
CreateConfig(spHasteReload, T["Spell Power Color"], C.unitframes[c], "display_sp_color", "color")
end
end)
end