fix: copys
This commit is contained in:
+1
-1
@@ -117,7 +117,7 @@ end
|
|||||||
|
|
||||||
-- Get current player's full name
|
-- Get current player's full name
|
||||||
function DB:GetPlayerFullName()
|
function DB:GetPlayerFullName()
|
||||||
return playerName .. "-" .. playerRealm
|
return playerName
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Get current character data
|
-- Get current character data
|
||||||
|
|||||||
+1
-2
@@ -858,7 +858,7 @@ function Guda_BagFrame_ToggleCharacterDropdown(button)
|
|||||||
-- Button text
|
-- Button text
|
||||||
local currentCharText = currentCharButton:CreateFontString(nil, "ARTWORK", "GameFontHighlight")
|
local currentCharText = currentCharButton:CreateFontString(nil, "ARTWORK", "GameFontHighlight")
|
||||||
currentCharText:SetPoint("LEFT", currentCharButton, "LEFT", 8, 0)
|
currentCharText:SetPoint("LEFT", currentCharButton, "LEFT", 8, 0)
|
||||||
currentCharText:SetText("Current Character")
|
currentCharText:SetText("Characters")
|
||||||
|
|
||||||
-- Button scripts
|
-- Button scripts
|
||||||
currentCharButton:SetScript("OnEnter", function()
|
currentCharButton:SetScript("OnEnter", function()
|
||||||
@@ -1001,7 +1001,6 @@ function Guda_BagFrame_ToggleBankDropdown(button)
|
|||||||
-- Position dropdown below the button
|
-- Position dropdown below the button
|
||||||
bankDropdown:ClearAllPoints()
|
bankDropdown:ClearAllPoints()
|
||||||
bankDropdown:SetPoint("TOPLEFT", button, "BOTTOMLEFT", 0, -2)
|
bankDropdown:SetPoint("TOPLEFT", button, "BOTTOMLEFT", 0, -2)
|
||||||
|
|
||||||
-- Clear existing buttons
|
-- Clear existing buttons
|
||||||
for _, btn in ipairs(bankDropdown.buttons) do
|
for _, btn in ipairs(bankDropdown.buttons) do
|
||||||
btn:Hide()
|
btn:Hide()
|
||||||
|
|||||||
+1
-1
@@ -193,7 +193,7 @@
|
|||||||
</OnClick>
|
</OnClick>
|
||||||
<OnEnter>
|
<OnEnter>
|
||||||
GameTooltip:SetOwner(this, "ANCHOR_TOP")
|
GameTooltip:SetOwner(this, "ANCHOR_TOP")
|
||||||
GameTooltip:SetText("View Other Characters")
|
GameTooltip:SetText("My Characters")
|
||||||
GameTooltip:Show()
|
GameTooltip:Show()
|
||||||
</OnEnter>
|
</OnEnter>
|
||||||
<OnLeave>
|
<OnLeave>
|
||||||
|
|||||||
+3
-3
@@ -167,7 +167,7 @@ function BankFrame:Update()
|
|||||||
bankData = addon.Modules.DB:GetCharacterBank(currentViewChar)
|
bankData = addon.Modules.DB:GetCharacterBank(currentViewChar)
|
||||||
isOtherChar = true
|
isOtherChar = true
|
||||||
charName = currentViewChar
|
charName = currentViewChar
|
||||||
getglobal("Guda_BankFrame_Title"):SetText("Bank - " .. currentViewChar)
|
getglobal("Guda_BankFrame_Title"):SetText(currentViewChar .. "'s Bank")
|
||||||
else
|
else
|
||||||
-- Viewing current character's bank
|
-- Viewing current character's bank
|
||||||
if bankIsOpen then
|
if bankIsOpen then
|
||||||
@@ -175,12 +175,12 @@ function BankFrame:Update()
|
|||||||
bankData = addon.Modules.BankScanner:ScanBank()
|
bankData = addon.Modules.BankScanner:ScanBank()
|
||||||
-- Use current character's name for the title
|
-- Use current character's name for the title
|
||||||
local playerName = addon.Modules.DB:GetPlayerFullName()
|
local playerName = addon.Modules.DB:GetPlayerFullName()
|
||||||
getglobal("Guda_BankFrame_Title"):SetText("Bank - " .. playerName)
|
getglobal("Guda_BankFrame_Title"):SetText(playerName .. "'s Bank")
|
||||||
else
|
else
|
||||||
-- Bank is closed - use saved data (read-only mode)
|
-- Bank is closed - use saved data (read-only mode)
|
||||||
local playerName = addon.Modules.DB:GetPlayerFullName()
|
local playerName = addon.Modules.DB:GetPlayerFullName()
|
||||||
bankData = addon.Modules.DB:GetCharacterBank(playerName)
|
bankData = addon.Modules.DB:GetCharacterBank(playerName)
|
||||||
getglobal("Guda_BankFrame_Title"):SetText("Bank - " .. playerName)
|
getglobal("Guda_BankFrame_Title"):SetText(playerName .. "'s Bank")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -240,7 +240,7 @@
|
|||||||
</OnClick>
|
</OnClick>
|
||||||
<OnEnter>
|
<OnEnter>
|
||||||
GameTooltip:SetOwner(this, "ANCHOR_TOP")
|
GameTooltip:SetOwner(this, "ANCHOR_TOP")
|
||||||
GameTooltip:SetText("View Other Characters' Bank")
|
GameTooltip:SetText("View Bank")
|
||||||
GameTooltip:Show()
|
GameTooltip:Show()
|
||||||
</OnEnter>
|
</OnEnter>
|
||||||
<OnLeave>
|
<OnLeave>
|
||||||
|
|||||||
Reference in New Issue
Block a user