mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-04 05:17:28 +00:00
* Flatpacker and flatpacks
* ok that's good enough
* convert solars/AME to flatpacks
* mats, mats, we are the mats
* basic mechanics are DONE
* thing
* final UI
* sloth
* rped jumpscare
* rename
(cherry picked from commit 1c11332fa4)
41 lines
973 B
C#
41 lines
973 B
C#
using Content.Shared.Construction.Components;
|
|
using JetBrains.Annotations;
|
|
|
|
namespace Content.Client.Construction.UI
|
|
{
|
|
[UsedImplicitly]
|
|
public sealed class FlatpackCreatorBoundUserInterface : BoundUserInterface
|
|
{
|
|
[ViewVariables]
|
|
private FlatpackCreatorMenu? _menu;
|
|
|
|
public FlatpackCreatorBoundUserInterface(EntityUid owner, Enum uiKey) : base(owner, uiKey)
|
|
{
|
|
}
|
|
|
|
protected override void Open()
|
|
{
|
|
base.Open();
|
|
|
|
_menu = new FlatpackCreatorMenu(Owner);
|
|
_menu.OnClose += Close;
|
|
|
|
_menu.PackButtonPressed += () =>
|
|
{
|
|
SendMessage(new FlatpackCreatorStartPackBuiMessage());
|
|
};
|
|
|
|
_menu.OpenCentered();
|
|
}
|
|
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
base.Dispose(disposing);
|
|
if (!disposing)
|
|
return;
|
|
|
|
_menu?.Dispose();
|
|
}
|
|
}
|
|
}
|