Defaults#
Set the defaults in shared/config.lua:
| Setting | Default | Choices |
|---|---|---|
config.ActiveTheme |
glitch |
glitch, cyan, monochrome, or a custom key in config.Themes |
config.ActiveVisualTheme |
device |
device, tablet, modern, classic |
config.ActiveKeybindTheme |
tags |
tags, default, device, tablet |
config.ActiveSoundTheme |
gta |
gta, classic |
config.LockpickStyle |
padlock |
dial, arc, dots, realistic, padlock |
config.BackgroundOpacity sets the panel opacity for each visual theme, from 0 to 1. Each colour theme in config.Themes defines primary, secondary, success, failure, warning, background, border, text, danger and safe colours (each with an Rgba twin), plus minigameColor1 to minigameColor5 for Var Hack and Memory Colours. Copy a theme, give it a new key and set config.ActiveTheme to that key.
Per-game overrides#
Pass a final options table after the normal arguments. It applies to that game only.
local success = exports['glitch-minigames']:StartPairsGame(4, 60000, 0, {
colour = 'cyan', theme = 'tablet', keybinds = 'device', sounds = 'classic'
})
local success2 = exports['glitch-minigames']:StartPipePressureGame(6, 30000, { colour = { primary = '#ff3355' } })
local success3 = exports['glitch-minigames']:StartCircleClickGame(3, 2, 40, 1, 0, true, { 'E' }, 1, { position = 'center' })
colour (or color) takes a theme name or a table of colour overrides. position only applies to Circle Click. The Lua games (Circuit Breaker, Brute Force, Data Crack and the drills) always use their own GTA sounds.
Sound themes#
gta plays GTA frontend sounds, set per sound in config.SoundThemes. classic plays the mp3s in ui/sounds. When glitch-uiElements is running, the sound theme saved in its settings replaces config.ActiveSoundTheme. Scripts can use GetSoundThemes, SetSoundTheme and PreviewSound to build a picker.