StandardDialogueUI input field implementation. More...
Public Member Functions | |
virtual void | StartTextInput (string labelText, string text, int maxLength, AcceptedTextDelegate acceptedText) |
Starts the text input field. | |
virtual void | CancelTextInput () |
Cancels the text input field. | |
virtual void | AcceptTextInput () |
Accepts the text input and calls the accept handler delegate. | |
Public Member Functions inherited from PixelCrushers.UIPanel | |
void | RefreshSelectablesList () |
void | RefreshAfterOneFrame () |
void | TakeFocus () |
Move this panel to the top of the stack. | |
virtual void | Open () |
virtual void | Close () |
virtual void | SetOpen (bool value) |
virtual void | Toggle () |
virtual void | SetFocus (GameObject selectable) |
virtual void | CheckFocus () |
Public Attributes | |
UnityEngine.UI.Graphic | panel |
UITextField | label |
UIInputField | inputField |
KeyCode | acceptKey = KeyCode.Return |
string | acceptButton = string.Empty |
KeyCode | cancelKey = KeyCode.Escape |
string | cancelButton = string.Empty |
bool | showTouchScreenKeyboard = false |
bool | allowBlankInput = true |
UnityEvent | onAccept = new UnityEvent() |
UnityEvent | onCancel = new UnityEvent() |
Public Attributes inherited from PixelCrushers.UIPanel | |
GameObject | firstSelected |
float | focusCheckFrequency = 0.2f |
float | refreshSelectablesFrequency = 0 |
bool | selectPreviousOnDisable = true |
string | showAnimationTrigger = "Show" |
string | hideAnimationTrigger = "Hide" |
StartState | startState = StartState.GameObjectState |
bool | waitForShowAnimationToSetOpen = false |
UnityEvent | onOpen = new UnityEvent() |
UnityEvent | onClose = new UnityEvent() |
UnityEvent | onClosed = new UnityEvent() |
UnityEvent | onBackButtonDown = new UnityEvent() |
Protected Member Functions | |
virtual void | OnApplicationQuit () |
override void | Start () |
override void | Update () |
virtual void | Show () |
virtual void | ShowTouchScreenKeyboard () |
virtual void | Hide () |
virtual void | SetActive (bool value) |
Protected Member Functions inherited from PixelCrushers.UIPanel | |
void | PushToPanelStack () |
void | PopFromPanelStack () |
virtual void | OnEnable () |
virtual void | OnDisable () |
virtual void | OnVisible () |
virtual void | OnHidden () |
GameObject | GetFirstInteractableButton () |
Protected Attributes | |
AcceptedTextDelegate | m_acceptedText = null |
Call this delegate when the player accepts the input in the text field. | |
bool | m_isAwaitingInput = false |
TouchScreenKeyboard | m_touchScreenKeyboard = null |
bool | m_isQuitting = false |
Protected Attributes inherited from PixelCrushers.UIPanel | |
bool | m_deactivateOnHidden = true |
GameObject | m_previousSelected = null |
GameObject | m_lastSelected = null |
List< GameObject > | selectables = new List<GameObject>() |
Additional Inherited Members | |
Public Types inherited from PixelCrushers.UIPanel | |
enum | StartState { GameObjectState , Open , Closed } |
enum | PanelState { Uninitialized , Opening , Open , Closing , Closed } |
Static Public Attributes inherited from PixelCrushers.UIPanel | |
static bool | monitorSelection = true |
If false, turns off checking of current selection to make sure a valid selectable is selected. | |
Static Protected Attributes inherited from PixelCrushers.UIPanel | |
static List< UIPanel > | panelStack = new List<UIPanel>() |
Properties inherited from PixelCrushers.UIPanel | |
bool | deactivateOnHidden [get, set] |
static UIPanel | topPanel [get] |
PanelState | panelState [get, set] |
virtual bool | waitForShowAnimation [get, set] |
bool | isOpen [get] |
UIAnimatorMonitor | animatorMonitor [get] |
UnityEngine.EventSystems.EventSystem | eventSystem [get, set] |
Properties inherited from PixelCrushers.IEventSystemUser |
StandardDialogueUI input field implementation.
|
inlinevirtual |
Accepts the text input and calls the accept handler delegate.
|
inlinevirtual |
Cancels the text input field.
Implements PixelCrushers.DialogueSystem.ITextFieldUI.
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
Reimplemented from PixelCrushers.UIPanel.
|
inlinevirtual |
Starts the text input field.
labelText | The label text. |
text | The current value to use for the input field. |
maxLength | Max length, or 0 for unlimited. |
acceptedText | The delegate to call when accepting text. |
Implements PixelCrushers.DialogueSystem.ITextFieldUI.
|
inlineprotectedvirtual |
Reimplemented from PixelCrushers.UIPanel.
string PixelCrushers.DialogueSystem.StandardUIInputField.acceptButton = string.Empty |
KeyCode PixelCrushers.DialogueSystem.StandardUIInputField.acceptKey = KeyCode.Return |
bool PixelCrushers.DialogueSystem.StandardUIInputField.allowBlankInput = true |
string PixelCrushers.DialogueSystem.StandardUIInputField.cancelButton = string.Empty |
KeyCode PixelCrushers.DialogueSystem.StandardUIInputField.cancelKey = KeyCode.Escape |
UIInputField PixelCrushers.DialogueSystem.StandardUIInputField.inputField |
UITextField PixelCrushers.DialogueSystem.StandardUIInputField.label |
|
protected |
Call this delegate when the player accepts the input in the text field.
|
protected |
|
protected |
|
protected |
UnityEvent PixelCrushers.DialogueSystem.StandardUIInputField.onAccept = new UnityEvent() |
UnityEvent PixelCrushers.DialogueSystem.StandardUIInputField.onCancel = new UnityEvent() |
UnityEngine.UI.Graphic PixelCrushers.DialogueSystem.StandardUIInputField.panel |
bool PixelCrushers.DialogueSystem.StandardUIInputField.showTouchScreenKeyboard = false |