using Robust.Client.AutoGenerated; using Robust.Client.UserInterface.CustomControls; using Robust.Client.UserInterface.XAML; namespace Content.Client.Weapons.Melee.UI; [GenerateTypedNameReferences] public sealed partial class MeleeSpeechWindow : DefaultWindow { public event Action? OnBattlecryEntered; public MeleeSpeechWindow() { RobustXamlLoader.Load(this); BattlecryLineEdit.OnTextEntered += e => OnBattlecryEntered?.Invoke(e.Text); } public void SetCurrentBattlecry(string battlecry) { BattlecryLineEdit.Text = battlecry; } }