From 64c50e95804dbd0ccd28556467714d224751107e Mon Sep 17 00:00:00 2001 From: Meow <30401521+me0wg4ming@users.noreply.github.com> Date: Tue, 17 Feb 2026 12:54:09 +0100 Subject: [PATCH] some small changes for druid mana bar some small changes for druid mana bar --- api/config.lua | 2 +- modules/gui.lua | 2 +- modules/nampower.lua | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/api/config.lua b/api/config.lua index 98b9d36c..458df43f 100644 --- a/api/config.lua +++ b/api/config.lua @@ -224,7 +224,7 @@ function pfUI:LoadConfig() pfUI:UpdateConfig("unitframes", nil, "druidmanaoffy", "0") pfUI:UpdateConfig("unitframes", nil, "druidmanaspace", "-3") pfUI:UpdateConfig("unitframes", nil, "druidmanatexture", "Interface\\AddOns\\pfUI\\img\\bar") - pfUI:UpdateConfig("unitframes", nil, "druidmanacolor", ".25,.25,1,1") + pfUI:UpdateConfig("unitframes", nil, "rangechecki", "4") pfUI:UpdateConfig("unitframes", nil, "combowidth", "6") pfUI:UpdateConfig("unitframes", nil, "comboheight", "6") diff --git a/modules/gui.lua b/modules/gui.lua index 278e7202..967b3faf 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -1991,7 +1991,7 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function () CreateConfig(nil, T["Druid Mana Bar Y-Offset"], C.unitframes, "druidmanaoffy", nil, nil, nil, nil, nil, "vanilla" ) CreateConfig(nil, T["Druid Mana Bar Spacing"], C.unitframes, "druidmanaspace", nil, nil, nil, nil, nil, "vanilla" ) CreateConfig(nil, T["Druid Mana Bar Texture"], C.unitframes, "druidmanatexture", "dropdown", pfUI.gui.dropdowns.uf_bartexture, nil, nil, nil, "vanilla" ) - CreateConfig(nil, T["Druid Mana Bar Color"], C.unitframes, "druidmanacolor", "color", nil, nil, nil, nil, "vanilla" ) + CreateConfig(nil, T["SuperWoW Settings"], nil, nil, "header") CreateConfig(nil, T["Track Group on Minimap"], C.unitframes, "track_group", "checkbox", nil, nil, nil, nil, "vanilla" ) diff --git a/modules/nampower.lua b/modules/nampower.lua index 05e9dbdd..e841cd4c 100644 --- a/modules/nampower.lua +++ b/modules/nampower.lua @@ -519,8 +519,8 @@ pfUI:RegisterModule("nampower", "vanilla", function () bar:SetFrameLevel(parent:GetFrameLevel() + 5) bar:SetStatusBarTexture(pfUI.media[dmTexture] or dmTexture) - -- Bar color from own config - local manacolor = DC.druidmanacolor or ".25,.25,1,1" + -- Bar color: use same manacolor logic as the normal power bar + local manacolor = parentConfig.defcolor == "0" and parentConfig.manacolor or C.unitframes.manacolor local r, g, b, a = pfUI.api.strsplit(",", manacolor) bar:SetStatusBarColor(tonumber(r) or .25, tonumber(g) or .25, tonumber(b) or 1, tonumber(a) or 1)