PixelCrushers.DialogueSystem.TK2D.TK2DTextFieldUI Class Reference

This is an implementation of ITextFieldUI for TK2D. More...

Inheritance diagram for PixelCrushers.DialogueSystem.TK2D.TK2DTextFieldUI:
Collaboration diagram for PixelCrushers.DialogueSystem.TK2D.TK2DTextFieldUI:

Public Member Functions

void StartTextInput (string labelText, string text, int maxLength, AcceptedTextDelegate acceptedText)
 Starts the text input field. More...
 
void Update ()
 
void CancelTextInput ()
 Cancels the text input field. More...
 
void AcceptTextInput ()
 Accepts the text input and calls the accept handler delegate. More...
 

Public Attributes

tk2dUILayout panel
 The panel (optional). More...
 
tk2dTextMesh label
 The label. More...
 
tk2dUITextInput textInput
 The text input. More...
 
KeyCode acceptKey = KeyCode.Return
 
KeyCode cancelKey = KeyCode.Escape
 

Detailed Description

This is an implementation of ITextFieldUI for TK2D.

Member Function Documentation

◆ AcceptTextInput()

void PixelCrushers.DialogueSystem.TK2D.TK2DTextFieldUI.AcceptTextInput ( )

Accepts the text input and calls the accept handler delegate.

◆ CancelTextInput()

void PixelCrushers.DialogueSystem.TK2D.TK2DTextFieldUI.CancelTextInput ( )

Cancels the text input field.

Implements PixelCrushers.DialogueSystem.ITextFieldUI.

◆ StartTextInput()

void PixelCrushers.DialogueSystem.TK2D.TK2DTextFieldUI.StartTextInput ( string  labelText,
string  text,
int  maxLength,
AcceptedTextDelegate  acceptedText 
)

Starts the text input field.

Parameters
labelTextThe label text.
textThe current value to use for the input field.
maxLengthMax length, or 0 for unlimited.
acceptedTextThe delegate to call when accepting text.

Implements PixelCrushers.DialogueSystem.ITextFieldUI.

◆ Update()

void PixelCrushers.DialogueSystem.TK2D.TK2DTextFieldUI.Update ( )

Member Data Documentation

◆ acceptKey

KeyCode PixelCrushers.DialogueSystem.TK2D.TK2DTextFieldUI.acceptKey = KeyCode.Return

◆ cancelKey

KeyCode PixelCrushers.DialogueSystem.TK2D.TK2DTextFieldUI.cancelKey = KeyCode.Escape

◆ label

tk2dTextMesh PixelCrushers.DialogueSystem.TK2D.TK2DTextFieldUI.label

The label.

◆ panel

tk2dUILayout PixelCrushers.DialogueSystem.TK2D.TK2DTextFieldUI.panel

The panel (optional).

◆ textInput

tk2dUITextInput PixelCrushers.DialogueSystem.TK2D.TK2DTextFieldUI.textInput

The text input.


The documentation for this class was generated from the following file: