From 1c2f2007629b3e3166e280bde1189e418a6f4a53 Mon Sep 17 00:00:00 2001 From: deltanedas <39013340+deltanedas@users.noreply.github.com> Date: Fri, 13 Dec 2024 09:09:48 +0000 Subject: [PATCH] add mining points (#2419) * add mining points * add claim points button to oreproc * funny * its over * :trollface: * xml fail Signed-off-by: deltanedas <39013340+deltanedas@users.noreply.github.com> --------- Signed-off-by: deltanedas <39013340+deltanedas@users.noreply.github.com> Co-authored-by: deltanedas <@deltanedas:kde.org> --- .../Lathe/UI/LatheBoundUserInterface.cs | 3 + Content.Client/Lathe/UI/LatheMenu.xaml | 6 + Content.Client/Lathe/UI/LatheMenu.xaml.cs | 55 +++++++- .../Components/MiningPointsComponent.cs | 26 ++++ .../Components/MiningPointsLatheComponent.cs | 9 ++ .../DeltaV/Salvage/MiningPointsUI.cs | 9 ++ .../Salvage/Systems/MiningPointsSystem.cs | 121 ++++++++++++++++++ .../Prototypes/LatheRecipePrototype.cs | 8 ++ .../en-US/deltav/lathe/ui/lathe-menu.ftl | 2 + .../Objects/Misc/identification_cards.yml | 1 + .../Entities/Structures/Machines/lathe.yml | 4 + Resources/Prototypes/Recipes/Lathes/sheet.yml | 14 ++ 12 files changed, 256 insertions(+), 2 deletions(-) create mode 100644 Content.Shared/DeltaV/Salvage/Components/MiningPointsComponent.cs create mode 100644 Content.Shared/DeltaV/Salvage/Components/MiningPointsLatheComponent.cs create mode 100644 Content.Shared/DeltaV/Salvage/MiningPointsUI.cs create mode 100644 Content.Shared/DeltaV/Salvage/Systems/MiningPointsSystem.cs create mode 100644 Resources/Locale/en-US/deltav/lathe/ui/lathe-menu.ftl diff --git a/Content.Client/Lathe/UI/LatheBoundUserInterface.cs b/Content.Client/Lathe/UI/LatheBoundUserInterface.cs index 75b1704b0d..4f8e0c2ac3 100644 --- a/Content.Client/Lathe/UI/LatheBoundUserInterface.cs +++ b/Content.Client/Lathe/UI/LatheBoundUserInterface.cs @@ -1,3 +1,4 @@ +using Content.Shared.DeltaV.Salvage; // DeltaV using Content.Shared.Lathe; using Content.Shared.Research.Components; using JetBrains.Annotations; @@ -34,6 +35,8 @@ namespace Content.Client.Lathe.UI _menu.QueueMoveUpAction += index => SendMessage(new LatheMoveRequestMessage(index, -1)); _menu.QueueMoveDownAction += index => SendMessage(new LatheMoveRequestMessage(index, 1)); _menu.DeleteFabricatingAction += () => SendMessage(new LatheAbortFabricationMessage()); + + _menu.OnClaimMiningPoints += () => SendMessage(new LatheClaimMiningPointsMessage()); // DeltaV } protected override void UpdateState(BoundUserInterfaceState state) diff --git a/Content.Client/Lathe/UI/LatheMenu.xaml b/Content.Client/Lathe/UI/LatheMenu.xaml index a5c8f6a85c..de3d51e087 100644 --- a/Content.Client/Lathe/UI/LatheMenu.xaml +++ b/Content.Client/Lathe/UI/LatheMenu.xaml @@ -151,6 +151,12 @@ + + +