PokéRogue
    Preparing search index...

    Interface SettingsUiItem<K>

    interface SettingsUiItem<K = AnySettingKey> {
        clamp?: boolean;
        key: K;
        label: string;
        options: SettingUiItemOption[];
        requiresReload?: boolean;
        touchscreenOnly?: boolean;
    }

    Type Parameters

    Index
    clamp?: boolean

    Specifies the behavior when navigating left/right at the boundaries of the option:

    • true: the cursor will stay on the boundary instead of moving
    • false: the cursor will wrap to the other end of the options list

    false

    key: K
    label: string
    requiresReload?: boolean

    Indicates if a settings change requires a reload

    touchscreenOnly?: boolean

    Whether the setting is only available on devices supporting touchscreen.