Controls preparation and processing of registered game settings w/ TJSGameSettings. Game settings are parsed for UI display by TJSSettingsEdit. The store showSettings is utilized in TJSSettingsSwap component to provide an easy way to flip between settings component or any main slotted component.

interface UIControl {
    showSettings: boolean;
    get stores(): {
        showSettings: Readable<boolean>;
    };
    addSection(options: TJSSettingsCustomSection): void;
    create(options?: TJSSettingsCreateOptions): TJSSettingsUIData;
    swapShowSettings(): boolean;
}

Accessors

  • get showSettings(): boolean
  • Returns boolean

    Current showSettings state.

  • set showSettings(showSettings): void
  • Sets current showSettings state.

    Parameters

    • showSettings: boolean

      New showSettings state.

    Returns void

  • get stores(): {
        showSettings: Readable<boolean>;
    }
  • Returns {
        showSettings: Readable<boolean>;
    }

    Returns the managed stores.

Methods

  • Adds a custom section / folder defined by the provided TJSSettingsCustomSection options object.

    Parameters

    Returns void

  • Convenience method to swap showSettings.

    Returns boolean

    New showSettings state.