Adds hand labelers (#4903)
* Adds hand labelers * Removes unnecessary thing * Docs * Reverts some changes * Addresses comments and adds inhand sprites * Addressed comments Co-authored-by: Watermelon914 <3052169-Watermelon914@users.noreply.gitlab.com>
This commit is contained in:
26
Content.Client/HandLabeler/UI/HandLabelerWindow.xaml.cs
Normal file
26
Content.Client/HandLabeler/UI/HandLabelerWindow.xaml.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using Robust.Client.UserInterface.CustomControls;
|
||||
using Robust.Client.AutoGenerated;
|
||||
using Robust.Client.UserInterface.Controls;
|
||||
using Robust.Client.UserInterface.XAML;
|
||||
|
||||
namespace Content.Client.HandLabeler.UI
|
||||
{
|
||||
[GenerateTypedNameReferences]
|
||||
public partial class HandLabelerWindow : SS14Window
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user