Interface UIControl
interface UIControl {
showSettings: boolean;
get stores(): {
showSettings: Readable<boolean>;
};
addSection(options: TJSSettingsCustomSection): void;
create(options?: TJSSettingsCreateOptions): TJSSettingsUIData;
swapShowSettings(): boolean;
}
showSettings: boolean;
get stores(): {
showSettings: Readable<boolean>;
};
addSection(options: TJSSettingsCustomSection): void;
create(options?: TJSSettingsCreateOptions): TJSSettingsUIData;
swapShowSettings(): boolean;
}
Index
Accessors
Methods
Accessors
showSettings
- get showSettings(): boolean
Returns boolean
Current
showSettings
state.- set showSettings(showSettings): void
Sets current
showSettings
state.Parameters
- showSettings: boolean
New
showSettings
state.
Returns void
- showSettings: boolean
stores
Methods
addSection
- add
Section (options): void Adds a custom section / folder defined by the provided TJSSettingsCustomSection options object.
Parameters
- options: TJSSettingsCustomSection
The configuration object for the custom section.
Returns void
- options: TJSSettingsCustomSection
create
- create(options?): TJSSettingsUIData
Creates the UISettingsData object by parsing stored settings in
Parameters
Optional
options: TJSSettingsCreateOptionsOptional parameters.
Returns TJSSettingsUIData
Parsed UI settings data.
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.