Adds a adminbus button to delete the singularity (#4816)

This commit is contained in:
moonheart08
2021-10-10 05:47:15 -05:00
committed by GitHub
parent 3ff525c69c
commit 19a588a70a
3 changed files with 8 additions and 6 deletions

View File

@@ -16,7 +16,7 @@ namespace Content.Client.Administration.UI.CustomControls
protected virtual bool CanPress()
{
return string.IsNullOrEmpty(Command) ||
IoCManager.Resolve<IClientConGroupController>().CanCommand(Command);
IoCManager.Resolve<IClientConGroupController>().CanCommand(Command.Split(' ')[0]);
}
protected override void EnteredTree()

View File

@@ -5,10 +5,10 @@
xmlns:abt="clr-namespace:Content.Client.Administration.UI.Tabs.AdminbusTab"
Margin="4"
MinSize="50 50">
<GridContainer
Columns="4">
<cc:CommandButton Name="SpawnEntitiesButton" Text="{Loc Spawn Entities}" />
<cc:CommandButton Name="SpawnTilesButton" Text="{Loc Spawn Tiles} " />
<cc:UICommandButton Command="events" Text="{Loc Station Events}" WindowType="{x:Type abt:StationEventsWindow}" />
<GridContainer Columns="3">
<Button Name="SpawnEntitiesButton" Text="{Loc 'sandbox-window-spawn-entities-button'}" />
<Button Name="SpawnTilesButton" Text="{Loc 'sandbox-window-spawn-tiles-button'} " />
<cc:CommandButton Command="deleteewc Singularity" Name="DeleteSingulos" Text="{Loc 'delete-singularities'}"/>
<cc:UICommandButton Command="events" Text="{Loc 'open-station-events'}" WindowType="{x:Type abt:StationEventsWindow}" />
</GridContainer>
</Control>

View File

@@ -0,0 +1,2 @@
delete-singularities = Delete Singularities
open-station-events = Station Events