Class representing the settings UI handler for gamepads.

Hierarchy (view full)

Constructors

Properties

actionsBg: NineSlice
active: boolean = false
bindingSettings: String[]
commonSettingsCount: any
configs: any
cursor: number = 0
cursorObj: NineSlice
device: Device
inputsIcons: InputsIcons
keys: String[]
layout: Map<string, LayoutConfig> = ...
localStoragePropertyName: any
mode: number
navigationContainer: default
navigationIcons: InputsIcons
optionCursors: number[]
optionValueLabels: Text[][]
optionsBg: NineSlice
optionsContainer: Container
rowsToDisplay: number
scene: default
scrollCursor: number
setSetting: ((scene, setting, value) => boolean) = setSettingGamepad

Type declaration

    • (scene, setting, value): boolean
    • Parameters

      Returns boolean

setting: any
settingBlacklisted: any
settingDeviceDefaults: any
settingDeviceOptions: any
settingLabels: Text[]
settingsContainer: Container
textureOverride: any
titleSelected: any

Methods

  • Set the option cursor to the specified position.

    Parameters

    • settingIndex: number

      The index of the setting.

    • cursor: number

      The cursor position to set.

    • Optional save: boolean

      Whether to save the setting to local storage.

    Returns boolean

    true if the option cursor was set successfully.