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
showSettingsstate.- set showSettings(showSettings): void
Sets current
showSettingsstate.Parameters
- showSettings: boolean
New
showSettingsstate.
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
Optionaloptions: 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
showSettingsis utilized in TJSSettingsSwap component to provide an easy way to flip between settings component or any main slotted component.