From 68fe7e22db079d994cb7913ddab9d5e34d6426f0 Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Tue, 7 Jul 2026 16:31:56 -0500 Subject: [PATCH] Split castbar config into General/Player/Target/Focus subcategories The castbar options were one long list. Break them into four subentries under the Castbar parent (matching the Settings/Actionbar layout): General (fonts, colors, texture, disable-blizzard) plus one page each for Player, Target, and Focus. Drops the now-redundant per-unit header rows. --- modules/gui.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/modules/gui.lua b/modules/gui.lua index 9c9aebfe..51194722 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -2780,14 +2780,15 @@ pfUI:RegisterModule("gui", function () CreateConfig(U["questitem"], T["Show Required Questitem Count"], C.tooltip.questitem, "showcount", "checkbox") end) - CreateGUIEntry(T["Castbar"], nil, function() + CreateGUIEntry(T["Castbar"], T["General"], function() CreateConfig(nil, T["Use Unit Fonts"], C.castbar, "use_unitfonts", "checkbox") CreateConfig(nil, T["Casting Color"], C.appearance.castbar, "castbarcolor", "color") CreateConfig(nil, T["Channeling Color"], C.appearance.castbar, "channelcolor", "color") CreateConfig(nil, T["Castbar Texture"], C.appearance.castbar, "texture", "dropdown", pfUI.gui.dropdowns.uf_bartexture) CreateConfig(nil, T["Disable Blizzard Castbar"], C.castbar.player, "hide_blizz", "checkbox") + end) - CreateConfig(nil, T["Player Castbar"], nil, nil, "header") + CreateGUIEntry(T["Castbar"], T["Player"], function() CreateConfig(nil, T["Disable Player Castbar"], C.castbar.player, "hide_pfui", "checkbox") CreateConfig(nil, T["Castbar Width"], C.castbar.player, "width") CreateConfig(nil, T["Castbar Height"], C.castbar.player, "height") @@ -2803,8 +2804,9 @@ pfUI:RegisterModule("gui", function () CreateConfig(nil, T["Merge Tradeskill Casts"], C.castbar.player, "mergetradeskill", "checkbox") CreateConfig(nil, T["Right Text X Offset"], C.castbar.player, "txtrightoffx") CreateConfig(nil, T["Right Text Y Offset"], C.castbar.player, "txtrightoffy") + end) - CreateConfig(nil, T["Target Castbar"], nil, nil, "header") + CreateGUIEntry(T["Castbar"], T["Target"], function() CreateConfig(nil, T["Disable Target Castbar"], C.castbar.target, "hide_pfui", "checkbox") CreateConfig(nil, T["Castbar Width"], C.castbar.target, "width") CreateConfig(nil, T["Castbar Height"], C.castbar.target, "height") @@ -2819,8 +2821,9 @@ pfUI:RegisterModule("gui", function () CreateConfig(nil, T["Show Rank"], C.castbar.target, "showrank", "checkbox") CreateConfig(nil, T["Right Text X Offset"], C.castbar.target, "txtrightoffx") CreateConfig(nil, T["Right Text Y Offset"], C.castbar.target, "txtrightoffy") + end) - CreateConfig(nil, T["Focus Castbar"], nil, nil, "header") + CreateGUIEntry(T["Castbar"], T["Focus"], function() CreateConfig(nil, T["Disable Focus Castbar"], C.castbar.focus, "hide_pfui", "checkbox") CreateConfig(nil, T["Castbar Width"], C.castbar.focus, "width") CreateConfig(nil, T["Castbar Height"], C.castbar.focus, "height")