API Docs for:
Show:

Component_NumberInput Class

Module: gs

The number-input component defines the logic for the number-input window of the default In-Game UI.

Methods

action_addNumber

(
  • sender
  • params
)

An action-method to add a single number/digit.

Parameters:

  • sender gs.Object_Base

    The sender of the action.

  • params Object

    The params-object which need a number-property containing the digit/number to add.

action_removeNumber

(
  • sender
  • [params=null]
)

An action-method to clear the number at the current cursor position.

Parameters:

  • sender gs.Object_Base

    The sender of the action.

  • [params=null] Object optional

    The params-object. Can be null.

setNumber

(
  • number
)

Puts the specified number into the UI label-objects to make it visible on screen.

Parameters:

  • number String

    The number to set.

setup

()

Initializes the number-input component.

Properties

digits

Number

The max. number of digits of the number.

digits

Number protected

The number-cursor position.

number

String

The current number as text.