The Quake III: Team Arena menu language has a very basic scripting language to effect changes in other menus or items. Multiple statements are separated by semicolon (;).
Causes a fade-in effect for items/menus with names or groups matching the given string.
See also: `script::fadeout', `menuDef::fadeClamp', `menuDef::fadeAmount', `menuDef::fadeCycle', `script::transition'.
Causes a fade-out effect for items/menus with names or groups matching the given string. `script::fadein', `menuDef::fadeClamp', `menuDef::fadeAmount', `menuDef::fadeCycle', `script::transition'.
Turns on visibility for items/menus with names or groups matching the given string.
See also: `script::hide', `itemDef::cvartest', `itemDef::showcvar', `itemDef::hidecvar'.
Turns off visibility for items/menus with names or groups matching the given string.
See also: `script::show', `itemDef::cvartest', `itemDef::showcvar', `itemDef::hidecvar'.
Opens a menu with name matching the given string.
See also: `script::close', `menuDef::onOpen'.
Closes a menu with name matching the given string.
See also: `script::open', `menuDef::onClose', `menuDef::onEsc'.
Not used (ineffectual).
Programmer's (mod) note: Supposedly use asset with the given name, but the source code has as a no-op (empty function).
See also: `itemDef::asset_model', `itemDef::asset_shader'.
Set/change background to the given shader name or filename.
See also: `menuDef::style', `itemDef::style', WINDOW_STYLE_FILLED, `menuDef::background', `itemDef::background'.
Changes the teamcolor used by "style WINDOW_STYLE_TEAMCOLOR".
See also: `menuDef::style', `itemDef::style', WINDOW_STYLE_TEAMCOLOR.
See also: `itemDef::backcolor', `itemDef::forecolor', `itemDef::borderColor'.
Change focus to item/group with name matching the given string.
See also: `itemDef::onFocus',
The cvar "team_model" is set to the given string.
The cvar "team_headmodel" is set to the given string.
Simple animation effect by altering the rect dimensions.
See also: menuDef::fadeClamp, menuDef::fadeAmount, menuDef::fadeCycle.
First string is the name of the cvar to alter. Second string is the value to assign to the cvar.
See also: `itemDef::cvartest'.
Execute a string as a console command. Note this is NOT the same "exec" to load a .cfg file. To load a .cfg file in a menu script action, you can use:
exec "exec foo.cfg"
Play the sound file or sound name indicated by the string.
See also: `script::playlooped', `menuDef::soundLoop'.
Starts playing the sound in an infinite loop. Use empty string ("") to stop loop.
See also: `script::play', `menuDef::soundLoop'.
Start an orbiting camera.
Activates mod-specific actions based on string. This action is a means to trigger activity coded in the C portion of the mod. Valid parameters are mod-dependent, but those in the baseq3/q3ta source tree is provided.
See also: `Values for uiScript'