Kerbal Space Program
1.12.4
|
Editable text input field. More...
Classes | |
class | OnChangeEvent |
class | SelectionEvent |
class | SubmitEvent |
class | TextSelectionEvent |
Public Member Functions | |
void | ActivateInputField () |
void | DeactivateInputField () |
void | ForceLabelUpdate () |
virtual void | GraphicUpdateComplete () |
virtual void | LayoutComplete () |
void | MoveTextEnd (bool shift) |
Move to the end of the text. More... | |
void | MoveTextStart (bool shift) |
Move to the start of the text. More... | |
void | MoveToEndOfLine (bool shift, bool ctrl) |
Move to the end of the current line of text. More... | |
void | MoveToStartOfLine (bool shift, bool ctrl) |
Move to the start of the current line of text. More... | |
virtual void | OnBeginDrag (PointerEventData eventData) |
void | OnControlClick () |
override void | OnDeselect (BaseEventData eventData) |
virtual void | OnDrag (PointerEventData eventData) |
virtual void | OnEndDrag (PointerEventData eventData) |
virtual void | OnPointerClick (PointerEventData eventData) |
override void | OnPointerDown (PointerEventData eventData) |
virtual void | OnScroll (PointerEventData eventData) |
override void | OnSelect (BaseEventData eventData) |
virtual void | OnSubmit (BaseEventData eventData) |
virtual void | OnUpdateSelected (BaseEventData eventData) |
delegate char | OnValidateInput (string text, int charIndex, char addedChar) |
void | ProcessEvent (Event e) |
virtual void | Rebuild (CanvasUpdate update) |
void | SetGlobalFontAsset (TMP_FontAsset fontAsset) |
Function to conveniently set the Font Asset of both Placeholder and Input Field text object. More... | |
void | SetGlobalPointSize (float pointSize) |
Function to conveniently set the point size of both Placeholder and Input Field text object. More... | |
Protected Types | |
enum | EditState { EditState.Continue, EditState.Finish } |
Protected Member Functions | |
virtual void | Append (string input) |
Append the specified text to the end of the current. More... | |
virtual void | Append (char input) |
void | ClampCaretPos (ref int pos) |
void | ClampStringPos (ref int pos) |
override void | DoStateTransition (SelectionState state, bool instant) |
EditState | KeyPressed (Event evt) |
virtual void | LateUpdate () |
Update the text based on input. More... | |
override void | OnDisable () |
override void | OnEnable () |
void | OnFocus () |
void | SelectAll () |
void | SendOnEndEdit () |
Submit the input field's text. More... | |
void | SendOnEndTextSelection () |
void | SendOnFocus () |
void | SendOnFocusLost () |
void | SendOnSubmit () |
void | SendOnTextSelection () |
TMP_InputField () | |
void | UpdateLabel () |
Update the visual text Text. More... | |
char | Validate (string text, int pos, char ch) |
Validate the specified input. More... | |
Protected Attributes | |
int | m_CaretPosition = 0 |
int | m_CaretSelectPosition = 0 |
bool | m_CaretVisible |
UIVertex[] | m_CursorVerts = null |
TMP_FontAsset | m_GlobalFontAsset |
TMP_InputValidator | m_InputValidator = null |
bool | m_isRichTextEditingAllowed = true |
bool | m_isSelectAll |
TouchScreenKeyboard | m_Keyboard |
Mesh | m_Mesh |
bool | m_OnFocusSelectAll = true |
Graphic | m_Placeholder |
bool | m_ResetOnDeActivation = true |
float | m_ScrollSensitivity = 1.0f |
int | m_StringPosition = 0 |
int | m_StringSelectPosition = 0 |
string | m_Text = string.Empty |
Input field's value. More... | |
TMP_Text | m_TextComponent |
RectTransform | m_TextComponentRectTransform |
RectTransform | m_TextViewport |
Text Text used to display the input's value. More... | |
Scrollbar | m_VerticalScrollbar |
TMP_ScrollbarEventHandler | m_VerticalScrollbarEventHandler |
Properties | |
char | asteriskChar [get, set] |
float | caretBlinkRate [get, set] |
Color | caretColor [get, set] |
int | caretPosition [get, set] |
Get: Returns the focus position as thats the position that moves around even during selection. Set: Set both the anchor and focus position such that a selection doesn't happen More... | |
int | caretPositionInternal [get, set] |
Current position of the cursor. Getters are public Setters are protected More... | |
int | caretSelectPositionInternal [get, set] |
int | caretWidth [get, set] |
int | characterLimit [get, set] |
CharacterValidation | characterValidation [get, set] |
ContentType | contentType [get, set] |
bool | customCaretColor [get, set] |
TMP_FontAsset | fontAsset [get, set] |
Sets the Font Asset on both Placeholder and Input child objects. More... | |
InputType | inputType [get, set] |
TMP_InputValidator | inputValidator [get, set] |
Sets the Input Validation to use a Custom Input Validation script. More... | |
bool | isFocused [get] |
bool | isRichTextEditingAllowed [get, set] |
Is Rich Text editing allowed? More... | |
TouchScreenKeyboardType | keyboardType [get, set] |
LineType | lineType [get, set] |
Mesh | mesh [get] |
bool | multiLine [get] |
SelectionEvent | onDeselect [get, set] |
SubmitEvent | onEndEdit [get, set] |
TextSelectionEvent | onEndTextSelection [get, set] |
bool | onFocusSelectAll [get, set] |
Determines if the whole text will be selected when focused. More... | |
SelectionEvent | onSelect [get, set] |
SubmitEvent | onSubmit [get, set] |
TextSelectionEvent | onTextSelection [get, set] |
OnValidateInput | onValidateInput [get, set] |
OnChangeEvent | onValueChanged [get, set] |
Graphic | placeholder [get, set] |
float | pointSize [get, set] |
Set the point size on both Placeholder and Input text object. More... | |
bool | readOnly [get, set] |
bool | resetOnDeActivation [get, set] |
Determines if the text and caret position as well as selection will be reset when the input field is deactivated. More... | |
bool | restoreOriginalTextOnEscape [get, set] |
Controls whether the original text is restored when pressing "ESC". More... | |
bool | richText [get, set] |
float | scrollSensitivity [get, set] |
int | selectionAnchorPosition [get, set] |
Get: Returns the fixed position of selection Set: If Input.compositionString is 0 set the fixed position More... | |
Color | selectionColor [get, set] |
int | selectionFocusPosition [get, set] |
Get: Returns the variable position of selection Set: If Input.compositionString is 0 set the variable position More... | |
int | selectionStringAnchorPosition [get, set] |
The fixed position of the selection in the raw string which may contains rich text. More... | |
int | selectionStringFocusPosition [get, set] |
The variable position of the selection in the raw string which may contains rich text. More... | |
bool | shouldHideMobileInput [get, set] |
Should the mobile keyboard input be hidden. More... | |
int | stringPosition [get, set] |
int | stringPositionInternal [get, set] |
int | stringSelectPositionInternal [get, set] |
string | text [get, set] |
Input field's current text value. More... | |
TMP_Text | textComponent [get, set] |
RectTransform | textViewport [get, set] |
Scrollbar | verticalScrollbar [get, set] |
bool | wasCanceled [get] |
Editable text input field.
|
protected |
|
inlineprotected |
|
inline |
|
inlineprotectedvirtual |
Append the specified text to the end of the current.
|
inlineprotectedvirtual |
|
inlineprotected |
|
inlineprotected |
|
inline |
|
inlineprotected |
|
inline |
|
inlinevirtual |
|
inlineprotected |
|
inlineprotectedvirtual |
Update the text based on input.
|
inlinevirtual |
|
inline |
Move to the end of the text.
shift |
|
inline |
Move to the start of the text.
shift |
|
inline |
Move to the end of the current line of text.
shift |
|
inline |
Move to the start of the current line of text.
shift |
|
inlinevirtual |
|
inline |
|
inline |
|
inlineprotected |
|
inlinevirtual |
|
inlineprotected |
|
inlinevirtual |
|
inlineprotected |
|
inlinevirtual |
|
inline |
|
inlinevirtual |
eventData |
|
inline |
|
inlinevirtual |
|
inlinevirtual |
eventData |
delegate char TMPro.TMP_InputField.OnValidateInput | ( | string | text, |
int | charIndex, | ||
char | addedChar | ||
) |
|
inline |
|
inlinevirtual |
|
inlineprotected |
|
inlineprotected |
Submit the input field's text.
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
Function to conveniently set the Font Asset of both Placeholder and Input Field text object.
fontAsset |
|
inline |
Function to conveniently set the point size of both Placeholder and Input Field text object.
pointSize |
|
inlineprotected |
Update the visual text Text.
|
inlineprotected |
Validate the specified input.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Input field's value.
|
protected |
|
protected |
|
protected |
Text Text used to display the input's value.
|
protected |
|
protected |
|
getset |
|
getset |
|
getset |
|
getset |
Get: Returns the focus position as thats the position that moves around even during selection. Set: Set both the anchor and focus position such that a selection doesn't happen
|
getsetprotected |
Current position of the cursor. Getters are public Setters are protected
|
getsetprotected |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
Sets the Font Asset on both Placeholder and Input child objects.
|
getset |
|
getset |
Sets the Input Validation to use a Custom Input Validation script.
|
get |
|
getset |
Is Rich Text editing allowed?
|
getset |
|
getset |
|
getprotected |
|
get |
|
getset |
|
getset |
|
getset |
|
getset |
Determines if the whole text will be selected when focused.
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
Set the point size on both Placeholder and Input text object.
|
getset |
|
getset |
Determines if the text and caret position as well as selection will be reset when the input field is deactivated.
|
getset |
Controls whether the original text is restored when pressing "ESC".
|
getset |
|
getset |
|
getset |
Get: Returns the fixed position of selection Set: If Input.compositionString is 0 set the fixed position
|
getset |
|
getset |
Get: Returns the variable position of selection Set: If Input.compositionString is 0 set the variable position
|
getset |
The fixed position of the selection in the raw string which may contains rich text.
|
getset |
The variable position of the selection in the raw string which may contains rich text.
|
getset |
Should the mobile keyboard input be hidden.
|
getset |
|
getsetprotected |
|
getsetprotected |
|
getset |
Input field's current text value.
|
getset |
|
getset |
|
getset |
|
get |