Skip to content

Commit

Permalink
Fix deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
Oppzippy committed Jul 24, 2024
1 parent 729e6d5 commit 06e9c74
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Frames/HistoryFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function HistoryFramePrototype:RenderRecord(record)

local unitLabel = AceGUI:Create("Label")
---@cast unitLabel AceGUILabel
unitLabel:SetText(L.unit_with_value:format(GetCoinTextureString(record.unit)))
unitLabel:SetText(L.unit_with_value:format(C_CurrencyInfo.GetCoinTextureString(record.unit)))
unitLabel:SetFullWidth(true)
container:AddChild(unitLabel)

Expand Down
2 changes: 1 addition & 1 deletion Frames/PayoutProgressFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ function PayoutProgressFramePrototype:UpdateProgressList()
for payout in self.payoutQueue:IteratePayouts() do
local label = AceGUI:Create("Label")
---@cast label AceGUILabel
label:SetText(string.format("%s - %s", payout.player, GetCoinTextureString(payout.copper)))
label:SetText(string.format("%s - %s", payout.player, C_CurrencyInfo.GetCoinTextureString(payout.copper)))
if type(payout.isPaid) == "boolean" then
label:SetImage(payout.isPaid and PAID_IMAGE or UNPAID_IMAGE)
else
Expand Down
2 changes: 1 addition & 1 deletion Frames/PayoutSetupFrame.lua
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ do
---@param dropdown AceGUIDropdown
---@param copper number
local function AddDropdownUnit(dropdown, copper)
dropdown:AddItem(copper, GetCoinTextureString(copper))
dropdown:AddItem(copper, C_CurrencyInfo.GetCoinTextureString(copper))
end

---@return AceGUIDropdown
Expand Down
8 changes: 4 additions & 4 deletions Options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ addon.options = {
name = L.default_unit,
type = "select",
values = {
[1] = GetCoinTextureString(1),
[COPPER_PER_SILVER] = GetCoinTextureString(COPPER_PER_SILVER),
[COPPER_PER_GOLD] = GetCoinTextureString(COPPER_PER_GOLD),
[COPPER_PER_GOLD * 1000] = GetCoinTextureString(COPPER_PER_GOLD * 1000),
[1] = C_CurrencyInfo.GetCoinTextureString(1),
[COPPER_PER_SILVER] = C_CurrencyInfo.GetCoinTextureString(COPPER_PER_SILVER),
[COPPER_PER_GOLD] = C_CurrencyInfo.GetCoinTextureString(COPPER_PER_GOLD),
[COPPER_PER_GOLD * 1000] = C_CurrencyInfo.GetCoinTextureString(COPPER_PER_GOLD * 1000),
},
},
maxHistorySize = {
Expand Down

0 comments on commit 06e9c74

Please sign in to comment.