From e5974183680964f5e50bfbcb26fca49460e5bb6b Mon Sep 17 00:00:00 2001 From: Dvir Date: Sun, 15 Oct 2023 03:26:40 +0300 Subject: [PATCH 1/4] Shipyard show sell price --- .../BUI/ShipyardConsoleBoundUserInterface.cs | 3 ++ .../Shipyard/UI/ShipyardConsoleMenu.xaml | 1 + .../Shipyard/UI/ShipyardConsoleMenu.xaml.cs | 9 +++- .../Systems/ShipyardSystem.Consoles.cs | 46 +++++++++++++++---- .../BUI/ShipyardConsoleInterfaceState.cs | 6 +++ .../en-US/cargo/cargo-console-component.ftl | 2 + 6 files changed, 57 insertions(+), 10 deletions(-) diff --git a/Content.Client/Shipyard/BUI/ShipyardConsoleBoundUserInterface.cs b/Content.Client/Shipyard/BUI/ShipyardConsoleBoundUserInterface.cs index 4401bdd4163..d1703159a70 100644 --- a/Content.Client/Shipyard/BUI/ShipyardConsoleBoundUserInterface.cs +++ b/Content.Client/Shipyard/BUI/ShipyardConsoleBoundUserInterface.cs @@ -15,6 +15,8 @@ public sealed class ShipyardConsoleBoundUserInterface : BoundUserInterface private ShipyardRulesPopup? _rulesWindow; public int Balance { get; private set; } + public int? ShipSellValue { get; private set; } + public ShipyardConsoleBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey) { } @@ -57,6 +59,7 @@ protected override void UpdateState(BoundUserInterfaceState state) return; Balance = cState.Balance; + ShipSellValue = cState.ShipSellValue; var castState = (ShipyardConsoleInterfaceState) state; Populate(castState.UiKey); _menu?.UpdateState(castState); diff --git a/Content.Client/Shipyard/UI/ShipyardConsoleMenu.xaml b/Content.Client/Shipyard/UI/ShipyardConsoleMenu.xaml index 56d012872f6..16dad360d4f 100644 --- a/Content.Client/Shipyard/UI/ShipyardConsoleMenu.xaml +++ b/Content.Client/Shipyard/UI/ShipyardConsoleMenu.xaml @@ -5,6 +5,7 @@ MinSize="460 280">