Creates an instance of SettingsGamepadUiHandler.
The UI mode, optional.
ProtectedawaitingProtectedcursorProtectedlocalProtectedmodeProtectednavigationProtectedonProtectedrowsProtectedsettingsProtected ReadonlysettingsProtectedtabProtectedtextProtectedtextProtectedtitleClear the UI elements and state.
To be implemented by individual handlers when necessary to free memory Called when BattleScene is reset
ProtectederaseErase the cursor from the UI.
Add the sprite to be displayed at the end of messages with prompts
the container to add the sprite to
Create a semi transparent overlay that will get shown during tutorials
the container to add the overlay to
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.
The button pressed by the user.
true if the action associated with the button was successfully processed, false otherwise.
Set the cursor to the specified position.
The cursor position to set.
true if the cursor was set successfully.
ProtectedsetChanges the style of the mouse cursor.
cursor style to apply
Set the option cursor to the specified position.
The index of the setting or -1 to change the current setting
The cursor position to set.
Optionalsave: booleanWhether to save the setting to local storage.
true if the option cursor was set successfully.
ProtectedsetSet the scroll cursor to the specified position.
The scroll cursor position to set.
true if the scroll cursor was set successfully.
Show the UI with the provided arguments.
Arguments to be passed to the show method.
true if successful.
Optional_name: stringOptionaldelay: number | nullOptionalcallback: (() => void) | nullOptionalcallbackDelay: number | nullOptionalprompt: boolean | nullOptionalpromptDelay: number | nullOptionalcallback: (() => void) | nullOptionalcallbackDelay: number | nullProtectedupdateUpdate the bindings for the current active device configuration.
Abstract class for handling UI elements related to settings.