Handles all the UI for choosing optional challenges.

Hierarchy (view full)

Constructors

Properties

active: boolean = false
challengeLabels: Text[]
challengeValueLabels: Text[]
challengesContainer: Container
cursor: number = 0
cursorObj: NineSlice
descriptionText: Text
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.