diff --git a/api/config.lua b/api/config.lua index 59630327..f885d7fd 100644 --- a/api/config.lua +++ b/api/config.lua @@ -439,6 +439,7 @@ function pfUI:LoadConfig() pfUI:UpdateConfig("panel", "other", "minimap", "zone") pfUI:UpdateConfig("panel", "micro", "enable", "0") pfUI:UpdateConfig("panel", "xp", "showalways", "0") + pfUI:UpdateConfig("panel", "bag", "ignorespecial", "1") pfUI:UpdateConfig("castbar", "player", "hide_blizz", "1") pfUI:UpdateConfig("castbar", "player", "hide_pfui", "0") pfUI:UpdateConfig("castbar", "target", "hide_pfui", "0") diff --git a/modules/gui.lua b/modules/gui.lua index 5b5e3496..72423aec 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -1427,6 +1427,7 @@ pfUI:RegisterModule("gui", function () CreateConfig(this, T["Right Panel: Right"], C.panel.right, "right", "dropdown", pfUI.gui.dropdowns.panel_values) CreateConfig(this, T["Other Panel: Minimap"], C.panel.other, "minimap", "dropdown", pfUI.gui.dropdowns.panel_values) CreateConfig(this, T["Always Show Experience And Reputation Bar"], C.panel.xp, "showalways", "checkbox") + CreateConfig(this, T["Only Count Bagspace On Regular Bags"], C.panel.bag, "ignorespecial", "checkbox") CreateConfig(this, T["Enable Micro Bar"], C.panel.micro, "enable", "checkbox") CreateConfig(this, T["Enable 24h Clock"], C.global, "twentyfour", "checkbox") this.setup = true diff --git a/modules/panel.lua b/modules/panel.lua index 4db36cda..54097144 100644 --- a/modules/panel.lua +++ b/modules/panel.lua @@ -245,12 +245,14 @@ pfUI:RegisterModule("panel", function () local usedslots = 0 for bag = 0,4 do - local bagsize = GetContainerNumSlots(bag) - maxslots = maxslots + bagsize - for j = 1,bagsize do - link = GetContainerItemLink(bag,j) - if link then - usedslots = usedslots + 1 + if C.panel.bag.ignorespecial ~= "1" or GetBagFamily(bag) == "BAG" then + local bagsize = GetContainerNumSlots(bag) + maxslots = maxslots + bagsize + for j = 1,bagsize do + link = GetContainerItemLink(bag,j) + if link then + usedslots = usedslots + 1 + end end end end