Files
wwdpublic/Content.Client/_White/UserInterface/Buttons/CustomGhostsMenuOpenButton.cs
RedFoxIV 50b19259b8 Re: ghost (#849)
* it just works

* why hasn't it catastrophically failed yet

* not just gotta do the ui

oh god the ui

* that was easier than expected

* a devious misdirection

* touchups

* svin

* loc+fix

* touchups

* shitfix

* touchups x3

* for further use

* i hate this piece of shit engine

* touchups x4

* ribbit

also i'm retarded x2

* big tard energy

* bb

* rabbitson

* ?

* forgor

* k

* whoops

* fug
2025-09-27 08:38:24 +03:00

21 lines
517 B
C#

using Content.Client._White.CustomGhosts.UI;
using Content.Client._White.UserInterface;
using Robust.Client.UserInterface.Controls;
namespace Content.Client._White.UserInterface.Buttons;
public sealed class CustomGhostsMenuOpenButton : Button
{
WindowTracker<CustomGhostsWindow> _customGhostWindow = new();
public CustomGhostsMenuOpenButton() : base()
{
OnPressed += Pressed;
}
private void Pressed(ButtonEventArgs args)
{
_customGhostWindow.TryOpenCenteredLeft();
}
}