fix: copys
This commit is contained in:
+1
-1
@@ -117,7 +117,7 @@ end
|
||||
|
||||
-- Get current player's full name
|
||||
function DB:GetPlayerFullName()
|
||||
return playerName .. "-" .. playerRealm
|
||||
return playerName
|
||||
end
|
||||
|
||||
-- Get current character data
|
||||
|
||||
+1
-2
@@ -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()
|
||||
|
||||
+1
-1
@@ -193,7 +193,7 @@
|
||||
</OnClick>
|
||||
<OnEnter>
|
||||
GameTooltip:SetOwner(this, "ANCHOR_TOP")
|
||||
GameTooltip:SetText("View Other Characters")
|
||||
GameTooltip:SetText("My Characters")
|
||||
GameTooltip:Show()
|
||||
</OnEnter>
|
||||
<OnLeave>
|
||||
|
||||
+3
-3
@@ -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
|
||||
|
||||
|
||||
+1
-1
@@ -240,7 +240,7 @@
|
||||
</OnClick>
|
||||
<OnEnter>
|
||||
GameTooltip:SetOwner(this, "ANCHOR_TOP")
|
||||
GameTooltip:SetText("View Other Characters' Bank")
|
||||
GameTooltip:SetText("View Bank")
|
||||
GameTooltip:Show()
|
||||
</OnEnter>
|
||||
<OnLeave>
|
||||
|
||||
Reference in New Issue
Block a user