Configuration

Shape the look, timing, and sound of GTM UI from a single config file.

All settings live in config.json at the root of the gtm-ui resource.

Localization

OptionTypeDefaultDescription
Localization.Localestring"en"Locale code for UI strings

Theme

OptionTypeDefaultDescription
UI.Theme"nui" | "native" | "custom""nui"Rendering theme for all UI

Custom theme exports

When UI.Theme is "custom", point each surface to a resource export in the form "resource:exportName":

OptionDefaultDescription
UI.Custom.NotificationExport""Custom notification export
UI.Custom.HelpTextExport""Custom help text export
UI.Custom.InstructionCardExport""Custom instruction card export
UI.Custom.MenuExport""Custom menu export

NUI notifications

These apply when the theme is nui:

OptionTypeDefaultDescription
UI.Nui.NotificationPositionstring"top-right"Where toasts appear
UI.Nui.NotificationDurationnumber (ms)4000Default auto-dismiss duration

Positions: top-right, top-left, bottom-right, bottom-left, top-center, bottom-center

Sound

OptionTypeDefaultDescription
UI.Sound.NotificationbooleanfalsePlay a sound with notifications
UI.Sound.HelpTextbooleanfalsePlay a sound with help text

Example

{
  "Localization": {
    "Locale": "en"
  },
  "UI": {
    "Theme": "nui",
    "Nui": {
      "NotificationPosition": "top-right",
      "NotificationDuration": 4000
    },
    "Sound": {
      "Notification": false,
      "HelpText": false
    }
  }
}

Restart the resource after saving changes.