Adds a adminbus button to delete the singularity (#4816)
This commit is contained in:
@@ -16,7 +16,7 @@ namespace Content.Client.Administration.UI.CustomControls
|
|||||||
protected virtual bool CanPress()
|
protected virtual bool CanPress()
|
||||||
{
|
{
|
||||||
return string.IsNullOrEmpty(Command) ||
|
return string.IsNullOrEmpty(Command) ||
|
||||||
IoCManager.Resolve<IClientConGroupController>().CanCommand(Command);
|
IoCManager.Resolve<IClientConGroupController>().CanCommand(Command.Split(' ')[0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void EnteredTree()
|
protected override void EnteredTree()
|
||||||
|
|||||||
@@ -5,10 +5,10 @@
|
|||||||
xmlns:abt="clr-namespace:Content.Client.Administration.UI.Tabs.AdminbusTab"
|
xmlns:abt="clr-namespace:Content.Client.Administration.UI.Tabs.AdminbusTab"
|
||||||
Margin="4"
|
Margin="4"
|
||||||
MinSize="50 50">
|
MinSize="50 50">
|
||||||
<GridContainer
|
<GridContainer Columns="3">
|
||||||
Columns="4">
|
<Button Name="SpawnEntitiesButton" Text="{Loc 'sandbox-window-spawn-entities-button'}" />
|
||||||
<cc:CommandButton Name="SpawnEntitiesButton" Text="{Loc Spawn Entities}" />
|
<Button Name="SpawnTilesButton" Text="{Loc 'sandbox-window-spawn-tiles-button'} " />
|
||||||
<cc:CommandButton Name="SpawnTilesButton" Text="{Loc Spawn Tiles} " />
|
<cc:CommandButton Command="deleteewc Singularity" Name="DeleteSingulos" Text="{Loc 'delete-singularities'}"/>
|
||||||
<cc:UICommandButton Command="events" Text="{Loc Station Events}" WindowType="{x:Type abt:StationEventsWindow}" />
|
<cc:UICommandButton Command="events" Text="{Loc 'open-station-events'}" WindowType="{x:Type abt:StationEventsWindow}" />
|
||||||
</GridContainer>
|
</GridContainer>
|
||||||
</Control>
|
</Control>
|
||||||
|
|||||||
@@ -0,0 +1,2 @@
|
|||||||
|
delete-singularities = Delete Singularities
|
||||||
|
open-station-events = Station Events
|
||||||
Reference in New Issue
Block a user