nameplates: add option to only show target castbar

This commit is contained in:
shagu
2023-07-04 09:53:29 +02:00
parent 580eb9a6ac
commit d464cd4289
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -671,6 +671,7 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("nameplates", nil, "legacy", "0")
pfUI:UpdateConfig("nameplates", nil, "overlap", "0")
pfUI:UpdateConfig("nameplates", nil, "showcastbar", "1")
pfUI:UpdateConfig("nameplates", nil, "targetcastbar", "0")
pfUI:UpdateConfig("nameplates", nil, "spellname", "0")
pfUI:UpdateConfig("nameplates", nil, "showdebuffs", "1")
pfUI:UpdateConfig("nameplates", nil, "guessdebuffs", "1")
+1
View File
@@ -2208,6 +2208,7 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
CreateConfig(nil, T["Castbar"], nil, nil, "header")
CreateConfig(U["nameplates"], T["Enable Castbars"], C.nameplates, "showcastbar", "checkbox")
CreateConfig(U["nameplates"], T["Only Show Target Castbar"], C.nameplates, "targetcastbar", "checkbox")
CreateConfig(U["nameplates"], T["Enable Spellname"], C.nameplates, "spellname", "checkbox")
CreateConfig(U["nameplates"], T["Castbar Height"], C.nameplates, "heightcast")
+1 -1
View File
@@ -865,7 +865,7 @@ pfUI:RegisterModule("nameplates", "vanilla:tbc", function ()
end
-- castbar update
if C.nameplates["showcastbar"] == "1" then
if C.nameplates["showcastbar"] == "1" and ( C.nameplates["targetcastbar"] == "0" or target ) then
local cast, nameSubtext, text, texture, startTime, endTime, isTradeSkill = UnitCastingInfo(target and "target" or name)
if not cast then