mirror of
https://github.com/space-syndicate/space-station-14.git
synced 2026-10-09 10:21:18 +03:00
26 lines
677 B
C#
26 lines
677 B
C#
using System;
|
|
using Robust.Client.UserInterface.CustomControls;
|
|
using Robust.Client.AutoGenerated;
|
|
using Robust.Client.UserInterface.Controls;
|
|
using Robust.Client.UserInterface.XAML;
|
|
|
|
namespace Content.Client.Labels.UI
|
|
{
|
|
[GenerateTypedNameReferences]
|
|
public sealed partial class HandLabelerWindow : DefaultWindow
|
|
{
|
|
public event Action<string>? OnLabelEntered;
|
|
|
|
public HandLabelerWindow()
|
|
{
|
|
RobustXamlLoader.Load(this);
|
|
|
|
LabelLineEdit.OnTextEntered += e => OnLabelEntered?.Invoke(e.Text);
|
|
}
|
|
|
|
public void SetCurrentLabel(string label)
|
|
{
|
|
LabelLineEdit.Text = label;
|
|
}
|
|
}
|
|
}
|