Decal Placer + add new decals for mapping (#6548)
* abomination * okay its less unabashedly garbage now * other UI changes * its britney bitch * proper greyscale full/half/quarter tiles * misc cleanup * rsi * Add a palette system. It's Kara's problem now. * oops * a * Departmental palette alpha tweaks * oopy * so true * Update Content.Shared/Decals/ColorPalettePrototype.cs Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> * fixes for that * neutral light color and new warning lines * dirt * checkerboards * oop Co-authored-by: moonheart08 <moonheart08@users.noreply.github.com> Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
<GridContainer Columns="3">
|
||||
<Button Name="SpawnEntitiesButton" Text="{Loc 'sandbox-window-spawn-entities-button'}" />
|
||||
<Button Name="SpawnTilesButton" Text="{Loc 'sandbox-window-spawn-tiles-button'} " />
|
||||
<Button Name="SpawnDecalsButton" Text="{Loc 'sandbox-window-spawn-decals-button'}" />
|
||||
<Button Name="LoadGamePrototypeButton" Text="{Loc 'load-game-prototype'}"/>
|
||||
<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}" />
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System.IO;
|
||||
using Content.Client.Administration.Managers;
|
||||
using Content.Client.Decals.UI;
|
||||
using Content.Shared.Administration;
|
||||
using Robust.Client.AutoGenerated;
|
||||
using Robust.Client.Placement;
|
||||
@@ -16,10 +17,11 @@ using Robust.Shared.Prototypes;
|
||||
namespace Content.Client.Administration.UI.Tabs.AdminbusTab
|
||||
{
|
||||
[GenerateTypedNameReferences]
|
||||
public partial class AdminbusTab : Control
|
||||
public sealed partial class AdminbusTab : Control
|
||||
{
|
||||
private EntitySpawnWindow? _entitySpawnWindow;
|
||||
private TileSpawnWindow? _tileSpawnWindow;
|
||||
private DecalPlacerWindow? _decalPlacerWindow;
|
||||
|
||||
public AdminbusTab()
|
||||
{
|
||||
@@ -29,6 +31,7 @@ namespace Content.Client.Administration.UI.Tabs.AdminbusTab
|
||||
// TODO: This will probably need some command check at some point
|
||||
SpawnEntitiesButton.OnPressed += SpawnEntitiesButtonOnOnPressed;
|
||||
SpawnTilesButton.OnPressed += SpawnTilesButtonOnOnPressed;
|
||||
SpawnDecalsButton.OnPressed += SpawnDecalsButtonOnPressed;
|
||||
LoadGamePrototypeButton.OnPressed += LoadGamePrototypeButtonOnOnPressed;
|
||||
LoadGamePrototypeButton.Visible = IoCManager.Resolve<IClientAdminManager>().HasFlag(AdminFlags.Query);
|
||||
}
|
||||
@@ -73,5 +76,15 @@ namespace Content.Client.Administration.UI.Tabs.AdminbusTab
|
||||
|
||||
EntitySystem.Get<AdminSystem>().OpenCommand(_tileSpawnWindow);
|
||||
}
|
||||
|
||||
private void SpawnDecalsButtonOnPressed(BaseButton.ButtonEventArgs obj)
|
||||
{
|
||||
if (_decalPlacerWindow == null || _decalPlacerWindow.Disposed)
|
||||
{
|
||||
_decalPlacerWindow = new DecalPlacerWindow(IoCManager.Resolve<IPrototypeManager>());
|
||||
}
|
||||
|
||||
EntitySystem.Get<AdminSystem>().OpenCommand(_decalPlacerWindow);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user