mirror of
https://github.com/space-wizards/space-station-14.git
synced 2026-02-14 19:29:53 +01:00
* missing-localization
* cmd
* fix: fixed patron page throwing exception due to unexpected patron tier in yaml
* Revert "fix: fixed patron page throwing exception due to unexpected patron tier in yaml"
This reverts commit 28458c78b1.
* review and update
* no cmd
* fix
* fix 99
---------
Co-authored-by: pa.pecherskij <pa.pecherskij@interfax.ru>
30 lines
693 B
C#
30 lines
693 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 = Loc.GetString("stat-values-ui-title");
|
|
_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);
|
|
}
|
|
}
|