diff --git a/Content.Client/Bank/UI/BankATMMenu.xaml.cs b/Content.Client/Bank/UI/BankATMMenu.xaml.cs index e60d878fa85..d72ab5315d9 100644 --- a/Content.Client/Bank/UI/BankATMMenu.xaml.cs +++ b/Content.Client/Bank/UI/BankATMMenu.xaml.cs @@ -4,6 +4,7 @@ * See AGPLv3.txt for details. */ using Content.Client.UserInterface.Controls; +using Content.Shared._NF.Bank; using Robust.Client.AutoGenerated; using Robust.Client.UserInterface.Controls; using Robust.Client.UserInterface.XAML; @@ -27,14 +28,14 @@ public BankATMMenu() public void SetBalance(int amount) { - BalanceLabel.Text = Loc.GetString("bank-atm-menu-cash-amount", ("amount", amount.ToString())); + BalanceLabel.Text = BankSystemExtensions.ToSpesoString(amount); } public void SetDeposit(int amount) { DepositButton.Disabled = amount <= 0; if (amount >= 0) // Valid - DepositLabel.Text = Loc.GetString("bank-atm-menu-cash-amount", ("amount", amount.ToString())); + DepositLabel.Text = BankSystemExtensions.ToSpesoString(amount); else DepositLabel.Text = Loc.GetString("bank-atm-menu-cash-error"); } @@ -59,6 +60,6 @@ private void OnAmountChanged(LineEdit.LineEditEventArgs args) if (int.TryParse(args.Text, out var amount)) { Amount = amount; - } + } } } diff --git a/Content.Client/Bank/UI/StationBankATMMenu.xaml.cs b/Content.Client/Bank/UI/StationBankATMMenu.xaml.cs index bbc0e9a55d2..bee11b750fb 100644 --- a/Content.Client/Bank/UI/StationBankATMMenu.xaml.cs +++ b/Content.Client/Bank/UI/StationBankATMMenu.xaml.cs @@ -4,6 +4,7 @@ * See AGPLv3.txt for details. */ using Content.Client.UserInterface.Controls; +using Content.Shared._NF.Bank; using Robust.Client.AutoGenerated; using Robust.Client.UserInterface.Controls; using Robust.Client.UserInterface.XAML; @@ -41,14 +42,14 @@ private void OnReasonSelected(OptionButton.ItemSelectedEventArgs args) } public void SetBalance(int amount) { - BalanceLabel.Text = Loc.GetString("bank-atm-menu-cash-amount", ("amount", amount.ToString())); + BalanceLabel.Text = BankSystemExtensions.ToSpesoString(amount); } public void SetDeposit(int amount) { DepositButton.Disabled = amount <= 0; if (amount >= 0) // Valid - DepositLabel.Text = Loc.GetString("bank-atm-menu-cash-amount", ("amount", amount.ToString())); + DepositLabel.Text = BankSystemExtensions.ToSpesoString(amount); else DepositLabel.Text = Loc.GetString("bank-atm-menu-cash-error"); } @@ -74,7 +75,7 @@ private void OnAmountChanged(LineEdit.LineEditEventArgs args) if (int.TryParse(args.Text, out var amount)) { Amount = amount; - } + } } private void OnDescChanged(LineEdit.LineEditEventArgs args) diff --git a/Content.Client/Bank/UI/WithdrawBankATMMenu.cs b/Content.Client/Bank/UI/WithdrawBankATMMenu.cs index 4a5cbd41a55..78f61ec94e5 100644 --- a/Content.Client/Bank/UI/WithdrawBankATMMenu.cs +++ b/Content.Client/Bank/UI/WithdrawBankATMMenu.cs @@ -4,6 +4,7 @@ * See AGPLv3.txt for details. */ using Content.Client.UserInterface.Controls; +using Content.Shared._NF.Bank; using Robust.Client.AutoGenerated; using Robust.Client.UserInterface.Controls; using Robust.Client.UserInterface.XAML; @@ -26,7 +27,7 @@ public WithdrawBankATMMenu() public void SetBalance(int amount) { - BalanceLabel.Text = Loc.GetString("bank-atm-menu-cash-amount", ("amount", amount.ToString())); + BalanceLabel.Text = BankSystemExtensions.ToSpesoString(amount); } public void SetEnabled(bool enabled) @@ -44,6 +45,6 @@ private void OnAmountChanged(LineEdit.LineEditEventArgs args) if (int.TryParse(args.Text, out var amount)) { Amount = amount; - } + } } } diff --git a/Content.Client/Cargo/UI/BountyEntry.xaml.cs b/Content.Client/Cargo/UI/BountyEntry.xaml.cs index 027d7b3e801..acc6aa36548 100644 --- a/Content.Client/Cargo/UI/BountyEntry.xaml.cs +++ b/Content.Client/Cargo/UI/BountyEntry.xaml.cs @@ -1,4 +1,5 @@ using Content.Client.Message; +using Content.Shared._NF.Bank; using Content.Shared.Cargo; using Content.Shared.Cargo.Prototypes; using Content.Shared.Random; @@ -40,7 +41,7 @@ public BountyEntry(CargoBountyData bounty, TimeSpan untilNextSkip) ("item", Loc.GetString(entry.Name)))); } ManifestLabel.SetMarkup(Loc.GetString("bounty-console-manifest-label", ("item", string.Join(", ", items)))); - RewardLabel.SetMarkup(Loc.GetString("bounty-console-reward-label", ("reward", bountyPrototype.Reward))); + RewardLabel.SetMarkup(Loc.GetString("bounty-console-reward-label", ("reward", BankSystemExtensions.ToSpesoString(bountyPrototype.Reward)))); // Frontier: bountyPrototype.Reward