]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Remove the remaining CheckButtons (#41073)
authorErrant <35878406+Errant-4@users.noreply.github.com>
Thu, 30 Oct 2025 20:59:16 +0000 (21:59 +0100)
committerGitHub <noreply@github.com>
Thu, 30 Oct 2025 20:59:16 +0000 (20:59 +0000)
remove CheckButtons

Content.Client/Administration/UI/BanPanel/BanPanel.xaml.cs
Content.Client/Disposal/Mailing/MailingUnitWindow.xaml
Content.Client/Disposal/Unit/DisposalUnitWindow.xaml
Content.Client/Instruments/UI/ChannelsMenu.xaml

index 756694250694fc4fe57c5fd33dc193ee22d65b7d..cb2839f5d023796c7aa0e0499334524a2caaf697 100644 (file)
@@ -294,19 +294,19 @@ public sealed partial class BanPanel : DefaultWindow
     }
 
     /// <summary>
-    /// Adds a check button specifically for one "role" in a "group"
+    /// Adds a toggle button specifically for one "role" in a "group"
     /// E.g. it would add the Chief Medical Officer "role" into the "Medical" group.
     /// </summary>
     private void AddRoleCheckbox(string group, string role, GridContainer roleGroupInnerContainer, Button roleGroupCheckbox)
     {
         var roleCheckboxContainer = new BoxContainer();
-        var roleCheckButton = new Button
+        var roleToggleButton = new Button
         {
             Name = role,
             Text = role,
             ToggleMode = true,
         };
-        roleCheckButton.OnToggled += args =>
+        roleToggleButton.OnToggled += args =>
         {
             // Checks the role group checkbox if all the children are pressed
             if (args.Pressed && _roleCheckboxes[group].All(e => e.Item1.Pressed))
@@ -343,12 +343,12 @@ public sealed partial class BanPanel : DefaultWindow
             roleCheckboxContainer.AddChild(jobIconTexture);
         }
 
-        roleCheckboxContainer.AddChild(roleCheckButton);
+        roleCheckboxContainer.AddChild(roleToggleButton);
 
         roleGroupInnerContainer.AddChild(roleCheckboxContainer);
 
         _roleCheckboxes.TryAdd(group, []);
-        _roleCheckboxes[group].Add((roleCheckButton, rolePrototype));
+        _roleCheckboxes[group].Add((roleToggleButton, rolePrototype));
     }
 
     public void UpdateBanFlag(bool newFlag)
index 0acd300895278a26533010574eb23bf3a1be3935..ab910d2db4ea740b66b1ca2874274d8cc733bd4d 100644 (file)
@@ -47,7 +47,7 @@
                     Access="Public"
                     Text="{Loc 'ui-disposal-unit-button-eject'}"
                     StyleClasses="OpenBoth" />
-            <CheckButton Name="Power"
+            <Button Name="Power"
                          Access="Public"
                          Text="{Loc 'ui-disposal-unit-button-power'}"
                          StyleClasses="OpenLeft" />
index 60ca7ba0db44bef84c869c7470a1761350f27f20..312f80c17660384ff59ca4861784432746078ff4 100644 (file)
@@ -34,7 +34,7 @@
                     Access="Public"
                     Text="{Loc 'ui-disposal-unit-button-eject'}"
                     StyleClasses="OpenBoth" />
-            <CheckButton Name="Power"
+            <Button Name="Power"
                          Access="Public"
                          Text="{Loc 'ui-disposal-unit-button-power'}"
                          StyleClasses="OpenLeft" />
index 20e4a3e9232d783c4878a83053e1bbf72666827b..e98b03e6b324539857b9e1bf2eadf0798a1b5ce5 100644 (file)
@@ -7,7 +7,7 @@
             <Button Name="AllButton" Text="{Loc 'instruments-component-channels-all-button'}" HorizontalExpand="true" VerticalExpand="true" SizeFlagsStretchRatio="1"/>
             <Button Name="ClearButton" Text="{Loc 'instruments-component-channels-clear-button'}" HorizontalExpand="true" VerticalExpand="true" SizeFlagsStretchRatio="1"/>
         </BoxContainer>
-        <CheckButton Name="DisplayTrackNames"
+        <Button Name="DisplayTrackNames"
                      Text="{Loc 'instruments-component-channels-track-names-toggle'}" />
     </BoxContainer>
 </DefaultWindow>