- add: new lobby and ui tweaks. (#7)
* 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>
This commit is contained in:
18
Content.Client/_Ohio/Buttons/OhioUICommandButton.cs
Normal file
18
Content.Client/_Ohio/Buttons/OhioUICommandButton.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user