From: Absotively Date: Thu, 23 Oct 2025 15:15:42 +0000 (-0600) Subject: Hand labeler UI improvements (#40318) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=f1c95bfbb1a0b614a46007c6511db89c617cf580;p=space-station-14.git 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 --- 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"> +