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

Constructors

Accessors

  • get namespace(): string
  • Returns string

    Returns namespace set in constructor.

Methods

  • 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.

  • 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.