Files
OpenAssetTools/test/SystemTests/Game/T4/MenuRoundTrip/ui_mp/main.menu
T
wroyandJan Laupetin 7b24b776fa fix: Dump dvar of IW4 menu items without edit field data (#1063)
* fix: Dump dvar of IW4 menu items without edit field data

* fix: ensure dvar property sets edit field features

* chore: add comment explaining why additional dump location for dvar is there

* fix: test data that has invalid type and dvar combinations

---------

Co-authored-by: Jan Laupetin <[email protected]>
2026-11-16 23:32:09 +01:00

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 4
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;
}
}
}
}