From 49a22ed29d3c0aee9e38f248bf7c6fd4db705736 Mon Sep 17 00:00:00 2001 From: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com> Date: Sun, 30 Apr 2023 18:46:45 +1200 Subject: [PATCH] Set SpriteView sizes in various controls. (#15935) --- Content.Client/Atmos/Monitor/UI/AirAlarmWindow.xaml | 2 +- Content.Client/Examine/ExamineSystem.cs | 1 + Content.Client/RoundEnd/RoundEndSummaryWindow.cs | 1 + Content.Client/Storage/UI/StorageWindow.cs | 2 +- Content.Client/UserInterface/Controls/SlotControl.cs | 2 ++ .../UserInterface/Systems/Actions/Controls/ActionButton.cs | 1 + .../Systems/Character/Windows/CharacterWindow.xaml | 2 +- Content.Client/Verbs/UI/VerbMenuElement.cs | 1 + 8 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Content.Client/Atmos/Monitor/UI/AirAlarmWindow.xaml b/Content.Client/Atmos/Monitor/UI/AirAlarmWindow.xaml index 2914223be9..3e43e4543f 100644 --- a/Content.Client/Atmos/Monitor/UI/AirAlarmWindow.xaml +++ b/Content.Client/Atmos/Monitor/UI/AirAlarmWindow.xaml @@ -8,7 +8,7 @@ - + diff --git a/Content.Client/Examine/ExamineSystem.cs b/Content.Client/Examine/ExamineSystem.cs index a33671c3db..0109f90cc5 100644 --- a/Content.Client/Examine/ExamineSystem.cs +++ b/Content.Client/Examine/ExamineSystem.cs @@ -207,6 +207,7 @@ namespace Content.Client.Examine hBox.AddChild(new SpriteView { Sprite = sprite, OverrideDirection = Direction.South, + SetSize = (32, 32), Margin = new Thickness(2, 0, 2, 0), }); } diff --git a/Content.Client/RoundEnd/RoundEndSummaryWindow.cs b/Content.Client/RoundEnd/RoundEndSummaryWindow.cs index b7c3d1b2ee..c6d989c0a8 100644 --- a/Content.Client/RoundEnd/RoundEndSummaryWindow.cs +++ b/Content.Client/RoundEnd/RoundEndSummaryWindow.cs @@ -129,6 +129,7 @@ namespace Content.Client.RoundEnd Sprite = sprite, OverrideDirection = Direction.South, VerticalAlignment = VAlignment.Center, + SetSize = (32, 32), VerticalExpand = true, }); } diff --git a/Content.Client/Storage/UI/StorageWindow.cs b/Content.Client/Storage/UI/StorageWindow.cs index 11d5b64da3..eca118d762 100644 --- a/Content.Client/Storage/UI/StorageWindow.cs +++ b/Content.Client/Storage/UI/StorageWindow.cs @@ -123,7 +123,7 @@ namespace Content.Client.Storage.UI { HorizontalAlignment = HAlignment.Left, VerticalAlignment = VAlignment.Center, - MinSize = new Vector2(32.0f, 32.0f), + SetSize = new Vector2(32.0f, 32.0f), OverrideDirection = Direction.South, Sprite = sprite }, diff --git a/Content.Client/UserInterface/Controls/SlotControl.cs b/Content.Client/UserInterface/Controls/SlotControl.cs index 245a71ecbe..207e3b4357 100644 --- a/Content.Client/UserInterface/Controls/SlotControl.cs +++ b/Content.Client/UserInterface/Controls/SlotControl.cs @@ -132,12 +132,14 @@ namespace Content.Client.UserInterface.Controls AddChild(SpriteView = new SpriteView { Scale = (2, 2), + SetSize = (DefaultButtonSize, DefaultButtonSize), OverrideDirection = Direction.South }); AddChild(HoverSpriteView = new SpriteView { Scale = (2, 2), + SetSize = (DefaultButtonSize, DefaultButtonSize), OverrideDirection = Direction.South }); diff --git a/Content.Client/UserInterface/Systems/Actions/Controls/ActionButton.cs b/Content.Client/UserInterface/Systems/Actions/Controls/ActionButton.cs index 9f05ed4d98..e032b19534 100644 --- a/Content.Client/UserInterface/Systems/Actions/Controls/ActionButton.cs +++ b/Content.Client/UserInterface/Systems/Actions/Controls/ActionButton.cs @@ -95,6 +95,7 @@ public sealed class ActionButton : Control HorizontalExpand = true, VerticalExpand = true, Scale = (2, 2), + SetSize = (64, 64), Visible = false, OverrideDirection = Direction.South, }; diff --git a/Content.Client/UserInterface/Systems/Character/Windows/CharacterWindow.xaml b/Content.Client/UserInterface/Systems/Character/Windows/CharacterWindow.xaml index 82f3e7ff19..1e55cad891 100644 --- a/Content.Client/UserInterface/Systems/Character/Windows/CharacterWindow.xaml +++ b/Content.Client/UserInterface/Systems/Character/Windows/CharacterWindow.xaml @@ -8,7 +8,7 @@ - +