diff --git a/Content.Client/PDA/PdaMenu.xaml.cs b/Content.Client/PDA/PdaMenu.xaml.cs index 2ba4a8a588e..e6c4b82a918 100644 --- a/Content.Client/PDA/PdaMenu.xaml.cs +++ b/Content.Client/PDA/PdaMenu.xaml.cs @@ -32,7 +32,8 @@ public sealed partial class PdaMenu : PdaWindow private string _stationName = Loc.GetString("comp-pda-ui-unknown"); private string _alertLevel = Loc.GetString("comp-pda-ui-unknown"); private string _instructions = Loc.GetString("comp-pda-ui-unknown"); - private string _balance = Loc.GetString("comp-pda-ui-balance", ("balance", 0)); + private string _balance = 0; + private int _currentView; @@ -131,9 +132,6 @@ public PdaMenu() _clipboard.SetText(_instructions); }; - - - HideAllViews(); ToHomeScreen(); } diff --git a/Content.Server/PDA/PdaSystem.cs b/Content.Server/PDA/PdaSystem.cs index 33a0eb9fc97..9bb1c250b6c 100644 --- a/Content.Server/PDA/PdaSystem.cs +++ b/Content.Server/PDA/PdaSystem.cs @@ -167,11 +167,10 @@ public void UpdatePdaUi(EntityUid uid, PdaComponent? pda = null, EntityUid? acto var programs = _cartridgeLoader.GetAvailablePrograms(uid, loader); var id = CompOrNull(pda.ContainedId); ulong balance = 0; - if (actor_uid != null){ - if (TryComp(actor_uid, out var bank)) { + if (actor_uid != null) + if (TryComp(actor_uid, out var bank)) balance = (ulong)bank.Balance; - } - } + var state = new PdaUpdateState( programs, GetNetEntity(loader.ActiveProgram),