Interface for text field UI components. More...
Public Member Functions | |
void | StartTextInput (string labelText, string text, int maxLength, AcceptedTextDelegate acceptedText) |
Called to display the text field and start handling input. More... | |
void | CancelTextInput () |
Called to force the text field to cancel. More... | |
Interface for text field UI components.
Components implementing this interface should provide a GUI control for entering text.
See UnityTextFieldUI for a reference implementation that uses Unity GUI.
void PixelCrushers.DialogueSystem.ITextFieldUI.CancelTextInput | ( | ) |
Called to force the text field to cancel.
Implemented in PixelCrushers.DialogueSystem.UnityGUI.UnityTextFieldUI, PixelCrushers.DialogueSystem.UnityUITextFieldUI, PixelCrushers.DialogueSystem.TK2D.TK2DTextFieldUI, PixelCrushers.DialogueSystem.NGUI.NGUITextFieldUI, and PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeTextFieldUI.
void PixelCrushers.DialogueSystem.ITextFieldUI.StartTextInput | ( | string | labelText, |
string | text, | ||
int | maxLength, | ||
AcceptedTextDelegate | acceptedText | ||
) |
Called to display the text field and start handling input.
When the user accepts the input (e.g., by pressing the Return key), call the acceptedText delegate.
Implemented in PixelCrushers.DialogueSystem.UnityUITextFieldUI, PixelCrushers.DialogueSystem.UnityGUI.UnityTextFieldUI, PixelCrushers.DialogueSystem.TK2D.TK2DTextFieldUI, PixelCrushers.DialogueSystem.NGUI.NGUITextFieldUI, and PixelCrushers.DialogueSystem.DaikonForgeGUI.DaikonForgeTextFieldUI.