[feat]enableShuttleCall command and button to admin menu

This commit is contained in:
rhailrake
2023-04-27 22:45:07 +06:00
committed by Remuchi
parent 2fc83dce19
commit 6202617b8c
6 changed files with 78 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
<DefaultWindow xmlns="https://spacestation14.io"
xmlns:cc="clr-namespace:Content.Client.Administration.UI.CustomControls"
Title="{Loc 'admin-player-actions-window-shuttle-call'}"
MinWidth="300">
<BoxContainer Orientation="Vertical">
<cc:CommandButton Command="enableShuttleCall True" Name="_enableCallShuttleButton" Text="{Loc 'emergency_shuttle-call-enable'}" HorizontalAlignment="Center"/>
<cc:CommandButton Command="enableShuttleCall False" Name="_disableCallShuttleButton" Text="{Loc 'emergency_shuttle-call-disable'}" HorizontalAlignment="Center"/>
</BoxContainer>
</DefaultWindow>

View File

@@ -0,0 +1,16 @@
using Robust.Client.AutoGenerated;
using Robust.Client.UserInterface.CustomControls;
using Robust.Client.UserInterface.XAML;
namespace Content.Client.Administration.UI.Tabs.AdminTab
{
[GenerateTypedNameReferences]
public sealed partial class AdminShuttleCallEnableWindow : DefaultWindow
{
public AdminShuttleCallEnableWindow()
{
RobustXamlLoader.Load(this);
IoCManager.InjectDependencies(this);
}
}
}

View File

@@ -17,6 +17,7 @@
<cc:UICommandButton Command="callshuttle" Text="{Loc admin-player-actions-window-shuttle}" WindowType="{x:Type at:AdminShuttleWindow}"/>
<cc:CommandButton Command="adminlogs" Text="{Loc admin-player-actions-window-admin-logs}"/>
<cc:CommandButton Command="faxui" Text="{Loc admin-player-actions-window-admin-fax}"/>
<cc:UICommandButton Command="enableShuttleCall" Text="{Loc admin-player-actions-window-shuttle-call}" WindowType="{x:Type at:AdminShuttleCallEnableWindow}"/>
</GridContainer>
</BoxContainer>
</Control>