Handles all the UI for choosing optional challenges.

Hierarchy (view full)

Constructors

Properties

active: boolean = false
cursor: number = 0
mode: number
scene: default

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.