From 446c7e37f7658a2d889d4329b2565af9b057c6c6 Mon Sep 17 00:00:00 2001 From: deltanedas <@deltanedas:kde.org> Date: Wed, 11 Dec 2024 08:48:01 +0000 Subject: [PATCH] add claim points button to oreproc --- .../Lathe/UI/LatheBoundUserInterface.cs | 3 ++ Content.Client/Lathe/UI/LatheMenu.xaml | 7 +++- Content.Client/Lathe/UI/LatheMenu.xaml.cs | 41 +++++++++++++++++++ .../en-US/deltav/lathe/ui/lathe-menu.ftl | 2 + 4 files changed, 52 insertions(+), 1 deletion(-) 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 a599f79152e..66f09aa41da 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; @@ -31,6 +32,8 @@ protected override void Open() { SendMessage(new LatheQueueRecipeMessage(recipe, amount)); }; + + _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 5b21f0bae66..506a63328ab 100644 --- a/Content.Client/Lathe/UI/LatheMenu.xaml +++ b/Content.Client/Lathe/UI/LatheMenu.xaml @@ -132,9 +132,14 @@ HorizontalExpand="True"> + + +