wowkit API
    Preparing search index...

    Class ControlsService<T>

    Type Parameters

    • T extends object
    Index
    • Parameters

      • category: SettingsCategory
      • variable: string
      • label: string
      • tooltip: string | undefined
      • isOnByDefault: boolean
      • get: () => boolean
      • set: (isChecked: boolean) => void

      Returns void

    • A color the player can pick; skipped on clients without color swatches.

      Parameters

      • category: SettingsCategory
      • variable: string
      • label: string
      • defaultColor: Rgb
      • get: () => Rgb
      • set: (color: Rgb) => void

      Returns void

    • items returns [value, label] pairs; a static list is built once.

      Parameters

      • category: SettingsCategory
      • variable: string
      • label: string
      • tooltip: string
      • defaultValue: string
      • get: () => string
      • set: (value: string) => void
      • items: () => [value: string, label: string][]
      • isStatic: boolean = false

      Returns void

    • Parameters

      • layout: SettingsLayout
      • label: string

      Returns void

    • The sound of a reminder; choosing one plays it once as a preview.

      Parameters

      • category: SettingsCategory
      • variable: string
      • label: string
      • tooltip: string
      • get: () => SoundKey
      • set: (key: SoundKey) => void

      Returns void

    • A switch stored in the settings under key; its default is the default of the setting.

      Parameters

      • category: SettingsCategory
      • key: SwitchKey<T>
      • label: string
      • tooltip: string

      Returns void