From 679357d6e1ec129002978e9cc87cdcae556897de Mon Sep 17 00:00:00 2001 From: Salikh Gurgenidze Date: Sat, 22 Nov 2025 01:37:20 +0400 Subject: [PATCH] fix: copys --- Core/Database.lua | 2 +- UI/BagFrame.lua | 3 +-- UI/BagFrame.xml | 2 +- UI/BankFrame.lua | 6 +++--- UI/BankFrame.xml | 2 +- 5 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Core/Database.lua b/Core/Database.lua index 7bdeeb0..7e3c835 100644 --- a/Core/Database.lua +++ b/Core/Database.lua @@ -117,7 +117,7 @@ end -- Get current player's full name function DB:GetPlayerFullName() - return playerName .. "-" .. playerRealm + return playerName end -- Get current character data diff --git a/UI/BagFrame.lua b/UI/BagFrame.lua index 02da17b..30c6d42 100644 --- a/UI/BagFrame.lua +++ b/UI/BagFrame.lua @@ -858,7 +858,7 @@ function Guda_BagFrame_ToggleCharacterDropdown(button) -- Button text local currentCharText = currentCharButton:CreateFontString(nil, "ARTWORK", "GameFontHighlight") currentCharText:SetPoint("LEFT", currentCharButton, "LEFT", 8, 0) - currentCharText:SetText("Current Character") + currentCharText:SetText("Characters") -- Button scripts currentCharButton:SetScript("OnEnter", function() @@ -1001,7 +1001,6 @@ function Guda_BagFrame_ToggleBankDropdown(button) -- Position dropdown below the button bankDropdown:ClearAllPoints() bankDropdown:SetPoint("TOPLEFT", button, "BOTTOMLEFT", 0, -2) - -- Clear existing buttons for _, btn in ipairs(bankDropdown.buttons) do btn:Hide() diff --git a/UI/BagFrame.xml b/UI/BagFrame.xml index fe5f411..1059ac6 100644 --- a/UI/BagFrame.xml +++ b/UI/BagFrame.xml @@ -193,7 +193,7 @@ GameTooltip:SetOwner(this, "ANCHOR_TOP") - GameTooltip:SetText("View Other Characters") + GameTooltip:SetText("My Characters") GameTooltip:Show() diff --git a/UI/BankFrame.lua b/UI/BankFrame.lua index 81f8941..1de9bad 100644 --- a/UI/BankFrame.lua +++ b/UI/BankFrame.lua @@ -167,7 +167,7 @@ function BankFrame:Update() bankData = addon.Modules.DB:GetCharacterBank(currentViewChar) isOtherChar = true charName = currentViewChar - getglobal("Guda_BankFrame_Title"):SetText("Bank - " .. currentViewChar) + getglobal("Guda_BankFrame_Title"):SetText(currentViewChar .. "'s Bank") else -- Viewing current character's bank if bankIsOpen then @@ -175,12 +175,12 @@ function BankFrame:Update() bankData = addon.Modules.BankScanner:ScanBank() -- Use current character's name for the title local playerName = addon.Modules.DB:GetPlayerFullName() - getglobal("Guda_BankFrame_Title"):SetText("Bank - " .. playerName) + getglobal("Guda_BankFrame_Title"):SetText(playerName .. "'s Bank") else -- Bank is closed - use saved data (read-only mode) local playerName = addon.Modules.DB:GetPlayerFullName() bankData = addon.Modules.DB:GetCharacterBank(playerName) - getglobal("Guda_BankFrame_Title"):SetText("Bank - " .. playerName) + getglobal("Guda_BankFrame_Title"):SetText(playerName .. "'s Bank") end end diff --git a/UI/BankFrame.xml b/UI/BankFrame.xml index 9a4059f..0c63c6b 100644 --- a/UI/BankFrame.xml +++ b/UI/BankFrame.xml @@ -240,7 +240,7 @@ GameTooltip:SetOwner(this, "ANCHOR_TOP") - GameTooltip:SetText("View Other Characters' Bank") + GameTooltip:SetText("View Bank") GameTooltip:Show()