events apparently don't work

This commit is contained in:
Evil Factory
2021-10-05 16:16:40 -03:00
parent 1262c47e64
commit da98c04927

View File

@@ -36,6 +36,16 @@ namespace Barotrauma
/// If the event launches, the text should already be up to date!
/// </summary>
public event OnTextChangedHandler OnTextChanged;
public OnTextChangedHandler OnTextChangedDelegate
{
set
{
OnTextChanged += (GUITextBox a, string b) =>
{
return value.Invoke(a, b);
};
}
}
public bool CaretEnabled { get; set; }
public Color? CaretColor { get; set; }