From 86f54c5deafaa10ee809b95e2d7a7805fd1a06c2 Mon Sep 17 00:00:00 2001 From: Andrei Drexler Date: Mon, 26 Aug 2002 00:40:29 +0000 Subject: [PATCH] no message --- reaction/uifiles/controls.menu | 117 ++-- reaction/uifiles/controls_look.menu | 688 ++++++++++++++++++++ reaction/uifiles/controls_misc.menu | 648 +++++++++++++++++++ reaction/uifiles/controls_move.menu | 712 +++++++++++++++++++++ reaction/uifiles/controls_reaction.menu | 698 ++++++++++++++++++++ reaction/uifiles/controls_weapon.menu | 733 ++++++++++++++++++++++ reaction/uifiles/ingame.txt | 2 + reaction/uifiles/ingame_about.menu | 325 ++-------- reaction/uifiles/ingame_controls.menu | 16 + reaction/uifiles/ingame_player.menu | 4 +- reaction/uifiles/ingame_presets.menu | 251 ++++++++ reaction/uifiles/ingame_presets_edit.menu | 671 ++++++++++++++++++++ reaction/uifiles/menudef.h | 12 + reaction/uifiles/menus.txt | 9 +- reaction/uifiles/setup.menu | 47 +- 15 files changed, 4564 insertions(+), 369 deletions(-) create mode 100644 reaction/uifiles/controls_look.menu create mode 100644 reaction/uifiles/controls_misc.menu create mode 100644 reaction/uifiles/controls_move.menu create mode 100644 reaction/uifiles/controls_reaction.menu create mode 100644 reaction/uifiles/controls_weapon.menu create mode 100644 reaction/uifiles/ingame_presets.menu create mode 100644 reaction/uifiles/ingame_presets_edit.menu diff --git a/reaction/uifiles/controls.menu b/reaction/uifiles/controls.menu index a055fc9d..1a062697 100644 --- a/reaction/uifiles/controls.menu +++ b/reaction/uifiles/controls.menu @@ -125,11 +125,10 @@ rect 336 12 32 32 style WINDOW_STYLE_SHADER visible 1 - mouseenter { setfocus btn_look ; } onFocus { show look_focus ; timefade look_focus forecolor 1 1 1 1 0 250 ; show look_hint ; timeFade look_hint forecolor .9 .9 .9 1 0 250 } leaveFocus { timefade look_focus forecolor 1 1 1 0 0 250 ; timeFade look_hint forecolor .9 .9 .9 0 0 250 } - action { play "sound/misc/menu1.wav" ; hide move ; hide weapon ; hide misc ; hide reaction ; show look ; } + action { play "sound/misc/menu1.wav" } } itemdef { @@ -143,12 +142,10 @@ } itemdef { - name look_act - group look background "menu/art/rq3-menu-focus-anim" rect 336 12 32 32 style WINDOW_STYLE_SHADER - visible 0 + visible 1 decoration } @@ -176,7 +173,6 @@ rect 384 12 32 32 style WINDOW_STYLE_SHADER visible 1 - mouseenter { setfocus btn_move ; } onFocus { show move_focus ; timefade move_focus forecolor 1 1 1 1 0 250 ; show move_hint ; timeFade move_hint forecolor .9 .9 .9 1 0 250 } leaveFocus { timefade move_focus forecolor 1 1 1 0 0 250 ; timeFade move_hint forecolor .9 .9 .9 0 0 250 } @@ -227,7 +223,6 @@ rect 432 12 32 32 style WINDOW_STYLE_SHADER visible 1 - mouseenter { setfocus btn_weapon ; } onFocus { show weapon_focus ; timefade weapon_focus forecolor 1 1 1 1 0 250 ; show weapon_hint ; timeFade weapon_hint forecolor .9 .9 .9 1 0 250 } leaveFocus { timefade weapon_focus forecolor 1 1 1 0 0 250 ; timeFade weapon_hint forecolor .9 .9 .9 0 0 250 } @@ -278,7 +273,6 @@ rect 480 12 32 32 style WINDOW_STYLE_SHADER visible 1 - mouseenter { setfocus btn_misc ; } onFocus { show misc_focus ; timefade misc_focus forecolor 1 1 1 1 0 250 ; show misc_hint ; timeFade misc_hint forecolor .9 .9 .9 1 0 250 } leaveFocus { timefade misc_focus forecolor 1 1 1 0 0 250 ; timeFade misc_hint forecolor .9 .9 .9 0 0 250 } @@ -329,7 +323,6 @@ rect 528 12 32 32 style WINDOW_STYLE_SHADER visible 1 - mouseenter { setfocus btn_reaction ; } onFocus { show reaction_focus ; timefade reaction_focus forecolor 1 1 1 1 0 250 ; show reaction_hint ; timeFade reaction_hint forecolor .9 .9 .9 1 0 250 } leaveFocus { timefade reaction_focus forecolor 1 1 1 0 0 250 ; timeFade reaction_hint forecolor .9 .9 .9 0 0 250 } @@ -370,6 +363,8 @@ decoration } +//----------------------------------------------------------- + //Background window //Captions @@ -566,7 +561,7 @@ textaligny 16 textscale .25 forecolor RQ3_Controls_Option_Color - visible 0 + visible 1 //onfocus { show SliderMessage } //leavefocus { hide SliderMessage } onFocus { show SliderMessage ; timeFade SliderMessage forecolor 1 1 1 1 0 250 } @@ -585,7 +580,7 @@ textaligny 16 textscale .25 forecolor RQ3_Controls_Option_Color - visible 0 + visible 1 onFocus { show YesNoMessage ; timeFade YesNoMessage forecolor 1 1 1 1 0 250 } leaveFocus { timeFade YesNoMessage forecolor 1 1 1 0 0 250 } } @@ -602,7 +597,7 @@ textaligny 16 textscale .25 forecolor RQ3_Controls_Option_Color - visible 0 + visible 1 action { uiScript update ui_mousePitch ; } onFocus { show YesNoMessage ; timeFade YesNoMessage forecolor 1 1 1 1 0 250 } leaveFocus { timeFade YesNoMessage forecolor 1 1 1 0 0 250 } @@ -620,7 +615,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 //onfocus { show keyBindStatus } //leavefocus { hide keyBindStatus } onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } @@ -639,7 +634,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -656,7 +651,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -673,7 +668,7 @@ textaligny 16 textscale .25 forecolor RQ3_Controls_Option_Color - visible 0 + visible 1 onFocus { show YesNoMessage ; timeFade YesNoMessage forecolor 1 1 1 1 0 250 } leaveFocus { timeFade YesNoMessage forecolor 1 1 1 0 0 250 } } @@ -690,7 +685,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -707,7 +702,7 @@ textaligny 16 textscale .25 forecolor RQ3_Controls_Option_Color - visible 0 + visible 1 onFocus { show YesNoMessage ; timeFade YesNoMessage forecolor 1 1 1 1 0 250 } leaveFocus { timeFade YesNoMessage forecolor 1 1 1 0 0 250 } } @@ -724,7 +719,7 @@ textaligny 16 textscale .25 forecolor RQ3_Controls_Option_Color - visible 0 + visible 1 onFocus { show SliderMessage ; timeFade SliderMessage forecolor 1 1 1 1 0 250 } leaveFocus { timeFade SliderMessage forecolor 1 1 1 0 0 250 } } @@ -744,7 +739,7 @@ textaligny 16 textscale .25 forecolor RQ3_Controls_Option_Color - visible 0 + visible 1 //onfocus { show YesNoMessage ; exec "set ui_RQ3_model_command 3" } //leavefocus { hide YesNoMessage ; exec "set ui_RQ3_model_command 1" } onFocus { show YesNoMessage ; timeFade YesNoMessage forecolor 1 1 1 1 0 250 } @@ -763,7 +758,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 //onFocus { show keyBindStatus ; exec "set ui_RQ3_model_command 4" } //leaveFocus { hide keyBindStatus ; exec "set ui_RQ3_model_command 1" } onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } @@ -782,7 +777,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 //onFocus { show keyBindStatus ; exec "set ui_RQ3_model_command 3" } //leaveFocus { hide keyBindStatus ; exec "set ui_RQ3_model_command 1" } onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } @@ -801,7 +796,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 //onFocus { show keyBindStatus ; exec "set ui_RQ3_model_command 2" } //leaveFocus { hide keyBindStatus ; exec "set ui_RQ3_model_command 3" } onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } @@ -820,7 +815,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -837,7 +832,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -854,7 +849,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 //onFocus { show keyBindStatus ; exec "set ui_RQ3_model_command 5" } //leaveFocus { hide keyBindStatus ; exec "set ui_RQ3_model_command 1" } onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } @@ -873,7 +868,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 //onFocus { show keyBindStatus ; exec "set ui_RQ3_model_command 6" } //leaveFocus { hide keyBindStatus ; exec "set ui_RQ3_model_command 1" } onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } @@ -892,7 +887,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -909,7 +904,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -926,7 +921,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -945,7 +940,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -962,7 +957,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -979,7 +974,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -996,7 +991,7 @@ textaligny 16 textscale .25 forecolor RQ3_Controls_Option_Color - visible 0 + visible 1 onFocus { show YesNoMessage ; timeFade YesNoMessage forecolor 1 1 1 1 0 250 } leaveFocus { timeFade YesNoMessage forecolor 1 1 1 0 0 250 } } @@ -1013,7 +1008,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -1030,7 +1025,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -1047,7 +1042,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -1064,7 +1059,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -1081,7 +1076,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -1098,7 +1093,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -1115,7 +1110,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -1132,7 +1127,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -1149,7 +1144,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -1168,7 +1163,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -1185,7 +1180,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -1202,7 +1197,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -1219,7 +1214,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -1236,7 +1231,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -1253,7 +1248,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -1270,7 +1265,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -1287,7 +1282,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -1306,7 +1301,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -1323,7 +1318,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -1340,7 +1335,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -1357,7 +1352,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -1374,7 +1369,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -1391,7 +1386,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -1408,7 +1403,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -1425,7 +1420,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -1442,7 +1437,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } @@ -1459,7 +1454,7 @@ textalignx 160 textaligny 16 textscale .25 - visible 0 + visible 1 onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } } diff --git a/reaction/uifiles/controls_look.menu b/reaction/uifiles/controls_look.menu new file mode 100644 index 00000000..d9a05671 --- /dev/null +++ b/reaction/uifiles/controls_look.menu @@ -0,0 +1,688 @@ +#include "ui/menudef.h" +#define RQ3_Controls_Option_Color .75 .75 .75 1 + +{ + + menuDef { + name "control_look_menu" + background "rq3-ta-menuback" // Makro: replace "rq3-ta-menuback" with "rq3-menuback" + // to use the old background + fullScreen MENU_TRUE + visible MENU_FALSE // Visible on open + focusColor RQ3_MAIN_FOCUSCOLOR // Menu focus color for text and items + + onOpen { play "sound/misc/menu1.wav" ; uiScript loadControls ; + setitemcolor hints forecolor .9 .9 .9 1 ; hide hints ; + hide focus ; setfocus btn_look } + + onClose { uiScript saveControls } + onEsc { uiScript saveControls ; close control_look_menu ; open setup_menu } + + +//=================== +// RQ3 stuff +//=================== + + + itemDef { + name top_bar //rq3: Top bar + rect 0 0 640 56 + style 1 + backcolor RQ3_MAIN_BAR_COLOR + //border 2 + //bordersize 1 + //bordercolor 1 0 0 1 + decoration + visible 1 + } + + itemDef { + name top_bar //rq3: Top bar + rect 0 58 640 12 + style WINDOW_STYLE_SHADER + background "ui/assets/rq3-main-shadow-1" + decoration + visible 1 + } + + itemDef { + name top_bar2 //rq3: Top bar - border + rect 0 56 640 2 + style 1 + backcolor RQ3_MAIN_BAR_COLOR2 + //border 2 + //bordersize 1 + //bordercolor 1 0 0 1 + decoration + visible 1 + } + + itemDef { + name bottom_bar //rq3: bottom bar + rect 0 420 640 60 + style 1 + backcolor RQ3_MAIN_BAR_COLOR + //border 2 + //bordersize 1 + //bordercolor 1 0 0 1 + decoration + visible 1 + } + + itemDef { + name bottom_bar2 //rq3: bottom bar - border + rect 0 418 640 2 + style 1 + backcolor RQ3_MAIN_BAR_COLOR2 + //border 2 + //bordersize 1 + //bordercolor 1 0 0 1 + decoration + visible 1 + } + + itemdef { + name "control_icon" + style WINDOW_STYLE_SHADER + rect 8 8 48 48 + background "menu/art/rq3-setup-controls.tga" + decoration + visible 1 + } + + itemdef { + name "control_title" + style WINDOW_STYLE_SHADER + rect 64 12 256 32 + background "menu/art/rq3-title-setup.tga" + decoration + visible 1 + } + + itemdef { + name overlay + style 1 + forecolor 0 0 0 1 + backcolor RQ3_MENU_OVERLAY_COLOR + rect 0 58 640 360 + visible 1 + decoration + } + +//================= +// Objects +//================= + +//Top Menu +//Look + + itemdef { + name btn_look + group "topmenu" + type 1 + background "menu/art/rq3-controls-looking" + rect 336 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + onFocus { show look_focus ; timefade look_focus forecolor 1 1 1 1 0 250 ; + show look_hint ; timeFade look_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade look_focus forecolor 1 1 1 0 0 250 ; timeFade look_hint forecolor .9 .9 .9 0 0 250 } + action { play "sound/misc/menu1.wav" ; close control_look_menu ; open control_look_menu } + } + + itemdef { + name look_focus + group focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 336 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + background "menu/art/rq3-menu-focus-anim" + rect 336 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + decoration + } + + itemdef { + name look_hint + group hints + text "Change view keys" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + style 0 + visible 0 + decoration + } + +//Move + + itemdef { + name btn_move + group "topmenu" + type 1 + background "menu/art/rq3-controls-movement" + rect 384 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + onFocus { show move_focus ; timefade move_focus forecolor 1 1 1 1 0 250 ; + show move_hint ; timeFade move_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade move_focus forecolor 1 1 1 0 0 250 ; timeFade move_hint forecolor .9 .9 .9 0 0 250 } + action { play "sound/misc/menu1.wav" ; close control_look_menu ; open control_move_menu } + } + + itemdef { + name move_focus + group focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 384 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name move_act + group move + background "menu/art/rq3-menu-focus-anim" + rect 384 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name move_hint + group hints + text "Change movement keys" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + style 0 + visible 0 + decoration + } + +//Weapons + + itemdef { + name btn_weapon + group "topmenu" + type 1 + background "menu/art/rq3-controls-weapons" + rect 432 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + onFocus { show weapon_focus ; timefade weapon_focus forecolor 1 1 1 1 0 250 ; + show weapon_hint ; timeFade weapon_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade weapon_focus forecolor 1 1 1 0 0 250 ; timeFade weapon_hint forecolor .9 .9 .9 0 0 250 } + action { play "sound/misc/menu1.wav" ; close control_look_menu ; open control_weapon_menu } + } + + itemdef { + name weapon_focus + group focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 432 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name weapon_act + group weapon + background "menu/art/rq3-menu-focus-anim" + rect 432 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name weapon_hint + group hints + text "Change weapon keys" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + style 0 + visible 0 + decoration + } + +//Misc + + itemdef { + name btn_misc + group "topmenu" + type 1 + background "menu/art/rq3-controls-misc" + rect 480 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + onFocus { show misc_focus ; timefade misc_focus forecolor 1 1 1 1 0 250 ; + show misc_hint ; timeFade misc_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade misc_focus forecolor 1 1 1 0 0 250 ; timeFade misc_hint forecolor .9 .9 .9 0 0 250 } + action { play "sound/misc/menu1.wav" ; close control_look_menu ; open control_misc_menu } + } + + itemdef { + name misc_focus + group focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 480 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name misc_act + group misc + background "menu/art/rq3-menu-focus-anim" + rect 480 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name misc_hint + group hints + text "Change miscellaneous keys" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + style 0 + visible 0 + decoration + } + +//Reaction + + itemdef { + name btn_reaction + group "topmenu" + type 1 + background "menu/art/rq3-controls-reaction" + rect 528 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + onFocus { show reaction_focus ; timefade reaction_focus forecolor 1 1 1 1 0 250 ; + show reaction_hint ; timeFade reaction_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade reaction_focus forecolor 1 1 1 0 0 250 ; timeFade reaction_hint forecolor .9 .9 .9 0 0 250 } + action { play "sound/misc/menu1.wav" ; close control_look_menu ; open control_reaction_menu } + } + + itemdef { + name reaction_focus + group focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 528 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name reaction_act + group hints + group reaction + background "menu/art/rq3-menu-focus-anim" + rect 528 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name reaction_hint + text "Change Reaction-specific keys" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + style 0 + visible 0 + decoration + } + +//----------------------------------------------------------- + +//Background window +//Caption + + itemdef { + rect 264 68 360 20 + style WINDOW_STYLE_GRADIENT + border WINDOW_BORDER_KCGRADIENT + bordersize 1 + backcolor 0 0 .2 .75 + bordercolor .75 .75 .75 1 + text "View keys" + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .25 + textalign 0 + textalignx 88 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + decoration + } + +//Icon + + itemdef { + style WINDOW_STYLE_SHADER + rect 320 66 24 24 + background "menu/art/rq3-controls-looking.tga" + decoration + visible 1 + } + + +//Window + + itemdef { + name window + rect 264 84 360 284 + style WINDOW_STYLE_SHADER + background "ui/assets/fake_gradient_75" + border WINDOW_BORDER_KCGRADIENT + bordersize 2 + backcolor 0 0 0 .75 + bordercolor .75 .75 .75 1 + visible 1 + decoration + } + +//Player model display + + itemdef { + name "model_preview" + ownerdraw UI_PLAYERMODEL + style 1 + rect 0 80 240 320 + visible 0 + decoration + } + +//Keys +//Looking keys + + itemdef { + name opt_mspeed + group look + type ITEM_TYPE_SLIDER + text "Mouse Speed:" + cvarfloat "sensitivity" 5 1 30 + rect 448 100 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 16 + textscale .25 + forecolor RQ3_Controls_Option_Color + visible 1 + //onfocus { show SliderMessage } + //leavefocus { hide SliderMessage } + onFocus { show SliderMessage ; timeFade SliderMessage forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade SliderMessage forecolor 1 1 1 0 0 250 } + } + + itemdef { + name opt_smoothm + group look + type ITEM_TYPE_YESNO + text "Smooth Mouse:" + cvar "m_filter" + rect 448 120 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 16 + textscale .25 + forecolor RQ3_Controls_Option_Color + visible 1 + onFocus { show YesNoMessage ; timeFade YesNoMessage forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade YesNoMessage forecolor 1 1 1 0 0 250 } + } + + itemdef { + name opt_smoothm + group look + type ITEM_TYPE_YESNO + text "Invert Mouse:" + cvar "ui_mousePitch" + rect 448 140 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 16 + textscale .25 + forecolor RQ3_Controls_Option_Color + visible 1 + action { uiScript update ui_mousePitch ; } + onFocus { show YesNoMessage ; timeFade YesNoMessage forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade YesNoMessage forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_lookup" + cvar "+lookup" + group look + type ITEM_TYPE_BIND + text "Look Up:" + rect 288 160 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + //onfocus { show keyBindStatus } + //leavefocus { hide keyBindStatus } + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_lookdown" + cvar "+lookdown" + group look + type ITEM_TYPE_BIND + text "Look Down:" + rect 288 180 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_mlook" + cvar "+mlook" + group look + type ITEM_TYPE_BIND + text "Mouse Look:" + rect 288 200 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name opt_freelook + group look + type ITEM_TYPE_YESNO + text "Free Look:" + cvar "cl_freelook" + rect 448 220 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 16 + textscale .25 + forecolor RQ3_Controls_Option_Color + visible 1 + onFocus { show YesNoMessage ; timeFade YesNoMessage forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade YesNoMessage forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_centerview" + cvar "centerview" + group look + type ITEM_TYPE_BIND + text "Center View:" + rect 288 240 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name opt_joystick + group look + type ITEM_TYPE_YESNO + text "Use Joystick:" + cvar "in_joystick" + rect 448 260 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 16 + textscale .25 + forecolor RQ3_Controls_Option_Color + visible 1 + onFocus { show YesNoMessage ; timeFade YesNoMessage forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade YesNoMessage forecolor 1 1 1 0 0 250 } + } + + itemdef { + name opt_joythreshold + group look + type ITEM_TYPE_SLIDER + text "Joystick Threshold:" + cvarfloat "joy_threshold" 0.15 0.05 0.75 + rect 448 280 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 16 + textscale .25 + forecolor RQ3_Controls_Option_Color + visible 1 + onFocus { show SliderMessage ; timeFade SliderMessage forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade SliderMessage forecolor 1 1 1 0 0 250 } + } + +//Messages + + itemdef { + name keyBindStatus + rect 256 384 360 40 + ownerdraw UI_KEYBINDSTATUS + text " " + forecolor 1 1 1 1 + textscale .25 + textstyle 3 + textalignx 8 + textaligny 12 + visible 0 + decoration + } + + itemdef { + name SliderMessage + rect 264 384 360 40 + text "Drag the slider to increase/decrease" + forecolor 1 1 1 0 + textscale .25 + textstyle 3 + textalign ITEM_ALIGN_CENTER + textalignx 180 + textaligny 12 + visible 0 + decoration + } + + itemdef { + name YesNoMessage + rect 264 384 360 40 + text "Click to toggle yes/no" + forecolor 1 1 1 0 + textscale .25 + textstyle 3 + textalign ITEM_ALIGN_CENTER + textalignx 180 + textaligny 12 + visible 0 + decoration + } + +//Back + + itemdef { + name "btn_back" + rect 12 432 32 32 + style WINDOW_STYLE_SHADER + background "menu/art/rq3-menu-back.tga" + type 1 + visible 1 + action { close control_look_menu; open setup_menu ; } + onFocus { setbackground "menu/art/rq3-menu-back-focus-anim" ; + show back_hint ; timeFade back_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { setbackground "menu/art/rq3-menu-back.tga" ; + timeFade back_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name back_hint + text "Go back to setup menu" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + type 0 + style 0 + visible 0 + decoration + } + +} diff --git a/reaction/uifiles/controls_misc.menu b/reaction/uifiles/controls_misc.menu new file mode 100644 index 00000000..3791131f --- /dev/null +++ b/reaction/uifiles/controls_misc.menu @@ -0,0 +1,648 @@ +#include "ui/menudef.h" +#define RQ3_Controls_Option_Color .75 .75 .75 1 + +{ + + menuDef { + name "control_misc_menu" + background "rq3-ta-menuback" // Makro: replace "rq3-ta-menuback" with "rq3-menuback" + // to use the old background + fullScreen MENU_TRUE + visible MENU_FALSE // Visible on open + focusColor RQ3_MAIN_FOCUSCOLOR // Menu focus color for text and items + + onOpen { play "sound/misc/menu1.wav" ; uiScript loadControls ; + setitemcolor hints forecolor .9 .9 .9 1 ; hide hints ; + hide focus ; setfocus btn_misc } + + onClose { uiScript saveControls } + onEsc { uiScript saveControls ; close control_misc_menu ; open setup_menu } + + +//=================== +// RQ3 stuff +//=================== + + + itemDef { + name top_bar //rq3: Top bar + rect 0 0 640 56 + style 1 + backcolor RQ3_MAIN_BAR_COLOR + //border 2 + //bordersize 1 + //bordercolor 1 0 0 1 + decoration + visible 1 + } + + itemDef { + name top_bar //rq3: Top bar + rect 0 58 640 12 + style WINDOW_STYLE_SHADER + background "ui/assets/rq3-main-shadow-1" + decoration + visible 1 + } + + itemDef { + name top_bar2 //rq3: Top bar - border + rect 0 56 640 2 + style 1 + backcolor RQ3_MAIN_BAR_COLOR2 + //border 2 + //bordersize 1 + //bordercolor 1 0 0 1 + decoration + visible 1 + } + + itemDef { + name bottom_bar //rq3: bottom bar + rect 0 420 640 60 + style 1 + backcolor RQ3_MAIN_BAR_COLOR + //border 2 + //bordersize 1 + //bordercolor 1 0 0 1 + decoration + visible 1 + } + + itemDef { + name bottom_bar2 //rq3: bottom bar - border + rect 0 418 640 2 + style 1 + backcolor RQ3_MAIN_BAR_COLOR2 + //border 2 + //bordersize 1 + //bordercolor 1 0 0 1 + decoration + visible 1 + } + + itemdef { + name "control_icon" + style WINDOW_STYLE_SHADER + rect 8 8 48 48 + background "menu/art/rq3-setup-controls.tga" + decoration + visible 1 + } + + itemdef { + name "control_title" + style WINDOW_STYLE_SHADER + rect 64 12 256 32 + background "menu/art/rq3-title-setup.tga" + decoration + visible 1 + } + + itemdef { + name overlay + style 1 + forecolor 0 0 0 1 + backcolor RQ3_MENU_OVERLAY_COLOR + rect 0 58 640 360 + visible 1 + decoration + } + +//================= +// Objects +//================= + +//Top Menu +//Look + + itemdef { + name btn_look + group "topmenu" + type 1 + background "menu/art/rq3-controls-looking" + rect 336 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + onFocus { show look_focus ; timefade look_focus forecolor 1 1 1 1 0 250 ; + show look_hint ; timeFade look_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade look_focus forecolor 1 1 1 0 0 250 ; timeFade look_hint forecolor .9 .9 .9 0 0 250 } + action { play "sound/misc/menu1.wav" ; close control_misc_menu ; open control_look_menu } + } + + itemdef { + name look_focus + group focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 336 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + background "menu/art/rq3-menu-focus-anim" + rect 336 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name look_hint + group hints + text "Change view keys" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + style 0 + visible 0 + decoration + } + +//Move + + itemdef { + name btn_move + group "topmenu" + type 1 + background "menu/art/rq3-controls-movement" + rect 384 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + onFocus { show move_focus ; timefade move_focus forecolor 1 1 1 1 0 250 ; + show move_hint ; timeFade move_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade move_focus forecolor 1 1 1 0 0 250 ; timeFade move_hint forecolor .9 .9 .9 0 0 250 } + action { play "sound/misc/menu1.wav" ; close control_misc_menu ; open control_move_menu } + } + + itemdef { + name move_focus + group focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 384 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name move_act + group move + background "menu/art/rq3-menu-focus-anim" + rect 384 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name move_hint + group hints + text "Change movement keys" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + style 0 + visible 0 + decoration + } + +//Weapons + + itemdef { + name btn_weapon + group "topmenu" + type 1 + background "menu/art/rq3-controls-weapons" + rect 432 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + onFocus { show weapon_focus ; timefade weapon_focus forecolor 1 1 1 1 0 250 ; + show weapon_hint ; timeFade weapon_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade weapon_focus forecolor 1 1 1 0 0 250 ; timeFade weapon_hint forecolor .9 .9 .9 0 0 250 } + action { play "sound/misc/menu1.wav" ; close control_misc_menu ; open control_weapon_menu } + } + + itemdef { + name weapon_focus + group focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 432 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name weapon_act + group weapon + background "menu/art/rq3-menu-focus-anim" + rect 432 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name weapon_hint + group hints + text "Change weapon keys" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + style 0 + visible 0 + decoration + } + +//Misc + + itemdef { + name btn_misc + group "topmenu" + type 1 + background "menu/art/rq3-controls-misc" + rect 480 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + onFocus { show misc_focus ; timefade misc_focus forecolor 1 1 1 1 0 250 ; + show misc_hint ; timeFade misc_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade misc_focus forecolor 1 1 1 0 0 250 ; timeFade misc_hint forecolor .9 .9 .9 0 0 250 } + action { play "sound/misc/menu1.wav" ; close control_misc_menu ; open control_misc_menu } + } + + itemdef { + name misc_focus + group focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 480 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + background "menu/art/rq3-menu-focus-anim" + rect 480 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + decoration + } + + itemdef { + name misc_hint + group hints + text "Change miscellaneous keys" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + style 0 + visible 0 + decoration + } + +//Reaction + + itemdef { + name btn_reaction + group "topmenu" + type 1 + background "menu/art/rq3-controls-reaction" + rect 528 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + onFocus { show reaction_focus ; timefade reaction_focus forecolor 1 1 1 1 0 250 ; + show reaction_hint ; timeFade reaction_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade reaction_focus forecolor 1 1 1 0 0 250 ; timeFade reaction_hint forecolor .9 .9 .9 0 0 250 } + action { play "sound/misc/menu1.wav" ; close control_misc_menu ; open control_reaction_menu } + } + + itemdef { + name reaction_focus + group focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 528 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name reaction_act + group reaction + background "menu/art/rq3-menu-focus-anim" + rect 528 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name reaction_hint + group hints + text "Change Reaction-specific keys" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + style 0 + visible 0 + decoration + } + +//----------------------------------------------------------- + +//Background window +//Caption + + itemdef { + rect 264 68 360 20 + style WINDOW_STYLE_GRADIENT + border WINDOW_BORDER_KCGRADIENT + bordersize 1 + backcolor 0 0 .2 .75 + bordercolor .75 .75 .75 1 + text "Miscellaneous keys" + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .25 + textalign 0 + textalignx 88 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + decoration + } + +//Icon + + itemdef { + style WINDOW_STYLE_SHADER + rect 320 66 24 24 + background "menu/art/rq3-controls-misc.tga" + decoration + visible 1 + } + + +//Window + + itemdef { + name window + rect 264 84 360 284 + style WINDOW_STYLE_SHADER + background "ui/assets/fake_gradient_75" + border WINDOW_BORDER_KCGRADIENT + bordersize 2 + backcolor 0 0 0 .75 + bordercolor .75 .75 .75 1 + visible 1 + decoration + } + +//Player model display + + itemdef { + name "model_preview" + ownerdraw UI_PLAYERMODEL + style 1 + rect 0 80 240 320 + visible 0 + decoration + } + +//Keys +//Misc keys + + itemdef { + name "bind_scores" + cvar "scores" + group misc + type ITEM_TYPE_BIND + text "Show Scores:" + rect 288 100 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_gesture" + cvar "+button3" + group misc + type ITEM_TYPE_BIND + text "Gesture:" + rect 288 120 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_chat" + cvar "messagemode" + group misc + type ITEM_TYPE_BIND + text "Chat:" + rect 288 140 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_chatteam" + cvar "messagemode2" + group misc + type ITEM_TYPE_BIND + text "Chat - Team:" + rect 288 160 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_chattarget" + cvar "messagemode3" + group misc + type ITEM_TYPE_BIND + text "Chat - Target:" + rect 288 180 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_chatteam" + cvar "messagemode4" + group misc + type ITEM_TYPE_BIND + text "Chat - Attacker:" + rect 288 200 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_sshot" + cvar "screenshot" + group misc + type ITEM_TYPE_BIND + text "Screenshot:" + rect 288 220 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_sshotJPEG" + cvar "screenshotJPEG" + group misc + type ITEM_TYPE_BIND + text "Screenshot - JPEG:" + rect 288 240 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + +//Messages + + itemdef { + name keyBindStatus + rect 256 384 360 40 + ownerdraw UI_KEYBINDSTATUS + text " " + forecolor 1 1 1 1 + textscale .25 + textstyle 3 + textalignx 8 + textaligny 12 + visible 0 + decoration + } + + itemdef { + name SliderMessage + rect 264 384 360 40 + text "Drag the slider to increase/decrease" + forecolor 1 1 1 0 + textscale .25 + textstyle 3 + textalign ITEM_ALIGN_CENTER + textalignx 180 + textaligny 12 + visible 0 + decoration + } + + itemdef { + name YesNoMessage + rect 264 384 360 40 + text "Click to toggle yes/no" + forecolor 1 1 1 0 + textscale .25 + textstyle 3 + textalign ITEM_ALIGN_CENTER + textalignx 180 + textaligny 12 + visible 0 + decoration + } + +//Back + + itemdef { + name "btn_back" + rect 12 432 32 32 + style WINDOW_STYLE_SHADER + background "menu/art/rq3-menu-back.tga" + type 1 + visible 1 + action { close control_misc_menu; open setup_menu ; } + onFocus { setbackground "menu/art/rq3-menu-back-focus-anim" ; + show back_hint ; timeFade back_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { setbackground "menu/art/rq3-menu-back.tga" ; + timeFade back_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name back_hint + text "Go back to setup menu" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + type 0 + style 0 + visible 0 + decoration + } + +} diff --git a/reaction/uifiles/controls_move.menu b/reaction/uifiles/controls_move.menu new file mode 100644 index 00000000..dece8b72 --- /dev/null +++ b/reaction/uifiles/controls_move.menu @@ -0,0 +1,712 @@ +#include "ui/menudef.h" +#define RQ3_Controls_Option_Color .75 .75 .75 1 + +{ + + menuDef { + name "control_move_menu" + background "rq3-ta-menuback" // Makro: replace "rq3-ta-menuback" with "rq3-menuback" + // to use the old background + fullScreen MENU_TRUE + visible MENU_FALSE // Visible on open + focusColor RQ3_MAIN_FOCUSCOLOR // Menu focus color for text and items + + onOpen { play "sound/misc/menu1.wav" ; uiScript loadControls ; + setitemcolor hints forecolor .9 .9 .9 1 ; hide hints ; + hide focus ; setfocus btn_move } + + onClose { uiScript saveControls } + onEsc { uiScript saveControls ; close control_move_menu ; open setup_menu } + + +//=================== +// RQ3 stuff +//=================== + + + itemDef { + name top_bar //rq3: Top bar + rect 0 0 640 56 + style 1 + backcolor RQ3_MAIN_BAR_COLOR + //border 2 + //bordersize 1 + //bordercolor 1 0 0 1 + decoration + visible 1 + } + + itemDef { + name top_bar //rq3: Top bar + rect 0 58 640 12 + style WINDOW_STYLE_SHADER + background "ui/assets/rq3-main-shadow-1" + decoration + visible 1 + } + + itemDef { + name top_bar2 //rq3: Top bar - border + rect 0 56 640 2 + style 1 + backcolor RQ3_MAIN_BAR_COLOR2 + //border 2 + //bordersize 1 + //bordercolor 1 0 0 1 + decoration + visible 1 + } + + itemDef { + name bottom_bar //rq3: bottom bar + rect 0 420 640 60 + style 1 + backcolor RQ3_MAIN_BAR_COLOR + //border 2 + //bordersize 1 + //bordercolor 1 0 0 1 + decoration + visible 1 + } + + itemDef { + name bottom_bar2 //rq3: bottom bar - border + rect 0 418 640 2 + style 1 + backcolor RQ3_MAIN_BAR_COLOR2 + //border 2 + //bordersize 1 + //bordercolor 1 0 0 1 + decoration + visible 1 + } + + itemdef { + name "control_icon" + style WINDOW_STYLE_SHADER + rect 8 8 48 48 + background "menu/art/rq3-setup-controls.tga" + decoration + visible 1 + } + + itemdef { + name "control_title" + style WINDOW_STYLE_SHADER + rect 64 12 256 32 + background "menu/art/rq3-title-setup.tga" + decoration + visible 1 + } + + itemdef { + name overlay + style 1 + forecolor 0 0 0 1 + backcolor RQ3_MENU_OVERLAY_COLOR + rect 0 58 640 360 + visible 1 + decoration + } + +//================= +// Objects +//================= + +//Top Menu +//Look + + itemdef { + name btn_look + group "topmenu" + type 1 + background "menu/art/rq3-controls-looking" + rect 336 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + onFocus { show look_focus ; timefade look_focus forecolor 1 1 1 1 0 250 ; + show look_hint ; timeFade look_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade look_focus forecolor 1 1 1 0 0 250 ; timeFade look_hint forecolor .9 .9 .9 0 0 250 } + action { play "sound/misc/menu1.wav" ; close control_move_menu ; open control_look_menu } + } + + itemdef { + name look_focus + group focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 336 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + background "menu/art/rq3-menu-focus-anim" + rect 336 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name look_hint + group hints + text "Change view keys" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + style 0 + visible 0 + decoration + } + +//Move + + itemdef { + name btn_move + group "topmenu" + type 1 + background "menu/art/rq3-controls-movement" + rect 384 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + onFocus { show move_focus ; timefade move_focus forecolor 1 1 1 1 0 250 ; + show move_hint ; timeFade move_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade move_focus forecolor 1 1 1 0 0 250 ; timeFade move_hint forecolor .9 .9 .9 0 0 250 } + action { play "sound/misc/menu1.wav" ; close control_move_menu ; open control_move_menu } + } + + itemdef { + name move_focus + group focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 384 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + background "menu/art/rq3-menu-focus-anim" + rect 384 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + decoration + } + + itemdef { + name move_hint + group hints + text "Change movement keys" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + style 0 + visible 0 + decoration + } + +//Weapons + + itemdef { + name btn_weapon + group "topmenu" + type 1 + background "menu/art/rq3-controls-weapons" + rect 432 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + onFocus { show weapon_focus ; timefade weapon_focus forecolor 1 1 1 1 0 250 ; + show weapon_hint ; timeFade weapon_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade weapon_focus forecolor 1 1 1 0 0 250 ; timeFade weapon_hint forecolor .9 .9 .9 0 0 250 } + action { play "sound/misc/menu1.wav" ; close control_move_menu ; open control_weapon_menu } + } + + itemdef { + name weapon_focus + group focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 432 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name weapon_act + group weapon + background "menu/art/rq3-menu-focus-anim" + rect 432 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name weapon_hint + group hints + text "Change weapon keys" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + style 0 + visible 0 + decoration + } + +//Misc + + itemdef { + name btn_misc + group "topmenu" + type 1 + background "menu/art/rq3-controls-misc" + rect 480 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + onFocus { show misc_focus ; timefade misc_focus forecolor 1 1 1 1 0 250 ; + show misc_hint ; timeFade misc_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade misc_focus forecolor 1 1 1 0 0 250 ; timeFade misc_hint forecolor .9 .9 .9 0 0 250 } + action { play "sound/misc/menu1.wav" ; close control_move_menu ; open control_misc_menu } + } + + itemdef { + name misc_focus + group focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 480 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name misc_act + group misc + background "menu/art/rq3-menu-focus-anim" + rect 480 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name misc_hint + group hints + text "Change miscellaneous keys" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + style 0 + visible 0 + decoration + } + +//Reaction + + itemdef { + name btn_reaction + group "topmenu" + type 1 + background "menu/art/rq3-controls-reaction" + rect 528 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + onFocus { show reaction_focus ; timefade reaction_focus forecolor 1 1 1 1 0 250 ; + show reaction_hint ; timeFade reaction_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade reaction_focus forecolor 1 1 1 0 0 250 ; timeFade reaction_hint forecolor .9 .9 .9 0 0 250 } + action { play "sound/misc/menu1.wav" ; close control_move_menu ; open control_reaction_menu } + } + + itemdef { + name reaction_focus + group focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 528 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name reaction_act + group reaction + background "menu/art/rq3-menu-focus-anim" + rect 528 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name reaction_hint + group hints + text "Change Reaction-specific keys" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + style 0 + visible 0 + decoration + } + +//----------------------------------------------------------- + +//Background window +//Caption + + itemdef { + rect 264 68 360 20 + style WINDOW_STYLE_GRADIENT + border WINDOW_BORDER_KCGRADIENT + bordersize 1 + backcolor 0 0 .2 .75 + bordercolor .75 .75 .75 1 + text "Movement keys" + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .25 + textalign 0 + textalignx 88 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + decoration + } + +//Icon + + itemdef { + style WINDOW_STYLE_SHADER + rect 320 66 24 24 + background "menu/art/rq3-controls-movement.tga" + decoration + visible 1 + } + + +//Window + + itemdef { + name window + rect 264 84 360 284 + style WINDOW_STYLE_SHADER + background "ui/assets/fake_gradient_75" + border WINDOW_BORDER_KCGRADIENT + bordersize 2 + backcolor 0 0 0 .75 + bordercolor .75 .75 .75 1 + visible 1 + decoration + } + +//Player model display + + itemdef { + name "model_preview" + ownerdraw UI_PLAYERMODEL + style 1 + rect 0 80 240 320 + visible 0 + decoration + } + +//Keys +//Movement keys + + + itemdef { + name opt_alwaysrun + group move + type ITEM_TYPE_YESNO + text "Always Run:" + cvar "cl_run" + rect 448 100 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 16 + textscale .25 + forecolor RQ3_Controls_Option_Color + visible 1 + //onfocus { show YesNoMessage ; exec "set ui_RQ3_model_command 3" } + //leavefocus { hide YesNoMessage ; exec "set ui_RQ3_model_command 1" } + onFocus { show YesNoMessage ; timeFade YesNoMessage forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade YesNoMessage forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_togglerun" + cvar "+speed" + group move + type ITEM_TYPE_BIND + text "Run / Walk:" + rect 288 120 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + //onFocus { show keyBindStatus ; exec "set ui_RQ3_model_command 4" } + //leaveFocus { hide keyBindStatus ; exec "set ui_RQ3_model_command 1" } + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_forward" + cvar "+forward" + group move + type ITEM_TYPE_BIND + text "Walk Forward:" + rect 288 140 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + //onFocus { show keyBindStatus ; exec "set ui_RQ3_model_command 3" } + //leaveFocus { hide keyBindStatus ; exec "set ui_RQ3_model_command 1" } + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_back" + cvar "+back" + group move + type ITEM_TYPE_BIND + text "Backpedal:" + rect 288 160 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + //onFocus { show keyBindStatus ; exec "set ui_RQ3_model_command 2" } + //leaveFocus { hide keyBindStatus ; exec "set ui_RQ3_model_command 3" } + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_stepleft" + cvar "+moveleft" + group move + type ITEM_TYPE_BIND + text "Step Left:" + rect 288 180 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_stepright" + cvar "+moveright" + group move + type ITEM_TYPE_BIND + text "Step Right:" + rect 288 200 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_jump" + cvar "+moveup" + group move + type ITEM_TYPE_BIND + text "Up / Jump:" + rect 288 220 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + //onFocus { show keyBindStatus ; exec "set ui_RQ3_model_command 5" } + //leaveFocus { hide keyBindStatus ; exec "set ui_RQ3_model_command 1" } + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_crouch" + cvar "+movedown" + group move + type ITEM_TYPE_BIND + text "Down / Crouch:" + rect 288 240 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + //onFocus { show keyBindStatus ; exec "set ui_RQ3_model_command 6" } + //leaveFocus { hide keyBindStatus ; exec "set ui_RQ3_model_command 1" } + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_left" + cvar "+left" + group move + type ITEM_TYPE_BIND + text "Turn Left:" + rect 288 260 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_right" + cvar "+right" + group move + type ITEM_TYPE_BIND + text "Turn Right:" + rect 288 280 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_strafe" + cvar "+strafe" + group move + type ITEM_TYPE_BIND + text "Sidestep / Turn:" + rect 288 300 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + +//Messages + + itemdef { + name keyBindStatus + rect 256 384 360 40 + ownerdraw UI_KEYBINDSTATUS + text " " + forecolor 1 1 1 1 + textscale .25 + textstyle 3 + textalignx 8 + textaligny 12 + visible 0 + decoration + } + + itemdef { + name SliderMessage + rect 264 384 360 40 + text "Drag the slider to increase/decrease" + forecolor 1 1 1 0 + textscale .25 + textstyle 3 + textalign ITEM_ALIGN_CENTER + textalignx 180 + textaligny 12 + visible 0 + decoration + } + + itemdef { + name YesNoMessage + rect 264 384 360 40 + text "Click to toggle yes/no" + forecolor 1 1 1 0 + textscale .25 + textstyle 3 + textalign ITEM_ALIGN_CENTER + textalignx 180 + textaligny 12 + visible 0 + decoration + } + +//Back + + itemdef { + name "btn_back" + rect 12 432 32 32 + style WINDOW_STYLE_SHADER + background "menu/art/rq3-menu-back.tga" + type 1 + visible 1 + action { close control_move_menu; open setup_menu ; } + onFocus { setbackground "menu/art/rq3-menu-back-focus-anim" ; + show back_hint ; timeFade back_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { setbackground "menu/art/rq3-menu-back.tga" ; + timeFade back_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name back_hint + text "Go back to setup menu" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + type 0 + style 0 + visible 0 + decoration + } + +} diff --git a/reaction/uifiles/controls_reaction.menu b/reaction/uifiles/controls_reaction.menu new file mode 100644 index 00000000..2921ebc4 --- /dev/null +++ b/reaction/uifiles/controls_reaction.menu @@ -0,0 +1,698 @@ +#include "ui/menudef.h" +#define RQ3_Controls_Option_Color .75 .75 .75 1 + +{ + + menuDef { + name "control_reaction_menu" + background "rq3-ta-menuback" // Makro: replace "rq3-ta-menuback" with "rq3-menuback" + // to use the old background + fullScreen MENU_TRUE + visible MENU_FALSE // Visible on open + focusColor RQ3_MAIN_FOCUSCOLOR // Menu focus color for text and items + + onOpen { play "sound/misc/menu1.wav" ; uiScript loadControls ; + setitemcolor hints forecolor .9 .9 .9 1 ; hide hints ; + hide focus ; setfocus btn_reaction } + + onClose { uiScript saveControls } + onEsc { uiScript saveControls ; close control_reaction_menu ; open setup_menu } + + +//=================== +// RQ3 stuff +//=================== + + + itemDef { + name top_bar //rq3: Top bar + rect 0 0 640 56 + style 1 + backcolor RQ3_MAIN_BAR_COLOR + //border 2 + //bordersize 1 + //bordercolor 1 0 0 1 + decoration + visible 1 + } + + itemDef { + name top_bar //rq3: Top bar + rect 0 58 640 12 + style WINDOW_STYLE_SHADER + background "ui/assets/rq3-main-shadow-1" + decoration + visible 1 + } + + itemDef { + name top_bar2 //rq3: Top bar - border + rect 0 56 640 2 + style 1 + backcolor RQ3_MAIN_BAR_COLOR2 + //border 2 + //bordersize 1 + //bordercolor 1 0 0 1 + decoration + visible 1 + } + + itemDef { + name bottom_bar //rq3: bottom bar + rect 0 420 640 60 + style 1 + backcolor RQ3_MAIN_BAR_COLOR + //border 2 + //bordersize 1 + //bordercolor 1 0 0 1 + decoration + visible 1 + } + + itemDef { + name bottom_bar2 //rq3: bottom bar - border + rect 0 418 640 2 + style 1 + backcolor RQ3_MAIN_BAR_COLOR2 + //border 2 + //bordersize 1 + //bordercolor 1 0 0 1 + decoration + visible 1 + } + + itemdef { + name "control_icon" + style WINDOW_STYLE_SHADER + rect 8 8 48 48 + background "menu/art/rq3-setup-controls.tga" + decoration + visible 1 + } + + itemdef { + name "control_title" + style WINDOW_STYLE_SHADER + rect 64 12 256 32 + background "menu/art/rq3-title-setup.tga" + decoration + visible 1 + } + + itemdef { + name overlay + style 1 + forecolor 0 0 0 1 + backcolor RQ3_MENU_OVERLAY_COLOR + rect 0 58 640 360 + visible 1 + decoration + } + +//================= +// Objects +//================= + +//Top Menu +//Look + + itemdef { + name btn_look + group "topmenu" + type 1 + background "menu/art/rq3-controls-looking" + rect 336 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + onFocus { show look_focus ; timefade look_focus forecolor 1 1 1 1 0 250 ; + show look_hint ; timeFade look_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade look_focus forecolor 1 1 1 0 0 250 ; timeFade look_hint forecolor .9 .9 .9 0 0 250 } + action { play "sound/misc/menu1.wav" ; close control_reaction_menu ; open control_look_menu } + } + + itemdef { + name look_focus + group focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 336 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + background "menu/art/rq3-menu-focus-anim" + rect 336 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name look_hint + group hints + text "Change view keys" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + style 0 + visible 0 + decoration + } + +//Move + + itemdef { + name btn_move + group "topmenu" + type 1 + background "menu/art/rq3-controls-movement" + rect 384 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + onFocus { show move_focus ; timefade move_focus forecolor 1 1 1 1 0 250 ; + show move_hint ; timeFade move_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade move_focus forecolor 1 1 1 0 0 250 ; timeFade move_hint forecolor .9 .9 .9 0 0 250 } + action { play "sound/misc/menu1.wav" ; close control_reaction_menu ; open control_move_menu } + } + + itemdef { + name move_focus + group focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 384 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name move_act + group move + background "menu/art/rq3-menu-focus-anim" + rect 384 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name move_hint + group hints + text "Change movement keys" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + style 0 + visible 0 + decoration + } + +//Weapons + + itemdef { + name btn_weapon + group "topmenu" + type 1 + background "menu/art/rq3-controls-weapons" + rect 432 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + onFocus { show weapon_focus ; timefade weapon_focus forecolor 1 1 1 1 0 250 ; + show weapon_hint ; timeFade weapon_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade weapon_focus forecolor 1 1 1 0 0 250 ; timeFade weapon_hint forecolor .9 .9 .9 0 0 250 } + action { play "sound/misc/menu1.wav" ; close control_reaction_menu ; open control_weapon_menu } + } + + itemdef { + name weapon_focus + group focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 432 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name weapon_act + group weapon + background "menu/art/rq3-menu-focus-anim" + rect 432 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name weapon_hint + group hints + text "Change weapon keys" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + style 0 + visible 0 + decoration + } + +//Misc + + itemdef { + name btn_misc + group "topmenu" + type 1 + background "menu/art/rq3-controls-misc" + rect 480 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + onFocus { show misc_focus ; timefade misc_focus forecolor 1 1 1 1 0 250 ; + show misc_hint ; timeFade misc_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade misc_focus forecolor 1 1 1 0 0 250 ; timeFade misc_hint forecolor .9 .9 .9 0 0 250 } + action { play "sound/misc/menu1.wav" ; close control_reaction_menu ; open control_misc_menu } + } + + itemdef { + name misc_focus + group focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 480 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name misc_act + group misc + background "menu/art/rq3-menu-focus-anim" + rect 480 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name misc_hint + group hints + text "Change miscellaneous keys" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + style 0 + visible 0 + decoration + } + +//Reaction + + itemdef { + name btn_reaction + group "topmenu" + type 1 + background "menu/art/rq3-controls-reaction" + rect 528 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + onFocus { show reaction_focus ; timefade reaction_focus forecolor 1 1 1 1 0 250 ; + show reaction_hint ; timeFade reaction_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade reaction_focus forecolor 1 1 1 0 0 250 ; timeFade reaction_hint forecolor .9 .9 .9 0 0 250 } + action { play "sound/misc/menu1.wav" ; close control_reaction_menu ; open control_reaction_menu } + } + + itemdef { + name reaction_focus + group focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 528 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + background "menu/art/rq3-menu-focus-anim" + rect 528 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + decoration + } + + itemdef { + name reaction_hint + group hints + text "Change Reaction-specific keys" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + style 0 + visible 0 + decoration + } + +//----------------------------------------------------------- + +//Background window +//Caption + + itemdef { + rect 264 68 360 20 + style WINDOW_STYLE_GRADIENT + border WINDOW_BORDER_KCGRADIENT + bordersize 1 + backcolor 0 0 .2 .75 + bordercolor .75 .75 .75 1 + text "Reaction-specific keys" + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .25 + textalign 0 + textalignx 88 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + decoration + } + +//Icon + + itemdef { + style WINDOW_STYLE_SHADER + rect 320 66 24 24 + background "menu/art/rq3-controls-reaction.tga" + decoration + visible 1 + } + + +//Window + + itemdef { + name window + rect 264 84 360 284 + style WINDOW_STYLE_SHADER + background "ui/assets/fake_gradient_75" + border WINDOW_BORDER_KCGRADIENT + bordersize 2 + backcolor 0 0 0 .75 + bordercolor .75 .75 .75 1 + visible 1 + decoration + } + +//Player model display + + itemdef { + name "model_preview" + ownerdraw UI_PLAYERMODEL + style 1 + rect 0 80 240 320 + visible 0 + decoration + } + +//Keys +//Reaction keys + + itemdef { + name "bind_bandage" + cvar "bandage" + group reaction + type ITEM_TYPE_BIND + text "Bandage:" + rect 288 100 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_reload" + cvar "+button5" + group reaction + type ITEM_TYPE_BIND + text "Reload:" + rect 288 120 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_weaponmode" + cvar "weapon" + group reaction + type ITEM_TYPE_BIND + text "Weapon Mode:" + rect 288 140 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_opendoor" + cvar "opendoor" + group reaction + type ITEM_TYPE_BIND + text "Open Door:" + rect 288 160 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_dropweapon" + cvar "dropweapon" + group reaction + type ITEM_TYPE_BIND + text "Drop Weapon:" + rect 288 180 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_dropitem" + cvar "dropitem" + group reaction + type ITEM_TYPE_BIND + text "Drop Item:" + rect 288 200 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_irvision" + cvar "irvision" + group reaction + type ITEM_TYPE_BIND + text "IR Vision:" + rect 288 220 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_special" + cvar "specialweapon" + group reaction + type ITEM_TYPE_BIND + text "Special Weapon Cycle:" + rect 288 240 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_loadout" + cvar "ui_RQ3_loadout" + group reaction + type ITEM_TYPE_BIND + text "Weapon/Item Choice:" + rect 288 260 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_joinTeam" + cvar "ui_RQ3_joinTeam" + group reaction + type ITEM_TYPE_BIND + text "Join Team:" + rect 288 280 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_presets" + cvar "ui_RQ3_presets" + group reaction + type ITEM_TYPE_BIND + text "Presets Menu:" + rect 288 300 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + +//Messages + + itemdef { + name keyBindStatus + rect 256 384 360 40 + ownerdraw UI_KEYBINDSTATUS + text " " + forecolor 1 1 1 1 + textscale .25 + textstyle 3 + textalignx 8 + textaligny 12 + visible 0 + decoration + } + + itemdef { + name SliderMessage + rect 264 384 360 40 + text "Drag the slider to increase/decrease" + forecolor 1 1 1 0 + textscale .25 + textstyle 3 + textalign ITEM_ALIGN_CENTER + textalignx 180 + textaligny 12 + visible 0 + decoration + } + + itemdef { + name YesNoMessage + rect 264 384 360 40 + text "Click to toggle yes/no" + forecolor 1 1 1 0 + textscale .25 + textstyle 3 + textalign ITEM_ALIGN_CENTER + textalignx 180 + textaligny 12 + visible 0 + decoration + } + +//Back + + itemdef { + name "btn_back" + rect 12 432 32 32 + style WINDOW_STYLE_SHADER + background "menu/art/rq3-menu-back.tga" + type 1 + visible 1 + action { close control_reaction_menu; open setup_menu ; } + onFocus { setbackground "menu/art/rq3-menu-back-focus-anim" ; + show back_hint ; timeFade back_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { setbackground "menu/art/rq3-menu-back.tga" ; + timeFade back_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name back_hint + text "Go back to setup menu" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + type 0 + style 0 + visible 0 + decoration + } + +} diff --git a/reaction/uifiles/controls_weapon.menu b/reaction/uifiles/controls_weapon.menu new file mode 100644 index 00000000..146d3945 --- /dev/null +++ b/reaction/uifiles/controls_weapon.menu @@ -0,0 +1,733 @@ +#include "ui/menudef.h" +#define RQ3_Controls_Option_Color .75 .75 .75 1 + +{ + + menuDef { + name "control_weapon_menu" + background "rq3-ta-menuback" // Makro: replace "rq3-ta-menuback" with "rq3-menuback" + // to use the old background + fullScreen MENU_TRUE + visible MENU_FALSE // Visible on open + focusColor RQ3_MAIN_FOCUSCOLOR // Menu focus color for text and items + + onOpen { play "sound/misc/menu1.wav" ; uiScript loadControls ; + setitemcolor hints forecolor .9 .9 .9 1 ; hide hints ; + hide focus ; setfocus btn_weapon } + + onClose { uiScript saveControls } + onEsc { uiScript saveControls ; close control_weapon_menu ; open setup_menu } + + +//=================== +// RQ3 stuff +//=================== + + + itemDef { + name top_bar //rq3: Top bar + rect 0 0 640 56 + style 1 + backcolor RQ3_MAIN_BAR_COLOR + //border 2 + //bordersize 1 + //bordercolor 1 0 0 1 + decoration + visible 1 + } + + itemDef { + name top_bar //rq3: Top bar + rect 0 58 640 12 + style WINDOW_STYLE_SHADER + background "ui/assets/rq3-main-shadow-1" + decoration + visible 1 + } + + itemDef { + name top_bar2 //rq3: Top bar - border + rect 0 56 640 2 + style 1 + backcolor RQ3_MAIN_BAR_COLOR2 + //border 2 + //bordersize 1 + //bordercolor 1 0 0 1 + decoration + visible 1 + } + + itemDef { + name bottom_bar //rq3: bottom bar + rect 0 420 640 60 + style 1 + backcolor RQ3_MAIN_BAR_COLOR + //border 2 + //bordersize 1 + //bordercolor 1 0 0 1 + decoration + visible 1 + } + + itemDef { + name bottom_bar2 //rq3: bottom bar - border + rect 0 418 640 2 + style 1 + backcolor RQ3_MAIN_BAR_COLOR2 + //border 2 + //bordersize 1 + //bordercolor 1 0 0 1 + decoration + visible 1 + } + + itemdef { + name "control_icon" + style WINDOW_STYLE_SHADER + rect 8 8 48 48 + background "menu/art/rq3-setup-controls.tga" + decoration + visible 1 + } + + itemdef { + name "control_title" + style WINDOW_STYLE_SHADER + rect 64 12 256 32 + background "menu/art/rq3-title-setup.tga" + decoration + visible 1 + } + + itemdef { + name overlay + style 1 + forecolor 0 0 0 1 + backcolor RQ3_MENU_OVERLAY_COLOR + rect 0 58 640 360 + visible 1 + decoration + } + +//================= +// Objects +//================= + +//Top Menu +//Look + + itemdef { + name btn_look + group "topmenu" + type 1 + background "menu/art/rq3-controls-looking" + rect 336 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + onFocus { show look_focus ; timefade look_focus forecolor 1 1 1 1 0 250 ; + show look_hint ; timeFade look_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade look_focus forecolor 1 1 1 0 0 250 ; timeFade look_hint forecolor .9 .9 .9 0 0 250 } + action { play "sound/misc/menu1.wav" ; close control_weapon_menu ; open control_look_menu } + } + + itemdef { + name look_focus + group focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 336 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + background "menu/art/rq3-menu-focus-anim" + rect 336 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name look_hint + group hints + text "Change view keys" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + style 0 + visible 0 + decoration + } + +//Move + + itemdef { + name btn_move + group "topmenu" + type 1 + background "menu/art/rq3-controls-movement" + rect 384 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + onFocus { show move_focus ; timefade move_focus forecolor 1 1 1 1 0 250 ; + show move_hint ; timeFade move_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade move_focus forecolor 1 1 1 0 0 250 ; timeFade move_hint forecolor .9 .9 .9 0 0 250 } + action { play "sound/misc/menu1.wav" ; close control_weapon_menu ; open control_move_menu } + } + + itemdef { + name move_focus + group focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 384 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name move_act + group move + background "menu/art/rq3-menu-focus-anim" + rect 384 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name move_hint + group hints + text "Change movement keys" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + style 0 + visible 0 + decoration + } + +//Weapons + + itemdef { + name btn_weapon + group "topmenu" + type 1 + background "menu/art/rq3-controls-weapons" + rect 432 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + onFocus { show weapon_focus ; timefade weapon_focus forecolor 1 1 1 1 0 250 ; + show weapon_hint ; timeFade weapon_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade weapon_focus forecolor 1 1 1 0 0 250 ; timeFade weapon_hint forecolor .9 .9 .9 0 0 250 } + action { play "sound/misc/menu1.wav" ; close control_weapon_menu ; open control_weapon_menu } + } + + itemdef { + name weapon_focus + group focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 432 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + background "menu/art/rq3-menu-focus-anim" + rect 432 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + decoration + } + + itemdef { + name weapon_hint + group hints + text "Change weapon keys" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + style 0 + visible 0 + decoration + } + +//Misc + + itemdef { + name btn_misc + group "topmenu" + type 1 + background "menu/art/rq3-controls-misc" + rect 480 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + onFocus { show misc_focus ; timefade misc_focus forecolor 1 1 1 1 0 250 ; + show misc_hint ; timeFade misc_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade misc_focus forecolor 1 1 1 0 0 250 ; timeFade misc_hint forecolor .9 .9 .9 0 0 250 } + action { play "sound/misc/menu1.wav" ; close control_weapon_menu ; open control_misc_menu } + } + + itemdef { + name misc_focus + group focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 480 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name misc_act + group misc + background "menu/art/rq3-menu-focus-anim" + rect 480 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name misc_hint + group hints + text "Change miscellaneous keys" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + style 0 + visible 0 + decoration + } + +//Reaction + + itemdef { + name btn_reaction + group "topmenu" + type 1 + background "menu/art/rq3-controls-reaction" + rect 528 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + onFocus { show reaction_focus ; timefade reaction_focus forecolor 1 1 1 1 0 250 ; + show reaction_hint ; timeFade reaction_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade reaction_focus forecolor 1 1 1 0 0 250 ; timeFade reaction_hint forecolor .9 .9 .9 0 0 250 } + action { play "sound/misc/menu1.wav" ; close control_weapon_menu ; open control_reaction_menu } + } + + itemdef { + name reaction_focus + group focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 528 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name reaction_act + group reaction + background "menu/art/rq3-menu-focus-anim" + rect 528 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name reaction_hint + group hints + text "Change Reaction-specific keys" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + style 0 + visible 0 + decoration + } + +//----------------------------------------------------------- + +//Background window +//Caption + + itemdef { + rect 264 68 360 20 + style WINDOW_STYLE_GRADIENT + border WINDOW_BORDER_KCGRADIENT + bordersize 1 + backcolor 0 0 .2 .75 + bordercolor .75 .75 .75 1 + text "Weapon keys" + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .25 + textalign 0 + textalignx 88 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + decoration + } + +//Icon + + itemdef { + style WINDOW_STYLE_SHADER + rect 320 66 24 24 + background "menu/art/rq3-controls-weapons.tga" + decoration + visible 1 + } + + +//Window + + itemdef { + name window + rect 264 84 360 284 + style WINDOW_STYLE_SHADER + background "ui/assets/fake_gradient_75" + border WINDOW_BORDER_KCGRADIENT + bordersize 2 + backcolor 0 0 0 .75 + bordercolor .75 .75 .75 1 + visible 1 + decoration + } + +//Player model display + + itemdef { + name "model_preview" + ownerdraw UI_PLAYERMODEL + style 1 + rect 0 80 240 320 + visible 0 + decoration + } + +//Keys +//Weapon keys + + itemdef { + name "bind_attack" + cvar "+attack" + group weapon + type ITEM_TYPE_BIND + text "Attack:" + rect 288 100 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_weapnext" + cvar "weapnext" + group weapon + type ITEM_TYPE_BIND + text "Next Weapon:" + rect 288 120 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_weapprev" + cvar "weapprev" + group weapon + type ITEM_TYPE_BIND + text "Previous Weapon:" + rect 288 140 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name opt_autoswitch + group weapon + type ITEM_TYPE_YESNO + text "Autoswitch Weapons:" + cvar "cg_autoswitch" + rect 448 160 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 16 + textscale .25 + forecolor RQ3_Controls_Option_Color + visible 1 + onFocus { show YesNoMessage ; timeFade YesNoMessage forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade YesNoMessage forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_weap1" + cvar "weapon 1" + group weapon + type ITEM_TYPE_BIND + text "MK23 Pistol:" + rect 288 180 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_weap2" + cvar "weapon 2" + group weapon + type ITEM_TYPE_BIND + text "M3 Assault Shotgun:" + rect 288 200 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_weap3" + cvar "weapon 3" + group weapon + type ITEM_TYPE_BIND + text "MP5/10 Submachinegun:" + rect 288 220 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_weap4" + cvar "weapon 4" + group weapon + type ITEM_TYPE_BIND + text "Handcannon:" + rect 288 240 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_weap5" + cvar "weapon 5" + group weapon + type ITEM_TYPE_BIND + text "SSG Sniper Rifle:" + rect 288 260 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_weap6" + cvar "weapon 6" + group weapon + type ITEM_TYPE_BIND + text "M4 Assault Rifle:" + rect 288 280 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_weap7" + cvar "weapon 7" + group weapon + type ITEM_TYPE_BIND + text "Dual MK23 Pistols:" + rect 288 300 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_weap8" + cvar "weapon 8" + group weapon + type ITEM_TYPE_BIND + text "Combat Knife:" + rect 288 320 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + itemdef { + name "bind_weap9" + cvar "weapon 9" + group weapon + type ITEM_TYPE_BIND + text "M26 Frag Grenade:" + rect 288 340 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 1 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + + +//Messages + + itemdef { + name keyBindStatus + rect 256 384 360 40 + ownerdraw UI_KEYBINDSTATUS + text " " + forecolor 1 1 1 1 + textscale .25 + textstyle 3 + textalignx 8 + textaligny 12 + visible 0 + decoration + } + + itemdef { + name SliderMessage + rect 264 384 360 40 + text "Drag the slider to increase/decrease" + forecolor 1 1 1 0 + textscale .25 + textstyle 3 + textalign ITEM_ALIGN_CENTER + textalignx 180 + textaligny 12 + visible 0 + decoration + } + + itemdef { + name YesNoMessage + rect 264 384 360 40 + text "Click to toggle yes/no" + forecolor 1 1 1 0 + textscale .25 + textstyle 3 + textalign ITEM_ALIGN_CENTER + textalignx 180 + textaligny 12 + visible 0 + decoration + } + +//Back + + itemdef { + name "btn_back" + rect 12 432 32 32 + style WINDOW_STYLE_SHADER + background "menu/art/rq3-menu-back.tga" + type 1 + visible 1 + action { close control_weapon_menu; open setup_menu ; } + onFocus { setbackground "menu/art/rq3-menu-back-focus-anim" ; + show back_hint ; timeFade back_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { setbackground "menu/art/rq3-menu-back.tga" ; + timeFade back_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name back_hint + text "Go back to setup menu" + forecolor RQ3_MAIN_HINT_COLOR + textalign 1 + textalignx 240 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 80 420 480 40 + type 0 + style 0 + visible 0 + decoration + } + +} diff --git a/reaction/uifiles/ingame.txt b/reaction/uifiles/ingame.txt index 252794e8..857d9ac9 100644 --- a/reaction/uifiles/ingame.txt +++ b/reaction/uifiles/ingame.txt @@ -19,5 +19,7 @@ loadMenu { "ui/ingame_callvote.menu" } loadMenu { "ui/ingame_leave.menu" } loadMenu { "ui/ingame_matchmode.menu" } + loadMenu { "ui/ingame_presets.menu" } + loadMenu { "ui/ingame_presets_edit.menu" } } diff --git a/reaction/uifiles/ingame_about.menu b/reaction/uifiles/ingame_about.menu index 9a952572..3e471f68 100644 --- a/reaction/uifiles/ingame_about.menu +++ b/reaction/uifiles/ingame_about.menu @@ -7,19 +7,17 @@ visible 0 fullscreen 0 outOfBoundsClick // this closes the window if it gets a click out of the rectangle -// rect 256 64 256 296 - rect 256 64 256 320 + rect 256 64 256 248 disableColor .5 .5 .5 1 focusColor 1 .75 0 1 // Menu focus color for text and items style 1 shadowStyle 1 - onOpen { play "sound/misc/menu1.wav" } + onOpen { play "sound/misc/menu1.wav" ; uiScript "refreshIngameServerInfo" } //Window itemDef { -// rect 0 0 256 296 - rect 0 0 256 320 + rect 0 0 256 248 style WINDOW_STYLE_FILLED backcolor Ig_Window_Color visible 1 @@ -54,265 +52,72 @@ //Objects itemDef { - name about - rect 0 40 256 20 - style 0 - //type 4 - textalign ITEM_ALIGN_RIGHT - text "GameType:" - type ITEM_TYPE_MULTI - cvar "g_gameType" - cvarFloatList { "RQ3 Deathmatch" 0 "Tournament" 1 "RQ3 Deathmatch" 2 "Team Deathmatch" 3 "RQ3 Teamplay" 4 "RQ3 CTB" 5 "One Flag CTF" 6 "Overload" 7 "Harvester" 8 "Team Tournament" 9 } - textalignx 128 - textaligny 12 - textscale .25 - backcolor 0 0 .75 .25 - visible 1 - decoration - } - - itemDef { - name about - rect 0 70 256 20 - type 4 - style 0 - text "Capture Limit:" - cvarTest "g_gameType" - hideCvar { "0" ; "1" ; "2" ; "3" ; "4" } - maxPaintChars 12 - cvar cg_RQ3_capturelimit - textalign ITEM_ALIGN_RIGHT - textalignx 128 - textaligny 12 - textscale .25 - forecolor 1 1 1 1 - visible 1 - decoration - } - - itemDef { - name about - rect 0 70 256 20 - type 4 - style 0 - text "Frag Limit:" -// cvarTest "g_gametype" -// showCvar { "0" ; "1" ; "2" ; "3" } - maxPaintChars 12 - cvar cg_RQ3_fraglimit - textalign ITEM_ALIGN_RIGHT - textalignx 128 - textaligny 12 - textscale .25 - forecolor 1 1 1 1 - visible 1 - decoration - } - - itemDef { - name about - rect 0 85 256 20 - type 4 - style 0 - text "Time Limit:" - maxPaintChars 12 - cvar cg_RQ3_timelimit - textalign ITEM_ALIGN_RIGHT - textalignx 128 - textaligny 12 - textscale .25 - forecolor 1 1 1 1 - visible 1 - decoration - } - - itemDef { - name about - rect 20 100 256 20 - type 4 - style 0 - text "Team 1:" - maxPaintChars 12 - cvar g_RQ3_team1name - cvarTest g_gametype - hideCvar { "0" ; "1" ; "2" } - textalign ITEM_ALIGN_RIGHT - textalignx 108 - textaligny 12 - textscale .25 - forecolor 1 1 1 1 - visible 1 - decoration - } - - itemDef { - name about - rect 20 115 256 20 - type 4 - style 0 - text "Team 2:" - maxPaintChars 12 - cvar g_RQ3_team2name - cvarTest g_gametype - hideCvar { "0" ; "1" ; "2" } - textalign ITEM_ALIGN_RIGHT - textalignx 108 - textaligny 12 - textscale .25 - forecolor 1 1 1 1 - visible 1 - decoration - } - - itemDef { - name about - rect 0 140 256 20 - type 4 - style 0 - text "Protocol:" - cvar protocol - maxPaintChars 12 - textalign ITEM_ALIGN_RIGHT - textalignx 128 - textaligny 12 - textscale .25 - forecolor 1 1 1 1 - visible 1 - decoration - } - - itemDef { - name about - rect 0 155 256 20 - type 4 - style 0 - text "Max Clients:" - cvar sv_maxclients - maxPaintChars 12 - textalign ITEM_ALIGN_RIGHT - textalignx 128 - textaligny 12 - textscale .25 - forecolor 1 1 1 1 - visible 1 - decoration - } - - itemDef { - name about - rect 0 170 256 20 - type 4 - style 0 - text "Host Name:" - cvar cg_RQ3_hostname - maxPaintChars 12 - textalign ITEM_ALIGN_RIGHT - textalignx 128 - textaligny 12 - textscale .25 - forecolor 1 1 1 1 - visible 1 - decoration - } - - itemDef { - name about - rect 0 205 256 20 - type 11 - style 0 - text "Password Required:" - cvar cg_RQ3_needpass - textalign ITEM_ALIGN_RIGHT - textalignx 128 - textaligny 12 - textscale .25 - forecolor 1 1 1 1 - visible 1 - decoration - } - - itemDef { - name about - rect 0 220 256 20 - type 4 - style 0 - text "DM Flags:" - cvar cg_RQ3_dmflags - textalign ITEM_ALIGN_RIGHT - textalignx 128 - textaligny 12 - textscale .25 - forecolor 1 1 1 1 - visible 1 - decoration - } - - itemDef { - name about - rect 0 235 256 20 - type 11 - style 0 - text "Bot/Min Players:" - cvar cg_RQ3_bot_minplayers - textalign ITEM_ALIGN_RIGHT - textalignx 128 - textaligny 12 - textscale .25 - forecolor 1 1 1 1 - visible 1 - decoration - } - - itemDef { - name about - rect 0 250 256 20 - type 4 - style 0 - text "RQ3 Version:" - cvar g_RQ3_version - maxPaintChars 32 - textalign ITEM_ALIGN_RIGHT - textalignx 128 - textaligny 12 - textscale .25 - forecolor 1 1 1 1 - visible 1 - decoration - } - - itemDef { - name about - rect 0 265 256 20 - type 11 - style 0 - text "Show Own Kills:" - cvar cg_RQ3_showOwnKills - maxPaintChars 32 - textalign ITEM_ALIGN_RIGHT - textalignx 128 - textaligny 12 - textscale .25 - forecolor 1 1 1 1 - visible 1 - decoration - } - - itemDef { - name about - rect 0 295 256 20 - type 4 - style 0 - text "Version:" - cvar version - maxPaintChars 32 + name view_summary + rect 12 32 256 20 + style WINDOW_STYLE_EMPTY textalign ITEM_ALIGN_LEFT - textalignx 128 + text "View: summary" + shortcutKey "V" + type ITEM_TYPE_BUTTON + cvarTest "ui_RQ3_ingameDetails" + showCvar { "0" } + textalignx 4 textaligny 12 - textalign 1 - textscale .25 + textscale .225 + backcolor 0 0 .75 .25 + action { play "sound/misc/menu1.wav" ; setCvar ui_RQ3_ingameDetails 1 ; + uiScript "refreshIngameServerInfo" ; setfocus view_details } + visible 1 + } + + itemDef { + name view_details + rect 12 32 256 20 + style WINDOW_STYLE_EMPTY + textalign ITEM_ALIGN_LEFT + text "View: details" + shortcutKey "V" + type ITEM_TYPE_BUTTON + cvarTest "ui_RQ3_ingameDetails" + hideCvar { "0" } + textalignx 4 + textaligny 12 + textscale .225 + backcolor 0 0 .75 .25 + action { play "sound/misc/menu1.wav" ; setCvar ui_RQ3_ingameDetails 0 ; + uiScript "refreshIngameServerInfo" ; setfocus view_summary } + visible 1 + } + + itemDef { + rect 12 52 232 184 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 120 + elementheight 15 + textscale .2 + elementtype LISTBOX_TEXT + feeder FEEDER_INGAME_SERVERINFO + columns 2 4 16 16 120 16 16 + border 1 + bordercolor .25 .25 .25 1 forecolor 1 1 1 1 + backcolor 0 0 0 .25 + outlinecolor .75 .75 1 .25 + visible 1 + } + + // Scrollbar separator // + + itemDef { + rect 226 52 18 184 + style WINDOW_STYLE_EMPTY + border 1 + borderSize 1 + bordercolor .25 .25 .25 1 visible 1 decoration - } + } + } } diff --git a/reaction/uifiles/ingame_controls.menu b/reaction/uifiles/ingame_controls.menu index 7a2bd2d2..248924de 100644 --- a/reaction/uifiles/ingame_controls.menu +++ b/reaction/uifiles/ingame_controls.menu @@ -1015,5 +1015,21 @@ textscale .225 visible 0 } + + itemdef { + name reaction + group grpControls + cvar "ui_RQ3_presets" + type ITEM_TYPE_BIND + text "Presets Menu:" + rect 176 280 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + } } diff --git a/reaction/uifiles/ingame_player.menu b/reaction/uifiles/ingame_player.menu index ff6843ec..baac504b 100644 --- a/reaction/uifiles/ingame_player.menu +++ b/reaction/uifiles/ingame_player.menu @@ -185,7 +185,7 @@ bordersize 1 cvar "cg_RQ3_radiovoice_male" cvarFloatList { "New" 1 "Pikey" 2 "Pirate" 3 "Original" 0 } - textstyle ITEM_TEXTSTYLE_SHADOWED + textstyle ITEM_TEXTSTYLE_NORMAL textalign ITEM_ALIGN_LEFT textalignx 6 textaligny 12 @@ -207,7 +207,7 @@ bordersize 1 cvar "cg_RQ3_dynamicRadio" cvarFloatList { "On" 1 "Off" 0 } - textstyle ITEM_TEXTSTYLE_SHADOWED + textstyle ITEM_TEXTSTYLE_NORMAL textalign ITEM_ALIGN_LEFT textalignx 6 textaligny 12 diff --git a/reaction/uifiles/ingame_presets.menu b/reaction/uifiles/ingame_presets.menu new file mode 100644 index 00000000..8770ae07 --- /dev/null +++ b/reaction/uifiles/ingame_presets.menu @@ -0,0 +1,251 @@ +#include "ui/menudef.h" + +{ + + menuDef { + name "ingame_presets" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 128 64 256 284 + disableColor .5 .5 .5 1 + focusColor 1 .75 0 1 // Menu focus color for text and items + style 1 + shadowStyle 1 + onOpen { play "sound/misc/menu1.wav" } + +//Window + + itemdef { + rect 0 0 256 284 + style WINDOW_STYLE_FILLED + backcolor Ig_Window_Color + visible 1 + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + decoration + } + + itemdef { + rect 137 1 120 24 + style WINDOW_STYLE_SHADER + background "ui/assets/rq3-ingame-title" + visible 1 + decoration + } + + itemdef { + rect 137 1 120 24 + style WINDOW_STYLE_EMPTY + forecolor Ig_Window_TitleColor + textstyle ITEM_TEXTSTYLE_NORMAL + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 24 + textaligny 16 + text "Run Presets" + visible 1 + decoration + } + +//Objects + +//Presets + + itemdef { + shortcutKey "1" + rect 24 48 160 16 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + ownerdraw UI_RQ3_RADIOPRESET1 + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 12 + text "1." + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" ; uiScript closeingame ; uiScript "runPreset" 1 } + } + + itemdef { + shortcutKey "2" + rect 24 68 160 16 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + ownerdraw UI_RQ3_RADIOPRESET2 + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 12 + text "2." + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" ; uiScript closeingame ; uiScript "runPreset" 2 } + } + + itemdef { + shortcutKey "3" + rect 24 88 160 16 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + ownerdraw UI_RQ3_RADIOPRESET3 + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 12 + text "3." + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" ; uiScript closeingame ; uiScript "runPreset" 3 } + } + + itemdef { + shortcutKey "4" + rect 24 108 160 16 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + ownerdraw UI_RQ3_RADIOPRESET4 + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 12 + text "4." + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" ; uiScript closeingame ; uiScript "runPreset" 4 } + } + + itemdef { + shortcutKey "5" + rect 24 128 160 16 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + ownerdraw UI_RQ3_RADIOPRESET5 + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 12 + text "5." + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" ; uiScript closeingame ; uiScript "runPreset" 5 } + } + + itemdef { + shortcutKey "6" + rect 24 148 160 16 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + ownerdraw UI_RQ3_RADIOPRESET6 + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 12 + text "6." + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" ; uiScript closeingame ; uiScript "runPreset" 6 } + } + + itemdef { + shortcutKey "7" + rect 24 168 160 16 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + ownerdraw UI_RQ3_RADIOPRESET7 + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 12 + text "7." + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" ; uiScript closeingame ; uiScript "runPreset" 7 } + } + + itemdef { + shortcutKey "8" + rect 24 188 160 16 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + ownerdraw UI_RQ3_RADIOPRESET8 + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 12 + text "8." + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" ; uiScript closeingame ; uiScript "runPreset" 8 } + } + + itemdef { + shortcutKey "9" + rect 24 208 160 16 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + ownerdraw UI_RQ3_RADIOPRESET9 + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 12 + text "9." + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" ; uiScript closeingame ; uiScript "runPreset" 9 } + } + + itemdef { + shortcutKey "0" + rect 24 228 160 16 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + ownerdraw UI_RQ3_RADIOPRESET10 + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 12 + text "0." + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" ; uiScript closeingame ; uiScript "runPreset" 10 } + } + + //Edit + + itemdef { + name edit + rect 176 252 64 20 + style WINDOW_STYLE_FILLED + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_NORMAL + textscale .225 + textalign ITEM_ALIGN_CENTER + textalignx 32 + textaligny 14 + text "Edit" + shortcutKey "E" + border 1 + bordersize 1 + backcolor Ig_Sub_Color1 + forecolor Ig_Sub_TextColor + bordercolor Ig_Sub_BorderColor1 + visible 1 + action { close ingame_presets ; open ingame_presets_edit } + onFocus { setcolor backcolor Ig_Sub_Color2 ; setcolor bordercolor Ig_Sub_BorderColor2 } + leaveFocus { setcolor backcolor Ig_Sub_Color1 ; setcolor bordercolor Ig_Sub_BorderColor1 } + } + +} \ No newline at end of file diff --git a/reaction/uifiles/ingame_presets_edit.menu b/reaction/uifiles/ingame_presets_edit.menu new file mode 100644 index 00000000..5e0c1ed2 --- /dev/null +++ b/reaction/uifiles/ingame_presets_edit.menu @@ -0,0 +1,671 @@ +#include "ui/menudef.h" + +{ + + menuDef { + name "ingame_presets_edit" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 104 64 420 272 + disableColor .5 .5 .5 1 + focusColor 1 .75 0 1 // Menu focus color for text and items + style 1 + shadowStyle 1 + onOpen { play "sound/misc/menu1.wav" ; setfocus slot1 } + +//Window + + itemdef { + rect 0 0 420 272 + style WINDOW_STYLE_FILLED + backcolor Ig_Window_Color + visible 1 + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + decoration + } + + itemdef { + rect 301 1 120 24 + style WINDOW_STYLE_SHADER + background "ui/assets/rq3-ingame-title" + visible 1 + decoration + } + + itemdef { + rect 301 1 120 24 + style WINDOW_STYLE_EMPTY + forecolor Ig_Window_TitleColor + textstyle ITEM_TEXTSTYLE_NORMAL + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 24 + textaligny 16 + text "Edit Presets" + visible 1 + decoration + } + +//Objects + + itemDef { + text "Caption:" + textscale .225 + rect 48 24 80 20 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef { + text "Script:" + textscale .225 + rect 216 24 80 20 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + decoration + } + +//Presets + + // 1 // + + itemDef { + text "1." + textscale .225 + rect 24 48 80 20 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + shortcutKey "1" + action { setfocus slot1 } + decoration + } + + itemdef { + type ITEM_TYPE_EDITFIELD + style WINDOW_STYLE_FILLED + name slot1 + text "" + cvar "ui_RQ3_radioPreset1Desc" + rect 48 48 160 16 + maxPaintChars 16 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + textscale .225 + outlinecolor 1 .5 .5 .5 + forecolor 1 1 1 1 + border 1 + bordercolor .25 .25 .25 1 + backcolor 1 1 1 .05 + visible 1 + onfocus { setcolor backcolor 1 1 1 .15 } + leavefocus { setcolor backcolor 1 1 1 .05 } + } + + itemdef { + type ITEM_TYPE_EDITFIELD + style WINDOW_STYLE_FILLED + text "" + cvar "ui_RQ3_radioPreset1Script" + rect 216 48 180 16 + maxPaintChars 20 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + textscale .225 + outlinecolor 1 .5 .5 .5 + forecolor 1 1 1 1 + border 1 + bordercolor .25 .25 .25 1 + backcolor 1 1 1 .05 + visible 1 + onfocus { setcolor backcolor 1 1 1 .15 } + leavefocus { setcolor backcolor 1 1 1 .05 } + } + + // 2 // + + itemDef { + text "2." + textscale .225 + rect 24 68 80 20 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + shortcutKey "2" + action { setfocus slot2 } + decoration + } + + itemdef { + type ITEM_TYPE_EDITFIELD + style WINDOW_STYLE_FILLED + name slot2 + text "" + cvar "ui_RQ3_radioPreset2Desc" + rect 48 68 160 16 + maxPaintChars 16 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + textscale .225 + outlinecolor 1 .5 .5 .5 + forecolor 1 1 1 1 + border 1 + bordercolor .25 .25 .25 1 + backcolor 1 1 1 .05 + visible 1 + onfocus { setcolor backcolor 1 1 1 .15 } + leavefocus { setcolor backcolor 1 1 1 .05 } + } + + itemdef { + type ITEM_TYPE_EDITFIELD + style WINDOW_STYLE_FILLED + text "" + cvar "ui_RQ3_radioPreset2Script" + rect 216 68 180 16 + maxPaintChars 20 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + textscale .225 + outlinecolor 1 .5 .5 .5 + forecolor 1 1 1 1 + border 1 + bordercolor .25 .25 .25 1 + backcolor 1 1 1 .05 + visible 1 + onfocus { setcolor backcolor 1 1 1 .15 } + leavefocus { setcolor backcolor 1 1 1 .05 } + } + + // 3 // + + itemDef { + text "3." + textscale .225 + rect 24 88 80 20 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + shortcutKey "3" + action { setfocus slot3 } + decoration + } + + itemdef { + type ITEM_TYPE_EDITFIELD + style WINDOW_STYLE_FILLED + name slot3 + text "" + cvar "ui_RQ3_radioPreset3Desc" + rect 48 88 160 16 + maxPaintChars 16 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + textscale .225 + outlinecolor 1 .5 .5 .5 + forecolor 1 1 1 1 + border 1 + bordercolor .25 .25 .25 1 + backcolor 1 1 1 .05 + visible 1 + onfocus { setcolor backcolor 1 1 1 .15 } + leavefocus { setcolor backcolor 1 1 1 .05 } + } + + itemdef { + type ITEM_TYPE_EDITFIELD + style WINDOW_STYLE_FILLED + text "" + cvar "ui_RQ3_radioPreset3Script" + rect 216 88 180 16 + maxPaintChars 20 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + textscale .225 + outlinecolor 1 .5 .5 .5 + forecolor 1 1 1 1 + border 1 + bordercolor .25 .25 .25 1 + backcolor 1 1 1 .05 + visible 1 + onfocus { setcolor backcolor 1 1 1 .15 } + leavefocus { setcolor backcolor 1 1 1 .05 } + } + + // 4 // + + itemDef { + text "4." + textscale .225 + rect 24 108 80 20 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + shortcutKey "4" + action { setfocus slot4 } + decoration + } + + itemdef { + type ITEM_TYPE_EDITFIELD + style WINDOW_STYLE_FILLED + name slot4 + text "" + cvar "ui_RQ3_radioPreset4Desc" + rect 48 108 160 16 + maxPaintChars 16 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + textscale .225 + outlinecolor 1 .5 .5 .5 + forecolor 1 1 1 1 + border 1 + bordercolor .25 .25 .25 1 + backcolor 1 1 1 .05 + visible 1 + onfocus { setcolor backcolor 1 1 1 .15 } + leavefocus { setcolor backcolor 1 1 1 .05 } + } + + itemdef { + type ITEM_TYPE_EDITFIELD + style WINDOW_STYLE_FILLED + text "" + cvar "ui_RQ3_radioPreset4Script" + rect 216 108 180 16 + maxPaintChars 20 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + textscale .225 + outlinecolor 1 .5 .5 .5 + forecolor 1 1 1 1 + border 1 + bordercolor .25 .25 .25 1 + backcolor 1 1 1 .05 + visible 1 + onfocus { setcolor backcolor 1 1 1 .15 } + leavefocus { setcolor backcolor 1 1 1 .05 } + } + + // 5 // + + itemDef { + text "5." + textscale .225 + rect 24 128 80 20 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + shortcutKey "5" + action { setfocus slot5 } + decoration + } + + itemdef { + type ITEM_TYPE_EDITFIELD + style WINDOW_STYLE_FILLED + name slot5 + text "" + cvar "ui_RQ3_radioPreset5Desc" + rect 48 128 160 16 + maxPaintChars 16 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + textscale .225 + outlinecolor 1 .5 .5 .5 + forecolor 1 1 1 1 + border 1 + bordercolor .25 .25 .25 1 + backcolor 1 1 1 .05 + visible 1 + onfocus { setcolor backcolor 1 1 1 .15 } + leavefocus { setcolor backcolor 1 1 1 .05 } + } + + itemdef { + type ITEM_TYPE_EDITFIELD + style WINDOW_STYLE_FILLED + text "" + cvar "ui_RQ3_radioPreset5Script" + rect 216 128 180 16 + maxPaintChars 20 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + textscale .225 + outlinecolor 1 .5 .5 .5 + forecolor 1 1 1 1 + border 1 + bordercolor .25 .25 .25 1 + backcolor 1 1 1 .05 + visible 1 + onfocus { setcolor backcolor 1 1 1 .15 } + leavefocus { setcolor backcolor 1 1 1 .05 } + } + + // 6 // + + itemDef { + text "6." + textscale .225 + rect 24 148 80 20 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + shortcutKey "6" + action { setfocus slot6 } + decoration + } + + itemdef { + type ITEM_TYPE_EDITFIELD + style WINDOW_STYLE_FILLED + name slot6 + text "" + cvar "ui_RQ3_radioPreset6Desc" + rect 48 148 160 16 + maxPaintChars 16 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + textscale .225 + outlinecolor 1 .5 .5 .5 + forecolor 1 1 1 1 + border 1 + bordercolor .25 .25 .25 1 + backcolor 1 1 1 .05 + visible 1 + onfocus { setcolor backcolor 1 1 1 .15 } + leavefocus { setcolor backcolor 1 1 1 .05 } + } + + itemdef { + type ITEM_TYPE_EDITFIELD + style WINDOW_STYLE_FILLED + text "" + cvar "ui_RQ3_radioPreset6Script" + rect 216 148 180 16 + maxPaintChars 20 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + textscale .225 + outlinecolor 1 .5 .5 .5 + forecolor 1 1 1 1 + border 1 + bordercolor .25 .25 .25 1 + backcolor 1 1 1 .05 + visible 1 + onfocus { setcolor backcolor 1 1 1 .15 } + leavefocus { setcolor backcolor 1 1 1 .05 } + } + + // 7 // + + itemDef { + text "7." + textscale .225 + rect 24 168 80 20 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + shortcutKey "7" + action { setfocus slot7 } + decoration + } + + itemdef { + type ITEM_TYPE_EDITFIELD + style WINDOW_STYLE_FILLED + name slot7 + text "" + cvar "ui_RQ3_radioPreset7Desc" + rect 48 168 160 16 + maxPaintChars 16 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + textscale .225 + outlinecolor 1 .5 .5 .5 + forecolor 1 1 1 1 + border 1 + bordercolor .25 .25 .25 1 + backcolor 1 1 1 .05 + visible 1 + onfocus { setcolor backcolor 1 1 1 .15 } + leavefocus { setcolor backcolor 1 1 1 .05 } + } + + itemdef { + type ITEM_TYPE_EDITFIELD + style WINDOW_STYLE_FILLED + text "" + cvar "ui_RQ3_radioPreset7Script" + rect 216 168 180 16 + maxPaintChars 20 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + textscale .225 + outlinecolor 1 .5 .5 .5 + forecolor 1 1 1 1 + border 1 + bordercolor .25 .25 .25 1 + backcolor 1 1 1 .05 + visible 1 + onfocus { setcolor backcolor 1 1 1 .15 } + leavefocus { setcolor backcolor 1 1 1 .05 } + } + + // 8 // + + itemDef { + text "8." + textscale .225 + rect 24 188 80 20 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + shortcutKey "8" + action { setfocus slot8 } + decoration + } + + itemdef { + type ITEM_TYPE_EDITFIELD + style WINDOW_STYLE_FILLED + name slot8 + text "" + cvar "ui_RQ3_radioPreset8Desc" + rect 48 188 160 16 + maxPaintChars 16 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + textscale .225 + outlinecolor 1 .5 .5 .5 + forecolor 1 1 1 1 + border 1 + bordercolor .25 .25 .25 1 + backcolor 1 1 1 .05 + visible 1 + onfocus { setcolor backcolor 1 1 1 .15 } + leavefocus { setcolor backcolor 1 1 1 .05 } + } + + itemdef { + type ITEM_TYPE_EDITFIELD + style WINDOW_STYLE_FILLED + text "" + cvar "ui_RQ3_radioPreset8Script" + rect 216 188 180 16 + maxPaintChars 20 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + textscale .225 + outlinecolor 1 .5 .5 .5 + forecolor 1 1 1 1 + border 1 + bordercolor .25 .25 .25 1 + backcolor 1 1 1 .05 + visible 1 + onfocus { setcolor backcolor 1 1 1 .15 } + leavefocus { setcolor backcolor 1 1 1 .05 } + } + + // 9 // + + itemDef { + text "9." + textscale .225 + rect 24 208 80 20 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + shortcutKey "9" + action { setfocus slot9 } + decoration + } + + itemdef { + type ITEM_TYPE_EDITFIELD + style WINDOW_STYLE_FILLED + name slot9 + text "" + cvar "ui_RQ3_radioPreset9Desc" + rect 48 208 160 16 + maxPaintChars 16 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + textscale .225 + outlinecolor 1 .5 .5 .5 + forecolor 1 1 1 1 + border 1 + bordercolor .25 .25 .25 1 + backcolor 1 1 1 .05 + visible 1 + onfocus { setcolor backcolor 1 1 1 .15 } + leavefocus { setcolor backcolor 1 1 1 .05 } + } + + itemdef { + type ITEM_TYPE_EDITFIELD + style WINDOW_STYLE_FILLED + text "" + cvar "ui_RQ3_radioPreset9Script" + rect 216 208 180 16 + maxPaintChars 20 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + textscale .225 + outlinecolor 1 .5 .5 .5 + forecolor 1 1 1 1 + border 1 + bordercolor .25 .25 .25 1 + backcolor 1 1 1 .05 + visible 1 + onfocus { setcolor backcolor 1 1 1 .15 } + leavefocus { setcolor backcolor 1 1 1 .05 } + } + + // 10 // + + itemDef { + text "0." + textscale .225 + rect 24 228 80 20 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + shortcutKey "0" + action { setfocus slot10 } + decoration + } + + itemdef { + type ITEM_TYPE_EDITFIELD + style WINDOW_STYLE_FILLED + name slot10 + text "" + cvar "ui_RQ3_radioPreset10Desc" + rect 48 228 160 16 + maxPaintChars 16 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + textscale .225 + outlinecolor 1 .5 .5 .5 + forecolor 1 1 1 1 + border 1 + bordercolor .25 .25 .25 1 + backcolor 1 1 1 .05 + visible 1 + onfocus { setcolor backcolor 1 1 1 .15 } + leavefocus { setcolor backcolor 1 1 1 .05 } + } + + itemdef { + type ITEM_TYPE_EDITFIELD + style WINDOW_STYLE_FILLED + text "" + cvar "ui_RQ3_radioPreset10Script" + rect 216 228 180 16 + maxPaintChars 20 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + textscale .225 + outlinecolor 1 .5 .5 .5 + forecolor 1 1 1 1 + border 1 + bordercolor .25 .25 .25 1 + backcolor 1 1 1 .05 + visible 1 + onfocus { setcolor backcolor 1 1 1 .15 } + leavefocus { setcolor backcolor 1 1 1 .05 } + } + + +} \ No newline at end of file diff --git a/reaction/uifiles/menudef.h b/reaction/uifiles/menudef.h index 98a955de..43967c03 100644 --- a/reaction/uifiles/menudef.h +++ b/reaction/uifiles/menudef.h @@ -195,6 +195,18 @@ //Makro - for SSG crosshair selection #define UI_SSG_CROSSHAIR 150 +//Makro - radio presets +#define UI_RQ3_RADIOPRESET1 151 +#define UI_RQ3_RADIOPRESET2 152 +#define UI_RQ3_RADIOPRESET3 153 +#define UI_RQ3_RADIOPRESET4 154 +#define UI_RQ3_RADIOPRESET5 155 +#define UI_RQ3_RADIOPRESET6 156 +#define UI_RQ3_RADIOPRESET7 157 +#define UI_RQ3_RADIOPRESET8 158 +#define UI_RQ3_RADIOPRESET9 159 +#define UI_RQ3_RADIOPRESET10 160 + #define UI_OWNERDRAW_BASE 200 #define UI_HANDICAP 200 #define UI_EFFECTS 201 diff --git a/reaction/uifiles/menus.txt b/reaction/uifiles/menus.txt index 15b56eaf..45e4cc65 100644 --- a/reaction/uifiles/menus.txt +++ b/reaction/uifiles/menus.txt @@ -14,8 +14,13 @@ loadMenu { "ui/options.menu" } loadMenu { "ui/player.menu" } loadMenu { "ui/setup.menu" } - loadMenu { "ui/controls.menu" } - loadMenu { "ui/cdkey.menu" } + + loadMenu { "ui/controls_look.menu" } + loadMenu { "ui/controls_move.menu" } + loadMenu { "ui/controls_weapon.menu" } + loadMenu { "ui/controls_misc.menu" } + loadMenu { "ui/controls_reaction.menu" } + loadMenu { "ui/system.menu" } loadMenu { "ui/credit.menu" } loadMenu { "ui/connect.menu" } diff --git a/reaction/uifiles/setup.menu b/reaction/uifiles/setup.menu index fb5336d2..62bc2af5 100644 --- a/reaction/uifiles/setup.menu +++ b/reaction/uifiles/setup.menu @@ -166,7 +166,7 @@ onFocus { show control_focus ; timefade control_focus forecolor 1 1 1 1 0 250 ; show control_hint ; timeFade control_hint forecolor .9 .9 .9 1 0 250 } leaveFocus { timefade control_focus forecolor 1 1 1 0 0 250 ; timeFade control_hint forecolor .9 .9 .9 0 0 250 } - action { close setup_menu ; open control_menu ; } + action { close setup_menu ; open control_look_menu } } itemdef { @@ -276,47 +276,6 @@ decoration } -//CD Key - - itemdef { - name btn_cdkey - group "topmenu" - type 1 - background "menu/art/rq3-setup-cdkey" - rect 528 12 32 32 - style WINDOW_STYLE_SHADER - visible 1 - onFocus { show cdkey_focus ; timefade cdkey_focus forecolor 1 1 1 1 0 250 ; - show cdkey_hint ; timeFade cdkey_hint forecolor .9 .9 .9 1 0 250 } - leaveFocus { timefade cdkey_focus forecolor 1 1 1 0 0 250 ; timeFade cdkey_hint forecolor .9 .9 .9 0 0 250 } - action { close setup_menu ; open cdkey_menu } - } - - itemdef { - name cdkey_focus - background "menu/art/rq3-menu-focus" - forecolor 1 1 1 0 - rect 528 12 32 32 - style WINDOW_STYLE_SHADER - visible 0 - decoration - } - - itemdef { - name cdkey_hint - text "Set the Quake 3 CD-key" - forecolor RQ3_MAIN_HINT_COLOR - textalign 1 - textalignx 240 - textaligny 20 - textscale RQ3_MAIN_TEXTSIZE - rect 80 420 480 40 - type 0 - style 0 - visible 0 - decoration - } - //Reset to defaults itemdef { @@ -324,7 +283,7 @@ group "topmenu" type 1 background "menu/art/rq3-setup-defaults" - rect 576 12 32 32 + rect 528 12 32 32 style WINDOW_STYLE_SHADER visible 1 onFocus { show default_focus ; timefade default_focus forecolor 1 1 1 1 0 250 ; @@ -337,7 +296,7 @@ name default_focus background "menu/art/rq3-menu-focus" forecolor 1 1 1 0 - rect 576 12 32 32 + rect 528 12 32 32 style WINDOW_STYLE_SHADER visible 0 decoration