Cargo economy balance (#11123)
Co-authored-by: Visne <39844191+Visne@users.noreply.github.com>
This commit is contained in:
29
Content.Client/UserInterface/StatValuesEui.cs
Normal file
29
Content.Client/UserInterface/StatValuesEui.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using Content.Client.Eui;
|
||||
using Content.Shared.Eui;
|
||||
using Content.Shared.UserInterface;
|
||||
|
||||
namespace Content.Client.UserInterface;
|
||||
|
||||
public sealed class StatValuesEui : BaseEui
|
||||
{
|
||||
private readonly StatsWindow _window;
|
||||
|
||||
public StatValuesEui()
|
||||
{
|
||||
_window = new StatsWindow();
|
||||
_window.Title = "Melee stats";
|
||||
_window.OpenCentered();
|
||||
_window.OnClose += Closed;
|
||||
}
|
||||
|
||||
public override void HandleMessage(EuiMessageBase msg)
|
||||
{
|
||||
base.HandleMessage(msg);
|
||||
|
||||
if (msg is not StatValuesEuiMessage eui)
|
||||
return;
|
||||
|
||||
_window.Title = eui.Title;
|
||||
_window.UpdateValues(eui.Headers, eui.Values);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user