* base * arrow pointer for buttons * some progress for text buttons, need cleaning * fixed observe button, remove fraction * just for now * ui tweaks * more ui tweaks * feat: ченджлог в лобби --------- Co-authored-by: Remuchi <RemuchiOfficial@gmail.com>
19 lines
494 B
C#
19 lines
494 B
C#
using Robust.Client.UserInterface.CustomControls;
|
|
|
|
namespace Content.Client._Ohio.Buttons;
|
|
|
|
public sealed class OhioUICommandButton : OhioCommandButton
|
|
{
|
|
public Type? WindowType { get; set; }
|
|
private DefaultWindow? _window;
|
|
|
|
protected override void Execute(ButtonEventArgs obj)
|
|
{
|
|
if (WindowType == null)
|
|
return;
|
|
|
|
_window = (DefaultWindow) IoCManager.Resolve<IDynamicTypeFactory>().CreateInstance(WindowType);
|
|
_window?.OpenCentered();
|
|
}
|
|
}
|