mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-09-08 15:07:06 +00:00
* feat: add T4 menu dumping * chore: align with latest changes * feat: add T4 menu loading Load T4 menulists and menu files through the shared menu parser. Preserve T4-specific menu and listbox fields and cover loading, dumping, linking, and round-trip behaviour. * chore: make flag fields unsigned * chore: rename `expOperationEnum` -> `operationEnum` * chore: use default enum numeration for T4 operationEnum * chore: remove unused members of operationEnum * chore: remove redundant op from operationEnum * refactor: align T4 expression operand names with IW3 * chore: small adjustment to iw3,t4 types --------- Co-authored-by: Jan Laupetin <[email protected]>
47 lines
1.4 KiB
Plaintext
47 lines
1.4 KiB
Plaintext
{
|
|
menuDef
|
|
{
|
|
name "main"
|
|
fullscreen 1
|
|
rect 0 0 640 480 0 0
|
|
disablecolor 0.2 0.3 0.4 0.5
|
|
forecolor 0.8 0.7 0.6 0.5
|
|
visible when(dvarbool("ui_show_main"));
|
|
onOpen
|
|
{
|
|
play menu_open;
|
|
setLocalVarInt ui_highlight 5;
|
|
}
|
|
onFocus
|
|
{
|
|
setdvar ui_menu_focused 1;
|
|
}
|
|
itemDef
|
|
{
|
|
name "empty_text"
|
|
text ""
|
|
rect 10 20 180 24 1 2
|
|
type 1
|
|
visible 1
|
|
forecolor 0.9 0.9 1 0.07
|
|
dvar "ui_fallback_text"
|
|
action
|
|
{
|
|
setItemColor empty_text borderColor 0.1 0.1 0.12 0.5;
|
|
}
|
|
exp material localvarstring("ui_material");
|
|
}
|
|
itemDef
|
|
{
|
|
name "server_list"
|
|
rect 20 60 300 200 0 0
|
|
type 6
|
|
focusColor 0.1 0.2 0.3 0.4
|
|
onListboxSelectionChange
|
|
{
|
|
setdvar ui_server_selected 1;
|
|
}
|
|
}
|
|
}
|
|
}
|