]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
uichange Fix Grinder (#14234)
authorDEATHB4DEFEAT <77995199+DEATHB4DEFEAT@users.noreply.github.com>
Sat, 25 Mar 2023 14:51:35 +0000 (07:51 -0700)
committerGitHub <noreply@github.com>
Sat, 25 Mar 2023 14:51:35 +0000 (10:51 -0400)
Content.Client/Kitchen/UI/GrinderMenu.xaml
Content.Client/Kitchen/UI/GrinderMenu.xaml.cs
Content.Client/Kitchen/UI/LabelledContentBox.xaml

index 0c5880a4987c32df1de0a02c143cf896600d9f47..b83128d004a13d4309eca395482c80add8dac177 100644 (file)
@@ -1,15 +1,16 @@
-<DefaultWindow xmlns="https://spacestation14.io"
+<controls:FancyWindow xmlns="https://spacestation14.io"
             xmlns:ui="clr-namespace:Content.Client.Kitchen.UI"
-            Title="{Loc grinder-menu-title}" MinSize="512 256" SetSize="512 256">
-<BoxContainer Orientation="Horizontal">
-        <BoxContainer Orientation="Vertical" VerticalAlignment="Center">
-            <Button Name="GrindButton" Text="{Loc grinder-menu-grind-button}" TextAlign="Center" MinSize="64 64"/>
+            xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
+            Title="{Loc grinder-menu-title}" MinSize="768 256">
+    <BoxContainer Orientation="Horizontal">
+        <BoxContainer Orientation="Vertical" VerticalAlignment="Top" Margin="8">
+            <Button Name="GrindButton" Text="{Loc grinder-menu-grind-button}" TextAlign="Center" MinSize="64 48"/>
             <Control MinSize="0 16"/>
-            <Button Name="JuiceButton" Text="{Loc grinder-menu-juice-button}" TextAlign="Center" MinSize="64 64"/>
+            <Button Name="JuiceButton" Text="{Loc grinder-menu-juice-button}" TextAlign="Center" MinSize="64 48"/>
         </BoxContainer>
-        <Control MinSize="16 0"/>
-        <ui:LabelledContentBox Name="ChamberContentBox" LabelText="{Loc grinder-menu-chamber-content-box-label}" ButtonText="{Loc grinder-menu-chamber-content-box-button}" VerticalExpand="True" HorizontalExpand="True" SizeFlagsStretchRatio="2"/>
-        <Control MinSize="8 0"/>
-        <ui:LabelledContentBox Name="BeakerContentBox" LabelText="{Loc grinder-menu-beaker-content-box-label}" ButtonText="{Loc grinder-menu-beaker-content-box-button}" VerticalExpand="True" HorizontalExpand="True" SizeFlagsStretchRatio="2"/>
+
+        <ui:LabelledContentBox Name="ChamberContentBox" LabelText="{Loc grinder-menu-chamber-content-box-label}" ButtonText="{Loc grinder-menu-chamber-content-box-button}" VerticalExpand="True" HorizontalExpand="True" Margin="8" SizeFlagsStretchRatio="2"/>
+
+        <ui:LabelledContentBox Name="BeakerContentBox" LabelText="{Loc grinder-menu-beaker-content-box-label}" ButtonText="{Loc grinder-menu-beaker-content-box-button}" VerticalExpand="True" HorizontalExpand="True" Margin="8" SizeFlagsStretchRatio="2"/>
     </BoxContainer>
-</DefaultWindow>
+</controls:FancyWindow>
index 58e2ac2b8ddf603ec6cdd5e3e3a955122b3f08a5..a2237e5f0905676ded37de3f23738257f00dbc4e 100644 (file)
@@ -1,3 +1,4 @@
+using Content.Client.UserInterface.Controls;
 using Content.Shared.Chemistry.Components;
 using Content.Shared.Chemistry.Reagent;
 using Content.Shared.Kitchen;
@@ -11,7 +12,7 @@ using Robust.Shared.Prototypes;
 namespace Content.Client.Kitchen.UI
 {
     [GenerateTypedNameReferences]
-    public sealed partial class GrinderMenu : DefaultWindow
+    public sealed partial class GrinderMenu : FancyWindow
     {
         private readonly IEntityManager _entityManager;
         private readonly IPrototypeManager _prototypeManager ;
index 0c6a5f9e9cdebd9f719f3cc5673986be904c2c06..949f3d3909387bde04a7b5024afbeee7663b5c2b 100644 (file)
@@ -1,5 +1,5 @@
 <BoxContainer Orientation="Vertical" xmlns="https://spacestation14.io">
-    <SplitContainer Orientation="Horizontal">
+    <SplitContainer Orientation="Horizontal" Margin="5">
         <Label Name="Label" Align="Center"/>
         <Button Name="EjectButton" Access="Public" TextAlign="Center"/>
     </SplitContainer>