display only current realm characters

This commit is contained in:
Salikh Gurgenidze
2025-11-19 21:36:16 +04:00
parent 9eb88b24f2
commit 887d1c8f41
5 changed files with 33 additions and 28 deletions
+9 -9
View File
@@ -659,13 +659,13 @@ function Guda_BagFrame_MoneyOnEnter(self)
GameTooltip:SetOwner(self, "ANCHOR_TOPRIGHT", 0, 0)
GameTooltip:ClearLines()
-- Get all characters and total
local chars = addon.Modules.DB:GetAllCharacters(true)
local totalMoney = addon.Modules.DB:GetTotalMoney(true)
-- Get all characters and total (faction + realm filtered)
local chars = addon.Modules.DB:GetAllCharacters(true, true)
local totalMoney = addon.Modules.DB:GetTotalMoney(true, true)
-- Header with faction/realm total - use colored money
-- Header with current realm total - use colored money
GameTooltip:AddLine(
"Faction/realm-wide gold: " .. addon.Modules.Utils:FormatMoney(totalMoney, false, true),
"Current realm gold: " .. addon.Modules.Utils:FormatMoney(totalMoney, false, true),
1, 0.82, 0
)
GameTooltip:AddLine(" ")
@@ -732,8 +732,8 @@ function Guda_BagFrame_ToggleCharacterDropdown(button)
end
characterDropdown.buttons = {}
-- Get all characters
local chars = addon.Modules.DB:GetAllCharacters(true)
-- Get all characters on current realm
local chars = addon.Modules.DB:GetAllCharacters(true, true)
-- Add "Current Character" option at the top
local yOffset = -8
@@ -900,8 +900,8 @@ function Guda_BagFrame_ToggleBankDropdown(button)
end
bankDropdown.buttons = {}
-- Get all characters
local chars = addon.Modules.DB:GetAllCharacters(true)
-- Get all characters on current realm
local chars = addon.Modules.DB:GetAllCharacters(true, true)
local yOffset = -8