From f1c95bfbb1a0b614a46007c6511db89c617cf580 Mon Sep 17 00:00:00 2001 From: Absotively Date: Thu, 23 Oct 2025 09:15:42 -0600 Subject: [PATCH] Hand labeler UI improvements (#40318) * Populate and select label line edit on window open * Widen hand labeller UI * Add reset and clear buttons to hand labeler UI * Add window resizing fix from https://github.com/space-wizards/space-station-14/pull/40322 * xaml cleanup, button grouping --- .../UI/HandLabelerBoundUserInterface.cs | 1 + .../Labels/UI/HandLabelerWindow.xaml | 10 ++++++-- .../Labels/UI/HandLabelerWindow.xaml.cs | 24 ++++++++++++++++++- .../en-US/hand-labeler/hand-labeler.ftl | 6 +++++ 4 files changed, 38 insertions(+), 3 deletions(-) diff --git a/Content.Client/Labels/UI/HandLabelerBoundUserInterface.cs b/Content.Client/Labels/UI/HandLabelerBoundUserInterface.cs index b9b58f2322..95d5cc7ab3 100644 --- a/Content.Client/Labels/UI/HandLabelerBoundUserInterface.cs +++ b/Content.Client/Labels/UI/HandLabelerBoundUserInterface.cs @@ -33,6 +33,7 @@ namespace Content.Client.Labels.UI _window.OnLabelChanged += OnLabelChanged; Reload(); + _window.SetInitialLabelState(); // Must be after Reload() has set the label text } private void OnLabelChanged(string newLabel) diff --git a/Content.Client/Labels/UI/HandLabelerWindow.xaml b/Content.Client/Labels/UI/HandLabelerWindow.xaml index 0bf03410c1..7bbadb843d 100644 --- a/Content.Client/Labels/UI/HandLabelerWindow.xaml +++ b/Content.Client/Labels/UI/HandLabelerWindow.xaml @@ -1,8 +1,14 @@ - + Title="{Loc 'hand-labeler-ui-header'}" + SetWidth="400" + MinWidth="150"> +