Extends TJSGameSettings with UI control for working with #standard/component/fvtt/settings!TJSSettingsEdit and #standard/component/fvtt/settings!TJSSettingsSwap components. Instead of extending TJSGameSettings simply extend TJSGameSettingsWithUI instead when creating reactive game settings that utilize the above components.

There are additional game settings options for separating settings into folders. Please see TJSGameSettingsWithUI.Options.ExtraProps.

Hierarchy
Index
  • get namespace(): string

    Returns string

    Returns namespace set in constructor.

  • get size(): number

    Returns number

    Number of stores managed.

  • Returns a readable Game Settings store for the associated key.

    Type Parameters

    • T

    Parameters

    • key: string

      Game setting key.

    Returns Readable<T>

    The associated store for the given game setting key.

  • Returns a writable Game Settings store for the associated key.

    Type Parameters

    • T

    Parameters

    • key: string

      Game setting key.

    Returns MinimalWritable<T>

    The associated store for the given game setting key.

  • Returns whether a Game Settings store exist for the given key.

    Parameters

    • key: string

      Setting key to test.

    Returns boolean

  • Returns an iterable for the game setting keys from existing stores.

    Parameters

    • Optionalregex: RegExp

      Optional regular expression to filter by game setting keys.

    Returns IterableIterator<string>

    Iterable iterator of game setting keys.

  • Registers multiple settings.

    Parameters

    • settings: Iterable<TJSGameSettings.Options.GameSetting<ExtraProps>>

      An iterable list of game setting configurations to register.

    • OptionalcoreConfig: boolean

      When false this overrides the setting.options.config parameter when registering the setting with Foundry. This allows the settings to be displayed in the app itself, but removed from the standard Foundry configuration location.

    Returns void

    An object containing all TJSGameSetting store subscriber handlers for each setting key added.