CatStation/Content.Client/Administration/UI/Tabs/ServerTab.xaml
w3ryfrate 2ccee7bbb3
Refactorization of admin commands, adding "ToggleChatCommand" class and removing obsolete classes. (#44480)
* Create new SetChatCommand.cs class

* Obsoleted the old "setchat" classes.

* Removed the obsolete classes

* Small fixes

* Small fixes reprise

* Fixed issues in PR

* Fixed issues in PR

* Renamed command and properly localized it.

* Renamed command and properly localized it.

* Updated Admin UI
2026-07-13 05:51:34 +00:00

34 lines
1.9 KiB
XML

<Control
xmlns="https://spacestation14.io"
xmlns:cc="clr-namespace:Content.Client.Administration.UI.CustomControls"
xmlns:controls="clr-namespace:Content.Client.UserInterface.Controls"
Margin="4"
MinSize="50 50">
<BoxContainer Orientation="Vertical" SeparationOverride="8">
<GridContainer Columns="4">
<controls:ConfirmButton Name="ServerShutdownButton" Text="{Loc server-shutdown}" />
<cc:CommandButton Name="SetOocButton" Command="togglechat OOC" Text="{Loc server-ooc-toggle}" ToggleMode="True" />
<cc:CommandButton Name="SetLoocButton" Command="togglechat LOOC" Text="{Loc server-looc-toggle}" ToggleMode="True" />
<cc:CommandButton Name="SetDeadChatButton" Command="togglechat Dead" Text="{Loc server-dead-chat-toggle}" ToggleMode="True" />
</GridContainer>
<BoxContainer Orientation="Vertical">
<Label Text="{Loc server-afk-timers}" />
<BoxContainer Orientation="Horizontal" Margin="2">
<Label Text="{Loc server-afk-time}" MinWidth="175" />
<LineEdit Name="AfkTime" MinWidth="70" Margin="0 0 5 0" PlaceHolder="300" />
<Label Text="{Loc generic-seconds}" />
</BoxContainer>
<BoxContainer Orientation="Horizontal" Margin="2">
<Label Text="{Loc server-admin-afk-time}" MinWidth="175" />
<LineEdit Name="AdminAfkTime" MinWidth="70" Margin="0 0 5 0" PlaceHolder="600" />
<Label Text="{Loc generic-seconds}" />
</BoxContainer>
<BoxContainer Orientation="Horizontal" Margin="2">
<Label Text="{Loc server-afk-confirm-timeout}" MinWidth="175" />
<LineEdit Name="AfkConfirmTimeout" MinWidth="70" Margin="0 0 5 0" PlaceHolder="60" />
<Label Text="{Loc generic-seconds}" />
</BoxContainer>
</BoxContainer>
</BoxContainer>
</Control>