2021-10-16 21:34:05 +01:00
|
|
|
using System;
|
|
|
|
|
using Robust.Client.UserInterface.CustomControls;
|
|
|
|
|
using Robust.Client.AutoGenerated;
|
|
|
|
|
using Robust.Client.UserInterface.Controls;
|
|
|
|
|
using Robust.Client.UserInterface.XAML;
|
|
|
|
|
|
2021-11-11 02:15:23 +13:00
|
|
|
namespace Content.Client.Labels.UI
|
2021-10-16 21:34:05 +01:00
|
|
|
{
|
|
|
|
|
[GenerateTypedNameReferences]
|
2022-02-16 00:23:23 -07:00
|
|
|
public sealed partial class HandLabelerWindow : DefaultWindow
|
2021-10-16 21:34:05 +01:00
|
|
|
{
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|