using Robust.Client.AutoGenerated; using Robust.Client.UserInterface; using Robust.Client.UserInterface.XAML; namespace Content.Client.FlavorText { [GenerateTypedNameReferences] public sealed partial class FlavorText : Control { public Action? OnFlavorTextChanged; public FlavorText() { RobustXamlLoader.Load(this); IoCManager.InjectDependencies(this); CFlavorTextInput.OnTextChanged += _ => FlavorTextChanged(); } public void FlavorTextChanged() { OnFlavorTextChanged?.Invoke(CFlavorTextInput.Text); } } }