Files
tbd-station-14/Content.Client/Labels/UI/HandLabelerWindow.xaml.cs
wrexbe cea1b21832 Fixing some warnings (#6250)
Co-authored-by: Paul Ritter <ritter.paul1@googlemail.com>
2022-01-21 10:38:35 +01:00

27 lines
670 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 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;
}
}
}