Files
wylab-station-14/Content.Client/UserInterface/StatValuesEui.cs
Vasilis The Pikachu be78d23068 Revert "Merge branch 'master' into stable"
This reverts commit 3a7c18c394, reversing
changes made to e917c8e067.
2025-10-13 00:27:04 +02:00

30 lines
669 B
C#

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);
}
}