Handles all the UI for choosing optional challenges.

Hierarchy (view full)

Constructors

Properties

active: boolean = false
challengeLabels: {
    label: Text;
    value: Text | Sprite;
}[]

Type declaration

  • label: Text
  • value: Text | Sprite
challengesContainer: Container
cursor: number = 0
cursorObj: NineSlice
descriptionText: BBCodeText
mode: number
optionsBg: NineSlice
scene: default
scrollCursor: number
startCursor: NineSlice
valuesContainer: Container

Methods

  • Processes input from a specified button. This method handles navigation through a UI menu, including movement through menu items and handling special actions like cancellation. Each button press may adjust the cursor position or the menu scroll, and plays a sound effect if the action was successful.

    Parameters

    • button: Button

      The button pressed by the user.

    Returns boolean

    true if the action associated with the button was successfully processed, false otherwise.