Toolshed (#17895)
* ogh * i should save my work * ogh * hhcdfhjbghshbxdfhghshc - lots of bugs in parsing still - invocation is a stub * expr parsing works * awawa * Saving work * Improve APIs a bit all around, add shortcuts. * awa * awa * AAAAAA * save work * Move shit to engine * lord * bql is kill * forgot the fucking bike rack * bql is kill for real * pjb will kill me * aughfhbdj * adgddf * gdsgvfvxshngfgh * b * hfsjhghj * a * tf you mean i have to document it * follow C# standards * Assorted cleanup and documentation pass, minor bugfix in ValueRefParser. * Start porting old commands, remove that pesky prefix in favor of integrating with the shell. * bw * Fix valueref up a bit, improve autocomplete for it. * awa * fix tests * git shut up * Arithmetic commands. * parse improvements * Update engine. --------- Co-authored-by: moonheart08 <moonheart08@users.noreply.github.com>
This commit is contained in:
45
Content.Client/Bql/ToolshedVisualizeEui.cs
Normal file
45
Content.Client/Bql/ToolshedVisualizeEui.cs
Normal file
@@ -0,0 +1,45 @@
|
||||
using Content.Client.Eui;
|
||||
using Content.Shared.Bql;
|
||||
using Content.Shared.Eui;
|
||||
using JetBrains.Annotations;
|
||||
using Robust.Client.Console;
|
||||
|
||||
namespace Content.Client.Bql;
|
||||
|
||||
[UsedImplicitly]
|
||||
public sealed class ToolshedVisualizeEui : BaseEui
|
||||
{
|
||||
private readonly ToolshedVisualizeWindow _window;
|
||||
|
||||
public ToolshedVisualizeEui()
|
||||
{
|
||||
_window = new ToolshedVisualizeWindow(
|
||||
IoCManager.Resolve<IClientConsoleHost>(),
|
||||
IoCManager.Resolve<ILocalizationManager>()
|
||||
);
|
||||
|
||||
_window.OnClose += () => SendMessage(new CloseEuiMessage());
|
||||
}
|
||||
|
||||
public override void HandleState(EuiStateBase state)
|
||||
{
|
||||
if (state is not ToolshedVisualizeEuiState castState)
|
||||
return;
|
||||
|
||||
_window.Update(castState.Entities);
|
||||
}
|
||||
|
||||
public override void Closed()
|
||||
{
|
||||
base.Closed();
|
||||
|
||||
_window.Close();
|
||||
}
|
||||
|
||||
public override void Opened()
|
||||
{
|
||||
base.Opened();
|
||||
|
||||
_window.OpenCentered();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user