Class TerminalTextField
- Namespace
- RichHudFramework.UI.Client
- Assembly
- RichHudClient.dll
A single-line text input field with a configurable character filter. For ControlTiles.
Mimics the appearance of the text field in the SE terminal.
public class TerminalTextField : TerminalValue<string>
- Inheritance
-
TerminalTextField
- Inherited Members
Examples
new TerminalTextField()
{
Name = "TerminalTextField",
ControlChangedHandler = (obj, args) =>
{
var field = obj as TerminalTextField;
ExceptionHandler.SendChatMessage($"New text: {field.Value}");
},
ToolTip = "One-line text field"
}
Constructors
TerminalTextField()
public TerminalTextField()
Properties
CharFilterFunc
A delegate used to validate input characters.
If the function returns false for a specific character, that character is rejected/ignored.
public Func<char, bool> CharFilterFunc { get; set; }