diff --git a/reaction/uifiles/assets/black.jpg b/reaction/uifiles/assets/black.jpg new file mode 100644 index 00000000..ad99e5df Binary files /dev/null and b/reaction/uifiles/assets/black.jpg differ diff --git a/reaction/uifiles/assets/fake_gradient.tga b/reaction/uifiles/assets/fake_gradient.tga new file mode 100644 index 00000000..69cc7e44 Binary files /dev/null and b/reaction/uifiles/assets/fake_gradient.tga differ diff --git a/reaction/uifiles/assets/fake_gradient_75.tga b/reaction/uifiles/assets/fake_gradient_75.tga new file mode 100644 index 00000000..5a33dbaf Binary files /dev/null and b/reaction/uifiles/assets/fake_gradient_75.tga differ diff --git a/reaction/uifiles/assets/gradientbar2.tga b/reaction/uifiles/assets/gradientbar2.tga new file mode 100644 index 00000000..27727129 Binary files /dev/null and b/reaction/uifiles/assets/gradientbar2.tga differ diff --git a/reaction/uifiles/assets/halfgradleft.tga b/reaction/uifiles/assets/halfgradleft.tga new file mode 100644 index 00000000..c020c41d Binary files /dev/null and b/reaction/uifiles/assets/halfgradleft.tga differ diff --git a/reaction/uifiles/assets/halfgradright.tga b/reaction/uifiles/assets/halfgradright.tga new file mode 100644 index 00000000..9a4f8e8c Binary files /dev/null and b/reaction/uifiles/assets/halfgradright.tga differ diff --git a/reaction/uifiles/assets/idlogo.tga b/reaction/uifiles/assets/idlogo.tga new file mode 100644 index 00000000..6abebc36 Binary files /dev/null and b/reaction/uifiles/assets/idlogo.tga differ diff --git a/reaction/uifiles/assets/mapshot01.jpg b/reaction/uifiles/assets/mapshot01.jpg new file mode 100644 index 00000000..e0c08dd5 Binary files /dev/null and b/reaction/uifiles/assets/mapshot01.jpg differ diff --git a/reaction/uifiles/assets/mapshot02.jpg b/reaction/uifiles/assets/mapshot02.jpg new file mode 100644 index 00000000..10aead9d Binary files /dev/null and b/reaction/uifiles/assets/mapshot02.jpg differ diff --git a/reaction/uifiles/assets/mapshot03.jpg b/reaction/uifiles/assets/mapshot03.jpg new file mode 100644 index 00000000..95609eca Binary files /dev/null and b/reaction/uifiles/assets/mapshot03.jpg differ diff --git a/reaction/uifiles/assets/rq3-ingame-background.tga b/reaction/uifiles/assets/rq3-ingame-background.tga new file mode 100644 index 00000000..a7689122 Binary files /dev/null and b/reaction/uifiles/assets/rq3-ingame-background.tga differ diff --git a/reaction/uifiles/assets/rq3-ingame-loadout.tga b/reaction/uifiles/assets/rq3-ingame-loadout.tga new file mode 100644 index 00000000..37def026 Binary files /dev/null and b/reaction/uifiles/assets/rq3-ingame-loadout.tga differ diff --git a/reaction/uifiles/assets/rq3-ingame-shadow-bottom.tga b/reaction/uifiles/assets/rq3-ingame-shadow-bottom.tga new file mode 100644 index 00000000..1e3cc994 Binary files /dev/null and b/reaction/uifiles/assets/rq3-ingame-shadow-bottom.tga differ diff --git a/reaction/uifiles/assets/rq3-ingame-shadow-c1.tga b/reaction/uifiles/assets/rq3-ingame-shadow-c1.tga new file mode 100644 index 00000000..d9960db9 Binary files /dev/null and b/reaction/uifiles/assets/rq3-ingame-shadow-c1.tga differ diff --git a/reaction/uifiles/assets/rq3-ingame-shadow-c2.tga b/reaction/uifiles/assets/rq3-ingame-shadow-c2.tga new file mode 100644 index 00000000..bef7dbe7 Binary files /dev/null and b/reaction/uifiles/assets/rq3-ingame-shadow-c2.tga differ diff --git a/reaction/uifiles/assets/rq3-ingame-shadow-c3.tga b/reaction/uifiles/assets/rq3-ingame-shadow-c3.tga new file mode 100644 index 00000000..8f9eb725 Binary files /dev/null and b/reaction/uifiles/assets/rq3-ingame-shadow-c3.tga differ diff --git a/reaction/uifiles/assets/rq3-ingame-shadow-c4.tga b/reaction/uifiles/assets/rq3-ingame-shadow-c4.tga new file mode 100644 index 00000000..a485bcda Binary files /dev/null and b/reaction/uifiles/assets/rq3-ingame-shadow-c4.tga differ diff --git a/reaction/uifiles/assets/rq3-ingame-shadow-right.tga b/reaction/uifiles/assets/rq3-ingame-shadow-right.tga new file mode 100644 index 00000000..54af154c Binary files /dev/null and b/reaction/uifiles/assets/rq3-ingame-shadow-right.tga differ diff --git a/reaction/uifiles/assets/rq3-ingame-title.tga b/reaction/uifiles/assets/rq3-ingame-title.tga new file mode 100644 index 00000000..8f606982 Binary files /dev/null and b/reaction/uifiles/assets/rq3-ingame-title.tga differ diff --git a/reaction/uifiles/assets/rq3-main-box-1.tga b/reaction/uifiles/assets/rq3-main-box-1.tga new file mode 100644 index 00000000..1a4dcaf9 Binary files /dev/null and b/reaction/uifiles/assets/rq3-main-box-1.tga differ diff --git a/reaction/uifiles/assets/rq3-main-box-2.tga b/reaction/uifiles/assets/rq3-main-box-2.tga new file mode 100644 index 00000000..7195fe95 Binary files /dev/null and b/reaction/uifiles/assets/rq3-main-box-2.tga differ diff --git a/reaction/uifiles/assets/rq3-main-box-3.tga b/reaction/uifiles/assets/rq3-main-box-3.tga new file mode 100644 index 00000000..b16353fd Binary files /dev/null and b/reaction/uifiles/assets/rq3-main-box-3.tga differ diff --git a/reaction/uifiles/assets/rq3-main-shadow-1.tga b/reaction/uifiles/assets/rq3-main-shadow-1.tga new file mode 100644 index 00000000..5fcb85c4 Binary files /dev/null and b/reaction/uifiles/assets/rq3-main-shadow-1.tga differ diff --git a/reaction/uifiles/assets/rq3-main-shadow-2.tga b/reaction/uifiles/assets/rq3-main-shadow-2.tga new file mode 100644 index 00000000..4a89cfe1 Binary files /dev/null and b/reaction/uifiles/assets/rq3-main-shadow-2.tga differ diff --git a/reaction/uifiles/assets/rq3-ssg-background.jpg b/reaction/uifiles/assets/rq3-ssg-background.jpg new file mode 100644 index 00000000..85f23df6 Binary files /dev/null and b/reaction/uifiles/assets/rq3-ssg-background.jpg differ diff --git a/reaction/uifiles/assets/scrollbar.tga b/reaction/uifiles/assets/scrollbar.tga new file mode 100644 index 00000000..5f88748e Binary files /dev/null and b/reaction/uifiles/assets/scrollbar.tga differ diff --git a/reaction/uifiles/assets/scrollbar_arrow_dwn_a.tga b/reaction/uifiles/assets/scrollbar_arrow_dwn_a.tga new file mode 100644 index 00000000..2bb28fdb Binary files /dev/null and b/reaction/uifiles/assets/scrollbar_arrow_dwn_a.tga differ diff --git a/reaction/uifiles/assets/scrollbar_arrow_left.tga b/reaction/uifiles/assets/scrollbar_arrow_left.tga new file mode 100644 index 00000000..2d21f141 Binary files /dev/null and b/reaction/uifiles/assets/scrollbar_arrow_left.tga differ diff --git a/reaction/uifiles/assets/scrollbar_arrow_right.tga b/reaction/uifiles/assets/scrollbar_arrow_right.tga new file mode 100644 index 00000000..f80292a6 Binary files /dev/null and b/reaction/uifiles/assets/scrollbar_arrow_right.tga differ diff --git a/reaction/uifiles/assets/scrollbar_arrow_up_a.tga b/reaction/uifiles/assets/scrollbar_arrow_up_a.tga new file mode 100644 index 00000000..8c2ffca2 Binary files /dev/null and b/reaction/uifiles/assets/scrollbar_arrow_up_a.tga differ diff --git a/reaction/uifiles/assets/scrollbar_thumb.tga b/reaction/uifiles/assets/scrollbar_thumb.tga new file mode 100644 index 00000000..efabaa03 Binary files /dev/null and b/reaction/uifiles/assets/scrollbar_thumb.tga differ diff --git a/reaction/uifiles/assets/slider2.tga b/reaction/uifiles/assets/slider2.tga new file mode 100644 index 00000000..73ff3103 Binary files /dev/null and b/reaction/uifiles/assets/slider2.tga differ diff --git a/reaction/uifiles/assets/sliderbutt_1.tga b/reaction/uifiles/assets/sliderbutt_1.tga new file mode 100644 index 00000000..70d23c84 Binary files /dev/null and b/reaction/uifiles/assets/sliderbutt_1.tga differ diff --git a/reaction/uifiles/assets/static_1.tga b/reaction/uifiles/assets/static_1.tga new file mode 100644 index 00000000..49a7733a Binary files /dev/null and b/reaction/uifiles/assets/static_1.tga differ diff --git a/reaction/uifiles/assets/static_2.tga b/reaction/uifiles/assets/static_2.tga new file mode 100644 index 00000000..771d8ca0 Binary files /dev/null and b/reaction/uifiles/assets/static_2.tga differ diff --git a/reaction/uifiles/assets/static_3.tga b/reaction/uifiles/assets/static_3.tga new file mode 100644 index 00000000..c47becfa Binary files /dev/null and b/reaction/uifiles/assets/static_3.tga differ diff --git a/reaction/uifiles/assets/white.tga b/reaction/uifiles/assets/white.tga new file mode 100644 index 00000000..6c654661 Binary files /dev/null and b/reaction/uifiles/assets/white.tga differ diff --git a/reaction/uifiles/cdkey.menu b/reaction/uifiles/cdkey.menu new file mode 100644 index 00000000..4c818fb8 --- /dev/null +++ b/reaction/uifiles/cdkey.menu @@ -0,0 +1,344 @@ +#include "ui/menudef.h" + +{ + + menuDef { + name "cdkey_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 + + onClose { uiScript verifyCDKey } + + onOpen { play "sound/misc/menu1.wav" ; hide verify_text ; uiScript getCDKey } + + onEsc { close cdkey_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 "cdkey_icon" + style WINDOW_STYLE_SHADER + rect 8 8 48 48 + background "menu/art/rq3-setup-cdkey.tga" + decoration + visible 1 + } + + itemdef { + name "cdkey_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 + } + +//================= +// Buttons, lists +//================= + + +//Background window + + itemdef { + rect 188 140 264 160 + style WINDOW_STYLE_FILLED + backcolor Ig_Window_Color + visible 1 + border 1 + bordersize 1 + shadowStyle 1 + bordercolor Ig_Window_BorderColor + decoration + } + +//CD Key Check + + itemdef { + name "enterkey_text" + rect 160 168 320 20 + style WINDOW_STYLE_EMPTY + text "Enter your CD key in the field below" + textstyle 3 + textscale .25 + textalign ITEM_ALIGN_CENTER + textalignx 160 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemdef { + name "key1" + rect 208 200 40 20 + type ITEM_TYPE_EDITFIELD + style WINDOW_STYLE_FILLED + maxchars 4 + cvar "cdkey1" + text "" + forecolor 1 1 1 1 + border 1 + bordersize 1 + bordercolor .5 .5 .5 .75 + backcolor 1 1 1 .1 + textscale .25 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 14 + onfocus { setcolor backcolor 1 1 1 .2 ; } + leavefocus { setcolor backcolor 1 1 1 .1 ; } + visible 1 + } + + itemdef { + name "key2" + rect 256 200 40 20 + type ITEM_TYPE_EDITFIELD + style WINDOW_STYLE_FILLED + maxchars 4 + cvar "cdkey2" + text "" + forecolor 1 1 1 1 + border 1 + bordersize 1 + bordercolor .5 .5 .5 .75 + backcolor 1 1 1 .1 + textscale .25 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 14 + onfocus { setcolor backcolor 1 1 1 .2 ; } + leavefocus { setcolor backcolor 1 1 1 .1 ; } + visible 1 + } + + itemdef { + name "key3" + rect 304 200 40 20 + type ITEM_TYPE_EDITFIELD + style WINDOW_STYLE_FILLED + maxchars 4 + cvar "cdkey3" + text "" + forecolor 1 1 1 1 + border 1 + bordersize 1 + bordercolor .5 .5 .5 .75 + backcolor 1 1 1 .1 + textscale .25 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 14 + onfocus { setcolor backcolor 1 1 1 .2 ; } + leavefocus { setcolor backcolor 1 1 1 .1 ; } + visible 1 + } + + itemdef { + name "key4" + rect 352 200 40 20 + type ITEM_TYPE_EDITFIELD + style WINDOW_STYLE_FILLED + maxchars 4 + cvar "cdkey4" + text "" + forecolor 1 1 1 1 + border 1 + bordersize 1 + bordercolor .5 .5 .5 .75 + backcolor 1 1 1 .1 + textscale .25 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 14 + onfocus { setcolor backcolor 1 1 1 .2 ; } + leavefocus { setcolor backcolor 1 1 1 .1 ; } + visible 1 + } + + itemdef { + name "separator" + rect 392 200 20 20 + style WINDOW_STYLE_EMPTY + forecolor 1 1 1 1 + text "-" + textscale .25 + textalign ITEM_ALIGN_CENTER + textalignx 10 + textaligny 14 + visible 1 + decoration + } + + itemdef { + name "key_checksum" + rect 412 200 24 20 + type ITEM_TYPE_EDITFIELD + style WINDOW_STYLE_FILLED + maxchars 2 + cvar "cdkeychecksum" + text "" + forecolor 1 1 1 1 + border 1 + bordersize 1 + bordercolor .5 .5 .5 .75 + backcolor 1 1 1 .1 + textscale .25 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 14 + onfocus { setcolor backcolor 1 1 1 .2 ; } + leavefocus { setcolor backcolor 1 1 1 .1 ; } + visible 1 + } + +//Verify + + itemdef { + name "btn_verify" + rect 352 264 80 20 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text "Verify" + textstyle 0 + textscale .25 + textalign ITEM_ALIGN_CENTER + textalignx 40 + textaligny 14 + //border 1 + //bordersize 1 + //bordercolor .5 .5 .5 .75 + forecolor 1 1 1 1 + backcolor Ig_Sub_Color1 + visible 1 + action { play "sound/misc/menu1.wav" ; uiScript verifyCDKey ; show verify_text ; } + onFocus { setcolor backcolor Ig_Sub_Color2 } + leaveFocus { setcolor backcolor Ig_Sub_Color1 } + } + + itemdef { + name "verify_text" + rect 160 236 320 20 + type ITEM_TYPE_EDITFIELD + cvar ui_cdkeyvalid + style WINDOW_STYLE_EMPTY + text "" + textstyle 3 + textscale .25 + textalign ITEM_ALIGN_CENTER + textalignx 160 + textaligny 12 + forecolor 1 1 0 .75 + visible 0 + decoration + } + +//Back + + itemdef { + name "btn_back" + style WINDOW_STYLE_SHADER + rect 12 432 32 32 + type 1 + background "menu/art/rq3-menu-back.tga" + action { close cdkey_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 } + visible 1 + } + + + 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 + } + +} +} \ No newline at end of file diff --git a/reaction/uifiles/connect.menu b/reaction/uifiles/connect.menu new file mode 100644 index 00000000..c3787644 --- /dev/null +++ b/reaction/uifiles/connect.menu @@ -0,0 +1,84 @@ +#include "ui/menudef.h" + + + menuDef { + name "connect" + background "rq3-ta-menuback" // Makro: replace "rq3-ta-menuback" with "rq3-menuback" + // to use the current background + fullScreen MENU_TRUE + visible MENU_TRUE // Visible on open + focusColor RQ3_MAIN_FOCUSCOLOR // Menu focus color for text and items + + + onOpen { + transition demolist 80 108 480 0 80 108 480 280 10 10 ; + uiScript LoadDemos ; + play "sound/misc/menu1.wav" ; + } + + onEsc { close demo ; open main } + + +//=================== +// 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 + } + +} \ No newline at end of file diff --git a/reaction/uifiles/controls.menu b/reaction/uifiles/controls.menu new file mode 100644 index 00000000..a055fc9d --- /dev/null +++ b/reaction/uifiles/controls.menu @@ -0,0 +1,1542 @@ +#include "ui/menudef.h" +#define RQ3_Controls_Option_Color .75 .75 .75 1 + +{ + + menuDef { + name "control_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 ; + hide move ; hide weapon ; hide misc ; hide reaction ; + show look ; setfocus btn_look } + + onClose { uiScript saveControls } + onEsc { uiScript saveControls ; close control_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 + 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 ; } + } + + itemdef { + name look_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 { + name look_act + group look + background "menu/art/rq3-menu-focus-anim" + rect 336 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name look_hint + 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 + 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 } + action { play "sound/misc/menu1.wav" ; hide look ; hide weapon ; hide misc ; hide reaction ; show move ; } + } + + itemdef { + name move_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 + 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 + 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 } + action { play "sound/misc/menu1.wav" ; hide look ; hide move ; hide misc ; hide reaction ; show weapon ; } + } + + itemdef { + name weapon_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 + 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 + 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 } + action { play "sound/misc/menu1.wav" ; hide look ; hide move ; hide weapon ; hide reaction ; show misc ; } + } + + itemdef { + name misc_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 + 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 + 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 } + action { play "sound/misc/menu1.wav" ; hide look ; hide move ; hide weapon ; hide misc ; show reaction ; } + } + + itemdef { + name reaction_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 + 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 +//Captions + + itemdef { + name look_caption + group look + 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 + } + + itemdef { + name move_caption + group move + 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 0 + decoration + } + + itemdef { + name weapon_caption + group weapon + 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 0 + decoration + } + + itemdef { + name misc_caption + group misc + 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 0 + decoration + } + + itemdef { + name reaction_caption + group reaction + 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 0 + decoration + } + +//Icons + + itemdef { + name look_icon + group look + style WINDOW_STYLE_SHADER + rect 320 66 24 24 + background "menu/art/rq3-controls-looking.tga" + decoration + visible 1 + } + + itemdef { + name move_icon + group move + style WINDOW_STYLE_SHADER + rect 320 66 24 24 + background "menu/art/rq3-controls-movement.tga" + decoration + visible 0 + } + + itemdef { + name weapon_icon + group weapon + style WINDOW_STYLE_SHADER + rect 320 66 24 24 + background "menu/art/rq3-controls-weapons.tga" + decoration + visible 0 + } + + itemdef { + name misc_icon + group misc + style WINDOW_STYLE_SHADER + rect 320 66 24 24 + background "menu/art/rq3-controls-misc.tga" + decoration + visible 0 + } + + itemdef { + name reaction_icon + group reaction + style WINDOW_STYLE_SHADER + rect 320 66 24 24 + background "menu/art/rq3-controls-reaction.tga" + decoration + visible 0 + } + +//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 0 + //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 0 + 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 0 + 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 0 + //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 0 + 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 0 + 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 0 + 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 0 + 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 0 + 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 0 + onFocus { show SliderMessage ; timeFade SliderMessage forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade SliderMessage forecolor 1 1 1 0 0 250 } + } + +//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 0 + //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 0 + //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 0 + //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 0 + //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 0 + 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 0 + 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 0 + //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 0 + //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 0 + 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 0 + 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 0 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + +//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 0 + 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 0 + 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 0 + 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 0 + 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 0 + 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 0 + 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 0 + 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 0 + 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 0 + 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 0 + 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 0 + 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 0 + 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 0 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + +//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 0 + 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 0 + 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 0 + 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 0 + 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 0 + 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 0 + 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 0 + 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 0 + onFocus { show keyBindStatus ; timeFade keyBindStatus forecolor 1 1 1 1 0 250 } + leaveFocus { timeFade keyBindStatus forecolor 1 1 1 0 0 250 } + } + +//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 0 + 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 0 + 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 0 + 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 0 + 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 0 + 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 0 + 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 0 + 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 0 + 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 "TP Weapon/Item:" + rect 288 260 320 20 + forecolor RQ3_Controls_Option_Color + textalign ITEM_ALIGN_RIGHT + textalignx 160 + textaligny 16 + textscale .25 + visible 0 + 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 0 + 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_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/createfavorite.menu b/reaction/uifiles/createfavorite.menu new file mode 100644 index 00000000..2828bd94 --- /dev/null +++ b/reaction/uifiles/createfavorite.menu @@ -0,0 +1,122 @@ +#include "ui/menudef.h" +{ + // CREATE FAVORITE POPUP MENU // + + menuDef { + name "createfavorite_popmenu" + visible 0 + fullscreen 0 + rect 170 200 300 80 + focusColor RQ3_MAIN_FOCUSCOLOR // Menu focus color for text and items + style WINDOW_STYLE_EMPTY + border 1 + popup + onOpen { play "sound/misc/menu1.wav" ; setfocus nameEntry } + onESC { close "createfavorite_popmenu" ; open joinserver } + + itemDef { + name window + rect 0 0 300 68 + style WINDOW_STYLE_FILLED + border 1 + borderSize 1 + bordercolor Ig_Window_BorderColor + backcolor Ig_Window_Color + shadowStyle 1 + visible 1 + decoration + } + + // NAME // + + itemDef { + text "Name:" + style 0 + textscale .25 + rect 0 8 80 20 + textalign ITEM_ALIGN_LEFT + textalignx 16 + textaligny 16 + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef { + name nameEntry + style WINDOW_STYLE_FILLED + text "" + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 14 + maxPaintChars 17 + textscale .225 + type ITEM_TYPE_EDITFIELD + cvar "ui_favoriteName" + rect 80 8 160 20 + border 1 + bordersize 1 + bordercolor .25 .25 .25 1 + forecolor 1 1 1 1 + backcolor 1 1 1 .1 + visible 1 + onfocus { setcolor backcolor 1 1 1 .2 ; } + leavefocus { setcolor backcolor 1 1 1 .1 ; } + } + + // ADDRESS // + + itemDef { + text "Address:" + style 0 + textscale .25 + rect 0 36 80 20 + textalign ITEM_ALIGN_LEFT + textalignx 16 + textaligny 16 + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef { + name addressEntry + style WINDOW_STYLE_FILLED + text "" + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 14 + maxPaintChars 17 + textscale .225 + type ITEM_TYPE_EDITFIELD + cvar "ui_favoriteAddress" + rect 80 36 160 20 + border 1 + bordersize 1 + bordercolor .25 .25 .25 1 + forecolor 1 1 1 1 + backcolor 1 1 1 .1 + visible 1 + onfocus { setcolor backcolor 1 1 1 .2 ; } + leavefocus { setcolor backcolor 1 1 1 .1 ; } + } + + // Add // + + itemDef { + shortcutKey "A" + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 256 12 32 16 + textscale .25 + textalign ITEM_ALIGN_CENTER + textalignx 16 + textaligny 10 + forecolor 1 1 1 1 + text "Add" + visible 1 + action { uiScript "CreateFavorite" ; close "createfavorite_popmenu" ; open joinserver } + } + + } +} diff --git a/reaction/uifiles/createserver.menu b/reaction/uifiles/createserver.menu new file mode 100644 index 00000000..99be56cf --- /dev/null +++ b/reaction/uifiles/createserver.menu @@ -0,0 +1,1159 @@ +#include "ui/menudef.h" + +{ + + menuDef { + name "createserver" + 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 loadArenas ; + //exec "set ui_actualNetGameType 0" ; + //exec "set ui_netGameType 0" ; + //show "opt_gametype" ; + } + + onEsc { close createserver ; open main } + + +//=================== +// 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 "join_icon" + style WINDOW_STYLE_SHADER + rect 8 8 48 48 + background "menu/art/rq3-menu-start.tga" + decoration + visible 1 + } + + itemdef { + name "join_title" + style WINDOW_STYLE_SHADER + rect 64 12 256 32 + background "menu/art/rq3-title-start.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 + } + +//Shadow + + itemdef { + style WINDOW_STYLE_EMPTY + rect 12 72 608 332 + shadowstyle 1 + decoration + visible 1 + } + +//Map preview + + itemdef { + rect 12 72 168 124 + style WINDOW_STYLE_EMPTY + //backcolor 0 0 0 .65 + border 1 + bordercolor .5 .5 .5 1 + visible 1 + decoration + } + + itemdef { + name map_preview + rect 14 74 166 124 + ownerdraw UI_STARTMAPCINEMATIC + style WINDOW_STYLE_EMPTY + decoration + visible 1 + } + +//Map list + + itemdef { + name maplist + rect 12 196 168 208 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 120 + elementheight 20 + textscale .225 + elementtype LISTBOX_TEXT + feeder FEEDER_ALLMAPS + textstyle ITEM_TEXTSTYLE_NORMAL + textalign 3 + textaligny 14 + border 1 + bordercolor .5 .5 .5 1 + forecolor 1 1 1 1 + backcolor 0 0 0 .65 + outlinecolor .75 .75 1 .25 + visible 1 + columns 1 2 140 22 + } + + itemdef { + rect 162 196 18 208 + style WINDOW_STYLE_EMPTY + border 1 + bordercolor .5 .5 .5 1 + visible 1 + decoration + } + +//Options + + //Window + + itemdef { + rect 180 72 232 332 + style WINDOW_STYLE_FILLED + backcolor 0 0 0 .65 + border 1 + bordercolor .5 .5 .5 1 + visible 1 + decoration + } + + itemdef { + rect 180 72 232 20 + style WINDOW_STYLE_FILLED + backcolor .5 .5 .5 .25 + border 1 + bordersize 1 + bordercolor .5 .5 .5 1 + forecolor 1 1 1 1 + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .225 + textalign ITEM_ALIGN_CENTER + textalignx 104 + textaligny 14 + text "Server Options" + visible 1 + decoration + } + + //Host name + + itemdef { + name global + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_EDITFIELD + text "Host Name:" + cvar "sv_hostname" + maxChars 32 + maxPaintChars 8 + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 212 108 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + } + + //Pure server + + itemdef { + name global + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_YESNO + text "Pure Server:" + cvar "sv_pure" + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 212 128 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + } + + //Allow download + + itemdef { + name global + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_YESNO + text "Auto Download:" + cvar "sv_allowdownload" + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 212 148 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + } + + //Enable voting + + itemdef { + name global + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_YESNO + text "Enable Voting:" + cvar "g_allowvote" + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 212 168 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + } + + //Max players + + itemdef { + name global + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_NUMERICFIELD + text "Maximum Players:" + cvar "sv_maxclients" + maxchars 4 + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 212 188 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + } + + //Max ping + + itemdef { + name global + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_NUMERICFIELD + text "Maximum Ping:" + cvar "sv_maxping" + maxchars 4 + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 212 208 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + } + + //Min ping + + itemdef { + name global + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_NUMERICFIELD + text "Minimum Ping:" + cvar "sv_minping" + maxchars 4 + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 212 228 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + } + + //Max rate + + itemdef { + name global + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_NUMERICFIELD + text "Max Rate:" + cvar "sv_maxrate" + maxchars 5 + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 212 248 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + } + + //Reconnect limit + + itemdef { + name global + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_NUMERICFIELD + text "Reconnect Limit:" + cvar "sv_reconnectlimit" + maxchars 4 + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 212 268 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + } + + //Synchronous clients + + itemdef { + name global + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_YESNO + text "Synchronous Client:" + cvar "g_synchronousclients" + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 212 288 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + } + + //Require password + + itemdef { + name global + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_YESNO + text "Require Password:" + cvar "g_needpassword" + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 212 308 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + } + + //Password + + itemdef { + name global + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_EDITFIELD + text "Password:" + cvar "g_password" + maxChars 32 + maxPaintChars 8 + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 212 328 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + } + + // Dedicated + + itemdef { + name global + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_MULTI + text "Dedicated:" + cvar "ui_dedicated" + cvarFloatList { "No" 0 "LAN" 1 "Internet" 2 } + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 212 348 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + } + + // Gametype + + itemdef { + name global + rect 212 368 168 20 + style WINDOW_STYLE_EMPTY + ownerdraw UI_NETGAMETYPE + text "Game Type:" + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" } + } + + //Window + + itemdef { + rect 412 72 208 192 + style WINDOW_STYLE_FILLED + backcolor 0 0 0 .65 + border 1 + bordercolor .5 .5 .5 1 + visible 1 + decoration + } + + itemdef { + rect 412 72 208 20 + style WINDOW_STYLE_FILLED + backcolor .5 .5 .5 .25 + border 1 + bordersize 1 + bordercolor .5 .5 .5 1 + forecolor 1 1 1 1 + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .225 + textalign ITEM_ALIGN_CENTER + textalignx 104 + textaligny 14 + text "Gameplay Options" + visible 1 + decoration + } + + //Time limit + + itemdef { + name global + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_NUMERICFIELD + text "Time Limit:" + cvar "timelimit" + maxchars 4 + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 440 108 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 84 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + } + + // Gametype-specific options // + + // Free For All // + // Frag limit + + itemdef { + name ffa + group "opt_gametype" + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_NUMERICFIELD + text "Frag Limit:" + cvar "fraglimit" + maxchars 4 + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 440 148 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 84 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + cvarTest "ui_actualNetGameType" + showCvar { "0" } + } + + // Capture The Flag + // Capture limit + + itemdef { + name ctf + group "opt_gametype" + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_NUMERICFIELD + text "Capture Limit:" + cvar "capturelimit" + maxchars 4 + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 440 148 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 84 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + cvarTest "ui_actualNetGameType" + showCvar { "5" } + } + + //Force join + + itemdef { + name ctf + group "opt_gametype" + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_YESNO + text "Force Join:" + cvar "g_teamautojoin" + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 440 168 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 84 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + cvarTest "ui_actualNetGameType" + showCvar { "5" } + } + + //Even teams + + itemdef { + name ctf + group "opt_gametype" + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_YESNO + text "Even Teams:" + cvar "g_teamforcebalance" + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 440 188 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 84 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + cvarTest "ui_actualNetGameType" + showCvar { "5" } + } + + //Friendly fire + + itemdef { + name ctf + group "opt_gametype" + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_MULTI + text "Friendly Fire:" + cvar "g_friendlyfire" + cvarFloatList { "On" 1 "Off/knockback" 2 "Off" 0 } + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 440 208 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 84 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + cvarTest "ui_actualNetGameType" + showCvar { "5" } + } + + // Team Deathmatch // + // Capture limit + + itemdef { + name tdm + group "opt_gametype" + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_NUMERICFIELD + text "Frag Limit:" + cvar "fraglimit" + maxchars 4 + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 440 148 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 84 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + cvarTest "ui_actualNetGameType" + showCvar { "3" } + } + + //Force join + + itemdef { + name tdm + group "opt_gametype" + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_YESNO + text "Force Join:" + cvar "g_teamautojoin" + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 440 168 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 84 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + cvarTest "ui_actualNetGameType" + showCvar { "3" } + } + + //Even teams + + itemdef { + name tdm + group "opt_gametype" + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_YESNO + text "Even Teams:" + cvar "g_teamforcebalance" + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 440 188 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 84 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + cvarTest "ui_actualNetGameType" + showCvar { "3" } + } + + //Friendly fire + + itemdef { + name tdm + group "opt_gametype" + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_MULTI + text "Friendly Fire:" + cvar "g_friendlyfire" + cvarFloatList { "On" 1 "Off/knockback" 2 "Off" 0 } + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 440 208 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 84 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + cvarTest "ui_actualNetGameType" + showCvar { "3" } + } + + // RQ3 Teamplay // + // Round limit + + itemdef { + name tp + group "opt_gametype" + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_NUMERICFIELD + text "Round Limit:" + cvar "g_RQ3_roundlimit" + maxchars 4 + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 440 128 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 84 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + cvarTest "ui_actualNetGameType" + showCvar { "4" } + } + + //Round time limit + + itemdef { + name tp + group "opt_gametype" + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_NUMERICFIELD + text "Round Time Limit:" + cvar "g_RQ3_roundTimeLimit" + maxchars 4 + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 440 148 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 84 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + cvarTest "ui_actualNetGameType" + showCvar { "4" } + } + + //Force join + + itemdef { + name tp + group "opt_gametype" + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_YESNO + text "Force Join:" + cvar "g_teamautojoin" + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 440 168 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 84 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + cvarTest "ui_actualNetGameType" + showCvar { "4" } + } + + //Even teams + + itemdef { + name tp + group "opt_gametype" + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_YESNO + text "Even Teams:" + cvar "g_teamforcebalance" + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 440 188 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 84 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + cvarTest "ui_actualNetGameType" + showCvar { "4" } + } + + //Friendly fire + + itemdef { + name tp + group "opt_gametype" + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_MULTI + text "Friendly Fire:" + cvar "g_friendlyfire" + cvarFloatList { "On" 1 "Off/knockback" 2 "Off" 0 } + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 440 208 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 84 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + cvarTest "ui_actualNetGameType" + showCvar { "4" } + } + + // Tgren + + itemdef { + name tp + group "opt_gametype" + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_MULTI + text "Bandolier Grens:" + cvar "g_RQ3_tgren" + cvarFloatList { "None" 0 "1" 1 "2" 2 } + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 440 228 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 84 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + cvarTest "ui_actualNetGameType" + showCvar { "4" } + } + +//Slots + + itemdef { + rect 412 263 208 141 + style WINDOW_STYLE_FILLED + backcolor 0 0 0 .65 + border 1 + bordercolor .5 .5 .5 1 + visible 1 + decoration + } + + itemdef { + rect 412 263 208 20 + style WINDOW_STYLE_FILLED + backcolor .5 .5 .5 .25 + border 1 + bordersize 1 + bordercolor .5 .5 .5 1 + forecolor 1 1 1 1 + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 12 + textaligny 14 + text "Player Slots" + visible 1 + decoration + } + + + //Bot skill + + itemdef { + name slot_skill + style WINDOW_STYLE_EMPTY + ownerdraw UI_SKILL + text "Skill:" + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 492 263 128 20 + textalign ITEM_ALIGN_LEFT + textalignx 12 + textaligny 16 + textscale .225 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" } + } + + // Actual slots // + + itemdef { + name slot_team + style WINDOW_STYLE_EMPTY + ownerdraw UI_REDTEAM1 + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 424 296 80 20 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" } + } + + itemdef { + name slot_team + style WINDOW_STYLE_EMPTY + ownerdraw UI_REDTEAM2 + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 424 316 80 20 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" } + } + + itemdef { + name slot_team + style WINDOW_STYLE_EMPTY + ownerdraw UI_REDTEAM3 + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 424 336 80 20 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" } + } + + itemdef { + name slot_team + style WINDOW_STYLE_EMPTY + ownerdraw UI_REDTEAM4 + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 424 356 80 20 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" } + } + + itemdef { + name slot_team + style WINDOW_STYLE_EMPTY + ownerdraw UI_REDTEAM5 + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 424 376 80 20 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" } + } + + + // Part 2 // + + itemdef { + name slot_team + style WINDOW_STYLE_EMPTY + ownerdraw UI_BLUETEAM1 + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 520 296 80 20 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" } + } + + itemdef { + name slot_team + style WINDOW_STYLE_EMPTY + ownerdraw UI_BLUETEAM2 + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 520 316 80 20 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" } + } + + itemdef { + name slot_team + style WINDOW_STYLE_EMPTY + ownerdraw UI_BLUETEAM3 + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 520 336 80 20 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" } + } + + itemdef { + name slot_team + style WINDOW_STYLE_EMPTY + ownerdraw UI_BLUETEAM4 + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 520 356 80 20 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" } + } + + itemdef { + name slot_team + style WINDOW_STYLE_EMPTY + ownerdraw UI_BLUETEAM5 + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 520 376 80 20 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" } + } + +//GO button + + itemdef { + name "btn_start" + style WINDOW_STYLE_SHADER + rect 560 432 64 32 + type 1 + background "menu/art/rq3-menu-go.tga" + action { uiScript StartServer ; } + onFocus { setbackground "menu/art/rq3-menu-go-focus-anim" ; + show start_hint ; timeFade start_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { setbackground "menu/art/rq3-menu-go.tga" ; + timeFade start_hint forecolor .9 .9 .9 0 0 250 } + visible 1 + } + + itemdef { + name start_hint + text "Start server" + 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 + } + +//Join + + itemdef { + name "btn_join" + style WINDOW_STYLE_FILLED + type ITEM_TYPE_BUTTON + rect 540 20 80 20 + //border 1 + //bordersize 1 + //bordercolor .5 .5 .5 1 + backcolor Ig_Sub_Color1 + forecolor 1 1 1 1 + textscale .25 + textalign ITEM_ALIGN_CENTER + textalignx 40 + textaligny 14 + text "Connect >" + visible 1 + action { close createserver ; open joinserver } + //onFocus { setcolor backcolor Ig_Sub_Color2 ; show join_hint } + //leaveFocus { setcolor backcolor Ig_Sub_Color1 ; hide join_hint } + onFocus { setcolor backcolor Ig_Sub_Color2 ; + show join_hint ; timeFade join_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { setcolor backcolor Ig_Sub_Color1 ; + timeFade join_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name join_hint + text "Connect to a Reaction server" + 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 + } + +//Back + + itemdef { + name "btn_back" + style WINDOW_STYLE_SHADER + rect 12 432 32 32 + type 1 + background "menu/art/rq3-menu-back.tga" + action { close createserver ; open main ; } + 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 } + visible 1 + } + + itemdef { + name back_hint + text "Go back to main 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/credit.menu b/reaction/uifiles/credit.menu new file mode 100644 index 00000000..38590645 --- /dev/null +++ b/reaction/uifiles/credit.menu @@ -0,0 +1,1446 @@ +#include "ui/menudef.h" + +{ + + menuDef { + name "credit" + background "rq3-ta-menuback" // Makro: replace "rq3-ta-menuback" with "rq3-menuback" + // to use the current background + fullScreen 1 + visible 0 // Visible on open + focusColor RQ3_MAIN_FOCUSCOLOR // Menu focus color for text and items + timedItems 39 + timerInterval 5500 + + fadeCycle 500 // how often fade happens in milliseconds + fadeAmount 0.01 // amount to adjust alpha per cycle + fadeClamp 1.0 // sets the fadeup alpha + + onOpen { + uiScript "backupMusicVolume" ; + play "sound/misc/menu1.wav" ; + //exec "s_musicvolume 1" ; + playlooped "music/sonic1" ; + transition hint 0 480 640 40 0 420 640 40 20 10 ; + startTimer + } + + onFinishTimer { uiScript "restoreMusicVolume" ; close credit ; uiScript "quit" } + //onFinishTimer { restartTimer } + + onShow { + setitemcolor overlay backcolor 0 0 0 .5 ; + timeFade overlay backcolor 0 0 0 1 0 20000 ; + } + + //onClose { uiScript "restoreMusicVolume" } + onEsc { uiScript "restoreMusicVolume" ; stopTimer ; close credit ; uiScript "quit" } + //onEsc { uiScript "restoreMusicVolume" ; stopTimer ; close credit ; open main } + + +//=================== +// RQ3 stuff +//=================== + + //Faded in at startup + + itemDef { + name overlay + style WINDOW_STYLE_FILLED + background "ui/assets/alpha" + forecolor RQ3_MENU_OVERLAY_COLOR + backcolor RQ3_MENU_OVERLAY_COLOR + rect 0 0 640 480 + visible 1 + decoration + } + + 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 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 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_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 + } + + +//============= +// Buttons +//============= + + +//Timed items + + // REACTION QUAKE 3 BETA 2 // + + itemDef { + name "timer1" + group timer + rect 100 100 440 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .45 + textalignx 220 + textaligny 100 + text "REACTION QUAKE 3 BETA 2.1" + autowrapped + visible 1 + decoration + } + + itemDef { + name "timer1" + group timer + rect 100 100 440 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .3 + textalignx 220 + textaligny 120 + text "(c) 2000 - 2002 REACTION QUAKE 3 TEAM\n\n\n" + "www.reactionquake3.com" + autowrapped + visible 1 + decoration + } + + // PROGRAMMING // + + itemDef { + name "timer2" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 40 + text "PROGRAMMING" + visible 1 + decoration + } + + itemDef { + name "timer2" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_LEFT + textscale .35 + textalignx 120 + textaligny 80 + text "Richard Allen\n" + "Malcolm Bechard\n" + "Scott Brooks\n" + "Victor Chow\n" + "Bruno Covacha\n" + "Bryce Hutchings\n" + "Daniel Simoes" + autowrapped + textheight 24 + visible 1 + decoration + } + + itemDef { + name "timer2" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_RIGHT + textscale .35 + textalignx 100 + textaligny 80 + text "JBravo\n" + "Tsunami\n" + "Blaze\n" + "Elder_MMHS\n" + "aasimon\n" + "NiceAss\n" + "sLiCeR" + autowrapped + textheight 24 + visible 1 + decoration + } + + // ADDITIONAL PROGRAMMING // + + itemDef { + name "timer3" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 60 + text "ADDITIONAL PROGRAMMING" + visible 1 + decoration + } + + itemDef { + name "timer3" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_LEFT + textscale .35 + textalignx 120 + textaligny 100 + text "Michael Bruce\n" + "Dan Chin\n" + "Andrei Drexler\n" + "Tomas Edwardsson\n" + autowrapped + textheight 24 + visible 1 + decoration + } + + itemDef { + name "timer3" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_RIGHT + textscale .35 + textalignx 100 + textaligny 100 + text "AgtOrange\n" + "Lt. Hawkins\n" + "Makro\n" + "Freud\n" + autowrapped + textheight 24 + visible 1 + decoration + } + + // ARTWORK // + + itemDef { + name "timer4" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 60 + text "ARTWORK" + visible 1 + decoration + } + + itemDef { + name "timer4" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_LEFT + textscale .35 + textalignx 120 + textaligny 100 + text "Ian McEachern\n" + "Brian Mills\n" + "Linh Nguyen\n" + "Mark Potnick\n" + "Ryan Vance\n" + autowrapped + textheight 24 + visible 1 + decoration + } + + itemDef { + name "timer4" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_RIGHT + textscale .35 + textalignx 100 + textaligny 100 + text "Frost\n" + "Birdman\n" + "Sonique128\n" + "Cloud\n" + "BraGoblin\n" + autowrapped + textheight 24 + visible 1 + decoration + } + + // ADDITIONAL ARTWORK // + + itemDef { + name "timer5" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 50 + text "ADDITIONAL ARTWORK" + visible 1 + decoration + } + + itemDef { + name "timer5" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_LEFT + textscale .35 + textalignx 120 + textaligny 90 + text "Victor Chow\n" + "Tomi Isoaho\n" + "Shay McCarty\n" + "Malcolm Ramsay\n" + "Jesse Smith\n" + "Kyle VanMeurs" + autowrapped + textheight 24 + visible 1 + decoration + } + + itemDef { + name "timer5" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_RIGHT + textscale .35 + textalignx 100 + textaligny 90 + text "Elder_MMHS\n" + "T.T.I.\n" + "Shaymon\n" + "shenka\n" + "Spyder\n" + "R0oK" + autowrapped + textheight 24 + visible 1 + decoration + } + + // LEVEL DESIGN // + + itemDef { + name "timer6" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 40 + text "LEVEL DESIGN" + visible 1 + decoration + } + + itemDef { + name "timer6" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_LEFT + textscale .35 + textalignx 112 + textaligny 80 + text "David Costello\n" + "Andrei Drexler\n" + "Tomi Isoaho\n" + "Shay McCarty\n" + "David Pike\n" + "Kelly Rush\n" + "Jesse Smith\n" + "Walter Somol\n" + autowrapped + textheight 24 + visible 1 + decoration + } + + itemDef { + name "timer6" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_RIGHT + textscale .35 + textalignx 92 + textaligny 80 + text "Sze\n" + "Makro\n" + "T.T.I.\n" + "Shaymon\n" + "Centurion\n" + "Hexydes\n" + "Spyder\n" + "Johnny Rocket\n" + autowrapped + textheight 24 + visible 1 + decoration + } + + // ADDITIONAL LEVEL DESIGN // + + itemDef { + name "timer7" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 80 + text "ADDITIONAL LEVEL DESIGN" + visible 1 + decoration + } + + itemDef { + name "timer7" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_LEFT + textscale .35 + textalignx 120 + textaligny 120 + text "Jason Irby\n" + "Gregory Simmons\n" + autowrapped + textheight 24 + visible 1 + decoration + } + + itemDef { + name "timer7" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_RIGHT + textscale .35 + textalignx 100 + textaligny 120 + text "Irby\n" + "Smoke\n" + autowrapped + textheight 24 + visible 1 + decoration + } + + // SOUND DESIGN // + + itemDef { + name "timer8" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 100 + text "SOUND DESIGN" + visible 1 + decoration + } + + itemDef { + name "timer8" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_LEFT + textscale .35 + textalignx 120 + textaligny 140 + text "Erwin Peil" + autowrapped + textheight 24 + visible 1 + decoration + } + + itemDef { + name "timer8" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_RIGHT + textscale .35 + textalignx 100 + textaligny 140 + text "SpecOps" + autowrapped + textheight 24 + visible 1 + decoration + } + + // ADDITIONAL SOUND DESIGN // + + itemDef { + name "timer9" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 100 + text "ADDITIONAL SOUND DESIGN" + visible 1 + decoration + } + + itemDef { + name "timer9" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_LEFT + textscale .35 + textalignx 120 + textaligny 140 + text "Jesse Smith" + autowrapped + textheight 24 + visible 1 + decoration + } + + itemDef { + name "timer9" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_RIGHT + textscale .35 + textalignx 100 + textaligny 140 + text "Spyder" + autowrapped + textheight 24 + visible 1 + decoration + } + + // ORGANIZATION // + + itemDef { + name "timer10" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 100 + text "ORGANIZATION" + visible 1 + decoration + } + + itemDef { + name "timer10" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_LEFT + textscale .35 + textalignx 120 + textaligny 140 + text "Andrew Prosnik" + autowrapped + textheight 24 + visible 1 + decoration + } + + itemDef { + name "timer10" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_RIGHT + textscale .35 + textalignx 100 + textaligny 140 + text "Black Monk" + autowrapped + textheight 24 + visible 1 + decoration + } + + // WEBSITE DESIGN // + + itemDef { + name "timer11" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 80 + text "WEBSITE DESIGN" + visible 1 + decoration + } + + itemDef { + name "timer11" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_LEFT + textscale .35 + textalignx 120 + textaligny 120 + text "Victor Chow\n" + "Malcolm Ramsay\n" + "Richard Watt" + autowrapped + textheight 24 + visible 1 + decoration + } + + itemDef { + name "timer11" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_RIGHT + textscale .35 + textalignx 100 + textaligny 120 + text "Elder_MMHS\n" + "shenka\n" + "C00T" + autowrapped + textheight 24 + visible 1 + decoration + } + + // TESTERS AND ADVISORS // + + itemDef { + name "timer12" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 60 + text "TESTERS AND ADVISORS" + visible 1 + decoration + } + + itemDef { + name "timer12" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_LEFT + textscale .35 + textalignx 120 + textaligny 100 + text "Non Fiction\n" + "Seth Chabot\n" + "Steve Ewald\n" + "Luke Paul\n" + "Andrew Prosnik" + autowrapped + textheight 24 + visible 1 + decoration + } + + itemDef { + name "timer12" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_RIGHT + textscale .35 + textalignx 100 + textaligny 100 + text "Fiction\n" + "Wook!eBoy\n" + "Psychotakes\n" + "Alice\n" + "Black Monk" + autowrapped + textheight 24 + visible 1 + decoration + } + + // BETA TESTERS // + + itemDef { + name "timer13" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 40 + text "BETA TESTERS" + visible 1 + decoration + } + + itemDef { + name "timer13" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_LEFT + textscale .35 + textalignx 120 + textaligny 80 + text "Scott DeLeury\n" + "Mark Somol\n" + "Christopher Jayawardena\n" + "Justin Pickles\n" + "Michael Morris\n" + "Fredrik Nilsskog Ravlo\n" + "Geraldo Espinal" + autowrapped + textheight 24 + visible 1 + decoration + } + + itemDef { + name "timer13" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_RIGHT + textscale .35 + textalignx 100 + textaligny 80 + text "CannonFodder\n" + "ColdMiser\n" + "EvilFutsin\n" + "GoKu^^7L\n" + "JesterRace\n" + "^^7Proto\n" + "WarMachine\n" + autowrapped + textheight 24 + visible 1 + decoration + } + + // BETA TESTERS // + + itemDef { + name "timer14" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 40 + text "BETA TESTERS" + visible 1 + decoration + } + + itemDef { + name "timer14" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_LEFT + textscale .35 + textalignx 120 + textaligny 80 + text "Andrew Weidlich\n" + "Stephen Looi\n" + "Tomas Edwardsson\n" + "Jordan Zylstra\n" + "Mitch Glover\n" + "Winston Chow" + autowrapped + textheight 24 + visible 1 + decoration + } + + itemDef { + name "timer14" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_RIGHT + textscale .35 + textalignx 100 + textaligny 80 + text "Commodore\n" + "DuD\n" + "Freud\n" + "Guy Incognito\n" + "Mud\n" + "ShishKabob" + autowrapped + textheight 24 + visible 1 + decoration + } + + // REACTION QUAKE 3 CONTRIBUTIONS // + + itemDef { + name "timer15" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 120 + text "REACTION QUAKE 3 CONTRIBUTIONS" + visible 1 + decoration + } + + // ADDITIONAL ARTWORK // + + itemDef { + name "timer16" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 80 + text "ADDITIONAL ARTWORK" + visible 1 + decoration + } + + itemDef { + name "timer16" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_LEFT + textscale .35 + textalignx 120 + textaligny 120 + text "Dwayne Douglass" + autowrapped + textheight 24 + visible 1 + decoration + } + + itemDef { + name "timer16" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_RIGHT + textscale .35 + textalignx 100 + textaligny 120 + text "Oddjob" + autowrapped + textheight 24 + visible 1 + decoration + } + + // REACTION QUAKE 3 TITLE SCORE // + + itemDef { + name "timer17" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 80 + text "REACTION QUAKE 3 TITLE SCORE\n\nJesper Kyd" + autowrapped + visible 1 + decoration + } + + // THE REACTION QUAKE 3 TEAM THANKS // + + itemDef { + name "timer18" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 100 + text "THE REACTION QUAKE 3 TEAM THANKS" + autowrapped + visible 1 + decoration + } + + // A-TEAM REPRESENTATIVE // + + itemDef { + name "timer19" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 80 + text "A-TEAM REPRESENTATIVE\n\n" + "Dwayne Douglass" + autowrapped + visible 1 + decoration + } + + // CODING RESOURCES // + + itemDef { + name "timer20" + group timer + rect 100 100 440 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 220 + textaligny 40 + text "CODING RESOURCES\n\n" + "Code3Arena\n" + "Iain McGinnis\n" + "Inolen\n" + "Juz's Slipgate\n" + "Quake3World Forums\n" + "Wang (ATF)\n" + "Johann Thorirsson (Vondikall)\n" + "Tomas Edwardsson (Freud)" + autowrapped + visible 1 + decoration + } + + // ART RESOURCES // + + itemDef { + name "timer21" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 60 + text "ART RESOURCES\n\n" + "Mastaba Solutions\n" + "PolyCount\n" + "QWorkShop3\n" + "ShaderLab" + autowrapped + visible 1 + decoration + } + + // MAPPING RESOURCES // + + itemDef { + name "timer22" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 80 + text "MAPPING RESOURCES\n\n" + "Gamedesign.net\n" + "QERadiant.com\n" + "Quake3World Forums" + autowrapped + visible 1 + decoration + } + + // PRE-RELEASE MESSAGEBOARD GOD // + + itemDef { + name "timer23" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 80 + text "PRE-RELEASE\nMESSAGEBOARD GOD\n\nThe great Fex" + autowrapped + visible 1 + decoration + } + + // GROUPS // + + itemDef { + name "timer24" + group timer + rect 100 100 440 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 220 + textaligny 20 + text "GROUPS\n\n" + "Above Intelligence\n" + "All the little people\n" + "Family and friends\n" + "Fear.net frequenters\n" + "HoneyStudios.Com\n" + "id Software\n" + "Opin Kerfi HF\n" + "Simnet (Landssíminn)\n" + "The A-Team (AQ2 developers)\n" + "The Grammar Rangers\n" + "#Modeling @ GamesNet" + autowrapped + visible 1 + decoration + } + + // COMMODITIES // + + itemDef { + name "timer25" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 20 + text "COMMODITIES\n\n" + "Caffeine\n" + "Chex Mix\n" + "Dr. Pepper\n" + "Home-cooked meals (MMM!)\n" + "Hot Pockets\n" + "Mountain Dew\n" + "Pepsi\n" + "Pho\n" + "Various pizza places\n" + "Wacom Tablets" + autowrapped + visible 1 + decoration + } + + // WEB HOSTS // + + itemDef { + name "timer26" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 80 + text "WEB HOSTS\n\n" + "All mirrors (too many to list)\n" + "Simnet (Landssíminn)\n" + "Telefragged and affiliates\n" + "2MHost" + autowrapped + visible 1 + decoration + } + + // id SOFTWARE // + + itemDef { + name "timer28" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 100 + text " SOFTWARE" + autowrapped + visible 1 + decoration + } + + itemDef { + name "timer28" + group timer + rect 248 172 32 40 + style WINDOW_STYLE_SHADER + background "ui/assets/idlogo.tga" + visible 1 + decoration + } + + // PROGRAMMING // + + itemDef { + name "timer29" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 80 + text "PROGRAMMING\n\n" + "John Carmack\n" + "Robert A. Duffy\n" + "Jim Dose'" + autowrapped + visible 1 + decoration + } + + // ART // + + itemDef { + name "timer30" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 80 + text "ART\n\n" + "Adrian Carmack\n" + "Kevin Cloud\n" + "Kenneth Scott\n" + "Seneca Menard\n" + "Fred Nilsson" + autowrapped + visible 1 + decoration + } + + // GAME DESIGNER // + + itemDef { + name "timer31" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 80 + text "GAME DESIGNER\n\n" + "Graeme Devine" + autowrapped + visible 1 + decoration + } + + // LEVEL DESIGN // + + itemDef { + name "timer32" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 80 + text "LEVEL DESIGN\n\n" + "Tim Willits\n" + "Christian Antkow\n" + "Paul Jaquays" + autowrapped + visible 1 + decoration + } + + // CEO // + + itemDef { + name "timer33" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 80 + text "CEO\n\n" + "Todd Hollenshead" + autowrapped + visible 1 + decoration + } + + // DIRECTOR OF BUSINESS DEVELOPMENT // + + itemDef { + name "timer34" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 80 + text "DIRECTOR OF BUSINESS DEVELOPMENT\n\n" + "Marty Stratton" + autowrapped + visible 1 + decoration + } + + // BIZ ASSIST AND ID MOM // + + itemDef { + name "timer35" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 80 + text "BIZ ASSIST AND ID MOM\n\n" + "Donna Jackson" + autowrapped + visible 1 + decoration + } + + // DEVELOPMENT ASSISTANCE // + + itemDef { + name "timer36" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .35 + textalignx 120 + textaligny 80 + text "DEVELOPMENT ASSISTANCE\n\n" + "Eric Webb" + autowrapped + visible 1 + decoration + } + + + // THE END // + + itemDef { + name "timer38" + group timer + rect 100 100 440 280 + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_CENTER + textscale .3 + textalignx 220 + textaligny 80 + text "THIS HAS BEEN A REACTION QUAKE 3\nTEAM PRODUCTION\n\n" + "Copyright 2000 - 2002" + autowrapped + visible 1 + decoration + onTimer { timeFade hint forecolor 1 1 1 0 500 1500 } + } + + itemDef { + name "timer39" + group timer + rect 200 100 240 280 + style WINDOW_STYLE_EMPTY + visible 1 + decoration + onTimer { show static ; stopMusic ; play "sound/ui/tvnoise.wav" } + } + + //Hint + + itemDef { + name "hint" + text "ESC to exit" + rect 0 420 640 40 + forecolor 1 1 1 1 + textalign ITEM_ALIGN_RIGHT + textalignx 628 + textaligny 20 + textscale .225 + type ITEM_TYPE_TEXT + style WINDOW_STYLE_EMPTY + visible 1 + decoration + } + + //Screen static + + itemDef { + name static + style WINDOW_STYLE_SHADER + background "ui/assets/screen_static" + forecolor 1 1 1 1 + rect 0 0 640 480 + visible 0 + decoration + } + + +} +} diff --git a/reaction/uifiles/demo.menu b/reaction/uifiles/demo.menu new file mode 100644 index 00000000..272155b1 --- /dev/null +++ b/reaction/uifiles/demo.menu @@ -0,0 +1,264 @@ +#include "ui/menudef.h" + +{ + + menuDef { + name "demo" + background "rq3-ta-menuback" // Makro: replace "rq3-ta-menuback" with "rq3-menuback" + // to use the current background + fullScreen MENU_TRUE + visible MENU_TRUE // Visible on open + focusColor RQ3_MAIN_FOCUSCOLOR // Menu focus color for text and items + + + onOpen { + uiScript LoadDemos ; + play "sound/misc/menu1.wav" ; + } + + onEsc { close demo ; open main } + + +//=================== +// RQ3 stuff +//=================== + + + itemdef { + name overlay + style 1 + forecolor 0 0 0 1 + backcolor RQ3_MENU_OVERLAY_COLOR + rect 0 58 640 360 + visible 1 + decoration + } + + 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 "demos_icon" + style WINDOW_STYLE_SHADER + rect 8 8 48 48 + background "menu/art/rq3-menu-demos.tga" + decoration + visible 1 + } + + itemdef { + name "demos_title" + style WINDOW_STYLE_SHADER + rect 64 12 256 32 + background "menu/art/rq3-title-demos.tga" + decoration + visible 1 + } + +//================= +// Buttons, lists +//================= + + +//Window + + itemdef { + rect 170 100 300 240 + style WINDOW_STYLE_FILLED + backcolor Ig_Window_Color + visible 1 + border 1 + bordersize 1 + shadowStyle 1 + bordercolor Ig_Window_BorderColor + decoration + } + + itemdef { + text "Available demos:" + textscale .25 + type 0 + style WINDOW_STYLE_EMPTY + rect 182 108 276 24 + forecolor 1 1 1 1 + textstyle 0 + textalign 0 + textalignx 8 + textaligny 16 + decoration + visible 1 + } + +//Demo list + + itemdef { + name "demolist" + type ITEM_TYPE_LISTBOX + rect 182 132 276 188 + style WINDOW_STYLE_FILLED + backcolor 0 0 0 .65 + border 1 + bordersize 1 + bordercolor .25 .25 .25 1 + elementtype LISTBOX_TEXT + elementwidth 160 + elementheight 20 + textscale .25 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + outlinecolor .75 .75 1 .25 + feeder FEEDER_DEMOS + columns 1 4 40 40 + visible 1 + onFocus { show list_hint ; timeFade list_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade list_hint forecolor .9 .9 .9 0 0 250 } + doubleclick { close demo; uiScript RunDemo ; } + } + + //Scrollbar separator + itemdef { + rect 440 132 18 188 + style WINDOW_STYLE_EMPTY + border 1 + bordersize 1 + bordercolor .25 .25 .25 1 + decoration + visible 1 + } + + itemdef { + name list_hint + text "Select a demo from the list" + 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 + } + +//Play + + itemdef { + name "btn_play" + style WINDOW_STYLE_SHADER + rect 592 432 32 32 + type 1 + background "menu/art/rq3-menu-play.tga" + action { close demo; uiScript RunDemo ; } + onFocus { setbackground "menu/art/rq3-menu-play-focus-anim" ; show play_hint ; + timeFade play_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { setbackground "menu/art/rq3-menu-play.tga" ; + timeFade play_hint forecolor .9 .9 .9 0 0 250 } + visible 1 + } + + + itemdef { + name play_hint + text "Play the selected demo" + 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 + } + +//Back + + itemdef { + name "btn_back" + style WINDOW_STYLE_SHADER + rect 12 432 32 32 + type 1 + background "menu/art/rq3-menu-back.tga" + action { close demo; open main ; } + 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 } + visible 1 + } + + itemdef { + name back_hint + text "Go back to main 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 + } + + +} +} \ No newline at end of file diff --git a/reaction/uifiles/error.menu b/reaction/uifiles/error.menu new file mode 100644 index 00000000..005dea7e --- /dev/null +++ b/reaction/uifiles/error.menu @@ -0,0 +1,106 @@ +#include "ui/menudef.h" + +{ + + menuDef { + name "error_popmenu" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 210 100 220 240 + focusColor RQ3_MAIN_FOCUSCOLOR // Menu focus color for text and items + style WINDOW_STYLE_EMPTY + shadowStyle 1 + border 0 + onOpen { play "sound/misc/menu1.wav" } + onClose { uiScript clearError } + onESC { close error_popmenu ; open main } + popup + + //Window + + itemdef { + rect 0 0 220 240 + style WINDOW_STYLE_FILLED + backcolor Ig_Window_Color + visible 1 + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + decoration + } + + //Title + + itemdef { + rect 101 1 120 24 + style WINDOW_STYLE_SHADER + background "ui/assets/rq3-ingame-title" + visible 1 + decoration + } + + itemdef { + rect 101 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 "Error" + visible 1 + decoration + } + +//Error info + + itemdef { + name errorinfo + rect 12 40 196 168 + style WINDOW_STYLE_FILLED + backcolor 0 0 0 .65 + border 1 + bordersize 1 + bordercolor .5 .5 .5 1 + visible 1 + decoration + } + + itemdef { + name errorinfo + rect 20 44 180 160 + type ITEM_TYPE_TEXT + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_SHADOWED + autowrapped + cvar "com_errorMessage" + textalign ITEM_ALIGN_CENTER + textalignx 90 + textaligny 16 + textscale .225 + forecolor 1 1 1 1 + visible 1 + decoration + } + +//Close + + itemdef { + name close + rect 80 216 60 16 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_NORMAL + textscale .225 + textalign ITEM_ALIGN_CENTER + textalignx 30 + textaligny 12 + text "Close" + shortcutKey "C" + visible 1 + action { close error_popmenu ; open main } + } +} +} diff --git a/reaction/uifiles/fight.menu b/reaction/uifiles/fight.menu new file mode 100644 index 00000000..1ebcace1 --- /dev/null +++ b/reaction/uifiles/fight.menu @@ -0,0 +1,770 @@ +#include "ui/menudef.h" + +{ + \\ Fight \\ + + menuDef { + name "fight" + visible 0 + fullscreen 1 + rect 0 0 640 480 + background uibackground4 + focusColor 1 .67 0 1 + style 1 + border 1 + + itemDef { + name fight + style WINDOW_STYLE_SHADER + rect 0 45 512 128 + visible 1 + background "fight" + decoration + } + + + itemDef { + name leftgrad + style WINDOW_STYLE_SHADER + background "ui/assets/halfgradleft.tga" + rect 64 249 256 102 + forecolor .75 0 0 0.5 + visible 1 + decoration + } + + itemDef { + name rightgrad + style WINDOW_STYLE_SHADER + background "ui/assets/halfgradright.tga" + rect 320 249 256 102 + forecolor 0 0 .75 0.5 + visible 1 + decoration + } + + + itemDef { + name leftvertgrad + style WINDOW_STYLE_SHADER + background "ui/assets/verticalgradient.tga" + rect 16 249 128 102 + forecolor .75 0 0 0.5 + visible 1 + decoration + } + + itemDef { + name rightvertgrad + style WINDOW_STYLE_SHADER + background "ui/assets/verticalgradient.tga" + rect 496 249 128 102 + forecolor 0 0 .75 0.5 + textscale 0.4 + visible 1 + decoration + } + + + + + + + + + // LEVEL SELECTION BAR // + + + // GAMETYPE BAR // + + + itemDef { + name gametypebar + style 2 + rect 0 5 640 40 + textscale 0.4 + textalign 0 // center + textalignx 60 // x alignment point for text + // use it to offset left/right text from the edge + // or to center the text on a different point + textaligny 21 + style 2 + border 4 + bordercolor 0.5 0.5 0.5 0.5 + bordersize 2 + backcolor 0 0 .75 0.5 + visible 1 + mouseEnter { setcolor backcolor .75 0 0 .5 } + mouseExit { setcolor backcolor 0 0 .75 .5 } + decoration + } + + + itemDef { + name gametypefield + style 0 + name tier + ownerdraw UI_TIER + rect 0 10 320 31 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny 26 + textscale .4 + forecolor 1 1 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + mouseEnter { fadein message_tier } + mouseExit { fadeout message_tier } + } + + itemDef { + name gametypefield + style 0 + ownerdraw UI_SKILL + text "Skill:" + rect 320 10 320 31 + textalign ITEM_ALIGN_LEFT + textalignx 90 + textaligny 26 + textscale .4 + forecolor 1 1 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + mouseEnter { fadein message_skill } + mouseExit { fadeout message_skill } + } + + + // TEAM LOGO // + + + itemDef { + name playerlogo + ownerdraw UI_PLAYERLOGO_METAL + rect 28 250 100 100 + visible 1 + forecolor 1 .7 .7 1 + decoration + } + + itemDef { + name opposinglogo + ownerdraw UI_OPPONENTLOGO_METAL + rect 488 250 100 100 + visible 1 + forecolor .7 .7 1 1 + decoration + } + + // MAP INFO // + + itemDef { + name window + rect 14 247 612 105 + style WINDOW_STYLE_FILLED + border 1 + bordercolor .5 .5 .5 .5 + forecolor 1 1 1 1 + backcolor 0 0 0 .25 + visible 1 + decoration + } + + itemDef { + name location + text "VS" + textscale 1 + rect 192 325 256 30 + textalign 1 // center + textalignx 128 // x alignment point for text + // use it to offset left/right text from the edge + // or to center the text on a different point + textaligny 21 + backcolor 0 0 0 0 + forecolor 1 1 1 .5 + decoration + visible 1 + } + + + itemDef { + name level_info + group grplevelinfo2 + ownerdraw UI_TIER_MAPNAME + textscale .35 + rect 14 220 222 20 + textalign 0 + textalignx 3 // x alignment point for text + // use it to offset left/right text from the edge + // or to center the text on a different point + textaligny 18 + backcolor 0 0 0 0 + forecolor 1 1 1 1 + decoration + visible 1 + } + + itemDef { + name level_info + group grplevelinfo2 + ownerdraw UI_TIER_GAMETYPE + textscale .35 + rect 236 220 122 20 + textalign 0 + textalignx 3 // x alignment point for text + // use it to offset left/right text from the edge + // or to center the text on a different point + textaligny 18 + backcolor 0 0 0 0 + forecolor 1 1 1 1 + decoration + visible 1 + } + + itemDef { + name level_info + group grplevelinfo2 + type ITEM_TYPE_NUMERICFIELD + text "Captures " + cvar "capturelimit" + rect 358 220 122 20 + textalign 0 + textalignx 3 + textaligny 18 + textscale .35 + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef { + name level_info + group grplevelinfo2 + type ITEM_TYPE_NUMERICFIELD + text "Time " + cvar "timelimit" + rect 480 220 72 20 + textalign 0 + textalignx 3 + textaligny 18 + textscale .35 + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef { + name level_info + group grplevelinfo2 + type ITEM_TYPE_NUMERICFIELD + text "Frags " + cvar "fraglimit" + rect 552 220 72 20 + textalign 0 + textalignx 3 + textaligny 18 + textscale .35 + forecolor 1 1 1 1 + visible 1 + decoration + } + + + // TEAM NAME // + + itemDef { + name playerteamname + ownerdraw UI_PLAYERLOGO_NAME + rect 128 295 128 64 + decoration + visible 1 + } + + itemDef { + name opposingteamname + ownerdraw UI_OPPONENTLOGO_NAME + rect 388 295 128 64 + backcolor 0 0 0 0 + forecolor 1 1 1 1 + decoration + visible 1 + } + + + + + + + + // PLAYER STATS // + + itemDef { + name window + rect 14 354 612 34 + style WINDOW_STYLE_FILLED + border 1 + bordercolor .5 .5 .5 .5 + forecolor 1 1 1 1 + backcolor 0 0 0 .25 + visible 1 + decoration + } + + itemDef { + name name + type ITEM_TYPE_EDITFIELD + style 0 + text "Name:" + cvar "name" + textscale .35 + style 0 + rect 0 363 128 30 + textalign 1 // center + textalignx 64 // x alignment point for text + // use it to offset left/right text from the edge + // or to center the text on a different point + textaligny 17 + backcolor 0 0 0 0 + forecolor 1 1 1 1 + decoration + visible 1 + } + + + + + itemDef { + name score + text "Score:" + textscale .35 + style 0 + rect 246 363 128 30 + textalign 3 // center + textalignx 16 // x alignment point for text + // use it to offset left/right text from the edge + // or to center the text on a different point + textaligny 17 + backcolor 0 0 0 0 + forecolor 1 1 1 1 + decoration + visible 1 + } + + + itemDef { + name wins + text "Wins:" + textscale .35 + style 0 + rect 404 363 128 30 + textalign 1 // center + textalignx 64 // x alignment point for text + // use it to offset left/right text from the edge + // or to center the text on a different point + textaligny 17 + backcolor 0 0 0 0 + forecolor 1 1 1 1 + decoration + visible 1 + } + + + // AWARDS // + + + itemDef { + name window + rect 14 390 612 38 + style WINDOW_STYLE_FILLED + border 1 + bordercolor .5 .5 .5 .5 + forecolor 1 1 1 1 + backcolor 0 0 0 .25 + visible 1 + decoration + } + + itemdef { + name medal_accuracy + style WINDOW_STYLE_SHADER + rect 48 394 32 32 + background "ui/assets/medal_accuracy.tga" + forecolor 1 1 1 .25 + visible 1 + decoration + } + + itemdef { + name medal_assist + style WINDOW_STYLE_SHADER + rect 112 394 32 32 + background "ui/assets/medal_assist.tga" + forecolor 1 1 1 .25 + visible 1 + decoration + + } + + itemdef { + name medal_accuracy + style WINDOW_STYLE_SHADER + rect 176 394 32 32 + background "ui/assets/medal_accuracy.tga" + forecolor 1 1 1 .25 + visible 1 + decoration + + } + + itemdef { + name medal_defend + style WINDOW_STYLE_SHADER + rect 240 394 32 32 + background "ui/assets/medal_defend.tga" + forecolor 1 1 1 .25 + visible 1 + decoration + + } + + itemdef { + name medal_excellent + style WINDOW_STYLE_SHADER + rect 304 394 32 32 + background "ui/assets/medal_excellent.tga" + forecolor 1 1 1 .25 + visible 1 + decoration + + } + + itemdef { + name medal_frags + style WINDOW_STYLE_SHADER + rect 368 394 32 32 + background "ui/assets/medal_frags.tga" + forecolor 1 1 1 .25 + visible 1 + decoration + + } + + itemdef { + name medal_gauntlet + style WINDOW_STYLE_SHADER + rect 432 394 32 32 + background "ui/assets/medal_gauntlet.tga" + forecolor 1 1 1 .25 + visible 1 + decoration + + } + + itemdef { + name medal_impressive + style WINDOW_STYLE_SHADER + rect 496 394 32 32 + background "ui/assets/medal_impressive.tga" + forecolor 1 1 1 .25 + visible 1 + decoration + + } + + itemdef { + name medal_victory + style WINDOW_STYLE_SHADER + rect 560 394 32 32 + background "ui/assets/medal_victory.tga" + forecolor 1 1 1 .25 + visible 1 + decoration + } + + + + + // SCREEN SHOT // + + itemDef { + name mapwindow + rect 14 52 612 158 + style WINDOW_STYLE_FILLED + border 1 + bordercolor .5 .5 .5 .5 + forecolor 1 1 1 1 + backcolor 0 0 0 .25 + visible 1 + decoration + mouseenter { setitemcolor mapwindow bordercolor .7 0 0 1 ; fadein message_arena } + mouseexit { setitemcolor mapwindow bordercolor .5 .5 .5 .5 ; fadeout message_arena } + } + + itemdef { + name screen1 + rect 19 57 198 148 + ownerdraw UI_TIERMAP1 + visible 1 + mouseenter { setitemcolor borderscreen1 backcolor .25 .25 .25 .25 } + mouseexit { setitemcolor borderscreen1 backcolor 0 0 0 0 } + action { setcvar ui_currentMap 0 ; setitemcolor grpborderscreen bordercolor .5 .5 .5 1 ; setitemcolor borderscreen1 bordercolor 1 0 0 1 } + } + + + itemdef { + name screen2 + rect 221 57 198 148 + ownerdraw UI_TIERMAP2 + visible 1 + mouseenter { setitemcolor borderscreen2 backcolor .25 .25 .25 .25 } + mouseexit { setitemcolor borderscreen2 backcolor 0 0 0 0 } + action { setcvar ui_currentMap 1 ; setitemcolor grpborderscreen bordercolor .5 .5 .5 1 ; setitemcolor borderscreen2 bordercolor 1 0 0 1 } + } + + + itemdef { + name screen3 + ownerdraw UI_TIERMAP3 + rect 423 57 198 148 + visible 1 + mouseenter { setitemcolor borderscreen3 backcolor .25 .25 .25 .25 } + mouseexit { setitemcolor borderscreen3 backcolor 0 0 0 0 } + action { setcvar ui_currentMap 2 ; setitemcolor grpborderscreen bordercolor .5 .5 .5 1 ; setitemcolor borderscreen3 bordercolor 1 0 0 1 } + } + + itemdef { + name borderscreen1 + group grpborderscreen + rect 18 56 200 150 + style WINDOW_STYLE_FILLED + border 1 + backcolor 0 0 0 0 + bordercolor .5 .5 .5 1 + decoration + visible 1 + } + + itemdef { + name borderscreen2 + group grpborderscreen + rect 220 56 200 150 + style WINDOW_STYLE_FILLED + decoration + border 1 + backcolor 0 0 0 0 + bordercolor .5 .5 .5 1 + visible 1 + + } + + + itemdef { + name borderscreen3 + group grpborderscreen + style WINDOW_STYLE_FILLED + border 1 + bordercolor .5 .5 .5 1 + backcolor 0 0 0 0 + decoration + rect 422 56 200 150 + visible 1 + } + + + + + + + + + + + + + + // BACK BAR // + + + itemDef { + name gotobar + style 2 + rect 0 430 640 30 + textscale 0.4 + textalign 0 // center + textalignx 60 // x alignment point for text + // use it to offset left/right text from the edge + // or to center the text on a different point + textaligny 21 + style 2 + border 4 + bordercolor 0.5 0.5 0.5 0.5 + bordersize 2 + backcolor 0 0 .75 0.5 + visible 1 + mouseEnter { setcolor backcolor .75 0 0 .5 } + mouseExit { setcolor backcolor 0 0 .75 .5 } + decoration + } + + itemDef { + name back + style 3 + background "ui/assets/backarrow.tga" + rect 16 424 50 50 + visible 1 + action { close fight ; open main } + mouseEnter { hide back ; show back_alt ; fadein message_back } + } + + itemDef { + name back_alt + style WINDOW_STYLE_SHADER + background "ui/assets/backarrow_alt.tga" + rect 16 424 50 50 + backcolor 0 0 0 0 + forecolor 1 1 1 1 + visible 0 + type ITEM_TYPE_BUTTON + mouseExit { hide back_alt ; show back ; fadeout message_back } + action { close fight ; open main } + } + + + + + itemDef { + name accept + style 3 + rect 574 424 50 50 + background "ui/assets/forwardarrow.tga" + backcolor 0 0 0 0 + forecolor 1 1 1 1 + visible 1 + mouseEnter { show lightning ; hide accept ; show accept_alt ; fadein message_accept } + action { close fight ; uiScript SinglePlayerStart } + } + + itemDef { + name accept_alt + style 3 + rect 574 424 50 50 + background "ui/assets/forwardarrow_alt.tga" + backcolor 0 0 0 0 + forecolor 1 1 1 1 + visible 0 + type ITEM_TYPE_BUTTON + action { close fight ; uiScript SinglePlayerStart } + mouseExit { hide lightning ; hide accept_alt ; show accept ; fadeout message_accept } + } + + itemDef { + name lightning + style 3 + background lightningkc + rect 46 385 246 128 + visible 0 + decoration + } + itemDef { + name lightning + style 3 + background lightningkc + rect 345 385 246 128 + visible 0 + decoration + } + + // MESSAGES // + + itemDef { + name message_back + style 0 + rect 320 430 128 30 + textstyle 1 + textalign 1 + textalignx 0 + textaligny 25 + textscale .4 + text "Exit to Main Menu" + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef { + name message_accept + style 0 + rect 320 430 128 30 + textalign 1 + textstyle 1 + textalignx 0 + textaligny 25 + textscale .4 + text "Enter Arena" + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef { + name message_tier + style 0 + rect 320 430 128 30 + textalign 1 + textstyle 1 + textalignx 0 + textaligny 25 + textscale .4 + text "Choose Tier" + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef { + name message_skill + style 0 + rect 320 430 128 30 + textstyle 1 + textalign 1 + textalignx 0 + textaligny 25 + textscale .4 + text "Set Skill Level" + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef { + name message_arena + style 0 + rect 320 430 128 30 + textstyle 1 + textalign 1 + textalignx 0 + textaligny 25 + textscale .4 + text "Choose Your Arena" + forecolor 1 1 1 1 + decoration + visible 0 + } + + + + } + + + + + + + + +} + +} +} diff --git a/reaction/uifiles/findplayer.menu b/reaction/uifiles/findplayer.menu new file mode 100644 index 00000000..a445a344 --- /dev/null +++ b/reaction/uifiles/findplayer.menu @@ -0,0 +1,184 @@ +#include "ui/menudef.h" + +{ + // Find Player Popup Menu // + + menuDef { + name "findplayer_popmenu" + visible 0 + fullscreen 0 + rect 170 104 300 280 + focusColor RQ3_MAIN_FOCUSCOLOR + style 1 + border 1 + popup + onOpen { play "sound/misc/menu1.wav" ; uiScript FindPlayer ; setfocus namefield } + onESC { close findplayer_popmenu ; open joinserver } + +//Window + + itemdef { + rect 0 0 300 280 + style WINDOW_STYLE_FILLED + backcolor Ig_Window_Color + visible 1 + border 1 + bordersize 1 + shadowStyle 1 + bordercolor Ig_Window_BorderColor + decoration + } + +// Player Name + + itemDef { + text "Find Player:" + style 0 + decoration + textscale .25 + rect 0 14 80 20 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny 16 + forecolor 1 1 1 1 + visible 1 + } + + itemDef { + name nameEntry + style WINDOW_STYLE_FILLED + text "" + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 14 + maxchars 20 + maxPaintChars 10 + textscale .225 + type ITEM_TYPE_EDITFIELD + cvar "ui_findPlayer" + rect 100 14 188 20 + border 1 + bordersize 1 + bordercolor .25 .25 .25 1 + forecolor 1 1 1 1 + backcolor 1 1 1 .1 + visible 1 + onfocus { setcolor backcolor 1 1 1 .2 ; } + leavefocus { setcolor backcolor 1 1 1 .1 ; } + } + +//Server list + + itemdef { + type ITEM_TYPE_LISTBOX + rect 12 40 276 72 + style WINDOW_STYLE_FILLED + backcolor 0 0 0 .65 + border 1 + bordersize 1 + bordercolor .25 .25 .25 1 + elementtype LISTBOX_TEXT + elementwidth 160 + elementheight 20 + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + outlinecolor .75 .75 1 .25 + feeder FEEDER_FINDPLAYER + visible 1 + } + + // Scrollbar separator // + + itemdef { + rect 270 40 18 72 + style WINDOW_STYLE_EMPTY + border 1 + borderSize 1 + bordercolor .25 .25 .25 1 + visible 1 + decoration + } + +//Server info list + + itemdef { + type ITEM_TYPE_LISTBOX + rect 12 120 276 120 + style WINDOW_STYLE_FILLED + backcolor 0 0 0 .65 + border 1 + bordersize 1 + bordercolor .25 .25 .25 1 + elementtype LISTBOX_TEXT + elementwidth 160 + elementheight 20 + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + outlinecolor .75 .75 1 .25 + feeder FEEDER_SERVERSTATUS + columns 4 4 40 20 + 40 40 10 + 80 40 10 + 120 20 20 + visible 1 + } + + // Scrollbar separator // + + itemdef { + rect 270 120 18 120 + style WINDOW_STYLE_EMPTY + border 1 + borderSize 1 + bordercolor .25 .25 .25 1 + visible 1 + decoration + } + + // BUTTONS // + // SEARCH // + + itemdef { + text "Search" + shortcutKey "S" + textscale .25 + type 0 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 128 252 60 20 + forecolor 1 1 1 1 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 30 + textaligny 14 + visible 1 + action { play "sound/misc/menu1.wav" ; ui_script FindPlayer } + } + + // JOIN // + + itemdef { + text "Join" + shortcutKey "J" + textscale .25 + type 0 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 228 252 60 20 + forecolor 1 1 1 1 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 30 + textaligny 14 + visible 1 + action { ui_script FoundPlayerJoinServer } + } + + } +} + + diff --git a/reaction/uifiles/hud.menu b/reaction/uifiles/hud.menu new file mode 100644 index 00000000..3f00f8a4 --- /dev/null +++ b/reaction/uifiles/hud.menu @@ -0,0 +1,803 @@ +#include "ui/menudef.h" + +// team menu +// +// defines from ui_shared.h + +{ + assetGlobalDef { + cursor "gfx/rq3_ta_hud/3_cursor2" // cursor + gradientBar "ui/assets/gradientbar2.tga" // gradient bar + fadeClamp 1.0 // sets the fadeup alpha + fadeCycle 1 // how often fade happens in milliseconds + fadeAmount 0.1 // amount to adjust alpha per cycle + + shadowX 5 // x amount for shadow offset + shadowY 5 // y amount for shadow offset + shadowColor 0.1 0.1 0.1 0.25 // shadow color + + font "fonts/font" 16 // font + smallFont "fonts/smallfont" 12 // font + bigFont "fonts/bigfont" 20 // font + + + } + + + // POWERUP AREA // + + menuDef { + name "powerup area" + fullScreen MENU_FALSE + visible MENU_TRUE + rect 570 220 50 100 + + itemDef { + name "powerupArea" + rect 0 0 40 40 + visible 1 + decoration + ownerdraw CG_AREA_POWERUP + special 4 // spacing + align HUD_VERTICAL + } + + + } + + + + // SELECTED PLAYER // + + menuDef { + name "SelectedPlayer" + fullScreen MENU_FALSE + visible 1 + rect 2 363 180 64 + ownerdrawflag CG_SHOW_ANYTEAMGAME + + + itemDef { + name "b" + rect 2 4 170 57 + style 4 + visible 1 + } + + itemDef { + name "b" + rect 2 4 172 60 + visible 1 + textscale .17 + textaligny 10 + textalignx 0 + forecolor 1 1 1 1 + ownerdrawflag CG_SHOW_TEAMINFO + ownerdraw CG_TEAMINFO + } + + itemDef { + name "b" + rect 4 3 32 32 + visible 1 + ownerdrawflag CG_SHOW_NOTEAMINFO + ownerdraw CG_SELECTEDPLAYER_HEAD + } + + + itemDef { + name "b" + rect 75 35 22 11 + visible 1 + style 1 + textscale .25 + decoration + addColorRange -999 25 1 0 0 1 + addColorRange 26 100 1 .75 0 1 + addColorRange 101 999 1 1 1 1 + ownerdrawflag CG_SHOW_NOTEAMINFO + ownerdraw CG_SELECTEDPLAYER_HEALTH + } + + itemDef { + name "b" + rect 50 48 22 11 + visible 1 + style 3 + decoration + background "ui/assets/statusbar/selectedarmor.tga" + addColorRange -999 25 1 0 0 1 + addColorRange 26 100 1 .75 0 1 + addColorRange 101 999 1 1 1 1 + ownerdrawflag CG_SHOW_NOTEAMINFO + ownerdraw CG_SELECTEDPLAYER_ARMOR + } + + itemDef { + name "b" + rect 75 48 22 11 + visible 1 + textstyle 3 + style 1 + textscale .25 + decoration + addColorRange -999 25 1 0 0 1 + addColorRange 26 100 1 .75 0 1 + addColorRange 101 999 1 1 1 1 + ownerdrawflag CG_SHOW_NOTEAMINFO + ownerdraw CG_SELECTEDPLAYER_ARMOR + } + + + itemDef { + name "b" + rect 35 3 35 15 + textscale 0.25 + textstyle 3 + forecolor 1 1 1 1 + visible 1 + decoration + ownerdrawflag CG_SHOW_NOTEAMINFO + ownerdraw CG_SELECTEDPLAYER_NAME + } + + + + itemDef { + name "b" + rect 35 15 45 15 + textstyle 3 + textscale 0.25 + forecolor 1 1 1 1 + visible 1 + decoration + ownerdrawflag CG_SHOW_NOTEAMINFO + ownerdraw CG_SELECTEDPLAYER_LOCATION + } + + itemDef { + name "b" + rect 7 40 16 16 + visible 1 + decoration + ownerdrawflag CG_SHOW_NOTEAMINFO + ownerdraw CG_SELECTEDPLAYER_STATUS + } + + itemDef { + name "b" + rect 30 40 16 16 + visible 1 + decoration + ownerdrawflag CG_SHOW_NOTEAMINFO + ownerdraw CG_SELECTEDPLAYER_POWERUP + } + + itemDef { + name "b" + rect 100 33 24 24 + visible 1 + decoration + ownerdrawflag CG_SHOW_NOTEAMINFO + ownerdraw CG_SELECTEDPLAYER_WEAPON + } + + itemDef { + name "statusscreen" + visible 1 + style 3 + background "menuscreen2" + rect 2 4 170 57 + } + + itemDef { + name "sback" + rect 0 0 256 64 + visible 1 + style 3 + decoration + background "ui/assets/selectedstatus.tga" + } + + } + + + + // PLAYER STATUS // + + menuDef { + name "playerStatus" + fullScreen MENU_FALSE + visible MENU_TRUE + rect 0 416 128 64 + + itemDef { + name "playerStatusRect" + style 4 + rect 12 13 116 48 + visible 1 + } + itemDef { + name "playerRect" + rect 12 13 116 48 + style 3 + background hudalert_good + visible 1 + ownerdrawflag CG_SHOW_IF_PLAYER_HAS_FLAG + } + + itemDef { + name "playeritem" + rect 27 25 22 22 + visible 1 + decoration + ownerdraw CG_PLAYER_ITEM + } + + itemDef { + name "CTFPOWERUP" + rect 54 25 22 22 + visible 1 + decoration + ownerdraw CG_CTF_POWERUP + } + + itemDef { + name "flag" + rect 85 15 40 40 + visible 1 + decoration + ownerdraw CG_PLAYER_HASFLAG + } + + itemDef { + name "skulls" + rect 72 10 48 34 + visible 1 + decoration + textaligny 12 + textalignx 0 + textscale 0.333 + textstyle 3 + ownerdraw CG_HARVESTER_SKULLS + } + + itemDef { + name "statusscreen" + visible 1 + style 3 + background "menuscreen2" + rect 12 13 116 48 + } + } + + + // AMMO // + + menuDef { + name "Ammo" + fullScreen MENU_FALSE + visible MENU_TRUE + rect 128 416 128 64 + + + itemDef { + name "ammoRect" + visible 1 + style 4 + rect 3 13 122 48 + } + + itemDef { + name "a" + rect 85 25 30 30 + visible 1 + decoration + ownerdraw CG_PLAYER_AMMO_ICON2D + } + + + itemDef { + name "a" + rect 10 43 63 12 + visible 1 + textstyle 3 + decoration + textscale .75 + forecolor 1 1 1 1 + ownerdraw CG_PLAYER_AMMO_VALUE + addColorRange -999 5 1 0 0 1 + addColorRange 6 999 1 .75 0 1 + } + + itemDef { + name "statusscreen" + visible 1 + style 3 + background "menuscreen2" + rect 3 13 122 48 + } + } + + + + + + + // PLAYER // + + menuDef { + name "Player" + fullScreen MENU_FALSE + visible MENU_TRUE + rect 256 416 128 64 + + + itemDef { + name "playerRect" + rect 0 2 128 60 + style 4 + visible 1 + } + + itemDef { + name "playerRect" + rect 0 2 128 60 + style 3 + background hudalert + visible 1 + ownerdrawflag CG_SHOW_HEALTHCRITICAL + } + + + itemDef { + name "healthok" + rect 12 42 63 12 + visible 1 + decoration + textstyle 3 + forecolor 1 1 1 1 + textscale .75 + ownerdraw CG_PLAYER_HEALTH + addColorRange -999 25 1 0 0 1 + addColorRange 26 100 1 .75 0 1 + addColorRange 101 999 1 1 1 1 + } + + itemDef { + name "statusscreen" + visible 1 + style 3 + background "menuscreen2" + rect 0 2 128 60 + } + + itemDef { + name "b" + rect 70 10 45 45 + visible 1 + decoration + ownerdraw CG_PLAYER_HEAD + } + } + + + + + + + + // ARMOR // + + menuDef { + name "Armor" + fullScreen MENU_FALSE + visible MENU_TRUE + rect 384 416 128 64 + + + itemDef { + name "armorRect" + rect 0 13 125 48 + visible 1 + style 4 + } + + itemDef { + name "armor" + rect 10 7 30 30 + visible 1 + decoration + ownerdraw CG_PLAYER_ARMOR_ICON2D + } + + + itemDef { + name "armor2" + rect 55 43 63 12 + visible 1 + decoration + textstyle 3 + textscale .75 + ownerdraw CG_PLAYER_ARMOR_VALUE + addColorRange -999 25 .67 0 0 1 + addColorRange 26 100 1 .75 0 1 + addColorRange 101 999 .75 .75 .75 1 + } + + itemDef { + name "statusscreen" + visible 1 + style 3 + background "menuscreen2" + rect 0 13 125 48 + } + } + + + // PLAYERSCORE // + + menuDef { + name "PlayerScore" + fullScreen MENU_FALSE + visible MENU_TRUE + rect 512 416 128 64 + ownerdrawflag CG_SHOW_ANYTEAMGAME + + + itemDef { + name "playerScoreRect" + visible 1 + rect 0 13 126 48 + style 4 + } + + itemDef { + name "playerRect" + rect 0 13 63 48 + style 3 + background hudalert_blue + visible 1 + ownerdrawflag CG_SHOW_BLUE_TEAM_HAS_REDFLAG + } + + itemDef { + name "playerRect" + rect 63 13 63 48 + style 3 + background hudalert_red + visible 1 + ownerdrawflag CG_SHOW_RED_TEAM_HAS_BLUEFLAG + } + + + itemDef { + name "f" + rect 30 22 16 16 + visible 1 + bordercolor 1 1 1 .75 + decoration + style 3 + background "ui/assets/bluechip.tga" + } + itemDef { + name "f" + rect 30 22 16 16 + visible 1 + bordercolor 1 1 1 .75 + decoration + style 3 + ownerdrawflag CG_SHOW_HARVESTER + background "icons/skull_blue.tga" + } + + itemDef { + name "blueflag" + rect 30 22 16 16 + visible 1 + decoration + ownerdrawflag CG_SHOW_CTF + ownerdraw CG_BLUE_FLAGSTATUS + } + + + itemDef { + name "oneflagstatus" + rect 30 40 16 16 + visible 1 + decoration + ownerdraw CG_ONEFLAG_STATUS + } + + + itemDef { + name "r" + rect 35 21 30 15 + textstyle 3 + visible 1 + decoration + forecolor .25 .25 1 1 + textscale 0.25 + ownerdraw CG_BLUE_SCORE + } + + itemDef { + name "f" + rect 77 22 16 16 + visible 1 + bordercolor 1 1 1 1 + decoration + style 3 + background "ui/assets/redchip.tga" + } + + itemDef { + name "f" + rect 77 22 16 16 + visible 1 + bordercolor 1 1 1 1 + decoration + style 3 + ownerdrawflag CG_SHOW_HARVESTER + background "icons/skull_red.tga" + } + + itemDef { + name "f" + rect 77 22 16 16 + visible 1 + decoration + ownerdrawflag CG_SHOW_CTF + ownerdraw CG_RED_FLAGSTATUS + } + + itemDef { + name "r" + rect 87 21 30 15 + textstyle 3 + visible 1 + decoration + forecolor 1 0 0 1 + textscale 0.25 + ownerdraw CG_RED_SCORE + } + + itemDef { + name "statusscreen" + visible 1 + style 3 + background "menuscreen2" + rect 0 13 126 48 + } + + itemDef { + name "playerScore" + type 4 + rect 8 36 40 12 + visible 1 + textstyle 3 + decoration + forecolor 1 1 1 1 + textscale .25 + ownerdraw CG_CAPFRAGLIMIT + } + + + + itemDef { + name "playerScore" + style 0 + rect 60 43 65 12 + visible 1 + textstyle 3 + decoration + forecolor 1 1 1 1 + textscale .25 + ownerdraw CG_PLAYER_SCORE + } + } + + + // PLAYERSCORE // + + menuDef { + name "PlayerScore" + fullScreen MENU_FALSE + visible MENU_TRUE + rect 512 416 128 64 + ownerdrawflag CG_SHOW_ANYNONTEAMGAME + + itemDef { + name "playerScoreRect" + visible 1 + rect 0 13 126 48 + style 4 + } + + itemDef { + name "statusscreen" + visible 1 + style 3 + background "menuscreen2" + rect 0 13 126 48 + } + + itemDef { + name "playerScore" + rect 8 32 40 12 + visible 1 + textstyle 3 + decoration + forecolor 1 1 1 1 + textscale .25 + text "FragLimit:" + ownerdraw CG_CAPFRAGLIMIT + } + itemDef { + name "playerScore" + style 0 + rect 10 45 65 12 + visible 1 + textstyle 3 + text "1st:" + ownerdraw CG_1STPLACE + decoration + forecolor .25 .25 1 1 + textscale .25 + } + itemDef { + name "playerScore" + style 0 + rect 70 45 65 12 + visible 1 + textstyle 3 + text "2nd:" + ownerdraw CG_2NDPLACE + decoration + forecolor 1 0 0 1 + textscale .25 + } + + + itemDef { + name "playerScore" + style 0 + rect 10 58 40 0 + visible 1 + textstyle 3 + text "Score:" + decoration + forecolor 1 1 1 1 + textscale .25 + ownerdraw CG_PLAYER_SCORE + } + } + + + // LOCATION // + + menuDef { + name "location" + fullScreen MENU_FALSE + visible MENU_TRUE + rect 463 395 256 32 + ownerdrawflag CG_SHOW_ANYTEAMGAME + + + itemDef { + name "locationRect" + visible MENU_TRUE + rect 2 6 170 26 + style 4 + } + itemDef { + name "playerStatus" + rect 16 10 16 16 + visible 1 + decoration + ownerdraw CG_PLAYER_STATUS + } + + itemDef { + name "playerlocation" + rect 37 7 16 16 + visible 1 + textstyle 3 + decoration + textscale .25 + ownerdraw CG_PLAYER_LOCATION + } + itemDef { + name "lback" + rect 0 0 256 32 + visible 1 + style 3 + decoration + background "ui/assets/locationstatus.tga" + } + } + + + + // STATUSBAR // + + menuDef { + name "statusbar" + fullScreen 0 + visible 1 + rect 0 416 640 64 + + + itemDef { + name "statusbar" + rect 0 0 640 64 + style 3 + background "ui/assets/statusbar_full.tga" + visible 1 + decoration + forecolor 1 1 1 1 + backcolor 1 1 1 1 + } + } + + + + + + + menuDef { + name "voiceMenu" + fullScreen MENU_FALSE + visible MENU_FALSE + rect 5 5 100 100 + + + itemDef { + name "voiceMenuRect" + style 4 + rect 2 2 50 50 + visible 1 + } + + itemDef { + name "b" + rect 2 2 50 50 + visible 1 + decoration + ownerdraw CG_VOICE_HEAD + } + + itemDef { + name "b" + rect 2 2 50 50 + style WINDOW_STYLE_SHADER + background "menuscreen2" + visible 1 + decoration + } + + itemDef { + name "voiceWindow" + visible 1 + style 3 + background "ui/assets/voice_window.tga" + rect 0 0 54 54 + } + + + itemDef { + name "b" + rect 2 55 50 12 + visible 1 + decoration + textscale .25 + textalign 0 + textalignx 0 + textaligny 12 + ownerdraw CG_VOICE_NAME + } + + + } + + diff --git a/reaction/uifiles/hud.txt b/reaction/uifiles/hud.txt new file mode 100644 index 00000000..ab99a101 --- /dev/null +++ b/reaction/uifiles/hud.txt @@ -0,0 +1,7 @@ +// hud menu defs +// +{ + loadMenu { "ui/hud.menu" } + loadMenu { "ui/score.menu" } + loadMenu { "ui/teamscore.menu" } +} diff --git a/reaction/uifiles/hud2.txt b/reaction/uifiles/hud2.txt new file mode 100644 index 00000000..c0a2da4b --- /dev/null +++ b/reaction/uifiles/hud2.txt @@ -0,0 +1,7 @@ +// hud menu defs +// +{ + loadMenu { "ui/min_hud.menu" } + loadMenu { "ui/score.menu" } + loadMenu { "ui/teamscore.menu" } +} diff --git a/reaction/uifiles/ingame.menu b/reaction/uifiles/ingame.menu new file mode 100644 index 00000000..5df8a333 --- /dev/null +++ b/reaction/uifiles/ingame.menu @@ -0,0 +1,446 @@ +#include "ui/menudef.h" + +{ + + assetGlobalDef { + font "fonts/font" 16 // font + smallFont "fonts/smallfont" 12 // font + bigFont "fonts/bigfont" 20 // font + cursor "gfx/rq3_ta_hud/3_cursor2" // cursor + gradientBar "ui/assets/gradientbar2.tga" // gradient bar + itemFocusSound "sound/misc/menu2.wav" // sound for item getting focus (via keyboard or mouse ) + + fadeClamp 1.0 // sets the fadeup alpha + fadeCycle 1 // how often fade happens in milliseconds + fadeAmount 0.1 // amount to adjust alpha per cycle + + shadowColor 0.1 0.1 0.1 0.25 // shadow color + } + + + menuDef { + name "ingame" + visible 0 + fullScreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 0 0 640 36 + focusColor 1 .75 0 1 + disableColor .5 .5 .5 1 + onOpen { play "sound/misc/menu2.wav" ; setfocus "ig-player" ; } + + itemdef { + name "ig-bground" + rect 0 0 640 36 + style WINDOW_STYLE_SHADER + background "ui/assets/rq3-ingame-background" + //backcolor 0 0 0 .5 + visible 1 + decoration + } + + itemdef { + name "ig-bground-bar" + rect 0 36 640 2 + style WINDOW_STYLE_FILLED + //backcolor 1 0 0 1 + backcolor .5 .5 .5 1 + visible 1 + decoration + } + + itemdef { + name "ig-logo" + rect 4 0 96 32 + style WINDOW_STYLE_SHADER + background "menu/art/rq3-title-logo" + visible 1 + decoration + } + +//Box for hints + + itemDef { + style WINDOW_STYLE_SHADER + rect 384 26 40 20 + background "ui/assets/rq3-main-box-3.tga" + visible 1 + decoration + } + + itemDef { + style WINDOW_STYLE_SHADER + rect 424 26 216 20 + background "ui/assets/rq3-main-box-1.tga" + visible 1 + decoration + } + +//Buttons + + itemdef { + name "ig-player" + rect 116 8 52 16 + style WINDOW_STYLE_FILLED + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_NORMAL + textscale .225 + textalign ITEM_ALIGN_CENTER + textalignx 26 + textaligny 12 + text "Player" + shortcutKey "P" + border 1 + bordersize 1 + backcolor Ingame_Color1 + forecolor Ingame_TextColor + bordercolor Ingame_BorderColor1 + visible 1 + action { open ingame_player } + onFocus { setcolor backcolor Ingame_Color2 ; setcolor bordercolor Ingame_BorderColor2 ; + show "ig-player-hint" ; timeFade "ig-player-hint" forecolor .9 .9 .9 1 0 250 } + leaveFocus { setcolor backcolor Ingame_Color1 ; setcolor bordercolor Ingame_BorderColor1 ; + timeFade "ig-player-hint" forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name "ig-options" + rect 180 8 52 16 + style WINDOW_STYLE_FILLED + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_NORMAL + textscale .225 + textalign ITEM_ALIGN_CENTER + textalignx 26 + textaligny 12 + text "Options" + shortcutKey "O" + border 1 + bordersize 1 + backcolor Ingame_Color1 + forecolor Ingame_TextColor + bordercolor Ingame_BorderColor1 + visible 1 + action { open ingame_system } + //action { exec "screenshotJPEG" ; } + onFocus { setcolor backcolor Ingame_Color2 ; setcolor bordercolor Ingame_BorderColor2 ; + show "ig-options-hint" ; timeFade "ig-options-hint" forecolor .9 .9 .9 1 0 250 } + leaveFocus { setcolor backcolor Ingame_Color1 ; setcolor bordercolor Ingame_BorderColor1 ; + timeFade "ig-options-hint" forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name "ig-about" + rect 244 8 52 16 + style WINDOW_STYLE_FILLED + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_NORMAL + textscale .225 + textalign ITEM_ALIGN_CENTER + textalignx 26 + textaligny 12 + text "About" + shortcutKey "A" + border 1 + bordersize 1 + backcolor Ingame_Color1 + forecolor Ingame_TextColor + bordercolor Ingame_BorderColor1 + visible 1 + action { open ingame_about } + onFocus { setcolor backcolor Ingame_Color2 ; setcolor bordercolor Ingame_BorderColor2 ; + show "ig-about-hint" ; timeFade "ig-about-hint" forecolor .9 .9 .9 1 0 250 } + leaveFocus { setcolor backcolor Ingame_Color1 ; setcolor bordercolor Ingame_BorderColor1 ; + timeFade "ig-about-hint" forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name "ig-matchmode" + rect 308 8 68 16 + style WINDOW_STYLE_FILLED + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_NORMAL + textscale .225 + textalign ITEM_ALIGN_CENTER + textalignx 34 + textaligny 12 + text "Matchmode" + shortcutKey "M" + border 1 + bordersize 1 + backcolor Ingame_Color1 + forecolor Ingame_TextColor + bordercolor Ingame_BorderColor1 + visible 1 + cvarTest "g_RQ3_matchMode" + enableCvar { "1" } + action { open ingame_matchmode } + onFocus { setcolor backcolor Ingame_Color2 ; setcolor bordercolor Ingame_BorderColor2 ; + show "ig-matchmode-hint" ; timeFade "ig-matchmode-hint" forecolor .9 .9 .9 1 0 250 } + leaveFocus { setcolor backcolor Ingame_Color1 ; setcolor bordercolor Ingame_BorderColor1 ; + timeFade "ig-matchmode-hint" forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name "ig-vote" + rect 400 4 52 16 + style WINDOW_STYLE_FILLED + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_NORMAL + textscale .225 + textalign ITEM_ALIGN_CENTER + textalignx 26 + textaligny 12 + text "Vote" + shortcutKey "V" + border 1 + bordersize 1 + backcolor Ingame_Color1 + forecolor Ingame_TextColor + bordercolor Ingame_BorderColor1 + visible 1 + cvartest "g_allowVote" + disableCvar { "0" } + action { open ingame_vote } + onFocus { setcolor backcolor Ingame_Color2 ; setcolor bordercolor Ingame_BorderColor2 ; + show "ig-vote-hint" ; timeFade "ig-vote-hint" forecolor .9 .9 .9 1 0 250 } + leaveFocus { setcolor backcolor Ingame_Color1 ; setcolor bordercolor Ingame_BorderColor1 ; + timeFade "ig-vote-hint" forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name "ig-addbot" + rect 460 4 52 16 + style WINDOW_STYLE_FILLED + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_NORMAL + textscale .225 + textalign ITEM_ALIGN_CENTER + textalignx 26 + textaligny 12 + text "Add bot" + shortcutKey "B" + border 1 + bordersize 1 + backcolor Ingame_Color1 + forecolor Ingame_TextColor + bordercolor Ingame_BorderColor1 + visible 1 + cvartest "ui_singlePlayerActive" + disableCvar { "1" } + action { open ingame_addbot } + onFocus { setcolor backcolor Ingame_Color2 ; setcolor bordercolor Ingame_BorderColor2 ; + show "ig-addbot-hint" ; timeFade "ig-addbot-hint" forecolor .9 .9 .9 1 0 250 } + leaveFocus { setcolor backcolor Ingame_Color1 ; setcolor bordercolor Ingame_BorderColor1 ; + timeFade "ig-addbot-hint" forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name "ig-devmode" + rect 520 4 52 16 + style WINDOW_STYLE_FILLED + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_NORMAL + textscale .225 + textalign ITEM_ALIGN_CENTER + textalignx 26 + textaligny 12 + text "Devmode" + shortcutKey "D" + border 1 + bordersize 1 + backcolor Ingame_Color1 + forecolor Ingame_TextColor + bordercolor Ingame_BorderColor1 + visible 1 + cvartest "sv_cheats" + enableCvar { "1" } + disableCvar { "0" } + action { open ingame_devmode } + onFocus { setcolor backcolor Ingame_Color2 ; setcolor bordercolor Ingame_BorderColor2 ; + show "ig-devmode-hint" ; timeFade "ig-devmode-hint" forecolor .9 .9 .9 1 0 250 } + leaveFocus { setcolor backcolor Ingame_Color1 ; setcolor bordercolor Ingame_BorderColor1 ; + timeFade "ig-devmode-hint" forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name "ig-quit" + rect 580 4 52 16 + style WINDOW_STYLE_FILLED + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_NORMAL + textscale .225 + textalign ITEM_ALIGN_CENTER + textalignx 26 + textaligny 12 + text "Quit" + shortcutKey "Q" + border 1 + bordersize 1 + backcolor Ingame_Color1 + forecolor Ingame_TextColor + bordercolor Ingame_BorderColor1 + visible 1 + action { open ingame_leave } + onFocus { setcolor backcolor Ingame_Color2 ; setcolor bordercolor Ingame_BorderColor2 ; + show "ig-quit-hint" ; timeFade "ig-quit-hint" forecolor .9 .9 .9 1 0 250 } + leaveFocus { setcolor backcolor Ingame_Color1 ; setcolor bordercolor Ingame_BorderColor1 ; + timeFade "ig-quit-hint" forecolor .9 .9 .9 0 0 250 } + } + +//Hints + + //Hint for player in teamplay mode + + itemdef { + name "ig-player-hint" + group "hints" + style WINDOW_STYLE_EMPTY + rect 400 28 240 16 + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .2 + textalign ITEM_ALIGN_RIGHT + textalignx 236 + textaligny 12 + text "Player options, team, weapon & item" + forecolor Ingame_HintColor + cvarTest "g_gameType" + showCvar { "4" } + visible 0 + decoration + } + + //Hint for player in a non-teamplay mode + + itemdef { + name "ig-player-hint" + group "hints" + style WINDOW_STYLE_EMPTY + rect 400 28 240 16 + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .2 + textalign ITEM_ALIGN_RIGHT + textalignx 236 + textaligny 12 + text "Change player options" + forecolor Ingame_HintColor + cvarTest "g_gameType" + hideCvar { "4" } + visible 0 + decoration + } + + itemdef { + name "ig-options-hint" + group "hints" + style WINDOW_STYLE_EMPTY + rect 400 28 240 16 + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .2 + textalign ITEM_ALIGN_RIGHT + textalignx 236 + textaligny 12 + text "Controls, game & system options" + forecolor Ingame_HintColor + visible 0 + decoration + } + + itemdef { + name "ig-about-hint" + group "hints" + style WINDOW_STYLE_EMPTY + rect 400 28 240 16 + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .2 + textalign ITEM_ALIGN_RIGHT + textalignx 236 + textaligny 12 + text "View server info" + forecolor Ingame_HintColor + visible 0 + decoration + } + + itemdef { + name "ig-devmode-hint" + group "hints" + style WINDOW_STYLE_EMPTY + rect 400 28 240 16 + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .2 + textalign ITEM_ALIGN_RIGHT + textalignx 236 + textaligny 12 + text "Developer mode commands" + forecolor Ingame_HintColor + visible 0 + decoration + } + + itemdef { + name "ig-addbot-hint" + group "hints" + style WINDOW_STYLE_EMPTY + rect 400 28 240 16 + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .2 + textalign ITEM_ALIGN_RIGHT + textalignx 236 + textaligny 12 + text "Play against computer-controlled opponnents" + forecolor Ingame_HintColor + visible 0 + decoration + } + + itemdef { + name "ig-vote-hint" + group "hints" + style WINDOW_STYLE_EMPTY + rect 400 28 240 16 + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .2 + textalign ITEM_ALIGN_RIGHT + textalignx 236 + textaligny 12 + text "Vote yes/no or call a vote" + forecolor Ingame_HintColor + visible 0 + decoration + } + + itemdef { + name "ig-matchmode-hint" + group "hints" + style WINDOW_STYLE_EMPTY + rect 400 28 240 16 + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .2 + textalign ITEM_ALIGN_RIGHT + textalignx 236 + textaligny 12 + text "View/change match mode settings" + forecolor Ingame_HintColor + visible 0 + decoration + } + + itemdef { + name "ig-quit-hint" + group "hints" + style WINDOW_STYLE_EMPTY + rect 400 28 240 16 + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .2 + textalign ITEM_ALIGN_RIGHT + textalignx 236 + textaligny 12 + text "Exit Reaction Quake 3" + forecolor Ingame_HintColor + visible 0 + decoration + } + + } + +} diff --git a/reaction/uifiles/ingame.txt b/reaction/uifiles/ingame.txt new file mode 100644 index 00000000..252794e8 --- /dev/null +++ b/reaction/uifiles/ingame.txt @@ -0,0 +1,23 @@ +{ + // MENU DEFS // + + loadMenu { "ui/ingame.menu" } + loadMenu { "ui/ingame_devmode.menu" } + loadMenu { "ui/ingame_vote.menu" } + loadMenu { "ui/ingame_tkok.menu" } + loadMenu { "ui/ingame_about.menu" } + loadMenu { "ui/ingame_join.menu" } + loadMenu { "ui/ingame_join_dm.menu" } + loadMenu { "ui/ingame_system.menu" } + loadMenu { "ui/ingame_controls.menu" } + loadMenu { "ui/ingame_options.menu" } + loadMenu { "ui/ingame_player.menu" } + loadMenu { "ui/ingame_weapon.menu" } + loadMenu { "ui/ingame_item.menu" } + loadMenu { "ui/ingame_ignore.menu" } + loadMenu { "ui/ingame_addbot.menu" } + loadMenu { "ui/ingame_callvote.menu" } + loadMenu { "ui/ingame_leave.menu" } + loadMenu { "ui/ingame_matchmode.menu" } + +} diff --git a/reaction/uifiles/ingame_about.menu b/reaction/uifiles/ingame_about.menu new file mode 100644 index 00000000..d6f0d7b9 --- /dev/null +++ b/reaction/uifiles/ingame_about.menu @@ -0,0 +1,318 @@ +#include "ui/menudef.h" + +{ + + menuDef { + name "ingame_about" + 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 + 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 296 + rect 0 0 256 320 + 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 "Server info" + visible 1 + decoration + } + +//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 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 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 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 sv_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 g_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 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 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 g_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 + textalign ITEM_ALIGN_LEFT + textalignx 128 + textaligny 12 + textalign 1 + textscale .25 + forecolor 1 1 1 1 + visible 1 + decoration + } +} +} diff --git a/reaction/uifiles/ingame_addbot.menu b/reaction/uifiles/ingame_addbot.menu new file mode 100644 index 00000000..6297ff07 --- /dev/null +++ b/reaction/uifiles/ingame_addbot.menu @@ -0,0 +1,128 @@ +#include "ui/menudef.h" + +{ + + menuDef { + name "ingame_addbot" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 384 64 152 128 + 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 "ig-bot-name" } + +//Window + + itemdef { + rect 0 0 152 128 + style WINDOW_STYLE_FILLED + backcolor Ig_Window_Color + visible 1 + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + decoration + } + + itemdef { + rect 33 1 120 24 + style WINDOW_STYLE_SHADER + background "ui/assets/rq3-ingame-title" + visible 1 + decoration + } + + itemdef { + rect 33 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 "Add bot" + visible 1 + decoration + } + +//Objects + + itemdef { + name "ig-bot-name" + style WINDOW_STYLE_EMPTY + text "Name:" + ownerdraw UI_BOTNAME + rect 0 32 128 20 + textalign ITEM_ALIGN_RIGHT + textalignx 48 + textaligny 18 + textscale .225 + forecolor 1 1 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + } + + itemdef { + name "ig-bot-team" + style WINDOW_STYLE_EMPTY + text "Team:" + ownerdraw UI_REDBLUE + rect 0 52 128 20 + textalign ITEM_ALIGN_RIGHT + textalignx 48 + textaligny 18 + textscale .225 + cvarTest "g_gametype" + disableCvar { "0" ; "1" } + forecolor 1 1 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + } + + itemdef { + name "ig-bot-skill" + style WINDOW_STYLE_EMPTY + text "Skill:" + ownerdraw UI_BOTSKILL + rect 0 72 128 20 + textalign ITEM_ALIGN_RIGHT + textalignx 48 + textaligny 18 + textscale .225 + forecolor 1 1 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + } + + itemdef { + name ok + rect 80 100 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 "Ok" + shortcutKey "O" + border 1 + bordersize 1 + backcolor Ig_Sub_Color1 + forecolor Ig_Sub_TextColor + bordercolor Ig_Sub_BorderColor1 + visible 1 + action { play "sound/misc/menu1.wav" ; uiScript addBot ; uiScript closeingame } + //action { exec "screenshotJPEG" } + 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_callvote.menu b/reaction/uifiles/ingame_callvote.menu new file mode 100644 index 00000000..d2a475c1 --- /dev/null +++ b/reaction/uifiles/ingame_callvote.menu @@ -0,0 +1,334 @@ +#include "ui/menudef.h" + +{ + //----------------// + // CALL VOTE MENU // + //----------------// + + menuDef { + name "ingame_callvote" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 320 64 288 212 + focusColor 1 .75 0 1 // Menu focus color for text and items + style WINDOW_STYLE_EMPTY + shadowStyle 1 + border 0 + onOpen { uiScript loadArenas ; hide grpcallVote ; show map } + +//Window + + itemDef { + rect 0 0 72 212 + style WINDOW_STYLE_FILLED + backcolor Ig_Window_Color + visible 1 + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + decoration + } + + itemDef { + rect 71 0 215 212 + style WINDOW_STYLE_FILLED + backcolor Ig_Window_Color + visible 1 + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + decoration + } + + itemDef { + rect 169 1 120 24 + style WINDOW_STYLE_SHADER + background "ui/assets/rq3-ingame-title" + visible 1 + decoration + } + + itemDef { + rect 169 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 "Call vote" + visible 1 + decoration + } + +//Sub-sections + + itemDef { + name sectionMap + group grpSections + text "Map" + shortcutKey "M" + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_EMPTY + rect 0 44 72 16 + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 12 + textstyle ITEM_TEXTSTYLE_SHADOWED + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + forecolor Ig_Sub_TextColor + visible 1 + action { play "sound/misc/menu1.wav" ; hide grpCallVote ; show map } + } + + itemDef { + name sectionKick + group grpSections + text "Kick" + shortcutKey "K" + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_EMPTY + rect 0 68 72 16 + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 12 + textstyle ITEM_TEXTSTYLE_SHADOWED + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + forecolor Ig_Sub_TextColor + visible 1 + action { play "sound/misc/menu1.wav" ; hide grpCallVote ; show kick } + } + + itemDef { + name sectionType + group grpSections + text "Type" + shortcutKey "T" + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_EMPTY + rect 0 92 72 16 + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 12 + textstyle ITEM_TEXTSTYLE_SHADOWED + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + forecolor Ig_Sub_TextColor + visible 1 + action { play "sound/misc/menu1.wav" ; hide grpCallVote ; show type } + } + +//======================= + + // NEW MAP // + + itemDef { + name map + group grpCallVote + text "New Map:" + ownerdraw UI_ALLMAPS_SELECTION + textscale .225 + rect 84 32 80 20 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 14 + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef { + name map + group grpCallVote + rect 84 52 188 124 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 120 + elementheight 15 + textscale .225 + elementtype LISTBOX_TEXT + feeder FEEDER_ALLMAPS + border 1 + bordercolor .25 .25 .25 1 + forecolor 1 1 1 1 + backcolor 0 0 0 .25 + outlinecolor .75 .75 1 .25 + visible 0 + } + + // Scrollbar separator // + + itemDef { + name map + group grpCallVote + rect 254 52 18 124 + style WINDOW_STYLE_EMPTY + border 1 + borderSize 1 + bordercolor .25 .25 .25 1 + visible 0 + decoration + } + + itemDef { + name map + group grpCallVote + text "Next Map" + shortcutKey "N" + textscale .225 + rect 84 180 80 20 + type 1 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 14 + forecolor 1 1 1 1 + visible 0 + action { play "sound/misc/menu1.wav" ; exec "cmd callvote cyclemap" ; uiScript closeingame } + } + + itemDef { + name map + text "OK" + shortcutKey "O" + type 1 + textscale .225 + group grpCallVote + style WINDOW_STYLE_FILLED + rect 224 180 48 20 + textalign 1 + textalignx 24 + textaligny 14 + border 1 + bordersize 1 + backcolor Ig_Sub_Color1 + forecolor Ig_Sub_TextColor + bordercolor Ig_Sub_BorderColor1 + visible 0 + action { play "sound/misc/menu1.wav" ; uiScript voteMap ; uiScript closeingame } + onFocus { setcolor backcolor Ig_Sub_Color2 ; setcolor bordercolor Ig_Sub_BorderColor2 } + leaveFocus { setcolor backcolor Ig_Sub_Color1 ; setcolor bordercolor Ig_Sub_BorderColor1 } + } + // KICK PLAYER // + + itemDef { + name kick + group grpCallVote + text "Kick Player:" + textscale .225 + rect 84 32 80 20 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 14 + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name kick + group grpCallVote + rect 84 52 188 124 + style WINDOW_STYLE_FILLED + type ITEM_TYPE_LISTBOX + elementwidth 120 + elementheight 15 + textscale .225 + elementtype LISTBOX_TEXT + feeder FEEDER_PLAYER_LIST + border 1 + bordercolor .25 .25 .25 1 + forecolor 1 1 1 1 + backcolor 0 0 0 .25 + outlinecolor .75 .75 1 .25 + visible 0 + } + + // Scrollbar separator // + + itemDef { + name kick + group grpCallVote + rect 254 52 18 124 + style WINDOW_STYLE_EMPTY + border 1 + borderSize 1 + bordercolor .25 .25 .25 1 + visible 0 + decoration + } + + itemDef { + name kick + text "OK" + shortcutKey "O" + type 1 + textscale .225 + group grpCallVote + style WINDOW_STYLE_FILLED + rect 224 180 48 20 + textalign 1 + textalignx 24 + textaligny 14 + border 1 + bordersize 1 + backcolor Ig_Sub_Color1 + forecolor Ig_Sub_TextColor + bordercolor Ig_Sub_BorderColor1 + visible 0 + action { play "sound/misc/menu1.wav" ; uiScript voteKick ; uiScript closeingame } + onFocus { setcolor backcolor Ig_Sub_Color2 ; setcolor bordercolor Ig_Sub_BorderColor2 } + leaveFocus { setcolor backcolor Ig_Sub_Color1 ; setcolor bordercolor Ig_Sub_BorderColor1 } + } + + // Game Type // + + itemDef { + name type + group grpCallVote + text "Gametype:" + style 0 + textscale .225 + ownerdraw UI_NETGAMETYPE + rect 84 76 188 20 + textalign ITEM_ALIGN_RIGHT + textalignx 80 + textaligny 12 + forecolor 1 1 1 1 + visible 0 + } + + itemDef { + name type + text "OK" + shortcutKey "O" + type 1 + textscale .225 + group grpCallVote + style WINDOW_STYLE_FILLED + rect 224 180 48 20 + textalign 1 + textalignx 24 + textaligny 14 + border 1 + bordersize 1 + backcolor Ig_Sub_Color1 + forecolor Ig_Sub_TextColor + bordercolor Ig_Sub_BorderColor1 + visible 0 + action { play "sound/misc/menu1.wav" ; uiScript voteGame ; uiScript closeingame } + onFocus { setcolor backcolor Ig_Sub_Color2 ; setcolor bordercolor Ig_Sub_BorderColor2 } + leaveFocus { setcolor backcolor Ig_Sub_Color1 ; setcolor bordercolor Ig_Sub_BorderColor1 } + } + +} +} diff --git a/reaction/uifiles/ingame_controls.menu b/reaction/uifiles/ingame_controls.menu new file mode 100644 index 00000000..7a2bd2d2 --- /dev/null +++ b/reaction/uifiles/ingame_controls.menu @@ -0,0 +1,1019 @@ +#include "ui/menudef.h" + +{ + //----------// + // CONTROLS // + //----------// + + + menuDef { + name "ingame_controls" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 176 64 372 340 + focusColor 1 .75 0 1 // Menu focus color for text and items + style WINDOW_STYLE_EMPTY + shadowStyle 1 + border 0 + onOpen { play "sound/misc/menu1.wav" ; hide grpControls ; show look ; setfocus sectionLook } + +//Window + + itemdef { + name "ig-controls-window" + rect 0 0 372 340 + style WINDOW_STYLE_FILLED + backcolor Ig_Window_Color + visible 1 + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + decoration + } + + itemdef { + name "ig-controls-window" + rect 95 55 277 285 + style WINDOW_STYLE_FILLED + backcolor Ig_Window_Color + visible 1 + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + decoration + } + + itemdef { + rect 253 1 120 24 + style WINDOW_STYLE_SHADER + background "ui/assets/rq3-ingame-title" + visible 1 + decoration + } + + itemdef { + rect 253 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 "Controls" + visible 1 + decoration + } + +//Tabs + + itemdef { + name tabSystem + group grpTabs + text "System" + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_EMPTY + rect 96 40 64 16 + textalign ITEM_ALIGN_LEFT + textalignx 16 + textaligny 12 + textstyle ITEM_TEXTSTYLE_SHADOWED + forecolor Ig_Setup_TabColor + visible 1 + action { close "ingame_controls" ; open "ingame_system" } + } + + itemdef { + name tabControls + group grpTabs + text "Controls" + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_EMPTY + rect 160 40 64 16 + textalign ITEM_ALIGN_LEFT + textalignx 16 + textaligny 12 + textstyle ITEM_TEXTSTYLE_SHADOWED + forecolor Ig_Sub_TextColor + visible 1 + decoration + } + + itemdef { + name tabGame + group grpTabs + text "Game" + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_EMPTY + rect 224 40 64 16 + textalign ITEM_ALIGN_LEFT + textalignx 16 + textaligny 12 + textstyle ITEM_TEXTSTYLE_SHADOWED + forecolor Ig_Setup_TabColor + visible 1 + action { close "ingame_controls" ; open "ingame_options" } + } + +//Sub-sections + + itemdef { + name sectionLook + group grpSections + text "Look" + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_EMPTY + rect 0 72 96 16 + textalign ITEM_ALIGN_RIGHT + textalignx 88 + textaligny 12 + textstyle ITEM_TEXTSTYLE_SHADOWED + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + forecolor Ig_Sub_TextColor + visible 1 + action { play "sound/misc/menu1.wav" ; hide grpControls ; show look } + } + + itemdef { + name sectionMove + group grpSections + text "Move" + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_EMPTY + rect 0 96 96 16 + textalign ITEM_ALIGN_RIGHT + textalignx 88 + textaligny 12 + textstyle ITEM_TEXTSTYLE_SHADOWED + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + forecolor Ig_Sub_TextColor + visible 1 + action { play "sound/misc/menu1.wav" ; hide grpControls ; show move } + } + + itemdef { + name sectionWeapon + group grpSections + text "Weapons" + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_EMPTY + rect 0 120 96 16 + textalign ITEM_ALIGN_RIGHT + textalignx 88 + textaligny 12 + textstyle ITEM_TEXTSTYLE_SHADOWED + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + forecolor Ig_Sub_TextColor + visible 1 + action { play "sound/misc/menu1.wav" ; hide grpControls ; show weapon } + } + + itemdef { + name sectionMisc + group grpSections + text "Misc" + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_EMPTY + rect 0 144 96 16 + textalign ITEM_ALIGN_RIGHT + textalignx 88 + textaligny 12 + textstyle ITEM_TEXTSTYLE_SHADOWED + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + forecolor Ig_Sub_TextColor + visible 1 + action { play "sound/misc/menu1.wav" ; hide grpControls ; show misc } + } + + itemdef { + name sectionReaction + group grpSections + text "Reaction" + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_EMPTY + rect 0 168 96 16 + textalign ITEM_ALIGN_RIGHT + textalignx 88 + textaligny 12 + textstyle ITEM_TEXTSTYLE_SHADOWED + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + forecolor Ig_Sub_TextColor + visible 1 + action { play "sound/misc/menu1.wav" ; hide grpControls ; show reaction } + } + +//Keys +//Looking keys + + itemdef { + name look + group grpcontrols + type ITEM_TYPE_SLIDER + text "Mouse Speed:" + cvarfloat "sensitivity" 5 1 30 + rect 224 92 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 16 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + } + + itemdef { + name look + group grpcontrols + type ITEM_TYPE_YESNO + text "Smooth Mouse:" + cvar "m_filter" + rect 224 112 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 16 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + } + + itemdef { + name look + group grpcontrols + type ITEM_TYPE_YESNO + text "Invert Mouse:" + cvar "ui_mousePitch" + rect 224 132 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 16 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + action { uiScript update ui_mousePitch ; } + } + + itemdef { + name look + group grpcontrols + cvar "+lookup" + group grpcontrols + type ITEM_TYPE_BIND + text "Look Up:" + rect 160 152 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name look + group grpcontrols + cvar "+lookdown" + type ITEM_TYPE_BIND + text "Look Down:" + rect 160 172 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name look + group grpcontrols + cvar "+mlook" + group grpcontrols + type ITEM_TYPE_BIND + text "Mouse Look:" + rect 160 192 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name look + group grpcontrols + type ITEM_TYPE_YESNO + text "Free Look:" + cvar "cl_freelook" + rect 224 212 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 16 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + } + + itemdef { + name look + group grpcontrols + cvar "centerview" + type ITEM_TYPE_BIND + text "Center View:" + rect 160 232 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name look + group grpcontrols + type ITEM_TYPE_YESNO + text "Use Joystick:" + cvar "in_joystick" + rect 224 252 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 16 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + } + + itemdef { + name look + group grpcontrols + type ITEM_TYPE_SLIDER + text "Joystick Threshold:" + cvarfloat "joy_threshold" 0.15 0.05 0.75 + rect 224 272 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 16 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + } + +//Movement keys + + + itemdef { + name move + group grpControls + type ITEM_TYPE_YESNO + text "Always Run:" + cvar "cl_run" + rect 224 84 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 16 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + } + + itemdef { + name move + group grpControls + cvar "+speed" + type ITEM_TYPE_BIND + text "Run / Walk:" + rect 160 104 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name move + group grpControls + cvar "+forward" + type ITEM_TYPE_BIND + text "Walk Forward:" + rect 160 124 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name move + group grpControls + cvar "+back" + type ITEM_TYPE_BIND + text "Backpedal:" + rect 160 144 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name move + group grpControls + cvar "+moveleft" + type ITEM_TYPE_BIND + text "Step Left:" + rect 160 164 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name move + group grpControls + cvar "+moveright" + type ITEM_TYPE_BIND + text "Step Right:" + rect 160 184 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name move + group grpControls + cvar "+moveup" + type ITEM_TYPE_BIND + text "Up / Jump:" + rect 160 204 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name move + group grpControls + cvar "+movedown" + type ITEM_TYPE_BIND + text "Down / Crouch:" + rect 160 224 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name move + group grpControls + cvar "+left" + type ITEM_TYPE_BIND + text "Turn Left:" + rect 160 244 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name move + group grpControls + cvar "+right" + type ITEM_TYPE_BIND + text "Turn Right:" + rect 160 264 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name move + group grpControls + cvar "+strafe" + type ITEM_TYPE_BIND + text "Sidestep / Turn:" + rect 160 284 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + +//Weapon keys + + itemdef { + name weapon + group grpControls + cvar "+attack" + type ITEM_TYPE_BIND + text "Attack:" + rect 176 68 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name weapon + group grpControls + cvar "weapnext" + type ITEM_TYPE_BIND + text "Next Weapon:" + rect 176 88 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name weapon + group grpControls + cvar "weapprev" + type ITEM_TYPE_BIND + text "Previous Weapon:" + rect 176 108 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name weapon + group grpControls + type ITEM_TYPE_YESNO + text "Autoswitch Weapons:" + cvar "cg_autoswitch" + rect 240 128 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 16 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + } + + itemdef { + name weapon + group grpControls + cvar "weapon 1" + type ITEM_TYPE_BIND + text "MK23 Pistol:" + rect 176 148 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name weapon + group grpControls + cvar "weapon 2" + type ITEM_TYPE_BIND + text "M3 Assault Shotgun:" + rect 176 168 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name weapon + group grpControls + cvar "weapon 3" + type ITEM_TYPE_BIND + text "MP5/10 Submachinegun:" + rect 176 188 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name weapon + group grpControls + cvar "weapon 4" + type ITEM_TYPE_BIND + text "Handcannon:" + rect 176 208 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name weapon + group grpControls + cvar "weapon 5" + type ITEM_TYPE_BIND + text "SSG Sniper Rifle:" + rect 176 228 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name weapon + group grpControls + cvar "weapon 6" + type ITEM_TYPE_BIND + text "M4 Assault Rifle:" + rect 176 248 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name weapon + group grpControls + cvar "weapon 7" + type ITEM_TYPE_BIND + text "Dual MK23 Pistols:" + rect 176 268 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name weapon + group grpControls + cvar "weapon 8" + type ITEM_TYPE_BIND + text "Combat Knife:" + rect 176 288 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name weapon + group grpControls + cvar "weapon 9" + type ITEM_TYPE_BIND + text "M26 Frag Grenade:" + rect 176 308 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + +//Misc keys + + itemdef { + name misc + group grpControls + cvar "scores" + type ITEM_TYPE_BIND + text "Show Scores:" + rect 168 100 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name misc + group grpControls + cvar "+button3" + type ITEM_TYPE_BIND + text "Gesture:" + rect 168 120 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name misc + group grpControls + cvar "messagemode" + type ITEM_TYPE_BIND + text "Chat:" + rect 168 140 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name misc + group grpControls + cvar "messagemode2" + type ITEM_TYPE_BIND + text "Chat - Team:" + rect 168 160 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name misc + group grpControls + cvar "messagemode3" + type ITEM_TYPE_BIND + text "Chat - Target:" + rect 168 180 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name misc + group grpControls + cvar "messagemode4" + type ITEM_TYPE_BIND + text "Chat - Attacker:" + rect 168 200 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name misc + group grpControls + cvar "screenshot" + type ITEM_TYPE_BIND + text "Screenshot:" + rect 168 220 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name misc + group grpControls + cvar "screenshotJPEG" + type ITEM_TYPE_BIND + text "Screenshot - JPEG:" + rect 168 240 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + +//Reaction keys + + itemdef { + name reaction + group grpControls + cvar "bandage" + type ITEM_TYPE_BIND + text "Bandage:" + rect 176 80 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name reaction + group grpControls + cvar "+button5" + type ITEM_TYPE_BIND + text "Reload:" + rect 176 100 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name reaction + group grpControls + cvar "weapon" + type ITEM_TYPE_BIND + text "Weapon Mode:" + rect 176 120 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name reaction + group grpControls + cvar "opendoor" + type ITEM_TYPE_BIND + text "Open Door:" + rect 176 140 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name reaction + group grpControls + cvar "dropweapon" + type ITEM_TYPE_BIND + text "Drop Weapon:" + rect 176 160 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name reaction + group grpControls + cvar "dropitem" + type ITEM_TYPE_BIND + text "Drop Item:" + rect 176 180 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name reaction + group grpControls + cvar "irvision" + type ITEM_TYPE_BIND + text "IR Vision:" + rect 176 200 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name reaction + group grpControls + cvar "specialweapon" + type ITEM_TYPE_BIND + text "Special Weapon Cycle:" + rect 176 220 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name reaction + group grpControls + cvar "ui_RQ3_loadout" + type ITEM_TYPE_BIND + text "TP Weapon/Item:" + rect 176 240 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } + + itemdef { + name reaction + group grpControls + cvar "ui_RQ3_joinTeam" + type ITEM_TYPE_BIND + text "Join Team:" + rect 176 260 128 20 + forecolor Ig_Sub_TextColor + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 16 + textscale .225 + visible 0 + } +} +} diff --git a/reaction/uifiles/ingame_devmode.menu b/reaction/uifiles/ingame_devmode.menu new file mode 100644 index 00000000..c3fedd5e --- /dev/null +++ b/reaction/uifiles/ingame_devmode.menu @@ -0,0 +1,293 @@ +#include "ui/menudef.h" + +{ + + menuDef { + name "ingame_devmode" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 368 64 256 192 + focusColor 1 .75 0 1 // Menu focus color for text and items + style WINDOW_STYLE_EMPTY + shadowStyle 1 + border 0 + onOpen { play "sound/misc/menu1.wav" } + +//Window + + itemDef { + rect 0 0 256 120 + style WINDOW_STYLE_FILLED + backcolor Ig_Window_Color + visible 1 + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + decoration + } + + itemDef { + rect 0 119 256 73 + 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 "Developer mode" + visible 1 + decoration + } + +//Options + +//3rd Person + + itemDef { + type ITEM_TYPE_YESNO + text "3rd Person:" + cvar "cg_thirdPerson" + rect 32 36 144 20 + textalign ITEM_ALIGN_RIGHT + textalignx 96 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 1 + } + +//3rd Person Angle + + itemDef { + type ITEM_TYPE_SLIDER + text "Angle:" + cvarfloat "cg_thirdPersonAngle" 180 0 360 + rect 32 60 144 20 + textalign ITEM_ALIGN_RIGHT + textalignx 24 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 1 + } + +//3rd Person Range + + itemDef { + type ITEM_TYPE_SLIDER + text "Range:" + cvarfloat "cg_thirdPersonRange" 200 40 840 + rect 32 84 144 20 + textalign ITEM_ALIGN_RIGHT + textalignx 24 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 1 + } + +//God mode + + itemDef { + rect 176 40 60 16 + style WINDOW_STYLE_FILLED + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_NORMAL + textscale .225 + textalign ITEM_ALIGN_CENTER + textalignx 30 + textaligny 12 + text "God" + shortcutKey "G" + border 1 + bordersize 1 + backcolor Ig_Sub_Color1 + forecolor Ig_Sub_TextColor + bordercolor Ig_Sub_BorderColor1 + visible 1 + action { play "sound/misc/menu1.wav" ; exec "god" ; uiScript closeingame } + onFocus { setcolor backcolor Ig_Sub_Color2 ; setcolor bordercolor Ig_Sub_BorderColor2 } + leaveFocus { setcolor backcolor Ig_Sub_Color1 ; setcolor bordercolor Ig_Sub_BorderColor1 } + } + +//Give all + + itemDef { + rect 176 64 60 16 + style WINDOW_STYLE_FILLED + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_NORMAL + textscale .225 + textalign ITEM_ALIGN_CENTER + textalignx 30 + textaligny 12 + text "Give All" + shortcutKey "A" + border 1 + bordersize 1 + backcolor Ig_Sub_Color1 + forecolor Ig_Sub_TextColor + bordercolor Ig_Sub_BorderColor1 + visible 1 + action { play "sound/misc/menu1.wav" ; exec "give all" ; uiScript closeingame } + onFocus { setcolor backcolor Ig_Sub_Color2 ; setcolor bordercolor Ig_Sub_BorderColor2 } + leaveFocus { setcolor backcolor Ig_Sub_Color1 ; setcolor bordercolor Ig_Sub_BorderColor1 } + } + +//Noclip mode + + itemDef { + rect 176 88 60 16 + style WINDOW_STYLE_FILLED + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_NORMAL + textscale .225 + textalign ITEM_ALIGN_CENTER + textalignx 30 + textaligny 12 + text "Noclip" + shortcutKey "N" + border 1 + bordersize 1 + backcolor Ig_Sub_Color1 + forecolor Ig_Sub_TextColor + bordercolor Ig_Sub_BorderColor1 + visible 1 + action { play "sound/misc/menu1.wav" ; exec "noclip" ; uiScript closeingame } + onFocus { setcolor backcolor Ig_Sub_Color2 ; setcolor bordercolor Ig_Sub_BorderColor2 } + leaveFocus { setcolor backcolor Ig_Sub_Color1 ; setcolor bordercolor Ig_Sub_BorderColor1 } + } + + // DEMO RECORDING OPTIONS // + + // Demo name // + + itemDef { + name demo + text "Demo:" + style 0 + textscale .225 + rect 32 132 144 20 + textalign ITEM_ALIGN_RIGHT + textalignx 24 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + decoration + visible 1 + } + + itemDef { + name demoEntry + style WINDOW_STYLE_FILLED + rect 20 152 148 16 + text "" + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + maxchars 20 + maxPaintChars 8 + textscale .225 + type ITEM_TYPE_EDITFIELD + cvar "ui_RQ3_demoName" + border 1 + bordersize 1 + bordercolor .25 .25 .25 1 + forecolor 1 1 1 1 + backcolor 1 1 1 .1 + visible 1 + onfocus { setcolor backcolor 1 1 1 .2 ; } + leavefocus { setcolor backcolor 1 1 1 .1 ; } + } + +/* + // Game speed + + itemDef { + type ITEM_TYPE_MULTI + text "Speed:" + cvar "timescale" + cvarFloatList { "25%" 0.25 "50%" 0.5 "75%" 0.75 "100%" 1 "125%" 1.25 "150%" 1.5 "200%" 2 "250%" 2.5 "300%" 3 "400%" 4 "500%" 5 } + rect 80 132 88 20 + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 1 + } +*/ + + // Stop recording // + + itemDef { + rect 176 132 60 16 + style WINDOW_STYLE_FILLED + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_NORMAL + textscale .225 + textalign ITEM_ALIGN_CENTER + textalignx 30 + textaligny 12 + text "Stop" + shortcutKey "S" + border 1 + bordersize 1 + backcolor Ig_Sub_Color1 + forecolor Ig_Sub_TextColor + bordercolor Ig_Sub_BorderColor1 + visible 1 + action { play "sound/misc/menu1.wav" ; uiScript closeingame ; exec "stoprecord"} + onFocus { setcolor backcolor Ig_Sub_Color2 ; setcolor bordercolor Ig_Sub_BorderColor2 } + leaveFocus { setcolor backcolor Ig_Sub_Color1 ; setcolor bordercolor Ig_Sub_BorderColor1 } + } + + // Record // + + itemDef { + rect 176 152 60 16 + style WINDOW_STYLE_FILLED + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_NORMAL + textscale .225 + textalign ITEM_ALIGN_CENTER + textalignx 30 + textaligny 12 + text "Record" + shortcutKey "R" + border 1 + bordersize 1 + backcolor Ig_Sub_Color1 + forecolor Ig_Sub_TextColor + bordercolor Ig_Sub_BorderColor1 + visible 1 + action { play "sound/misc/menu1.wav" ; uiScript closeingame ; uiScript recordDemo } + 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_ignore.menu b/reaction/uifiles/ingame_ignore.menu new file mode 100644 index 00000000..9a5fff9a --- /dev/null +++ b/reaction/uifiles/ingame_ignore.menu @@ -0,0 +1,136 @@ +#include "ui/menudef.h" + + +{ + menudef { + name "ingame_ignore" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 184 64 256 168 + 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 168 + 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 "Ignore players" + visible 1 + decoration + } + + // Player list // + + itemdef { + rect 20 40 216 92 + style WINDOW_STYLE_FILLED + type ITEM_TYPE_LISTBOX + elementwidth 120 + elementheight 15 + textscale .225 + elementtype LISTBOX_TEXT + feeder FEEDER_PLAYER_LIST + border 1 + bordercolor .25 .25 .25 1 + forecolor 1 1 1 1 + backcolor 0 0 0 .25 + outlinecolor .75 .75 1 .25 + visible 1 + //mouseEnter { setcolor bordercolor .7 0 0 1 } + //mouseExit { setcolor bordercolor .5 .5 .5 1 } + } + + //Scrollbar separator + itemdef { + rect 218 40 18 92 + style WINDOW_STYLE_EMPTY + border 1 + bordersize 1 + bordercolor .25 .25 .25 1 + decoration + visible 1 + } + + // Unignore // + + itemdef { + text "Unignore" + shortcutKey "U" + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + textscale .225 + rect 20 140 72 16 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 12 + forecolor Ig_Sub_TextColor + visible 1 + action { play "sound/misc/menu1.wav" ; uiScript unIgnore ; close ingame_ignore } + } + + // Unignore All // + + itemdef { + text "Unignore All" + shortcutKey "A" + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + textscale .225 + rect 92 140 72 16 + textalign ITEM_ALIGN_CENTER + textalignx 36 + textaligny 12 + forecolor Ig_Sub_TextColor + visible 1 + action { play "sound/misc/menu1.wav" ; exec "clearignorelist" ; close ingame_ignore } + } + + // Ignore // + + itemdef { + text "Ignore" + shortcutKey "I" + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + textscale .225 + rect 164 140 72 16 + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 12 + forecolor Ig_Sub_TextColor + visible 1 + action { play "sound/misc/menu1.wav" ; uiScript ignore ; close ingame_ignore } + } + + } +} diff --git a/reaction/uifiles/ingame_item.menu b/reaction/uifiles/ingame_item.menu new file mode 100644 index 00000000..debfd037 --- /dev/null +++ b/reaction/uifiles/ingame_item.menu @@ -0,0 +1,249 @@ +#include "ui/menudef.h" + +{ + + menuDef { + name "ingame_item" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 80 64 264 176 + focusColor 1 .75 0 1 // Menu focus color for text and items + style WINDOW_STYLE_EMPTY + shadowStyle 1 + border 0 + onOpen { play "sound/misc/menu1.wav" ; setFocus kevlar } + onEsc { play "sound/misc/menu2.wav" ; close ingame_item } + +//Window + + itemdef { + rect 0 0 264 176 + style WINDOW_STYLE_FILLED + backcolor Ig_Window_Color + visible 1 + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + decoration + } + + itemdef { + rect 145 1 120 24 + style WINDOW_STYLE_SHADER + background "ui/assets/rq3-ingame-title" + visible 1 + decoration + } + + itemdef { + rect 145 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 "Choose item" + visible 1 + decoration + } + +//Items + + itemdef { + shortcutKey "1" + name "kevlar" + rect 120 48 128 16 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 12 + text "1. Kevlar Vest" + forecolor 1 1 1 1 + visible 1 + onFocus { hide items ; show "it_kevlar" } + action { play "sound/misc/menu1.wav" ; exec "choose kevlar" ; close ingame_item } + } + + itemdef { + shortcutKey "2" + name "laser" + rect 120 68 128 16 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 12 + text "2. Lasersight" + forecolor 1 1 1 1 + visible 1 + onFocus { hide items ; show "it_laser" } + action { play "sound/misc/menu1.wav" ; exec "choose laser" ; close ingame_item } + } + + itemdef { + name "slippers" + shortcutKey "3" + rect 120 88 128 16 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 12 + text "3. Stealth Slippers" + forecolor 1 1 1 1 + visible 1 + onFocus { hide items ; show "it_slippers" } + action { play "sound/misc/menu1.wav" ; exec "choose slippers" ; close ingame_item } + } + + itemdef { + shortcutKey "4" + name "silencer" + rect 120 108 128 16 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 12 + text "4. Silencer" + forecolor 1 1 1 1 + visible 1 + onFocus { hide items ; show "it_silencer" } + action { play "sound/misc/menu1.wav" ; exec "choose silencer" ; close ingame_item } + } + + itemdef { + name "bandolier" + shortcutKey "5" + rect 120 128 128 16 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 12 + text "5. Bandolier" + forecolor 1 1 1 1 + visible 1 + onFocus { hide items ; show "it_bandolier" } + action { play "sound/misc/menu1.wav" ; exec "choose bandolier" ; close ingame_item } + } + +//Item preview +//Background + + itemdef { + name it_background + rect 16 48 96 96 + style WINDOW_STYLE_SHADER + background "ui/assets/rq3-ingame-loadout" + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + //backcolor .75 .75 .75 1 + decoration + visible 1 + } + +//Items + + itemdef { + name it_kevlar + group items + rect 16 48 96 96 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_MODEL + asset_model "models/items/kevlar.md3" + model_origin 28 0 0 + model_fovx 60 + model_fovy 60 + //textscale .75 + model_rotation 10 + model_angles 270 0 90 + decoration + visible 0 + } + + itemdef { + name it_laser + group items + rect 16 48 96 96 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_MODEL + asset_model "models/items/laser.md3" + model_origin 24 0 0 + model_fovx 60 + model_fovy 60 + //textscale .75 + model_rotation 10 + model_angles 270 75 90 + decoration + visible 0 + } + + itemdef { + name it_silencer + group items + rect 16 48 96 96 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_MODEL + asset_model "models/items/silencer.md3" + model_origin 20 0 0 + model_fovx 60 + model_fovy 60 + //textscale .75 + model_rotation 10 + model_angles 270 105 90 + decoration + visible 0 + } + + itemdef { + name it_slippers + group items + rect 16 48 96 96 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_MODEL + asset_model "models/items/slippers.md3" + model_origin 20 0 0 + model_fovx 60 + model_fovy 60 + //textscale .75 + model_rotation 10 + model_angles 270 0 90 + decoration + visible 0 + } + + itemdef { + name it_bandolier + group items + rect 16 48 96 96 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_MODEL + asset_model "models/items/bandolier.md3" + model_origin 20 0 0 + model_fovx 60 + model_fovy 60 + //textscale .75 + model_rotation 10 + model_angles 270 0 90 + decoration + visible 0 + } + +} +} diff --git a/reaction/uifiles/ingame_join.menu b/reaction/uifiles/ingame_join.menu new file mode 100644 index 00000000..6084d0e2 --- /dev/null +++ b/reaction/uifiles/ingame_join.menu @@ -0,0 +1,184 @@ +#include "ui/menudef.h" + + +{ + menudef { + name "ingame_join" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 184 64 140 140 + 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 140 140 + style WINDOW_STYLE_FILLED + backcolor Ig_Window_Color + visible 1 + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + decoration + } + + itemdef { + rect 21 1 120 24 + style WINDOW_STYLE_SHADER + background "ui/assets/rq3-ingame-title" + visible 1 + decoration + } + + itemdef { + rect 21 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 "Join team" + visible 1 + decoration + } + +//Buttons + + // Team 1 // + + itemdef { + name team + text "1. Team 1:" + shortcutKey "1" + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_NORMAL + rect 8 36 128 20 + textalign ITEM_ALIGN_LEFT + textalignx 16 + textaligny 18 + textscale .225 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" ; exec "cmd team red" ; uiScript "weapAfterJoin" ; close "ingame_join" } + } + + itemdef { + name team1 + text "" + cvar "ui_RQ3_teamCount1" + type ITEM_TYPE_NUMERICFIELD + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_NORMAL + rect 100 36 32 20 + textalign ITEM_ALIGN_LEFT + textalignx 16 + textaligny 18 + textscale .225 + forecolor 1 1 1 1 + visible 1 + decoration + } + + // Team 2 // + + itemdef { + name team + text "2. Team 2:" + shortcutKey "2" + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_NORMAL + rect 8 56 128 20 + textalign ITEM_ALIGN_LEFT + textalignx 16 + textaligny 18 + textscale .225 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" ; exec "cmd team blue" ; uiScript "weapAfterJoin" ; close "ingame_join" } + } + + itemdef { + name team2 + text "" + cvar "ui_RQ3_teamCount2" + type ITEM_TYPE_NUMERICFIELD + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_NORMAL + rect 100 56 32 20 + textalign ITEM_ALIGN_LEFT + textalignx 16 + textaligny 18 + textscale .225 + forecolor 1 1 1 1 + visible 1 + decoration + } + + // Auto Team // + + itemdef { + name team + text "A. Auto Team" + shortcutKey "A" + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_NORMAL + rect 8 76 128 20 + textalign ITEM_ALIGN_LEFT + textalignx 16 + textaligny 18 + textscale .225 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" ; exec "cmd team auto" ; uiScript "weapAfterJoin" ; close "ingame_join" } + } + + // Spectate // + + itemdef { + name team + text "S. Spectators:" + shortcutKey "S" + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_NORMAL + rect 8 96 128 20 + textalign ITEM_ALIGN_LEFT + textalignx 16 + textaligny 18 + textscale .225 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" ; exec "cmd team s" ; uiScript closeingame } + } + + itemdef { + name team3 + text "" + cvar "ui_RQ3_numSpectators" + type ITEM_TYPE_NUMERICFIELD + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_NORMAL + rect 100 96 32 20 + textalign ITEM_ALIGN_LEFT + textalignx 16 + textaligny 18 + textscale .225 + forecolor 1 1 1 1 + visible 1 + decoration + } + + + } + +} diff --git a/reaction/uifiles/ingame_join_dm.menu b/reaction/uifiles/ingame_join_dm.menu new file mode 100644 index 00000000..8919ea19 --- /dev/null +++ b/reaction/uifiles/ingame_join_dm.menu @@ -0,0 +1,122 @@ +#include "ui/menudef.h" + + +{ + menudef { + name "ingame_join_dm" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 184 64 140 100 + 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 140 100 + style WINDOW_STYLE_FILLED + backcolor Ig_Window_Color + visible 1 + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + decoration + } + + itemdef { + rect 21 1 120 24 + style WINDOW_STYLE_SHADER + background "ui/assets/rq3-ingame-title" + visible 1 + decoration + } + + itemdef { + rect 21 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 "Join game" + visible 1 + decoration + } + +//Buttons + + // Players // + + itemdef { + text "1. Players:" + shortcutKey "1" + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_NORMAL + textalign ITEM_ALIGN_LEFT + textalignx 16 + textaligny 18 + textscale .225 + forecolor 1 1 1 1 + rect 8 36 128 20 + visible 1 + action { play "sound/misc/menu1.wav" ; exec "cmd team red" ; uiScript closeingame } + } + + itemdef { + text "" + cvar "ui_RQ3_teamCount1" + type ITEM_TYPE_NUMERICFIELD + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_NORMAL + rect 100 36 32 20 + textalign ITEM_ALIGN_LEFT + textalignx 16 + textaligny 18 + textscale .225 + forecolor 1 1 1 1 + visible 1 + decoration + } + + // Spectators // + + itemdef { + text "S. Spectators:" + shortcutKey "S" + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_NORMAL + rect 8 60 128 20 + textalign ITEM_ALIGN_LEFT + textalignx 16 + textaligny 18 + textscale .225 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" ; exec "cmd team s" ; uiScript closeingame } + } + + itemdef { + text "" + cvar "ui_RQ3_numSpectators" + type ITEM_TYPE_NUMERICFIELD + style WINDOW_STYLE_EMPTY + textstyle ITEM_TEXTSTYLE_NORMAL + rect 100 60 32 20 + textalign ITEM_ALIGN_LEFT + textalignx 16 + textaligny 18 + textscale .225 + forecolor 1 1 1 1 + visible 1 + decoration + } + } +} diff --git a/reaction/uifiles/ingame_leave.menu b/reaction/uifiles/ingame_leave.menu new file mode 100644 index 00000000..d0011625 --- /dev/null +++ b/reaction/uifiles/ingame_leave.menu @@ -0,0 +1,343 @@ +#include "ui/menudef.h" + +{ + + menuDef { + name "ingame_leave" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 496 64 128 112 + 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" ; show grpMenu ; hide grpConfirm } + +//Window + + itemdef { + rect 0 0 128 112 + style WINDOW_STYLE_FILLED + backcolor Ig_Window_Color + visible 1 + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + decoration + } + + itemdef { + rect 9 1 120 24 + style WINDOW_STYLE_SHADER + background "ui/assets/rq3-ingame-title" + visible 1 + decoration + } + + itemdef { + rect 9 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 "Exit Reaction" + visible 1 + decoration + } + + +//Options + + itemdef { + name leave + text "Main Menu" + shortcutKey "M" + group grpMenu + style WINDOW_STYLE_EMPTY + rect 0 34 128 20 + type ITEM_TYPE_BUTTON + textalign 1 + textalignx 64 + textaligny 18 + textscale .225 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" ; hide grpMenu ; show leaveConfirm } + } + + itemdef { + name leave + group grpMenu + text "Restart" + shortcutKey "R" + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 0 54 128 20 + textalign 1 + textalignx 64 + textaligny 18 + textscale .225 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" ; hide grpMenu ; show restartConfirm } + } + + itemdef { + name leave + group grpMenu + type ITEM_TYPE_BUTTON + text "Quit" + shortcutKey "Q" + style WINDOW_STYLE_EMPTY + rect 0 74 128 20 + textalign 1 + textalignx 64 + textaligny 18 + textscale .225 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" ; hide grpMenu ; show quitConfirm } + } + + // CONFIRMS // + + itemdef { + name leaveConfirm + text "Exit to" + group grpConfirm + style WINDOW_STYLE_EMPTY + rect 0 33 128 20 + textalign 1 + textalignx 64 + textaligny 18 + textscale .225 + decoration + forecolor 1 1 1 1 + visible 1 + } + + itemdef { + name leaveConfirm + text "Main Menu?" + group grpConfirm + style WINDOW_STYLE_EMPTY + rect 0 50 128 20 + textalign 1 + textalignx 64 + textaligny 18 + textscale .225 + decoration + forecolor 1 1 1 1 + visible 1 + } + + itemdef { + name leaveConfirm + text "Yes" + shortcutKey "Y" + group grpConfirm + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_FILLED + rect 18 80 40 16 + textalign 1 + textalignx 20 + textaligny 12 + forecolor 1 1 1 1 + border 1 + bordersize 1 + backcolor Ig_Sub_Color1 + forecolor Ig_Sub_TextColor + bordercolor Ig_Sub_BorderColor1 + visible 1 + action { uiScript leave } + onFocus { setcolor backcolor Ig_Sub_Color2 ; setcolor bordercolor Ig_Sub_BorderColor2 } + leaveFocus { setcolor backcolor Ig_Sub_Color1 ; setcolor bordercolor Ig_Sub_BorderColor1 } + } + + itemdef { + name leaveConfirm + text "No" + shortcutKey "N" + group grpConfirm + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_FILLED + rect 70 80 40 16 + textalign 1 + textalignx 20 + textaligny 12 + forecolor 1 1 1 1 + border 1 + bordersize 1 + backcolor Ig_Sub_Color1 + forecolor Ig_Sub_TextColor + bordercolor Ig_Sub_BorderColor1 + visible 1 + action { play "sound/misc/menu1.wav" ; hide grpConfirm ; show grpMenu } + onFocus { setcolor backcolor Ig_Sub_Color2 ; setcolor bordercolor Ig_Sub_BorderColor2 } + leaveFocus { setcolor backcolor Ig_Sub_Color1 ; setcolor bordercolor Ig_Sub_BorderColor1 } + } + + itemdef { + name restartConfirm + text "Want to" + group grpConfirm + style WINDOW_STYLE_EMPTY + rect 0 33 128 20 + textalign 1 + textalignx 64 + textaligny 18 + textscale .225 + decoration + forecolor 1 1 1 1 + visible 1 + } + + itemdef { + name restartConfirm + text "Restart Map?" + group grpConfirm + style WINDOW_STYLE_EMPTY + rect 0 50 128 20 + textalign 1 + textalignx 64 + textaligny 18 + textscale .225 + decoration + forecolor 1 1 1 1 + visible 1 + } + + itemdef { + name restartConfirm + text "Yes" + shortcutKey "Y" + group grpConfirm + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_FILLED + rect 18 80 40 16 + textalign 1 + textalignx 20 + textaligny 12 + forecolor 1 1 1 1 + border 1 + bordersize 1 + backcolor Ig_Sub_Color1 + forecolor Ig_Sub_TextColor + bordercolor Ig_Sub_BorderColor1 + visible 1 + action { play "sound/misc/menu1.wav" ; exec "map_restart" ; close ingame_leave ; close ingame } + onFocus { setcolor backcolor Ig_Sub_Color2 ; setcolor bordercolor Ig_Sub_BorderColor2 } + leaveFocus { setcolor backcolor Ig_Sub_Color1 ; setcolor bordercolor Ig_Sub_BorderColor1 } + } + + itemdef { + name restartConfirm + text "No" + shortcutKey "N" + group grpConfirm + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_FILLED + rect 70 80 40 16 + textalign 1 + textalignx 20 + textaligny 12 + forecolor 1 1 1 1 + border 1 + bordersize 1 + backcolor Ig_Sub_Color1 + forecolor Ig_Sub_TextColor + bordercolor Ig_Sub_BorderColor1 + visible 1 + action { play "sound/misc/menu1.wav" ; hide grpConfirm ; show grpMenu } + onFocus { setcolor backcolor Ig_Sub_Color2 ; setcolor bordercolor Ig_Sub_BorderColor2 } + leaveFocus { setcolor backcolor Ig_Sub_Color1 ; setcolor bordercolor Ig_Sub_BorderColor1 } + } + + itemdef { + name quitConfirm + text "Want to" + group grpConfirm + style WINDOW_STYLE_EMPTY + rect 0 33 128 20 + textalign 1 + textalignx 64 + textaligny 18 + textscale .225 + forecolor 1 1 1 1 + decoration + visible 1 + } + + itemdef { + name quitConfirm + text "Quit Game?" + group grpConfirm + style WINDOW_STYLE_EMPTY + rect 0 50 128 20 + textalign 1 + textalignx 64 + textaligny 18 + textscale .225 + forecolor 1 1 1 1 + decoration + visible 1 + } + + itemdef { + name quitConfirm + text "Yes" + shortcutKey "Y" + group grpConfirm + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_FILLED + rect 18 80 40 16 + textalign 1 + textalignx 20 + textaligny 12 + forecolor 1 1 1 1 + border 1 + bordersize 1 + backcolor Ig_Sub_Color1 + forecolor Ig_Sub_TextColor + bordercolor Ig_Sub_BorderColor1 + visible 1 + action { uiScript quit } + onFocus { setcolor backcolor Ig_Sub_Color2 ; setcolor bordercolor Ig_Sub_BorderColor2 } + leaveFocus { setcolor backcolor Ig_Sub_Color1 ; setcolor bordercolor Ig_Sub_BorderColor1 } + } + + itemdef { + name quitConfirm + text "No" + shortcutKey "N" + group grpConfirm + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_FILLED + rect 70 80 40 16 + textalign 1 + textalignx 20 + textaligny 12 + forecolor 1 1 1 1 + border 1 + bordersize 1 + backcolor Ig_Sub_Color1 + forecolor Ig_Sub_TextColor + bordercolor Ig_Sub_BorderColor1 + visible 1 + action { play "sound/misc/menu1.wav" ; hide grpConfirm ; show grpMenu } + onFocus { setcolor backcolor Ig_Sub_Color2 ; setcolor bordercolor Ig_Sub_BorderColor2 } + leaveFocus { setcolor backcolor Ig_Sub_Color1 ; setcolor bordercolor Ig_Sub_BorderColor1 } + } + +} +} diff --git a/reaction/uifiles/ingame_matchmode.menu b/reaction/uifiles/ingame_matchmode.menu new file mode 100644 index 00000000..67faf834 --- /dev/null +++ b/reaction/uifiles/ingame_matchmode.menu @@ -0,0 +1,245 @@ +#include "ui/menudef.h" + +{ + + menuDef { + name "ingame_matchmode" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 296 64 216 264 + 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" ; uiScript "readMMsettings" } + +//Window + + itemdef { + rect 0 0 216 264 + style WINDOW_STYLE_FILLED + backcolor Ig_Window_Color + visible 1 + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + decoration + } + + itemdef { + rect 97 1 120 24 + style WINDOW_STYLE_SHADER + background "ui/assets/rq3-ingame-title" + visible 1 + decoration + } + + itemdef { + rect 97 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 "MM settings" + visible 1 + decoration + } + +//Objects + + // SETTINGS // + + // Time limit + itemdef { + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_NUMERICFIELD + text "Time Limit:" + cvar "ui_RQ3_timelimit" + maxchars 4 + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 20 48 192 20 + textalign ITEM_ALIGN_RIGHT + textalignx 112 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" } + } + + // Round limit + itemdef { + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_NUMERICFIELD + text "Round Limit:" + cvar "ui_RQ3_roundlimit" + maxchars 4 + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 20 68 192 20 + textalign ITEM_ALIGN_RIGHT + textalignx 112 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" } + } + + // Round time limit + itemdef { + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_NUMERICFIELD + text "Round Time Limit:" + cvar "ui_RQ3_roundtimelimit" + maxchars 4 + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 20 88 192 20 + textalign ITEM_ALIGN_RIGHT + textalignx 112 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" } + } + + // Frag limit + itemdef { + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_NUMERICFIELD + text "Frag Limit:" + cvar "ui_RQ3_fraglimit" + maxchars 4 + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 20 108 192 20 + textalign ITEM_ALIGN_RIGHT + textalignx 112 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" } + } + + // Max players + itemdef { + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_NUMERICFIELD + text "Max Players:" + cvar "ui_RQ3_maxplayers" + maxchars 4 + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 20 128 192 20 + textalign ITEM_ALIGN_RIGHT + textalignx 112 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" } + } + + // Force team talk + itemdef { + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_MULTI + text "Force Team Talk:" + cvar "ui_RQ3_forceteamtalk" + cvarFloatList { "Off" 0 "Match only" 1 "Always" 2 } + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 20 148 192 20 + textalign ITEM_ALIGN_RIGHT + textalignx 112 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" } + } + + // Limit chase cam + itemdef { + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_MULTI + text "Limit Chase Cam:" + cvar "ui_RQ3_limchasecam" + cvarFloatList { "No" 0 "Team only" 1 "Eyes only" 2 } + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 20 168 192 20 + textalign ITEM_ALIGN_RIGHT + textalignx 112 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" } + } + + // Tgren + itemdef { + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_NUMERICFIELD + text "Bandolier Grenades:" + cvar "ui_RQ3_tgren" + maxchars 4 + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 20 188 192 20 + textalign ITEM_ALIGN_RIGHT + textalignx 112 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" } + } + + // Friendly fire + itemdef { + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_MULTI + text "Friendly Fire:" + cvar "ui_RQ3_friendlyFire" + cvarFloatList { "On" 1 "Knockback" 2 "Off" 0 } + textstyle ITEM_TEXTSTYLE_SHADOWED + rect 20 208 192 20 + textalign ITEM_ALIGN_RIGHT + textalignx 112 + textaligny 14 + textscale .225 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" } + } + + + // OK // + + itemdef { + name ok + rect 136 232 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 "Ok" + shortcutKey "O" + border 1 + bordersize 1 + backcolor Ig_Sub_Color1 + forecolor Ig_Sub_TextColor + bordercolor Ig_Sub_BorderColor1 + visible 1 + action { play "sound/misc/menu1.wav" ; uiScript "sendMMsettings" ; uiScript closeingame } + //action { exec "screenshotJPEG" } + 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_options.menu b/reaction/uifiles/ingame_options.menu new file mode 100644 index 00000000..3eb89186 --- /dev/null +++ b/reaction/uifiles/ingame_options.menu @@ -0,0 +1,572 @@ +#include "ui/menudef.h" + +{ + //--------------// + // GAME OPTIONS // + //--------------// + + + menuDef { + name "ingame_options" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 176 64 372 340 + focusColor 1 .75 0 1 // Menu focus color for text and items + style WINDOW_STYLE_EMPTY + shadowStyle 1 + border 0 + onOpen { play "sound/misc/menu1.wav" ; hide grpGame ; show page1 ; setfocus sectionPage1 } + +//Window + + itemDef { + rect 0 0 372 340 + style WINDOW_STYLE_FILLED + backcolor Ig_Window_Color + visible 1 + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + decoration + } + + itemDef { + rect 95 55 277 285 + style WINDOW_STYLE_FILLED + backcolor Ig_Window_Color + visible 1 + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + decoration + } + + itemDef { + rect 253 1 120 24 + style WINDOW_STYLE_SHADER + background "ui/assets/rq3-ingame-title" + visible 1 + decoration + } + + itemDef { + rect 253 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 "Game options" + visible 1 + decoration + } + +//Tabs + + itemDef { + name tabSystem + group grpTabs + text "System" + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_EMPTY + rect 96 40 64 16 + textalign ITEM_ALIGN_LEFT + textalignx 16 + textaligny 12 + textstyle ITEM_TEXTSTYLE_SHADOWED + forecolor Ig_Setup_TabColor + visible 1 + action { close "ingame_options" ; open "ingame_system" } + } + + itemDef { + name tabControls + group grpTabs + text "Controls" + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_EMPTY + rect 160 40 64 16 + textalign ITEM_ALIGN_LEFT + textalignx 16 + textaligny 12 + textstyle ITEM_TEXTSTYLE_SHADOWED + forecolor Ig_Setup_TabColor + visible 1 + action { close "ingame_options" ; open "ingame_controls" } + } + + itemDef { + name tabGame + group grpTabs + text "Game" + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_EMPTY + rect 224 40 64 16 + textalign ITEM_ALIGN_LEFT + textalignx 16 + textaligny 12 + textstyle ITEM_TEXTSTYLE_SHADOWED + forecolor Ig_Sub_TextColor + visible 1 + decoration + } + +//Sub-sections + + itemDef { + name sectionPage1 + group grpSections + text "Settings" + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_EMPTY + rect 0 72 96 16 + textalign ITEM_ALIGN_RIGHT + textalignx 88 + textaligny 12 + textstyle ITEM_TEXTSTYLE_SHADOWED + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + forecolor Ig_Sub_TextColor + visible 1 + action { play "sound/misc/menu1.wav" ; hide grpGame ; show page1 } + } + + itemDef { + name sectionPage2 + group grpSections + text "Crosshair" + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_EMPTY + rect 0 96 96 16 + textalign ITEM_ALIGN_RIGHT + textalignx 88 + textaligny 12 + textstyle ITEM_TEXTSTYLE_SHADOWED + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + forecolor Ig_Sub_TextColor + visible 1 + action { play "sound/misc/menu1.wav" ; hide grpGame ; show page2 } + } + +//Options +//V-SYNC + + itemDef { + name page1 + group grpGame + type ITEM_TYPE_YESNO + text "Sync Every Frame:" + cvar "r_finish" + rect 112 60 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 128 + textaligny 20 + textscale .225 + forecolor Ig_Sub_TextColor + visible 1 + } + +//Simple items + + itemDef { + name page1 + group grpGame + type ITEM_TYPE_YESNO + text "Simple Items:" + cvar "cg_simpleItems" + rect 112 80 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 128 + textaligny 20 + textscale .225 + forecolor Ig_Sub_TextColor + visible 1 + } + +//Low quality sky + + itemDef { + name page1 + group grpGame + type ITEM_TYPE_YESNO + text "Low quality sky:" + cvar "r_fastsky" + rect 112 100 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 128 + textaligny 20 + textscale .225 + forecolor Ig_Sub_TextColor + visible 1 + } + +//Ejecting brass + + itemDef { + name page1 + group grpGame + type ITEM_TYPE_MULTI + text "Ejecting Brass:" + cvar "cg_brassTime" + cvarFloatList { "High" 2500 "Med" 1250 "Off" 0 } + rect 112 120 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 128 + textaligny 20 + textscale .225 + forecolor Ig_Sub_TextColor + visible 1 + } + +//Wall marks + + itemDef { + name page1 + group grpGame + type ITEM_TYPE_YESNO + text "Wall marks:" + cvar "cg_marks" + rect 112 140 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 128 + textaligny 20 + textscale .225 + forecolor Ig_Sub_TextColor + visible 1 + } + +//Dynamic lights + + itemDef { + name page1 + group grpGame + type ITEM_TYPE_YESNO + text "Dynamic lights:" + cvar "r_dynamiclight" + rect 112 160 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 128 + textaligny 20 + textscale .225 + forecolor Ig_Sub_TextColor + visible 1 + } + +//Force player models + + itemDef { + name page1 + group grpGame + type ITEM_TYPE_YESNO + text "Force Player Models:" + cvar "cg_forceModel" + rect 112 180 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 128 + textaligny 20 + textscale .225 + forecolor Ig_Sub_TextColor + visible 1 + } + +//Allow download from server + + itemDef { + name page1 + group grpGame + type ITEM_TYPE_YESNO + text "Allow Download:" + cvar "cl_allowDownload" + rect 112 200 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 128 + textaligny 20 + textscale .225 + forecolor Ig_Sub_TextColor + visible 1 + } + +//Draw team overlay + + itemDef { + name page1 + group grpGame + type ITEM_TYPE_YESNO + text "Draw Team Overlay:" + cvar "cg_drawTeamOverlay" + rect 112 220 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 128 + textaligny 20 + textscale .225 + forecolor Ig_Sub_TextColor + visible 1 + } + +//Muzzle flash + + itemDef { + name page1 + group grpGame + type ITEM_TYPE_YESNO + text "Muzzle Flash:" + cvar "cg_RQ3_flash" + rect 112 240 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 128 + textaligny 20 + textscale .225 + forecolor Ig_Sub_TextColor + visible 1 + } + +//Pain blends + + itemDef { + name page1 + group grpGame + type ITEM_TYPE_YESNO + text "Pain Blends:" + cvar "cg_RQ3_painBlend" + rect 112 260 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 128 + textaligny 20 + textscale .225 + forecolor Ig_Sub_TextColor + visible 1 + } + +//Announcer + + itemDef { + name page1 + group grpGame + type ITEM_TYPE_YESNO + text "Announcer:" + cvar "cg_RQ3_announcer" + rect 112 280 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 128 + textaligny 20 + textscale .225 + forecolor Ig_Sub_TextColor + visible 1 + } + +//Impact effects + + itemDef { + name page1 + group grpGame + type ITEM_TYPE_YESNO + text "Impact Effects:" + cvar "cg_RQ3_impactEffects" + rect 112 300 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 128 + textaligny 20 + textscale .225 + forecolor Ig_Sub_TextColor + visible 1 + } + +// Page2 // + +//Crosshair + + itemDef { + name page2 + group grpGame + text "Regular Crosshair:" + ownerdraw UI_CROSSHAIR + rect 240 80 24 24 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 20 + textscale .225 + forecolor Ig_Sub_TextColor + visible 1 + } + +//Identify target + + itemDef { + name page2 + group grpGame + type ITEM_TYPE_MULTI + text "Crosshair Size:" + cvar "cg_crosshairSize" + cvarFloatList { "Small" 16 "Med" 24 "Big" 32 } + rect 112 100 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 128 + textaligny 20 + textscale .225 + forecolor Ig_Sub_TextColor + visible 1 + } + +//Identify target + + itemDef { + name page2 + group grpGame + type ITEM_TYPE_YESNO + text "Identify Target:" + cvar "cg_drawCrosshairNames" + rect 112 120 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 128 + textaligny 20 + textscale .225 + forecolor Ig_Sub_TextColor + visible 1 + } + +//SSG Crosshair + + itemDef { + name page2 + group grpGame + style 1 + text "SSG Crosshair" + rect 88 160 128 20 + textalign ITEM_ALIGN_CENTER + textalignx 128 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + decoration + } + + itemDef { + name page2 + group grpGame + type ITEM_TYPE_SLIDER + text "Red:" + cvarfloat "cg_RQ3_ssgColorR" 1 0 1 + rect 96 180 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + } + + itemDef { + name page2 + group grpGame + type ITEM_TYPE_SLIDER + text "Green:" + cvarfloat "cg_RQ3_ssgColorG" 1 0 1 + rect 96 200 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + } + + itemDef { + name page2 + group grpGame + type ITEM_TYPE_SLIDER + text "Blue:" + cvarfloat "cg_RQ3_ssgColorB" 0 0 1 + rect 96 220 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + } + + itemDef { + name page2 + group grpGame + type ITEM_TYPE_SLIDER + text "Alpha:" + cvarfloat "cg_RQ3_ssgColorA" .75 0 1 + rect 96 240 168 20 + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + } + +//SSG Crosshair Preview + + itemDef { + name page2 + group grpGame + rect 280 188 72 72 + ownerdraw UI_SSG_CROSSHAIR + style WINDOW_STYLE_EMPTY + //decoration + visible 0 + } + + //Apply button + + itemDef { + name page2 + group grpGame + text "Apply" + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_FILLED + rect 284 160 64 16 + textalign ITEM_ALIGN_CENTER + textalignx 32 + textaligny 12 + border 1 + bordersize 1 + backcolor Ig_Sub_Color1 + forecolor Ig_Sub_TextColor + bordercolor Ig_Sub_BorderColor1 + visible 0 + action { exec "vid_restart" } + onFocus { setcolor backcolor Ig_Sub_Color2 ; setcolor bordercolor Ig_Sub_BorderColor2 } + leaveFocus { setcolor backcolor Ig_Sub_Color1 ; setcolor bordercolor Ig_Sub_BorderColor1 } + } + + //Note + + itemDef { + name page2 + group grpGame + style 1 + text "Note: pressing the apply button will restart " + "Reaction Quake 3 in order to load the new " + "SSG crosshair" + autowrapped + rect 112 280 232 20 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + decoration + } + +} +} \ No newline at end of file diff --git a/reaction/uifiles/ingame_orders.menu b/reaction/uifiles/ingame_orders.menu new file mode 100644 index 00000000..aff69d9b --- /dev/null +++ b/reaction/uifiles/ingame_orders.menu @@ -0,0 +1,481 @@ +#include "ui/menudef.h" + +{ + \\ SETUP MENU \\ + + menuDef { + name "ingame_orders" + visible 0 + fullscreen 0 + rect 45 30 200 240 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + focusColor 1 .75 0 1 + style 1 + border 1 + disableColor .5 .5 .5 1 + onopen { hide grpicon ; show attack } + + itemDef { + name window + rect 10 15 180 225 + style 1 + backcolor 0 .1 0 1 + visible 1 + decoration + } + + + // FRAME // + + + itemDef { + name window + rect 0 10 64 64 + style 3 + background "ui/assets/ingameleftcorner.tga" + visible 1 + decoration + } + itemDef { + name window + rect 136 10 64 64 + style 3 + background "ui/assets/ingamerightcorner.tga" + visible 1 + decoration + } + itemDef { + name window + rect 64 0 72 16 + style 3 + background "ui/assets/ingameconnection.tga" + visible 1 + decoration + } + itemDef { + name window + rect 0 177 64 64 + style 3 + background "ui/assets/ingameleftcornerb.tga" + visible 1 + decoration + } + itemDef { + name window + rect 136 177 64 64 + style 3 + background "ui/assets/ingamerightcornerb.tga" + visible 1 + decoration + } + itemDef { + name window + rect 0 64 16 64 + style 3 + background "ui/assets/ingameleft.tga" + visible 1 + decoration + } + itemDef { + name window + rect 0 128 16 64 + style 3 + background "ui/assets/ingameleft.tga" + visible 1 + decoration + } + + itemDef { + name window + rect 184 64 16 64 + style 3 + background "ui/assets/ingameright.tga" + visible 1 + decoration + } + itemDef { + name window + rect 184 128 16 64 + style 3 + background "ui/assets/ingameright.tga" + visible 1 + decoration + } + itemDef { + name window + rect 64 233 96 8 + style 3 + background "ui/assets/ingamebottom.tga" + visible 1 + decoration + } + + + + itemDef { + name orders + group grporders + text "Name:" + style 0 + ownerdraw UI_SELECTEDPLAYER + // As cycle through playerlist selected player in HUD cycles // + rect 10 20 200 20 + textalign 0 + textalignx 10 + textaligny 17 + textscale .25 + forecolor 1 1 1 1 + visible 1 + } + + // COMMAND ICONS // + + itemDef { + name attack + group grpicon + style 3 + rect 84 45 32 32 + background "ui/assets/statusbar/assault.tga" + visible 0 + } + itemDef { + name defend + group grpicon + style 3 + rect 84 45 32 32 + background "ui/assets/statusbar/defend.tga" + visible 0 + } + itemDef { + name patrol + group grpicon + style 3 + rect 84 45 32 32 + background "ui/assets/statusbar/patrol.tga" + visible 0 + } + itemDef { + name follow + group grpicon + style 3 + rect 84 45 32 32 + background "ui/assets/statusbar/follow.tga" + visible 0 + } + itemDef { + name camp + group grpicon + style 3 + rect 84 45 32 32 + background "ui/assets/statusbar/camp.tga" + visible 0 + } + itemDef { + name leader + group grpicon + style 3 + rect 84 45 32 32 + background "ui/assets/statusbar/team_leader.tga" + visible 0 + } + itemDef { + name retrieve + group grpicon + style 3 + rect 84 45 32 32 + background "ui/assets/statusbar/retrieve.tga" + visible 0 + } + itemDef { + name escort + group grpicon + style 3 + rect 84 45 32 32 + background "ui/assets/statusbar/escort.tga" + visible 0 + } + + + + + + // GIVE ORDERS TO OTHERS // + + + + itemDef { + name orders + group grporders + text "Attack Enemy Base" + rect 0 80 200 20 + type 1 + textalign 1 + textalignx 100 + textaligny 17 + textscale .25 + forecolor 1 1 1 1 + visible 1 + mouseenter { hide grpicon ; show attack } + action { + uiScript voiceOrders "cmd vtell %d offense; +button7; wait; -button7" + uiScript voiceOrdersTeam "cmd vsay_team offense; +button7; wait; -button7" + } + ownerdrawflag UI_SHOW_LEADER + } + + itemDef { + name orders + group grporders + type 1 + text "Defend Our Base" + rect 0 100 200 20 + textalign 1 + textalignx 100 + textaligny 17 + textscale .25 + forecolor 1 1 1 1 + visible 1 + mouseenter { hide grpicon ; show defend } + action { + uiScript voiceOrders "cmd vtell %d defend; +button8; wait; -button8" + uiScript voiceOrdersTeam "cmd vsay_team defend; +button8; wait; -button8" + } + ownerdrawflag UI_SHOW_LEADER + } + + itemDef { + name orders + group grporders + type 1 + text "Patrol" + rect 0 120 200 20 + textalign 1 + textalignx 100 + textaligny 17 + textscale .25 + forecolor 1 1 1 1 + visible 1 + mouseenter { hide grpicon ; show patrol } + action { + uiScript voiceOrders "cmd vtell %d patrol; +button9; wait; -button9" + uiScript voiceOrdersTeam "cmd vsay_team patrol; +button9; wait; -button9" + } + ownerdrawflag UI_SHOW_LEADER + } + + itemDef { + name orders + group grporders + type 1 + text "Follow Me" + rect 0 140 200 20 + textalign 1 + textalignx 100 + textaligny 17 + textscale .25 + forecolor 1 1 1 1 + visible 1 + mouseenter { hide grpicon ; show follow } + action { + uiScript voiceOrders "cmd vtell %d followme; +button10; wait; -button10" + uiScript voiceOrdersTeam "cmd vsay_team followme; +button10; wait; -button10" + } + ownerdrawflag UI_SHOW_LEADER + } + itemDef { + name orders + group grporders + text "Camp Here" + type 1 + rect 0 160 200 20 + textalign 1 + textalignx 100 + textaligny 17 + textscale .25 + forecolor 1 1 1 1 + visible 1 + mouseenter { hide grpicon ; show camp } + action { + uiScript voiceOrders "cmd vtell %d camp" + uiScript voiceOrdersTeam "cmd vsay_team camp" + } + ownerdrawflag UI_SHOW_LEADER + } + itemDef { + name orders + group grporders + type 1 + text "Escort the Carrier" + rect 0 180 200 20 + textalign 1 + textalignx 100 + textaligny 17 + textscale .25 + forecolor 1 1 1 1 + visible 1 + cvarTest "g_gametype" + hideCvar { "6" ; "7" } + mouseenter { hide grpicon ; show escort } + action { + uiScript voiceOrders "cmd vtell %d followflagcarrier" + uiScript voiceOrdersTeam "cmd vsay_team followflagcarrier" + } + ownerdrawflag UI_SHOW_LEADER + } + itemDef { + name orders + group grporders + type 1 + text "Retrieve Our Flag" + rect 0 200 200 20 + textalign 1 + textalignx 100 + textaligny 17 + textscale .25 + forecolor 1 1 1 1 + visible 1 + cvarTest "g_gametype" + hideCvar { "5" ; "6" ; "7" } + mouseenter { hide grpicon ; show retrieve } + action { + uiScript voiceOrders "cmd vtell %d returnflag" + uiScript voiceOrdersTeam "cmd vsay_team returnflag" + } + ownerdrawflag UI_SHOW_LEADER + } + + + // CHANGE YOUR STATUS // + + + + itemDef { + name orders + group grporders + text "I'M ATTACKING" + rect 0 80 200 20 + textalign 1 + textalignx 100 + type 1 + textaligny 17 + textscale .25 + forecolor 1 1 1 1 + visible 1 + mouseenter { hide grpicon ; show attack } + action { exec "teamtask 1 ; cmd vsay_team onoffense" ; uiScript closeingame } + ownerdrawflag UI_SHOW_NOTLEADER + } + + itemDef { + name orders + group grporders + text "I'M DEFENDING" + type 1 + rect 0 100 200 20 + textalign 1 + textalignx 100 + textaligny 17 + textscale .25 + forecolor 1 1 1 1 + visible 1 + mouseenter { hide grpicon ; show defend } + action { exec "teamtask 2 ; cmd vsay_team ondefense" ; uiScript closeingame } + ownerdrawflag UI_SHOW_NOTLEADER + } + + itemDef { + name orders + group grporders + type 1 + text "I'M PATROLLING" + rect 0 120 200 20 + textalign 1 + textalignx 100 + textaligny 17 + textscale .25 + forecolor 1 1 1 1 + visible 1 + mouseenter { hide grpicon ; show patrol } + action { exec "teamtask 3 ; cmd vsay_team onpatrol" ; uiScript closeingame } + ownerdrawflag UI_SHOW_NOTLEADER + } + + itemDef { + name orders + group grporders + text "I'M FOLLOWING" + type 1 + rect 0 140 200 20 + textalign 1 + textalignx 100 + textaligny 17 + textscale .25 + forecolor 1 1 1 1 + visible 1 + mouseenter { hide grpicon ; show follow } + action { exec "teamtask 4 ; cmd vsay_team onfollow" ; uiScript closeingame } + ownerdrawflag UI_SHOW_NOTLEADER + } + itemDef { + name orders + group grporders + text "I'M CAMPING" + rect 0 160 200 20 + type 1 + textalign 1 + textalignx 100 + textaligny 17 + textscale .25 + forecolor 1 1 1 1 + visible 1 + mouseenter { hide grpicon ; show camp } + action { exec "teamtask 7 ; cmd vsay_team oncamp" ; uiScript closeingame } + ownerdrawflag UI_SHOW_NOTLEADER + } + itemDef { + name orders + group grporders + text "I'M ESCORTING" + type 1 + rect 0 180 200 20 + textalign 1 + textalignx 100 + textaligny 17 + textscale .25 + forecolor 1 1 1 1 + cvarTest "g_gametype" + hideCvar { "6" ; "7" } + visible 1 + mouseenter { hide grpicon ; show retrieve } + action { exec "teamtask 6 ; cmd vsay_team onfollowcarrier" ; uiScript closeingame } + ownerdrawflag UI_SHOW_NOTLEADER + } + itemDef { + name orders + group grporders + text "I'M RETRIEVING" + type 1 + rect 0 200 200 20 + textalign 1 + textalignx 100 + textaligny 17 + textscale .25 + forecolor 1 1 1 1 + visible 1 + cvarTest "g_gametype" + hideCvar { "5" ; "6" ; "7" } + mouseenter { hide grpicon ; show escort } + action { exec "teamtask 5 ; cmd vsay_team onreturnflag" ; uiScript closeingame } + ownerdrawflag UI_SHOW_NOTLEADER + } + + + + + + + + } + + +} diff --git a/reaction/uifiles/ingame_player.menu b/reaction/uifiles/ingame_player.menu new file mode 100644 index 00000000..96ace00b --- /dev/null +++ b/reaction/uifiles/ingame_player.menu @@ -0,0 +1,230 @@ +#include "ui/menudef.h" + +{ + menuDef { + name "ingame_player" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 112 64 320 264 + focusColor 1 .75 0 1 // Menu focus color for text and items + style WINDOW_STYLE_EMPTY + shadowStyle 1 + border 0 + onOpen { play "sound/misc/menu1.wav" ; uiScript update "ui_GetName"} + onClose { uiScript update "ui_SetName" } + +//Window + + itemdef { + rect 0 0 320 264 + style WINDOW_STYLE_FILLED + backcolor Ig_Window_Color + visible 1 + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + decoration + } + + itemdef { + rect 201 1 120 24 + style WINDOW_STYLE_SHADER + background "ui/assets/rq3-ingame-title" + visible 1 + decoration + } + + itemdef { + rect 201 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 "Player settings" + visible 1 + decoration + } + +//Player model display + + itemdef { + name "model_preview" + ownerdraw UI_PLAYERMODEL + style 1 + rect -32 -32 192 256 + visible 1 + decoration + } + +//Player name + + itemdef { + name "namefield" + text "Name:" + rect 138 28 160 20 + textalign ITEM_ALIGN_LEFT + textalignx 6 + textaligny 16 + textscale .225 + visible 1 + decoration + } + + itemdef { + name "namefield" + group "playersettinggroup" + type ITEM_TYPE_EDITFIELD + style WINDOW_STYLE_FILLED + text "" + cvar "ui_Name" + maxchars 16 + rect 138 48 160 16 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + textscale .225 + outlinecolor 1 .5 .5 .5 + backcolor 1 1 1 .2 + forecolor 1 1 1 1 + border 1 + bordercolor .25 .25 .25 1 + visible 1 + onfocus { setcolor backcolor 1 1 1 .2 ; } + leavefocus { setcolor backcolor 1 1 1 .1 ; } + } + +//Weapon button +//Teamplay-only + + itemdef { + name "weapon" + rect 138 74 160 16 + style WINDOW_STYLE_FILLED + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_NORMAL + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 6 + textaligny 12 + text "W. Weapon/item" + shortcutKey "W" + border 1 + bordersize 1 + backcolor Ig_Sub_Color1 + forecolor Ig_Sub_TextColor + bordercolor Ig_Sub_BorderColor1 + cvarTest "g_gameType" + showCvar { "4" ; "5" } + visible 1 + action { play "sound/misc/menu1.wav" ; close "ingame_player" ; open "ingame_weapon" } + onFocus { setcolor backcolor Ig_Sub_Color2 ; setcolor bordercolor Ig_Sub_BorderColor2 } + leaveFocus { setcolor backcolor Ig_Sub_Color1 ; setcolor bordercolor Ig_Sub_BorderColor1 } + } + +//Join team + + itemdef { + name "team" + rect 138 90 160 16 + style WINDOW_STYLE_FILLED + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_NORMAL + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 6 + textaligny 12 + text "J. Join team" + shortcutKey "J" + border 1 + bordersize 1 + backcolor Ig_Sub_Color1 + forecolor Ig_Sub_TextColor + bordercolor Ig_Sub_BorderColor1 + visible 1 + action { play "sound/misc/menu1.wav" ; exec "ui_RQ3_joinTeam" ; close "ingame_player" } + onFocus { setcolor backcolor Ig_Sub_Color2 ; setcolor bordercolor Ig_Sub_BorderColor2 } + leaveFocus { setcolor backcolor Ig_Sub_Color1 ; setcolor bordercolor Ig_Sub_BorderColor1 } + } + +//Ignore player + + itemdef { + rect 138 106 160 16 + style WINDOW_STYLE_FILLED + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_NORMAL + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 6 + textaligny 12 + text "I. Ignore players" + shortcutKey "I" + border 1 + bordersize 1 + backcolor Ig_Sub_Color1 + forecolor Ig_Sub_TextColor + bordercolor Ig_Sub_BorderColor1 + visible 1 + onFocus { setcolor backcolor Ig_Sub_Color2 ; setcolor bordercolor Ig_Sub_BorderColor2 } + leaveFocus { setcolor backcolor Ig_Sub_Color1 ; setcolor bordercolor Ig_Sub_BorderColor1 } + action { play "sound/misc/menu1.wav" ; close "ingame_player" ; open "ingame_ignore" } + } + +// Radio stuff + itemdef { + rect 138 122 160 16 + style WINDOW_STYLE_FILLED + type ITEM_TYPE_MULTI + text "M. Male Radioset:" + shortcutKey "M" + border 1 + bordersize 1 + cvar "cg_RQ3_radiovoice_male" + cvarFloatList { "New" 1 "Pikey" 2 "Pirate" 3 "Original" 0 } + textstyle ITEM_TEXTSTYLE_SHADOWED + textalign ITEM_ALIGN_LEFT + textalignx 6 + textaligny 12 + textscale .225 + visible 1 + cvarTest "g_gameType" + showCvar { "4" ; "5" } + onFocus { setcolor backcolor Ig_Sub_Color2 ; setcolor bordercolor Ig_Sub_BorderColor2 } + leaveFocus { setcolor backcolor Ig_Sub_Color1 ; setcolor bordercolor Ig_Sub_BorderColor1 } + } + +//Icon list + + itemdef { + name headlist_window + rect 20 180 278 68 + style WINDOW_STYLE_EMPTY + border 1 + bordersize 1 + bordercolor .25 .25 .25 1 + decoration + visible 1 + } + + itemdef { + name headlist + rect 24 184 270 60 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_EMPTY + elementwidth 38 + elementheight 38 + elementtype LISTBOX_IMAGE + feeder FEEDER_Q3HEADS + horizontalscroll + backcolor 0 0 0 1 + border 0 + bordercolor Ig_Window_BorderColor + forecolor 1 1 1 1 + visible 1 + } +} +} diff --git a/reaction/uifiles/ingame_scoreffa.menu b/reaction/uifiles/ingame_scoreffa.menu new file mode 100644 index 00000000..3b77d15d --- /dev/null +++ b/reaction/uifiles/ingame_scoreffa.menu @@ -0,0 +1,452 @@ +#include "ui/menudef.h" + +{ + \\ score_menu \\ + + menuDef { + name "teamscore_menu" + visible 0 + fullscreen 1 + rect 0 0 640 480 + background uibackground4 + focusColor 1 .75 0 1 + style 1 + border 1 + + itemDef { + name leftteambar + rect 14 102 306 35 + style WINDOW_STYLE_FILLED + border 1 + bordercolor .5 .5 .5 1 + forecolor 1 1 1 1 + backcolor 1 0 0 1 + visible 1 + decoration + } + + itemDef { + name rightteambar + rect 320 102 306 35 + style WINDOW_STYLE_FILLED + border 1 + bordercolor .5 .5 .5 1 + forecolor 1 1 1 1 + backcolor 0 0 1 1 + visible 1 + decoration + } + + itemDef { + name leftteamheadings + text "Status Name Score Time Ping" + textscale .25 + style 0 + rect 25 102 128 30 + textalign 0 + textalignx 0 // x alignment point for text + // use it to offset left/right text from the edge + // or to center the text on a different point + textaligny 23 + backcolor 0 0 0 0 + forecolor 1 .75 0 1 + decoration + visible 1 + } + + + itemDef { + name leftgrad + style WINDOW_STYLE_SHADER + background "ui/assets/halfgradleft.tga" + rect 14 140 306 222 + forecolor .75 0 0 0.5 + visible 1 + decoration + } + + itemDef { + name leftgrad + rect 16 142 302 218 + orecolor .75 .75 .75 .75 + visible 1 + type ITEM_TYPE_LISTBOX + elementwidth 135 + elementheight 20 + textscale .25 + elementtype LISTBOX_TEXT + feeder FEEDER_REDTEAM_LIST + columns 5 2 20 20 60 75 75 165 20 20 205 20 20 235 20 20 + } + + + + itemDef { + name rightgrad + style WINDOW_STYLE_SHADER + background "ui/assets/halfgradright.tga" + rect 320 140 296 222 + forecolor 0 0 .75 0.5 + visible 1 + type ITEM_TYPE_LISTBOX + elementwidth 135 + elementheight 20 + textscale .28 + elementtype LISTBOX_TEXT + feeder FEEDER_BLUETEAM_LIST + columns 5 2 20 20 60 75 75 165 20 20 205 20 20 235 20 20 + } + + itemDef { + name rightteamheadings + text "Status Name Score Time Ping" + textscale .25 + style 0 + rect 336 102 128 30 + textalign 0 + textalignx 0 // x alignment point for text + // use it to offset left/right text from the edge + // or to center the text on a different point + textaligny 23 + backcolor 0 0 0 0 + forecolor 1 .75 0 1 + decoration + visible 1 + } + + + + + + + + itemDef { + name window + rect 14 141 612 221 + style WINDOW_STYLE_EMPTY + border 1 + bordercolor .5 .5 .5 .75 + forecolor 1 1 1 1 + backcolor 0 0 0 .25 + visible 1 + decoration + } + + + + + + + // GAMETYPE BAR // + + + itemDef { + name gametypebar + style 2 + rect 0 16 640 35 + textscale 0.4 + textalign 0 // center + textalignx 60 // x alignment point for text + // use it to offset left/right text from the edge + // or to center the text on a different point + textaligny 21 + style 2 + border 4 + bordercolor 1 1 1 1 + bordersize 1 + backcolor 0 0 .75 0.5 + visible 1 + decoration + } + + + itemDef { + name score + text " " + ownerdraw CG_GAME_STATUS + textscale .5 + style 0 + rect 320 16 210 25 + textalignx 0 + textaligny 21 + textalign 1 + backcolor 0 0 0 0 + forecolor 1 1 1 1 + visible 1 + decoration + } + + + itemDef { + name score + text "" + ownerdraw CG_KILLER + textscale .4 + style 0 + rect 320 40 210 40 + textalignx 0 + textaligny 24 + textalign 1 + backcolor 0 0 0 0 + forecolor 1 1 1 1 + visible 1 + decoration + } + + + + + // PLAYER STATS // + + itemDef { + name window + rect 14 364 612 24 + style WINDOW_STYLE_FILLED + border 1 + bordercolor .5 .5 .5 .5 + forecolor 0 0 0 0 + backcolor 0 0 0 .25 + //outlinecolor 1 1 1 .5 + visible 1 + decoration + } + + itemDef { + name name + text "Name:" + textscale .35 + style 0 + rect 0 363 128 30 + textalign 1 // center + textalignx 64 // x alignment point for text + // use it to offset left/right text from the edge + // or to center the text on a different point + textaligny 21 + backcolor 0 0 0 0 + forecolor 1 .75 0 1 + decoration + visible 1 + } + + + itemDef { + name score + text "Score:" + textscale .35 + style 0 + rect 246 363 128 30 + textalign 3 // center + textalignx 16 // x alignment point for text + // use it to offset left/right text from the edge + // or to center the text on a different point + textaligny 21 + backcolor 0 0 0 0 + forecolor 1 .75 0 1 + decoration + visible 1 + } + + + itemDef { + name wins + text "Wins:" + textscale .35 + style 0 + rect 404 363 128 30 + textalign 1 // center + textalignx 64 // x alignment point for text + // use it to offset left/right text from the edge + // or to center the text on a different point + textaligny 21 + backcolor 0 0 0 0 + forecolor 1 .75 0 1 + decoration + visible 1 + } + + + + // AWARDS // + + + itemDef { + name window + rect 14 390 612 38 + style WINDOW_STYLE_FILLED + border 1 + bordercolor .5 .5 .5 .5 + forecolor 1 1 1 1 + backcolor 0 0 0 .25 + visible 1 + decoration + } + + itemdef { + name medal_accuracy + style WINDOW_STYLE_SHADER + rect 48 394 32 32 + background "ui/assets/medal_accuracy.tga" + forecolor 1 1 1 .25 + visible 1 + decoration + } + + itemdef { + name medal_assist + style WINDOW_STYLE_SHADER + rect 112 394 32 32 + background "ui/assets/medal_assist.tga" + forecolor 1 1 1 .25 + visible 1 + decoration + + } + + itemdef { + name medal_accuracy + style WINDOW_STYLE_SHADER + rect 176 394 32 32 + background "ui/assets/medal_accuracy.tga" + forecolor 1 1 1 .25 + visible 1 + decoration + + } + + itemdef { + name medal_defend + style WINDOW_STYLE_SHADER + rect 240 394 32 32 + background "ui/assets/medal_defend.tga" + forecolor 1 1 1 .25 + visible 1 + decoration + + } + + itemdef { + name medal_excellent + style WINDOW_STYLE_SHADER + rect 304 394 32 32 + background "ui/assets/medal_excellent.tga" + forecolor 1 1 1 .25 + visible 1 + decoration + + } + + itemdef { + name medal_frags + style WINDOW_STYLE_SHADER + rect 368 394 32 32 + background "ui/assets/medal_frags.tga" + forecolor 1 1 1 .25 + visible 1 + decoration + + } + + itemdef { + name medal_gauntlet + style WINDOW_STYLE_SHADER + rect 432 394 32 32 + background "ui/assets/medal_gauntlet.tga" + forecolor 1 1 1 .25 + visible 1 + decoration + + } + + itemdef { + name medal_impressive + style WINDOW_STYLE_SHADER + rect 496 394 32 32 + background "ui/assets/medal_impressive.tga" + forecolor 1 1 1 .25 + visible 1 + decoration + + } + + itemdef { + name medal_victory + style WINDOW_STYLE_SHADER + rect 560 394 32 32 + background "ui/assets/medal_victory.tga" + forecolor 1 1 1 .25 + visible 1 + decoration + } + + + + // TEAM LOGO // + + + itemDef { + name playerlogo + ownerdraw UI_PLAYERLOGO + rect 71 157 180 180 + visible 1 + forecolor .5 0 0 .5 + decoration + } + + itemDef { + ownerdraw UI_OPPONENTLOGO + name opposinglogo + rect 397 157 180 180 + visible 1 + forecolor 0 0 .5 .5 + decoration + } + + itemDef { + name playerlogo + ownerdraw UI_PLAYERLOGO_METAL + rect 14 6 96 96 + visible 1 + forecolor 1 .7 .7 1 + decoration + } + + itemDef { + name opposinglogo + ownerdraw UI_OPPONENTLOGO_METAL + rect 530 6 96 96 + visible 1 + forecolor .7 .7 1 1 + decoration + } + + + + + // TEAM NAME // + + itemDef { + name playerteamname + ownerdraw UI_PLAYERLOGO_NAME + rect 120 54 120 60 + decoration + visible 1 + } + + itemDef { + name opposingteamname + ownerdraw UI_OPPONENTLOGO_NAME + rect 392 54 120 60 + backcolor 0 0 0 0 + forecolor 1 1 1 1 + decoration + visible 1 + } + + + + + + } + + +} diff --git a/reaction/uifiles/ingame_serverinfo.menu b/reaction/uifiles/ingame_serverinfo.menu new file mode 100644 index 00000000..a6b723ad --- /dev/null +++ b/reaction/uifiles/ingame_serverinfo.menu @@ -0,0 +1,63 @@ +#include "ui/menudef.h" + +{ + \\ SERVER INFO MENU \\ + + menuDef { + name "ingame_serverinfo" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 352 30 256 300 + focusColor 1 .75 0 1 + style 1 + border 1 + + itemDef { + name window + rect 0 0 256 300 + style 1 + border 1 + bordercolor .5 .5 .5 1 + backcolor 0 0 .75 .25 + visible 1 + decoration + } + + + itemDef { + name serverinfo + group serverinfo + rect 0 100 256 256 + text "Server Information" + textalign 1 + textscale .25 + textalignx 128 + textaligny 17 + forecolor 1 1 1 1 + visible 1 + decoration + } + itemDef { + name ok + text "OK" + textscale .25 + group grpControlbutton + style WINDOW_STYLE_SHADER + background "ui/assets/button_red.tga" + rect 103 275 50 20 + textalign 1 + textalignx 25 + textaligny 15 + forecolor 1 1 1 1 + visible 1 + action { close ingame_serverinfo ; close ingame ; open ingame } + } + + + + + } + + +} diff --git a/reaction/uifiles/ingame_system.menu b/reaction/uifiles/ingame_system.menu new file mode 100644 index 00000000..5038f594 --- /dev/null +++ b/reaction/uifiles/ingame_system.menu @@ -0,0 +1,611 @@ +#include "ui/menudef.h" + +{ + //----------------// + // SYSTEM OPTIONS // + //----------------// + + + menuDef { + name "ingame_system" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 176 64 372 340 + focusColor 1 .75 0 1 // Menu focus color for text and items + style WINDOW_STYLE_EMPTY + border 0 + shadowStyle 1 + onOpen { play "sound/misc/menu1.wav" ; hide grpSystem ; + //setitemcolor grpSections backcolor 0 0 0 0 ; + //setitemcolor sectionGraphics backcolor Ig_Window_Color ; + show graphics ; setfocus sectionGraphics } + +//Window + + itemDef { + rect 0 0 372 340 + style WINDOW_STYLE_FILLED + backcolor Ig_Window_Color + visible 1 + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + decoration + } + + itemDef { + rect 95 55 277 285 + style WINDOW_STYLE_FILLED + backcolor Ig_Window_Color + visible 1 + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + decoration + } + + itemDef { + rect 253 1 120 24 + style WINDOW_STYLE_SHADER + background "ui/assets/rq3-ingame-title" + visible 1 + decoration + } + + itemDef { + rect 253 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 "System options" + visible 1 + decoration + } + + +//Tabs + + itemDef { + name tabSystem + group grpTabs + text "System" + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_EMPTY + rect 96 40 64 16 + textalign ITEM_ALIGN_LEFT + textalignx 16 + textaligny 12 + textstyle ITEM_TEXTSTYLE_SHADOWED + forecolor Ig_Sub_TextColor + visible 1 + decoration + } + + itemDef { + name tabControls + group grpTabs + text "Controls" + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_EMPTY + rect 160 40 64 16 + textalign ITEM_ALIGN_LEFT + textalignx 16 + textaligny 12 + textstyle ITEM_TEXTSTYLE_SHADOWED + forecolor Ig_Setup_TabColor + visible 1 + action { close "ingame_system" ; open "ingame_controls" } + } + + itemDef { + name tabGame + group grpTabs + text "Game" + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_EMPTY + rect 224 40 64 16 + textalign ITEM_ALIGN_LEFT + textalignx 16 + textaligny 12 + textstyle ITEM_TEXTSTYLE_SHADOWED + forecolor Ig_Setup_TabColor + visible 1 + action { close "ingame_system" ; open "ingame_options" } + } + +//Sub-sections + + itemDef { + name sectionGraphics + group grpSections + text "Graphics" + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_EMPTY + rect 0 72 96 16 + textalign ITEM_ALIGN_RIGHT + textalignx 88 + textaligny 12 + textstyle ITEM_TEXTSTYLE_SHADOWED + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + forecolor Ig_Sub_TextColor + //backcolor 0 0 0 0 + visible 1 + action { play "sound/misc/menu1.wav" ; hide grpSystem ; + //setitemcolor grpSections backcolor 0 0 0 0 ; + //setitemcolor sectionGraphics backcolor Ig_Window_Color ; + show graphics } + } + + itemDef { + name sectionDriver + group grpSections + text "Driver info" + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_EMPTY + rect 0 96 96 16 + textalign ITEM_ALIGN_RIGHT + textalignx 88 + textaligny 12 + textstyle ITEM_TEXTSTYLE_SHADOWED + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + forecolor Ig_Sub_TextColor + //backcolor 0 0 0 0 + visible 1 + action { play "sound/misc/menu1.wav" ; hide grpSystem ; + //setitemcolor grpSections backcolor 0 0 0 0 ; + //setitemcolor sectionDriver backcolor Ig_Window_Color ; + show driver } + } + + itemDef { + name sectionOther + group grpSections + text "Other" + type ITEM_TYPE_BUTTON + textscale .225 + style WINDOW_STYLE_EMPTY + rect 0 120 96 16 + textalign ITEM_ALIGN_RIGHT + textalignx 88 + textaligny 12 + textstyle ITEM_TEXTSTYLE_SHADOWED + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + forecolor Ig_Sub_TextColor + //backcolor 0 0 0 0 + visible 1 + action { play "sound/misc/menu1.wav" ; hide grpSystem ; + //setitemcolor grpSections backcolor 0 0 0 0 ; + //setitemcolor sectionOther backcolor Ig_Window_Color ; + show Other } + } + +//Options + +// Graphics + + itemDef { + name graphics + group grpSystem + type ITEM_TYPE_MULTI + text "Quality:" + cvar "ui_glCustom" + cvarFloatList { "High Quality" 0 "Normal" 1 "Fast" 2 "Fastest" 3 "Custom" 4 } + rect 96 72 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 133 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + action { uiScript update "ui_glCustom" } + } + + itemDef { + name graphics + group grpSystem + type ITEM_TYPE_EDITFIELD + text "GL Driver:" + cvar "r_gldriver" + //cvarFloatList { } + rect 96 92 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 133 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + decoration + } + + itemDef { + name graphics + group grpSystem + type ITEM_TYPE_YESNO + text "GL Extensions:" + cvar "r_allowExtensions" + rect 96 112 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 133 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + action { uiScript glCustom } + } + + itemDef { + name graphics + group grpSystem + type ITEM_TYPE_MULTI + text "Video Mode:" + cvar "r_mode" + cvarFloatList { "320x240" 0 "400x300" 1 "512x384" 2 "640x480" 3 "800x600" 4 "960x720" 5 "1024x768" 6 "1152x864" 7 "1280x1024" 8 "1600x1200" 9 "2048x1536" 10 "856x480 wide screen" 11 } + rect 96 132 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 133 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + action { uiScript glCustom } + } + + itemDef { + name graphics + group grpSystem + type ITEM_TYPE_MULTI + text "Color Depth:" + cvar "r_colorbits" + cvarFloatList { "Default" 0 "16 bit" 16 "32 bit" 32 } + rect 96 152 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 133 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + action { uiScript glCustom ; uiScript update "r_colorbits" } + } + + itemDef { + name graphics + group grpSystem + type ITEM_TYPE_YESNO + text "Fullscreen:" + cvar "r_fullscreen" + rect 96 172 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 133 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + action { uiScript glCustom } + } + + itemDef { + name graphics + group grpSystem + type ITEM_TYPE_MULTI + text "Lighting:" + cvar "r_vertexlight" + cvarFloatList { "Light Map (high)" 0 "Vertex (low)" 1 } + rect 96 192 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 133 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + action { uiScript glCustom } + } + + itemDef { + name graphics + group grpSystem + type ITEM_TYPE_MULTI + text "Geometric Detail:" + cvar "r_lodbias" + cvarFloatList { "High" 0 "Medium" 1 "Low" 2 } + rect 96 212 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 133 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + action { uiScript glCustom ; uiScript update "r_lodbias" } + } + + itemDef { + name graphics + group grpSystem + type ITEM_TYPE_MULTI + text "Texture Detail:" + cvar "r_picmip" + cvarFloatList { "Very Low" 3 "Low" 2 "Normal" 1 "High" 0 } + rect 96 232 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 133 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + action { uiScript glCustom } + } + + itemDef { + name graphics + group grpSystem + type ITEM_TYPE_MULTI + text "Texture Quality:" + cvar "r_texturebits" + cvarFloatList { "Default" 0 "16 bit" 16 "32 bit" 32 } + rect 96 252 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 133 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + } + + itemDef { + name graphics + group grpSystem + type ITEM_TYPE_MULTI + text "Texture Filter:" + cvar "r_texturemode" + cvarStrList { "Bilinear", "GL_LINEAR_MIPMAP_NEAREST", "Trilinear", "GL_LINEAR_MIPMAP_LINEAR" } + rect 96 272 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 133 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + action { uiScript glCustom } + } + + itemDef { + name graphics + group grpSystem + type ITEM_TYPE_YESNO + text "Compress Textures:" + cvar "r_ext_compressed_textures" + rect 96 292 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 133 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + action { uiScript glCustom } + } + + //Apply button + + itemDef { + name graphics + text "Apply" + type ITEM_TYPE_BUTTON + textscale .225 + group grpsystem + style WINDOW_STYLE_FILLED + rect 200 312 64 16 + textalign ITEM_ALIGN_CENTER + textalignx 32 + textaligny 12 + border 1 + bordersize 1 + backcolor Ig_Sub_Color1 + forecolor Ig_Sub_TextColor + bordercolor Ig_Sub_BorderColor1 + visible 0 + action { exec "vid_restart" } + onFocus { setcolor backcolor Ig_Sub_Color2 ; setcolor bordercolor Ig_Sub_BorderColor2 } + leaveFocus { setcolor backcolor Ig_Sub_Color1 ; setcolor bordercolor Ig_Sub_BorderColor1 } + } + +// Driver info + + itemDef { + name driver + group grpSystem + rect 112 80 232 232 + ownerdraw UI_GLINFO + textalign 1 + textscale .2 + textalignx 0 + textaligny 14 + forecolor Ig_Sub_TextColor + visible 0 + decoration + } + +// Others + + itemDef { + name other + group grpSystem + style 1 + text "Display" + rect 96 68 128 20 + textalign ITEM_ALIGN_CENTER + textalignx 128 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + decoration + } + + itemDef { + name other + group grpSystem + type ITEM_TYPE_SLIDER + text "Brightness:" + cvarfloat "r_gamma" 1 .5 1.7 + rect 96 88 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 128 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + } + + itemDef { + name other + group grpSystem + type ITEM_TYPE_SLIDER + text "Screen Size:" + cvarfloat "cg_viewsize" 100 30 100 + rect 96 108 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 128 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + } + + itemDef { + name other + group grpSystem + type ITEM_TYPE_YESNO + text "Overbright Bits:" + cvar "r_overbrightbits" + rect 96 128 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 128 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + } + + itemDef { + name other + group grpSystem + style 1 + text "Sound" + rect 96 168 128 20 + textalign ITEM_ALIGN_CENTER + textalignx 128 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + decoration + } + + itemDef { + name other + group grpSystem + type ITEM_TYPE_SLIDER + text "Effects Volume:" + cvarfloat "s_volume" 0.7 0 1 + rect 96 188 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 128 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + } + + itemDef { + name other + group grpSystem + type ITEM_TYPE_SLIDER + text "Music Volume:" + cvarfloat "s_musicvolume" 0.25 0 1 + rect 96 208 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 128 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + } + + itemDef { + name other + group grpSystem + type ITEM_TYPE_MULTI + text "Sound Quality:" + cvar "s_khz" + cvarFloatList { "22 khz (high)" 22 "11 khz (low)" 11 } + rect 96 228 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 128 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + } + + itemDef { + name other + group grpSystem + type ITEM_TYPE_YESNO + text "Doppler Sound:" + cvar "s_doppler" + rect 96 248 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 128 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + } + + itemDef { + name other + group grpSystem + style 1 + text "Network" + rect 96 288 128 20 + textalign ITEM_ALIGN_CENTER + textalignx 128 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + decoration + } + + itemDef { + name other + group grpSystem + type ITEM_TYPE_MULTI + text "Net Data Rate:" + cvar "rate" + cvarFloatList { "<=28.8k" 2500 "33.6k" 3000 "56k" 4000 "ISDN" 5000 "LAN/CABLE/xDSl" 25000 } + rect 96 308 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 128 + textaligny 14 + textscale .225 + forecolor Ig_Sub_TextColor + visible 0 + } +} +} diff --git a/reaction/uifiles/ingame_tkok.menu b/reaction/uifiles/ingame_tkok.menu new file mode 100644 index 00000000..dfe18de9 --- /dev/null +++ b/reaction/uifiles/ingame_tkok.menu @@ -0,0 +1,124 @@ +#include "ui/menudef.h" + +{ + + menudef { + name "ingame_tkok" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 200 64 180 120 + 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" ; show grpMenu ; hide grpConfirm } + +//Window + + itemdef { + rect 0 0 180 120 + style WINDOW_STYLE_FILLED + backcolor Ig_Window_Color + visible 1 + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + decoration + } + + itemdef { + rect 61 1 120 24 + style WINDOW_STYLE_SHADER + background "ui/assets/rq3-ingame-title" + visible 1 + decoration + } + + itemdef { + rect 61 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 "Team kill OK ?" + visible 1 + decoration + } + + // Text // + + itemdef { + text "Forgive the last\n" + "teammate who killed you ?" + style WINDOW_STYLE_EMPTY + textscale .25 + rect 8 40 164 32 + textalign ITEM_ALIGN_CENTER + textalignx 82 + textaligny 12 + autowrapped + forecolor Ig_Sub_TextColor + visible 1 + decoration + } + +//Buttons + + // YES // + + itemdef { + name yes + text "Yes" + shortcutKey "Y" + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + textscale .25 + rect 48 88 40 16 + textalign 1 + textalignx 20 + textaligny 12 + forecolor Ig_Sub_TextColor + visible 1 + action { play "sound/misc/menu1.wav" ; exec "tkok" ; uiScript closeingame } + } + + // NO // + + itemdef { + name no + text "No" + shortcutKey "N" + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + textscale .25 + rect 92 88 40 16 + textalign ITEM_ALIGN_CENTER + textalignx 20 + textaligny 12 + forecolor Ig_Sub_TextColor + visible 1 + action { play "sound/misc/menu1.wav" ; uiScript closeingame } + } + + // SEPARATOR // + + itemdef { + text "/" + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + textscale .25 + rect 74 88 32 16 + textalign ITEM_ALIGN_CENTER + textalignx 16 + textaligny 12 + forecolor Ig_Sub_TextColor + visible 1 + decoration + } + +} +} diff --git a/reaction/uifiles/ingame_vote.menu b/reaction/uifiles/ingame_vote.menu new file mode 100644 index 00000000..b3a11026 --- /dev/null +++ b/reaction/uifiles/ingame_vote.menu @@ -0,0 +1,161 @@ +#include "ui/menudef.h" + +{ + + menudef { + name "ingame_vote" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 352 64 128 112 + 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" ; show grpMenu ; hide grpConfirm } + +//Window + + itemdef { + rect 0 0 128 112 + style WINDOW_STYLE_FILLED + backcolor Ig_Window_Color + visible 1 + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + decoration + } + + itemdef { + rect 9 1 120 24 + style WINDOW_STYLE_SHADER + background "ui/assets/rq3-ingame-title" + visible 1 + decoration + } + + itemdef { + rect 9 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 "Vote/Call vote" + visible 1 + decoration + } + +//Buttons + + // YES // + + itemdef { + name yes + text "Yes" + shortcutKey "Y" + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + textscale .25 + rect 16 48 40 16 + textalign 1 + textalignx 20 + textaligny 12 + forecolor Ig_Sub_TextColor + visible 1 + action { play "sound/misc/menu1.wav" ; exec "vote yes" ; uiScript closeingame } + } + + // NO // + + itemdef { + name no + text "No" + shortcutKey "N" + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + textscale .25 + rect 72 48 40 16 + textalign ITEM_ALIGN_CENTER + textalignx 20 + textaligny 12 + forecolor Ig_Sub_TextColor + visible 1 + action { play "sound/misc/menu1.wav" ; exec "vote no" ; uiScript closeingame } + } + + // CALL VOTE // + + itemdef { + name call + text "Call vote" + shortcutKey "C" + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + textscale .25 + rect 16 72 96 16 + textalign ITEM_ALIGN_CENTER + textalignx 48 + textaligny 12 + forecolor Ig_Sub_TextColor + visible 1 + action { play "sound/misc/menu1.wav" ; close ingame_vote ; open ingame_callvote } + } + + // SEPARATOR // + + itemdef { + text "/" + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + textscale .25 + rect 48 48 32 16 + textalign ITEM_ALIGN_CENTER + textalignx 16 + textaligny 12 + forecolor Ig_Sub_TextColor + visible 1 + decoration + } + + // TEAM YES // + + itemdef { + name yes + text "TeamYes" + shortcutKey "Y" + type 1 + //ownerdrawflag UI_SHOW_ANYTEAMGAME + textscale .25 + rect 0 70 128 20 + textalign 1 + textalignx 64 + textaligny 10 + forecolor 1 1 1 1 + visible 0 + action { play "sound/misc/menu1.wav" ; exec "teamvote yes" ; uiScript closeingame } + } + + // TEAM NO // + + itemdef { + name no + text "TeamNo" + shortcutKey "N" + type 1 + //ownerdrawflag UI_SHOW_ANYTEAMGAME + textscale .25 + rect 0 90 128 20 + textalign 1 + textalignx 64 + textaligny 10 + forecolor 1 1 1 1 + visible 0 + action { play "sound/misc/menu1.wav" ; exec "teamvote no" ; uiScript closeingame } + } + +} +} diff --git a/reaction/uifiles/ingame_vote2.menu b/reaction/uifiles/ingame_vote2.menu new file mode 100644 index 00000000..95e280e3 --- /dev/null +++ b/reaction/uifiles/ingame_vote2.menu @@ -0,0 +1,71 @@ +#include "ui/menudef.h" + +{ + \\ SERVER INFO MENU \\ + + menuDef { + name "ingame_vote" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 387 30 210 64 + focusColor 1 .75 0 1 + style 1 + border 1 + + itemDef { + name window + rect 0 0 210 64 + style 1 + border 1 + bordercolor .5 .5 .5 1 + backcolor 0 0 .75 .25 + visible 1 + decoration + } + + + itemDef { + name yes + text "Vote Yes" + type 1 + textscale .25 + group grpControlbutton + style WINDOW_STYLE_SHADER + background "ui/assets/button_red.tga" + rect 20 20 75 20 + textalign 1 + textalignx 37 + textaligny 16 + forecolor 1 1 1 1 + visible 1 + action { exec "cmd vote yes" ; close ingame_vote } + } + + + itemDef { + name no + text "Vote No" + type 1 + textscale .25 + group grpControlbutton + style WINDOW_STYLE_SHADER + background "ui/assets/button_red.tga" + rect 115 20 75 20 + textalign 1 + textalignx 37 + textaligny 16 + forecolor 1 1 1 1 + visible 1 + action { exec "cmd vote no" ; close ingame_vote } + } + } + + + + + +} + + +} diff --git a/reaction/uifiles/ingame_weapon.menu b/reaction/uifiles/ingame_weapon.menu new file mode 100644 index 00000000..9e17e6b0 --- /dev/null +++ b/reaction/uifiles/ingame_weapon.menu @@ -0,0 +1,329 @@ +#include "ui/menudef.h" + +{ + + menuDef { + name "ingame_weapon" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 80 64 344 208 + focusColor 1 .75 0 1 // Menu focus color for text and items + style WINDOW_STYLE_EMPTY + shadowStyle 1 + border 0 + onOpen { play "sound/misc/menu1.wav" ; setFocus mp5 } + onEsc { play "sound/misc/menu2.wav" ; close ingame_weapon } + +//Window + + itemdef { + rect 0 0 344 208 + style WINDOW_STYLE_FILLED + backcolor Ig_Window_Color + visible 1 + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + decoration + } + + itemdef { + rect 225 1 120 24 + style WINDOW_STYLE_SHADER + background "ui/assets/rq3-ingame-title" + visible 1 + decoration + } + + itemdef { + rect 225 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 "Choose weapon" + visible 1 + decoration + } + +//Weapons + + itemdef { + shortcutKey "1" + name "mp5" + rect 152 48 160 16 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 12 + text "1. MP5/10 Submachinegun" + forecolor 1 1 1 1 + visible 1 + onFocus { hide weapons ; show "wp_mp5" } + action { exec "choose mp5" ; close ingame_weapon ; open ingame_item } + } + + itemdef { + shortcutKey "2" + name "m3" + rect 152 68 160 16 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 12 + text "2. M3 Super 90 Assault Shotgun" + forecolor 1 1 1 1 + visible 1 + onFocus { hide weapons ; show "wp_m3" } + action { exec "choose m3" ; close ingame_weapon ; open ingame_item } + } + + itemdef { + name "hc" + shortcutKey "3" + rect 152 88 160 16 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 12 + text "3. Handcannon" + forecolor 1 1 1 1 + visible 1 + onFocus { hide weapons ; show "wp_hc" } + action { exec "choose hc" ; close ingame_weapon ; open ingame_item } + } + + itemdef { + name "sniper" + shortcutKey "4" + rect 152 108 160 16 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 12 + text "4. Sniper Rifle" + forecolor 1 1 1 1 + visible 1 + onFocus { hide weapons ; show "wp_sniper" } + action { exec "choose sniper" ; close ingame_weapon ; open ingame_item } + } + + itemdef { + name "m4" + shortcutKey "5" + rect 152 128 160 16 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 12 + text "5. M4 Assault Rifle" + forecolor 1 1 1 1 + visible 1 + onFocus { hide weapons ; show "wp_m4" } + action { exec "choose m4" ; close ingame_weapon ; open ingame_item } + } + + itemdef { + name "knives" + shortcutKey "6" + rect 152 148 160 16 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 12 + text "6. Combat Knives" + forecolor 1 1 1 1 + visible 1 + onFocus { hide weapons ; show "wp_knives" } + action { exec "choose knives" ; close ingame_weapon ; open ingame_item } + } + + itemdef { + name "akimbo" + shortcutKey "7" + rect 152 168 160 16 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 12 + text "7. Dual Mk23 Pistols" + forecolor 1 1 1 1 + visible 1 + onFocus { hide weapons ; show "wp_akimbo" } + action { exec "choose akimbo" ; close ingame_weapon ; open ingame_item } + } + +//Weapon preview +//Background + + itemdef { + name wp_background + rect 16 48 128 136 + style WINDOW_STYLE_SHADER + background "ui/assets/rq3-ingame-loadout" + model_angle 90 + border 1 + bordersize 1 + bordercolor Ig_Window_BorderColor + //backcolor .5 .5 .5 .4 + decoration + visible 1 + } + +//Weapons + + itemdef { + name wp_mp5 + group weapons + rect 16 48 128 136 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_MODEL + asset_model "models/weapons2/mp5/mp5.md3" + model_origin 8 0 0 + model_fovx 60 + model_fovy 60 + model_rotation 10 + model_angles 90 0 0 + decoration + visible 0 + } + + itemdef { + name wp_m3 + group weapons + rect 16 48 128 136 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_MODEL + asset_model "models/weapons2/m3/m3.md3" + model_origin 28 6 0 + model_fovx 60 + model_fovy 60 + model_rotation 10 + model_angles 270 0 0 + decoration + visible 0 + } + + itemdef { + name wp_hc + group weapons + rect 16 48 128 136 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_MODEL + asset_model "models/weapons2/handcannon/handcannon.md3" + model_origin 16 -4 0 + model_fovx 60 + model_fovy 60 + model_rotation 10 + model_angles 90 0 0 + decoration + visible 0 + } + + itemdef { + name wp_sniper + group weapons + rect 16 48 128 136 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_MODEL + asset_model "models/weapons2/ssg3000/ssg3000.md3" + model_origin 28 6 0 + model_fovx 60 + model_fovy 60 + model_rotation 10 + model_angle 270 + decoration + visible 1 + } + + itemdef { + name wp_m4 + group weapons + rect 16 48 128 136 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_MODEL + asset_model "models/weapons2/m4/m4.md3" + model_origin 18 -2 0 + model_fovx 60 + model_fovy 60 + model_rotation 10 + model_angle 90 + decoration + visible 0 + } + + itemdef { + name wp_knives + group weapons + rect 16 48 128 136 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_MODEL + asset_model "models/weapons2/knife/knife.md3" + model_origin -4 0 0 + model_fovx 60 + model_fovy 60 + model_rotation 10 + model_angles 180 0 15 + decoration + visible 1 + } + + itemdef { + name wp_akimbo + group weapons + rect 24 48 128 136 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_MODEL + asset_model "models/weapons2/mk23/mk23.md3" + model_origin 0 0 1 + model_fovx 90 + model_fovy 90 + model_rotation 10 + model_angle 90 + decoration + visible 1 + } + + itemdef { + name wp_akimbo + group weapons + rect 24 48 128 136 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_MODEL + asset_model "models/weapons2/mk23/mk23.md3" + model_origin 0 2 -3 + model_fovx 90 + model_fovy 90 + model_rotation 10 + model_angles 90 180 0 + decoration + visible 1 + } + +} +} diff --git a/reaction/uifiles/joinserver.menu b/reaction/uifiles/joinserver.menu new file mode 100644 index 00000000..6f0904ba --- /dev/null +++ b/reaction/uifiles/joinserver.menu @@ -0,0 +1,1026 @@ +#include "ui/menudef.h" + +#define HeaderColor 0 0 0 .75 +#define HeaderColor2 .25 .25 .25 .75 +#define ColumnColor .5 .5 .5 0 +#define ColumnColor2 1 1 1 .075 + +{ + + menuDef { + name "joinserver" + 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 { + uiScript "UpdateFilter" ; + play "sound/misc/menu1.wav" ; + } + + onEsc { uiScript closeJoin } + + +//=================== +// 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 "join_icon" + style WINDOW_STYLE_SHADER + rect 8 8 48 48 + background "menu/art/rq3-menu-start.tga" + decoration + visible 1 + } + + itemdef { + name "join_title" + style WINDOW_STYLE_SHADER + rect 64 12 256 32 + background "menu/art/rq3-title-start.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 + } + +//=================== +// Buttons, lists +//=================== + +//Shadow + + itemdef { + style WINDOW_STYLE_EMPTY + rect 20 76 600 328 + shadowstyle 1 + decoration + visible 1 + } + +//Server list + + itemdef { + name serverlist_window + group serverlist + rect 20 96 600 212 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 120 + elementheight 20 + textscale .225 + elementtype LISTBOX_TEXT + feeder FEEDER_SERVERS + border 1 + bordercolor .5 .5 .5 1 + forecolor 1 1 1 1 + backcolor HeaderColor + outlinecolor 1 1 1 .2 + visible 1 + columns 5 2 72 72 280 40 12 404 5 10 464 5 5 524 6 6 + //mouseenter { setitemcolor serverlist bordercolor .7 0 0 1 } + //mouseexit { setitemcolor serverlist bordercolor .5 .5 .5 1 } + onFocus { show serverlist_hint ; timeFade serverlist_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade serverlist_hint forecolor .9 .9 .9 0 0 250 } + doubleClick { uiScript JoinServer } + } + + itemdef { + name serverlist_hint + text "Select a server from the list" + 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 + } + +//Headers + + itemdef { + name s_servername_header + group headers + rect 20 76 281 21 + style WINDOW_STYLE_FILLED + type ITEM_TYPE_BUTTON + border 1 + bordercolor .5 .5 .5 1 + backcolor HeaderColor + forecolor 1 1 1 1 + textscale .225 + outlinecolor 1 1 1 .2 + textstyle 5 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + text "Server name" + visible 1 + action { + play "sound/misc/menu1.wav" ; + uiScript ServerSort 0 ; + setitemcolor headers backcolor HeaderColor ; + setitemcolor s_servername_header backcolor HeaderColor2 ; + setitemcolor columns backcolor ColumnColor ; + setitemcolor s_servername_column backcolor ColumnColor2 } + onFocus { show sortserver_hint ; timeFade sortserver_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade sortserver_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name s_mapname_header + group headers + rect 300 76 121 21 + style WINDOW_STYLE_FILLED + type ITEM_TYPE_BUTTON + border 1 + bordercolor .5 .5 .5 1 + backcolor HeaderColor + forecolor 1 1 1 1 + textscale .225 + outlinecolor 1 1 1 .2 + textstyle 5 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + text "Map name" + visible 1 + action { + play "sound/misc/menu1.wav" ; + uiScript ServerSort 1 ; + setitemcolor headers backcolor HeaderColor ; + setitemcolor s_mapname_header backcolor HeaderColor2 ; + setitemcolor columns backcolor ColumnColor ; + setitemcolor s_mapname_column backcolor ColumnColor2 } + onFocus { show sortmap_hint ; timeFade sortmap_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade sortmap_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name s_players_header + group headers + rect 420 76 61 21 + style WINDOW_STYLE_FILLED + type ITEM_TYPE_BUTTON + border 1 + bordercolor .5 .5 .5 1 + backcolor HeaderColor + forecolor 1 1 1 1 + textscale .225 + outlinecolor 1 1 1 .2 + textstyle 5 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + text "#Plyrs" + visible 1 + action { + play "sound/misc/menu1.wav" ; + uiScript ServerSort 2 ; + setitemcolor headers backcolor HeaderColor ; + setitemcolor s_players_header backcolor HeaderColor2 ; + setitemcolor columns backcolor ColumnColor ; + setitemcolor s_players_column backcolor ColumnColor2 } + onFocus { show sortplayers_hint ; timeFade sortplayers_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade sortplayers_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name s_gametype_header + group headers + rect 480 76 61 21 + style WINDOW_STYLE_FILLED + type ITEM_TYPE_BUTTON + border 1 + bordercolor .5 .5 .5 1 + backcolor HeaderColor + forecolor 1 1 1 1 + textscale .225 + outlinecolor 1 1 1 .2 + textstyle 5 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + text "Type" + visible 1 + action { + play "sound/misc/menu1.wav" ; + uiScript ServerSort 3 ; + setitemcolor headers backcolor HeaderColor ; + setitemcolor s_gametype_header backcolor HeaderColor2 ; + setitemcolor columns backcolor ColumnColor ; + setitemcolor s_gametype_column backcolor ColumnColor2 } + onFocus { show sorttype_hint ; timeFade sorttype_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade sorttype_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name s_ping_header + group headers + rect 540 76 80 21 + style WINDOW_STYLE_FILLED + type ITEM_TYPE_BUTTON + border 1 + bordercolor .5 .5 .5 1 + backcolor HeaderColor + forecolor 1 1 1 1 + textscale .225 + outlinecolor 1 1 1 .2 + textstyle 5 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + text "Ping" + visible 1 + action { + play "sound/misc/menu1.wav" ; + uiScript ServerSort 4 ; + setitemcolor headers backcolor HeaderColor ; + setitemcolor s_ping_header backcolor HeaderColor2 ; + setitemcolor columns backcolor ColumnColor ; + setitemcolor s_ping_column backcolor ColumnColor2 } + onFocus { show sortping_hint ; timeFade sortping_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade sortping_hint forecolor .9 .9 .9 0 0 250 } + } + +//Columns + + itemdef { + name s_servername_column + group columns + rect 20 96 281 212 + style WINDOW_STYLE_FILLED + border 1 + bordercolor .5 .5 .5 1 + backcolor ColumnColor + visible 1 + decoration + } + + itemdef { + name s_mapname_column + group columns + rect 300 96 121 212 + style WINDOW_STYLE_FILLED + border 1 + bordercolor .5 .5 .5 1 + backcolor ColumnColor + visible 1 + decoration + } + + itemdef { + name s_players_column + group columns + rect 420 96 61 212 + style WINDOW_STYLE_FILLED + border 1 + bordercolor .5 .5 .5 1 + backcolor ColumnColor + visible 1 + decoration + } + + itemdef { + name s_gametype_column + group columns + rect 480 96 61 212 + style WINDOW_STYLE_FILLED + border 1 + bordercolor .5 .5 .5 1 + backcolor ColumnColor + visible 1 + decoration + } + + itemdef { + name s_ping_column + group columns + rect 540 96 63 212 + style WINDOW_STYLE_FILLED + border 1 + bordercolor .5 .5 .5 1 + backcolor ColumnColor + visible 1 + decoration + } + +//Sort message + + itemdef { + name sortserver_hint + text "Click to sort server list by server name" + 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 + } + + itemdef { + name sortmap_hint + text "Click to sort server list by map name" + 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 + } + + itemdef { + name sortplayers_hint + text "Click to sort server list by number of players" + 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 + } + + itemdef { + name sorttype_hint + text "Click to sort server list by game type" + 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 + } + + itemdef { + name sortping_hint + text "Click to sort server list by ping time" + 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 + } + +//Options + + //Window + + itemdef { + rect 20 307 600 65 + style WINDOW_STYLE_FILLED + backcolor 0 0 0 .65 + border 1 + bordercolor .5 .5 .5 1 + visible 1 + decoration + } + + //Window + + itemdef { + rect 20 370 600 32 + style WINDOW_STYLE_FILLED + backcolor 0 0 0 .65 + border 1 + bordercolor .5 .5 .5 1 + visible 1 + decoration + } + + //Map preview + +/* + itemdef { + rect 12 72 168 124 + style WINDOW_STYLE_EMPTY + //backcolor 0 0 0 .65 + border 1 + bordercolor .5 .5 .5 1 + visible 1 + decoration + } +*/ + + itemdef { + name map_preview + rect 544 314 72 54 + ownerdraw UI_NETMAPCINEMATIC + style WINDOW_STYLE_EMPTY + decoration + visible 1 + } + + // 1st row // + // Server Info // + + itemdef { + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 28 316 100 20 + text "Server Info" + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + action { open "serverinfo_popmenu" } + onFocus { show serverinfo_hint ; timeFade serverinfo_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade serverinfo_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name serverinfo_hint + text "Click to display information about the selected server" + 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 + } + + // Password // + + itemdef { + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 148 316 100 20 + text "Password" + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + action { open "password_popmenu" } + onFocus { show password_hint ; timeFade password_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade password_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name password_hint + text "Click to enter a password to join a private server" + 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 + } + + // Specify // + + itemdef { + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 300 316 100 20 + text "Specify" + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + action { open "specify_popmenu" } + onFocus { show specify_hint ; timeFade specify_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade specify_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name specify_hint + text "Click to specify a custom server address" + 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 + } + + // Find Player // + + itemdef { + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 420 316 100 20 + text "Find Player" + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + action { open "findplayer_popmenu" } + onFocus { show findplayer_hint ; timeFade findplayer_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade findplayer_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name findplayer_hint + text "Click to search the server list for players" + 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 + } + + // 2nd row // + // Add Favorite // + + itemdef { + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 28 344 100 20 + text "Add Favorite" + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" ; uiScript addFavorite } + onFocus { show addfav_hint ; timeFade addfav_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade addfav_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name addfav_hint + text "Click to add the selected server to the favorites list" + 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 + } + + // Del Favorite // + + itemdef { + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 148 344 100 20 + text "Del. Favorite" + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" ; uiScript DeleteFavorite ; uiScript UpdateFilter } + onFocus { show delfav_hint ; timeFade delfav_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade delfav_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name delfav_hint + text "Click to remove the selected server from the favorites list" + 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 + } + + // New Favorite // + + itemdef { + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 300 344 100 20 + text "New Favorite" + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + action { open "createfavorite_popmenu" } + onFocus { show newfav_hint ; timeFade newfav_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade newfav_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name newfav_hint + text "Click to enter the name and address of a new favorite server" + 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 + } + + // Source // + + itemdef { + style WINDOW_STYLE_EMPTY + ownerdraw UI_NETSOURCE + rect 420 344 80 20 + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" } + } + + // 3rd row // + // Get New List // + + itemdef { + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 28 376 100 20 + text "Get New List" + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" ; uiScript RefreshServers } + onFocus { show getlist_hint ; timeFade getlist_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade getlist_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name getlist_hint + text "Click to get an updated server list" + 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 + } + + // Refresh List // + + itemdef { + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 148 376 100 20 + text "Refresh List" + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" ; uiScript RefreshFilter } + onFocus { show refresh_hint ; timeFade refresh_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade refresh_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name refresh_hint + text "Click to refresh the server list" + 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 + } + + // View empty // + + itemdef { + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_YESNO + rect 300 376 80 20 + text "View Empty:" + cvar "ui_browserShowEmpty" + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" ; uiScript RefreshFilter } + onFocus { show empty_hint ; timeFade empty_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade empty_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name empty_hint + text "Show empty servers in the list" + 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 + } + + // View full // + + itemdef { + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_YESNO + rect 420 376 80 20 + text "View Full:" + cvar "ui_browserShowFull" + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" ; uiScript RefreshFilter } + onFocus { show full_hint ; timeFade full_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade full_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name full_hint + text "Show full servers in the list" + 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 + } + +/* + // Game // + + itemdef { + style WINDOW_STYLE_EMPTY + ownerdraw UI_NETFILTER + rect 528 376 80 20 + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" } + } +*/ + +//GO button + + itemdef { + name "btn_join" + style WINDOW_STYLE_SHADER + rect 560 432 64 32 + type 1 + background "menu/art/rq3-menu-go.tga" + action { uiScript JoinServer } + onFocus { setbackground "menu/art/rq3-menu-go-focus-anim" ; show join_hint ; + timeFade join_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { setbackground "menu/art/rq3-menu-go.tga" ; + timeFade join_hint forecolor .9 .9 .9 0 0 250 } + visible 1 + } + + itemdef { + name join_hint + text "Connect to the selected server" + 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 + } + + // Server Refresh Date // + + itemdef { + ownerdraw UI_SERVERREFRESHDATE + style WINDOW_STYLE_EMPTY + rect 300 20 200 20 + textscale .2 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 16 + forecolor 1 1 1 1 + decoration + visible 1 + } + +//Create + + itemdef { + name "btn_create" + style WINDOW_STYLE_FILLED + type ITEM_TYPE_BUTTON + rect 540 20 80 20 + //border 1 + //bordersize 1 + //bordercolor .5 .5 .5 1 + backcolor Ig_Sub_Color1 + forecolor 1 1 1 1 + textscale .25 + textalign ITEM_ALIGN_CENTER + textalignx 40 + textaligny 14 + text "Create >" + visible 1 + action { close joinserver ; open createserver } + //onFocus { setcolor backcolor Ig_Sub_Color2 ; show create_hint } + //leaveFocus { setcolor backcolor Ig_Sub_Color1 ; hide create_hint } + onFocus { setcolor backcolor Ig_Sub_Color2 ; + show create_hint ; timeFade create_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { setcolor backcolor Ig_Sub_Color1 ; + timeFade create_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name create_hint + text "Create your own Reaction server" + 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 + } + +//Back + + itemdef { + name "btn_back" + style WINDOW_STYLE_SHADER + rect 12 432 32 32 + type 1 + background "menu/art/rq3-menu-back.tga" + action { close joinserver ; open main ; } + 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 } + visible 1 + } + + itemdef { + name back_hint + text "Go back to main 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 + } +} +} \ No newline at end of file diff --git a/reaction/uifiles/main.menu b/reaction/uifiles/main.menu new file mode 100644 index 00000000..b47c3be1 --- /dev/null +++ b/reaction/uifiles/main.menu @@ -0,0 +1,408 @@ +#include "ui/menudef.h" + +{ + assetGlobalDef { + font "fonts/font" 16 // font + smallFont "fonts/smallfont" 12 // font + bigFont "fonts/bigfont" 20 // font + cursor "gfx/rq3_ta_hud/3_cursor2.tga" // cursor + gradientBar "ui/assets/gradientbar2.tga" // gradient bar + itemFocusSound "sound/misc/menu2.wav" // sound for item getting focus (via keyboard or mouse ) + + fadeCycle 2 // how often fade happens in milliseconds + fadeAmount 0.05 // amount to adjust alpha per cycle + fadeClamp 1.0 // sets the fadeup alpha + + shadowColor 0.1 0.1 0.1 0.25 // shadow color + } + + + menuDef { + name "main" // Makro: rename it to "main-rq3" + background "rq3-ta-menuback" // Makro: replace "rq3-ta-menuback" with "rq3-menuback" + fullScreen MENU_TRUE + + //rect 0 0 640 480 // Size and position of the menu + visible 0 // Visible on open + focusColor RQ3_MAIN_FOCUSCOLOR // Menu focus color for text and items + soundLoop "music/rq3_title_loop" + soundIntro "music/rq3_title_intro" + + + onOpen { + //setitemcolor fadebox backcolor 0 0 0 1 ; + //fadeout fadebox ; + play "sound/misc/menu1.wav" ; + uiScript stopRefresh ; + } + + onFirstShow { + hide overlay ; show fadebox ; + setitemcolor fadebox backcolor 0 0 0 1 ; + timeFade fadebox backcolor 0 0 0 0 0 1000 ; + setfocus rq3_start ; + } + + onShow { + hide fadebox ; show overlay ; + setitemcolor overlay backcolor RQ3_MENU_OVERLAY_COLOR ; + timeFade overlay backcolor 0 0 0 0 0 500 ; + } + + onESC { show overlay ; hide fadebox ; + setitemcolor overlay backcolor RQ3_MENU_OVERLAY_COLOR ; + open quit_popmenu } + + + +//=================== +// RQ3 stuff +//=================== + + + itemDef { + name top_bar //rq3: Top bar + rect 0 0 640 56 + style WINDOW_STYLE_FILLED + //background "ui/assets/top" + backcolor RQ3_MAIN_BAR_COLOR + 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 overlay + style 1 + forecolor 0 0 0 1 + backcolor 0 0 0 0 + rect 0 58 640 360 + visible 0 + decoration + } + +//Box for hints + + itemDef { + style WINDOW_STYLE_SHADER + rect 0 408 180 24 + background "ui/assets/rq3-main-box-1.tga" + visible 1 + decoration + } + + itemDef { + style WINDOW_STYLE_SHADER + rect 180 408 56 24 + background "ui/assets/rq3-main-box-2.tga" + visible 1 + decoration + } + +//Copyright + + itemDef { + name copyright + autowrapped + text "Reaction Quake 3 Beta 2.1\n" + "Copyright (c) 2000 - 2002 Reaction Quake 3 Team\n" + "Quake III Arena (c) 1999 - 2000 id Software Inc." + style 0 + textscale .15 + rect 0 420 640 28 + textalign 0 + textaligny 24 + textalignx 8 + forecolor .5 .5 .5 1 + visible 1 + decoration + } + +//================ +// Buttons +//================ + + +//Start game + + itemDef { + name RQ3_start + group "topmenu" + type 1 + background "menu/art/rq3-menu-start" + rect 8 16 32 32 + style WINDOW_STYLE_SHADER + visible 1 + mouseenter { setfocus rq3_start ; } + action { close main ; open joinserver ; } + onFocus { show rq3_start_focus ; timefade rq3_start_focus forecolor 1 1 1 1 0 250 ; + show rq3_start_hint ; timeFade rq3_start_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade rq3_start_focus forecolor 1 1 1 0 0 250 ; timeFade rq3_start_hint forecolor .9 .9 .9 0 0 250 } + } + + itemDef { + name RQ3_start_focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 8 16 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + + itemDef { + name RQ3_start_hint + group hints + text "Play Reaction Quake 3" + forecolor RQ3_MAIN_HINT_COLOR + textalign 0 + textalignx 8 + textaligny 16 + textscale RQ3_MAIN_TEXTSIZE + rect 0 410 260 24 + style 0 + visible 0 + decoration + } + +//Setup + + itemDef { + name RQ3_Setup + group "topmenu" + type 1 + background "menu/art/rq3-menu-setup" + rect 56 16 32 32 + style WINDOW_STYLE_SHADER + visible 1 + action { close main ; open setup_menu ; } + onFocus { show rq3_setup_focus ; timefade rq3_setup_focus forecolor 1 1 1 1 0 250 ; + show rq3_setup_hint ; timeFade rq3_setup_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade rq3_setup_focus forecolor 1 1 1 0 0 250 ; timeFade rq3_setup_hint forecolor .9 .9 .9 0 0 250 } + } + + itemDef { + name RQ3_Setup_focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 56 16 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemDef { + name RQ3_setup_hint + group hints + text "Configure Reaction Quake 3" + forecolor RQ3_MAIN_HINT_COLOR + textalign 0 + textalignx 8 + textaligny 16 + textscale RQ3_MAIN_TEXTSIZE + rect 0 410 260 24 + style 0 + visible 0 + decoration + } + +//Demos + + itemDef { + name RQ3_demos + group "topmenu" + type 1 + background "menu/art/rq3-menu-demos" + rect 104 16 32 32 + style WINDOW_STYLE_SHADER + visible 1 + action { close main ; open demo ; } + mouseenter { setfocus rq3_demos ; } + onFocus { show rq3_demos_focus ; timefade rq3_demos_focus forecolor 1 1 1 1 0 250 ; + show rq3_demos_hint ; timeFade rq3_demos_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade rq3_demos_focus forecolor 1 1 1 0 0 250 ; timeFade rq3_demos_hint forecolor .9 .9 .9 0 0 250 } + } + + itemDef { + name RQ3_demos_focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 104 16 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemDef { + name RQ3_demos_hint + group hints + text "Playback in-game demos" + forecolor RQ3_MAIN_HINT_COLOR + textalign 0 + textalignx 8 + textaligny 16 + textscale RQ3_MAIN_TEXTSIZE + rect 0 410 260 24 + style 0 + visible 0 + decoration + } + +//Mods + + itemDef { + name RQ3_mods + group "topmenu" + type 1 + background "menu/art/rq3-menu-mods" + rect 544 16 32 32 + style WINDOW_STYLE_SHADER + visible 1 + mouseenter { setfocus rq3_mods ; } + action { close main ; open mod ; } + onFocus { show rq3_mods_focus ; timefade rq3_mods_focus forecolor 1 1 1 1 0 250 ; + show rq3_mods_hint ; timeFade rq3_mods_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade rq3_mods_focus forecolor 1 1 1 0 0 250 ; timeFade rq3_mods_hint forecolor .9 .9 .9 0 0 250 } + } + + itemDef { + name RQ3_mods_focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 544 16 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemDef { + name RQ3_mods_hint + group hints + text "Change game modification" + forecolor RQ3_MAIN_HINT_COLOR + textalign 0 + textalignx 8 + textaligny 16 + textscale RQ3_MAIN_TEXTSIZE + rect 0 410 260 24 + style 0 + visible 0 + decoration + } + +//Quit + + itemDef { + name RQ3_quit + group "topmenu" + type 1 + background "menu/art/rq3-menu-exit" + rect 600 16 32 32 + style WINDOW_STYLE_SHADER + visible 1 + action { show overlay ; hide fadebox ; + setitemcolor overlay backcolor RQ3_MENU_OVERLAY_COLOR ; + open quit_popmenu } + onFocus { show rq3_quit_focus ; timefade rq3_quit_focus forecolor 1 1 1 1 0 250 ; + show rq3_quit_hint ; timeFade rq3_quit_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade rq3_quit_focus forecolor 1 1 1 0 0 250 ; timeFade rq3_quit_hint forecolor .9 .9 .9 0 0 250 } +// onFocus { fadein rq3_quit_focus ; fadein rq3_quit_hint ; } +// leaveFocus { hide rq3_quit_focus ; hide rq3_quit_hint ; } + } + + itemDef { + name RQ3_quit_focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 600 16 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemDef { + name RQ3_quit_hint + group hints + text "Exit Reaction Quake 3" + forecolor RQ3_MAIN_HINT_COLOR + textalign 0 + textalignx 8 + textaligny 16 + textscale RQ3_MAIN_TEXTSIZE + rect 0 410 260 24 + style 0 + visible 0 + decoration + } + +//Logo+credits + + itemDef { + name rq3_logo + type 1 + background "menu/art/rq3-title-logo.tga" + rect 448 408 192 64 + style WINDOW_STYLE_SHADER + visible 1 + decoration + } + +//Box for fading in menus + + itemDef { + name fadebox + style WINDOW_STYLE_FILLED + //background "ui/assets/alpha" + //forecolor 0 0 0 1 + backcolor 0 0 0 1 + rect 0 0 640 480 + visible 0 + decoration + } + +} diff --git a/reaction/uifiles/main2.menu b/reaction/uifiles/main2.menu new file mode 100644 index 00000000..59185de2 --- /dev/null +++ b/reaction/uifiles/main2.menu @@ -0,0 +1,362 @@ +#include "ui/menudef.h" + +{ + assetGlobalDef { + font "fonts/font" 16 // font + smallFont "fonts/smallfont" 12 // font + bigFont "fonts/bigfont" 20 // font + cursor "gfx/rq3_ta_hud/3_cursor2.tga" // cursor + gradientBar "ui/assets/gradientbar2.tga" // gradient bar + itemFocusSound "sound/misc/menu2.wav" // sound for item getting focus (via keyboard or mouse ) + + fadeCycle 2 // how often fade happens in milliseconds + fadeAmount 0.05 // amount to adjust alpha per cycle + fadeClamp 1.0 // sets the fadeup alpha + + shadowColor 0.1 0.1 0.1 0.25 // shadow color + } + + + menuDef { + name "main2" // Makro: rename it to "main-rq3" + background "rq3-ta-menuback" // Makro: replace "rq3-ta-menuback" with "rq3-menuback" + fullScreen MENU_TRUE + + //rect 0 0 640 480 // Size and position of the menu + visible MENU_TRUE // Visible on open + focusColor 1 .75 0 1 // Menu focus color for text and items + + + onOpen { + //setitemcolor fadebox backcolor 0 0 0 1 ; + //fadeout fadebox ; + play "sound/misc/menu1.wav" ; + //exec "music music/rq3_title_intro.wav music/rq3_title_loop.wav" ; + setfocus rq3_start ; + uiScript stopRefresh ; + } + + onESC { open quit_popmenu } + + +//******************* +// 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_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 copyright + text "Reaction Quake3 TA UI Test" + style 0 + textscale RQ3_MAIN_TEXTSIZE + rect 0 440 640 40 + textalign 0 + textaligny 32 + textalignx 8 + forecolor 1 .25 0 .5 + visible 1 + decoration + } + +//**************** +// Buttons +//**************** + + +//Start game + + itemdef { + name RQ3_start + group "topmenu" + type 1 + background "menu/art/rq3-menu-start" + rect 8 16 32 32 + style WINDOW_STYLE_SHADER + visible 1 + mouseenter { setfocus rq3_start ; } + onFocus { fadein rq3_start_focus ; fadein rq3_start_hint ; } + leaveFocus {hide rq3_start_focus ; hide rq3_start_hint ; } + action { close main ; open joinserver ; } + } + + itemdef { + name RQ3_start_focus + background "menu/art/rq3-menu-focus" + rect 8 16 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + + itemdef { + name RQ3_start_hint + text "Play Reaction Quake3" + forecolor RQ3_MAIN_HINT_COLOR + textalign 0 + textalignx 8 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 0 420 640 40 + style 0 + visible 0 + decoration + } + +//Setup + + itemdef { + name RQ3_Setup + group "topmenu" + type 1 + background "menu/art/rq3-menu-setup" + rect 56 16 32 32 + style WINDOW_STYLE_SHADER + visible 1 + action { close main ; open setup_menu ; } + mouseenter { setfocus rq3_setup ; } + onFocus { fadein rq3_setup_focus ; fadein rq3_setup_hint ; } + leaveFocus {hide rq3_setup_focus ; hide rq3_setup_hint ; } + } + + itemdef { + name RQ3_Setup_focus + background "menu/art/rq3-menu-focus" + rect 56 16 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name RQ3_setup_hint + text "Configure Reaction Quake3" + forecolor RQ3_MAIN_HINT_COLOR + textalign 0 + textalignx 8 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 0 420 640 40 + style 0 + visible 0 + decoration + } + +//Demos + + itemdef { + name RQ3_demos + group "topmenu" + type 1 + background "menu/art/rq3-menu-demos" + rect 104 16 32 32 + style WINDOW_STYLE_SHADER + visible 1 + action { close main ; open demo ; } + mouseenter { setfocus rq3_demos ; } + onFocus { fadein rq3_demos_focus ; fadein rq3_demos_hint ; } + leaveFocus {hide rq3_demos_focus ; hide rq3_demos_hint ; } + } + + itemdef { + name RQ3_demos_focus + background "menu/art/rq3-menu-focus" + rect 104 16 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name RQ3_demos_hint + text "Playback in-game demos" + forecolor RQ3_MAIN_HINT_COLOR + textalign 0 + textalignx 8 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 0 420 640 40 + style 0 + visible 0 + decoration + } + +//Mods + + itemdef { + name RQ3_mods + group "topmenu" + type 1 + background "menu/art/rq3-menu-mods" + rect 544 16 32 32 + style WINDOW_STYLE_SHADER + visible 1 + mouseenter { setfocus rq3_mods ; } + action { close main ; open mod ; } + onFocus { fadein rq3_mods_focus ; fadein rq3_mods_hint ; } + leaveFocus {hide rq3_mods_focus ; hide rq3_mods_hint ; } + } + + itemdef { + name RQ3_mods_focus + background "menu/art/rq3-menu-focus" + rect 544 16 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name RQ3_mods_hint + text "Change game modification" + forecolor RQ3_MAIN_HINT_COLOR + textalign 0 + textalignx 8 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 0 420 640 40 + style 0 + visible 0 + decoration + } + +//Quit + + itemdef { + name RQ3_quit + group "topmenu" + type 1 + background "menu/art/rq3-menu-exit" + rect 600 16 32 32 + style WINDOW_STYLE_SHADER + visible 1 + action { play "sound/misc/menu1.wav" ; open quit_popmenu ; } + mouseenter { setfocus rq3_quit ; } + onFocus { fadein rq3_quit_focus ; fadein rq3_quit_hint ; } + leaveFocus {hide rq3_quit_focus ; hide rq3_quit_hint ; } + } + + itemdef { + name RQ3_quit_focus + background "menu/art/rq3-menu-focus" + rect 600 16 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name RQ3_quit_hint + text "Exit Reaction Quake3" + forecolor RQ3_MAIN_HINT_COLOR + textalign 0 + textalignx 8 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 0 420 640 40 + style 0 + visible 0 + decoration + } + +//Logo+credits + + itemdef { + name rq3_logo + type 1 + background "menu/art/rq3-title-logo.tga" + rect 384 412 256 64 + style WINDOW_STYLE_SHADER + visible 1 + action { close main ; open credit ; } + mouseenter { setfocus rq3_logo ; } + onFocus { + fadein rq3_logo_hint ; + //setbackground "menu/art/rq3-title-logo-focus-anim.tga" ; + //transition rq3_logo 384 424 256 64 380 420 264 72 30 10 ; + } + leaveFocus { + hide rq3_logo_hint ; + //setbackground "menu/art/rq3-title-logo.tga" ; + //transition rq3_logo 380 420 264 72 384 424 256 64 30 10 ; + } + } + + itemdef { + name RQ3_logo_hint + text "About Reaction Quake3" + forecolor RQ3_MAIN_HINT_COLOR + textalign 0 + textalignx 8 + textaligny 20 + textscale RQ3_MAIN_TEXTSIZE + rect 0 420 640 40 + type 0 + style 0 + visible 0 + decoration + } + + +//Box for fading in menus + + itemDef { + name fadebox + style WINDOW_STYLE_FILLED + background "ui/assets/alpha" + forecolor 0 0 0 1 + backcolor 0 0 0 1 + rect 0 0 640 480 + visible 0 + decoration + } + +} \ No newline at end of file diff --git a/reaction/uifiles/menudef.h b/reaction/uifiles/menudef.h new file mode 100644 index 00000000..98a955de --- /dev/null +++ b/reaction/uifiles/menudef.h @@ -0,0 +1,347 @@ + +#define ITEM_TYPE_TEXT 0 // simple text +#define ITEM_TYPE_BUTTON 1 // button, basically text with a border +#define ITEM_TYPE_RADIOBUTTON 2 // toggle button, may be grouped +#define ITEM_TYPE_CHECKBOX 3 // check box +#define ITEM_TYPE_EDITFIELD 4 // editable text, associated with a cvar +#define ITEM_TYPE_COMBO 5 // drop down list +#define ITEM_TYPE_LISTBOX 6 // scrollable list +#define ITEM_TYPE_MODEL 7 // model +#define ITEM_TYPE_OWNERDRAW 8 // owner draw, name specs what it is +#define ITEM_TYPE_NUMERICFIELD 9 // editable text, associated with a cvar +#define ITEM_TYPE_SLIDER 10 // mouse speed, volume, etc. +#define ITEM_TYPE_YESNO 11 // yes no cvar setting +#define ITEM_TYPE_MULTI 12 // multiple list setting, enumerated +#define ITEM_TYPE_BIND 13 // multiple list setting, enumerated + +#define ITEM_ALIGN_LEFT 0 // left alignment +#define ITEM_ALIGN_CENTER 1 // center alignment +#define ITEM_ALIGN_RIGHT 2 // right alignment + +#define ITEM_TEXTSTYLE_NORMAL 0 // normal text +#define ITEM_TEXTSTYLE_BLINK 1 // fast blinking +#define ITEM_TEXTSTYLE_PULSE 2 // slow pulsing +#define ITEM_TEXTSTYLE_SHADOWED 3 // drop shadow ( need a color for this ) +#define ITEM_TEXTSTYLE_OUTLINED 4 // drop shadow ( need a color for this ) +#define ITEM_TEXTSTYLE_OUTLINESHADOWED 5 // drop shadow ( need a color for this ) +#define ITEM_TEXTSTYLE_SHADOWEDMORE 6 // drop shadow ( need a color for this ) + +#define WINDOW_BORDER_NONE 0 // no border +#define WINDOW_BORDER_FULL 1 // full border based on border color ( single pixel ) +#define WINDOW_BORDER_HORZ 2 // horizontal borders only +#define WINDOW_BORDER_VERT 3 // vertical borders only +#define WINDOW_BORDER_KCGRADIENT 4 // horizontal border using the gradient bars + +#define WINDOW_STYLE_EMPTY 0 // no background +#define WINDOW_STYLE_FILLED 1 // filled with background color +#define WINDOW_STYLE_GRADIENT 2 // gradient bar based on background color +#define WINDOW_STYLE_SHADER 3 // gradient bar based on background color +#define WINDOW_STYLE_TEAMCOLOR 4 // team color +#define WINDOW_STYLE_CINEMATIC 5 // cinematic + +#define MENU_TRUE 1 // uh.. true +#define MENU_FALSE 0 // and false + +#define HUD_VERTICAL 0x00 +#define HUD_HORIZONTAL 0x01 + +// list box element types +#define LISTBOX_TEXT 0x00 +#define LISTBOX_IMAGE 0x01 + +// list feeders +#define FEEDER_HEADS 0x00 // model heads +#define FEEDER_MAPS 0x01 // text maps based on game type +#define FEEDER_SERVERS 0x02 // servers +#define FEEDER_CLANS 0x03 // clan names +#define FEEDER_ALLMAPS 0x04 // all maps available, in graphic format +#define FEEDER_REDTEAM_LIST 0x05 // red team members +#define FEEDER_BLUETEAM_LIST 0x06 // blue team members +#define FEEDER_PLAYER_LIST 0x07 // players +#define FEEDER_TEAM_LIST 0x08 // team members for team voting +#define FEEDER_MODS 0x09 // team members for team voting +#define FEEDER_DEMOS 0x0a // team members for team voting +#define FEEDER_SCOREBOARD 0x0b // team members for team voting +#define FEEDER_Q3HEADS 0x0c // model heads +#define FEEDER_SERVERSTATUS 0x0d // server status +#define FEEDER_FINDPLAYER 0x0e // find player +#define FEEDER_CINEMATICS 0x0f // cinematics +//Makro - improved in-game server info screen +#define FEEDER_INGAME_SERVERINFO 0x10 + +// display flags +#define CG_SHOW_BLUE_TEAM_HAS_REDFLAG 0x00000001 +#define CG_SHOW_RED_TEAM_HAS_BLUEFLAG 0x00000002 +#define CG_SHOW_ANYTEAMGAME 0x00000004 +#define CG_SHOW_HARVESTER 0x00000008 +#define CG_SHOW_ONEFLAG 0x00000010 +#define CG_SHOW_CTF 0x00000020 +#define CG_SHOW_OBELISK 0x00000040 +#define CG_SHOW_HEALTHCRITICAL 0x00000080 +#define CG_SHOW_SINGLEPLAYER 0x00000100 +#define CG_SHOW_TOURNAMENT 0x00000200 +#define CG_SHOW_DURINGINCOMINGVOICE 0x00000400 +#define CG_SHOW_IF_PLAYER_HAS_FLAG 0x00000800 +#define CG_SHOW_LANPLAYONLY 0x00001000 +#define CG_SHOW_MINED 0x00002000 +#define CG_SHOW_HEALTHOK 0x00004000 +#define CG_SHOW_TEAMINFO 0x00008000 +#define CG_SHOW_NOTEAMINFO 0x00010000 +#define CG_SHOW_OTHERTEAMHASFLAG 0x00020000 +#define CG_SHOW_YOURTEAMHASENEMYFLAG 0x00040000 +#define CG_SHOW_ANYNONTEAMGAME 0x00080000 +#define CG_SHOW_2DONLY 0x10000000 + + +#define UI_SHOW_LEADER 0x00000001 +#define UI_SHOW_NOTLEADER 0x00000002 +#define UI_SHOW_FAVORITESERVERS 0x00000004 +#define UI_SHOW_ANYNONTEAMGAME 0x00000008 +#define UI_SHOW_ANYTEAMGAME 0x00000010 +#define UI_SHOW_NEWHIGHSCORE 0x00000020 +#define UI_SHOW_DEMOAVAILABLE 0x00000040 +#define UI_SHOW_NEWBESTTIME 0x00000080 +#define UI_SHOW_FFA 0x00000100 +#define UI_SHOW_NOTFFA 0x00000200 +#define UI_SHOW_NETANYNONTEAMGAME 0x00000400 +#define UI_SHOW_NETANYTEAMGAME 0x00000800 +#define UI_SHOW_NOTFAVORITESERVERS 0x00001000 + + + + +// owner draw types +// ideally these should be done outside of this file but +// this makes it much easier for the macro expansion to +// convert them for the designers ( from the .menu files ) +#define CG_OWNERDRAW_BASE 1 +#define CG_PLAYER_ARMOR_ICON 1 +#define CG_PLAYER_ARMOR_VALUE 2 +#define CG_PLAYER_HEAD 3 +#define CG_PLAYER_HEALTH 4 +#define CG_PLAYER_AMMO_ICON 5 +#define CG_PLAYER_AMMO_VALUE 6 +#define CG_SELECTEDPLAYER_HEAD 7 +#define CG_SELECTEDPLAYER_NAME 8 +#define CG_SELECTEDPLAYER_LOCATION 9 +#define CG_SELECTEDPLAYER_STATUS 10 +#define CG_SELECTEDPLAYER_WEAPON 11 +#define CG_SELECTEDPLAYER_POWERUP 12 + +#define CG_FLAGCARRIER_HEAD 13 +#define CG_FLAGCARRIER_NAME 14 +#define CG_FLAGCARRIER_LOCATION 15 +#define CG_FLAGCARRIER_STATUS 16 +#define CG_FLAGCARRIER_WEAPON 17 +#define CG_FLAGCARRIER_POWERUP 18 + +#define CG_PLAYER_ITEM 19 +#define CG_PLAYER_SCORE 20 + +#define CG_BLUE_FLAGHEAD 21 +#define CG_BLUE_FLAGSTATUS 22 +#define CG_BLUE_FLAGNAME 23 +#define CG_RED_FLAGHEAD 24 +#define CG_RED_FLAGSTATUS 25 +#define CG_RED_FLAGNAME 26 + +#define CG_BLUE_SCORE 27 +#define CG_RED_SCORE 28 +#define CG_RED_NAME 29 +#define CG_BLUE_NAME 30 +#define CG_HARVESTER_SKULLS 31 // only shows in harvester +#define CG_ONEFLAG_STATUS 32 // only shows in one flag +#define CG_PLAYER_LOCATION 33 +#define CG_TEAM_COLOR 34 +#define CG_CTF_POWERUP 35 + +#define CG_AREA_POWERUP 36 +#define CG_AREA_LAGOMETER 37 // painted with old system +#define CG_PLAYER_HASFLAG 38 +#define CG_GAME_TYPE 39 // not done + +#define CG_SELECTEDPLAYER_ARMOR 40 +#define CG_SELECTEDPLAYER_HEALTH 41 +#define CG_PLAYER_STATUS 42 +#define CG_FRAGGED_MSG 43 // painted with old system +#define CG_PROXMINED_MSG 44 // painted with old system +#define CG_AREA_FPSINFO 45 // painted with old system +#define CG_AREA_SYSTEMCHAT 46 // painted with old system +#define CG_AREA_TEAMCHAT 47 // painted with old system +#define CG_AREA_CHAT 48 // painted with old system +#define CG_GAME_STATUS 49 +#define CG_KILLER 50 +#define CG_PLAYER_ARMOR_ICON2D 51 +#define CG_PLAYER_AMMO_ICON2D 52 +#define CG_ACCURACY 53 +#define CG_ASSISTS 54 +#define CG_DEFEND 55 +#define CG_EXCELLENT 56 +#define CG_IMPRESSIVE 57 +#define CG_PERFECT 58 +#define CG_GAUNTLET 59 +#define CG_SPECTATORS 60 +#define CG_TEAMINFO 61 +#define CG_VOICE_HEAD 62 +#define CG_VOICE_NAME 63 +#define CG_PLAYER_HASFLAG2D 64 +#define CG_HARVESTER_SKULLS2D 65 // only shows in harvester +#define CG_CAPFRAGLIMIT 66 +#define CG_1STPLACE 67 +#define CG_2NDPLACE 68 +#define CG_CAPTURES 69 + + +//Makro - for SSG crosshair selection +#define UI_SSG_CROSSHAIR 150 + +#define UI_OWNERDRAW_BASE 200 +#define UI_HANDICAP 200 +#define UI_EFFECTS 201 +#define UI_PLAYERMODEL 202 +#define UI_CLANNAME 203 +#define UI_CLANLOGO 204 +#define UI_GAMETYPE 205 +#define UI_MAPPREVIEW 206 +#define UI_SKILL 207 +#define UI_BLUETEAMNAME 208 +#define UI_REDTEAMNAME 209 +#define UI_BLUETEAM1 210 +#define UI_BLUETEAM2 211 +#define UI_BLUETEAM3 212 +#define UI_BLUETEAM4 213 +#define UI_BLUETEAM5 214 +#define UI_REDTEAM1 215 +#define UI_REDTEAM2 216 +#define UI_REDTEAM3 217 +#define UI_REDTEAM4 218 +#define UI_REDTEAM5 219 +#define UI_NETSOURCE 220 +#define UI_NETMAPPREVIEW 221 +#define UI_NETFILTER 222 +#define UI_TIER 223 +#define UI_OPPONENTMODEL 224 +#define UI_TIERMAP1 225 +#define UI_TIERMAP2 226 +#define UI_TIERMAP3 227 +#define UI_PLAYERLOGO 228 +#define UI_OPPONENTLOGO 229 +#define UI_PLAYERLOGO_METAL 230 +#define UI_OPPONENTLOGO_METAL 231 +#define UI_PLAYERLOGO_NAME 232 +#define UI_OPPONENTLOGO_NAME 233 +#define UI_TIER_MAPNAME 234 +#define UI_TIER_GAMETYPE 235 +#define UI_ALLMAPS_SELECTION 236 +#define UI_OPPONENT_NAME 237 +#define UI_VOTE_KICK 238 +#define UI_BOTNAME 239 +#define UI_BOTSKILL 240 +#define UI_REDBLUE 241 +#define UI_CROSSHAIR 242 +#define UI_SELECTEDPLAYER 243 +#define UI_MAPCINEMATIC 244 +#define UI_NETGAMETYPE 245 +#define UI_NETMAPCINEMATIC 246 +#define UI_SERVERREFRESHDATE 247 +#define UI_SERVERMOTD 248 +#define UI_GLINFO 249 +#define UI_KEYBINDSTATUS 250 +#define UI_CLANCINEMATIC 251 +#define UI_MAP_TIMETOBEAT 252 +#define UI_JOINGAMETYPE 253 +#define UI_PREVIEWCINEMATIC 254 +#define UI_STARTMAPCINEMATIC 255 +#define UI_MAPS_SELECTION 256 + +#define VOICECHAT_GETFLAG "getflag" // command someone to get the flag +#define VOICECHAT_OFFENSE "offense" // command someone to go on offense +#define VOICECHAT_DEFEND "defend" // command someone to go on defense +#define VOICECHAT_DEFENDFLAG "defendflag" // command someone to defend the flag +#define VOICECHAT_PATROL "patrol" // command someone to go on patrol (roam) +#define VOICECHAT_CAMP "camp" // command someone to camp (we don't have sounds for this one) +#define VOICECHAT_FOLLOWME "followme" // command someone to follow you +#define VOICECHAT_RETURNFLAG "returnflag" // command someone to return our flag +#define VOICECHAT_FOLLOWFLAGCARRIER "followflagcarrier" // command someone to follow the flag carrier +#define VOICECHAT_YES "yes" // yes, affirmative, etc. +#define VOICECHAT_NO "no" // no, negative, etc. +#define VOICECHAT_ONGETFLAG "ongetflag" // I'm getting the flag +#define VOICECHAT_ONOFFENSE "onoffense" // I'm on offense +#define VOICECHAT_ONDEFENSE "ondefense" // I'm on defense +#define VOICECHAT_ONPATROL "onpatrol" // I'm on patrol (roaming) +#define VOICECHAT_ONCAMPING "oncamp" // I'm camping somewhere +#define VOICECHAT_ONFOLLOW "onfollow" // I'm following +#define VOICECHAT_ONFOLLOWCARRIER "onfollowcarrier" // I'm following the flag carrier +#define VOICECHAT_ONRETURNFLAG "onreturnflag" // I'm returning our flag +#define VOICECHAT_INPOSITION "inposition" // I'm in position +#define VOICECHAT_IHAVEFLAG "ihaveflag" // I have the flag +#define VOICECHAT_BASEATTACK "baseattack" // the base is under attack +#define VOICECHAT_ENEMYHASFLAG "enemyhasflag" // the enemy has our flag (CTF) +#define VOICECHAT_STARTLEADER "startleader" // I'm the leader +#define VOICECHAT_STOPLEADER "stopleader" // I resign leadership +#define VOICECHAT_TRASH "trash" // lots of trash talk +#define VOICECHAT_WHOISLEADER "whoisleader" // who is the team leader +#define VOICECHAT_WANTONDEFENSE "wantondefense" // I want to be on defense +#define VOICECHAT_WANTONOFFENSE "wantonoffense" // I want to be on offense +#define VOICECHAT_KILLINSULT "kill_insult" // I just killed you +#define VOICECHAT_TAUNT "taunt" // I want to taunt you +#define VOICECHAT_DEATHINSULT "death_insult" // you just killed me +#define VOICECHAT_KILLGAUNTLET "kill_gauntlet" // I just killed you with the gauntlet +#define VOICECHAT_PRAISE "praise" // you did something good + + + +// RQ3 Stuff // + +/* +#define RQ3_MAIN_BAR_COLOR 0 0 .1 .95 +#define RQ3_MAIN_BAR_COLOR2 1 1 1 1 +#define RQ3_MAIN_HINT_COLOR .75 .75 1 .75 +*/ + +#define RQ3_MAIN_BAR_COLOR 0 0 0 1 +#define RQ3_MAIN_BAR_COLOR2 .5 .5 .5 1 +//#define RQ3_MAIN_HINT_COLOR .75 .75 .75 1 +#define RQ3_MAIN_HINT_COLOR .9 .9 .9 0 + +/* old colors, if you like them more +#define RQ3_MAIN_BAR_COLOR 0 0 0 1 +#define RQ3_MAIN_BAR_COLOR2 1 0 0 1 +#define RQ3_MAIN_HINT_COLOR 1 .5 0 .75 +*/ + +#define RQ3_MAIN_TEXTSIZE .28 +#define RQ3_MENU_OVERLAY_COLOR 0 0 0 .5 +#define RQ3_MAIN_FOCUSCOLOR 1 .75 0 1 + +//Ingame stuff + +#define Ingame_Color1 1 .75 0 0 +//#define Ingame_Color2 1 .75 0 .25 +#define Ingame_Color2 1 .75 0 0 + +#define Ingame_TextColor 1 1 1 1 +#define Ingame_BorderColor1 0 0 0 0 +//#define Ingame_BorderColor2 .35 .35 .35 1 +#define Ingame_BorderColor2 .35 .35 .35 0 +//#define Ingame_HintColor .75 .75 1 1 +//#define Ingame_HintColor .75 .75 .75 1 +#define Ingame_HintColor .9 .9 .9 0 + + +#define Ig_Window_Color 0 0 0 .8 +#define Ig_Window_Color2 .5 .5 .5 .25 +#define Ig_Window_BorderColor .5 .5 .5 1 +#define Ig_Window_TitleColor .2 .2 .2 1 + +#define Ig_Sub_Color1 1 1 1 0 +//#define Ig_Sub_Color2 1 .75 0 .2 +#define Ig_Sub_Color2 .75 .75 1 .25 +#define Ig_Sub_TextColor 1 1 1 1 +#define Ig_Sub_BorderColor1 .5 .5 .5 0 +#define Ig_Sub_BorderColor2 .35 .35 .35 0 +#define Ig_Sub_HintColor .75 .75 1 1 + +#define Ig_Setup_TabColor .75 .75 .75 1 + +#define Ig_ShadowSize 12 \ No newline at end of file diff --git a/reaction/uifiles/menus.txt b/reaction/uifiles/menus.txt new file mode 100644 index 00000000..15b56eaf --- /dev/null +++ b/reaction/uifiles/menus.txt @@ -0,0 +1,32 @@ +{ + // MENU DEFS // + + loadMenu { "ui/main.menu" } + + loadMenu { "ui/joinserver.menu" } + loadMenu { "ui/specify.menu" } + loadMenu { "ui/serverinfo.menu" } + loadMenu { "ui/findplayer.menu" } + loadMenu { "ui/createfavorite.menu" } + + loadMenu { "ui/createserver.menu" } + + loadMenu { "ui/options.menu" } + loadMenu { "ui/player.menu" } + loadMenu { "ui/setup.menu" } + loadMenu { "ui/controls.menu" } + loadMenu { "ui/cdkey.menu" } + loadMenu { "ui/system.menu" } + loadMenu { "ui/credit.menu" } + loadMenu { "ui/connect.menu" } + loadMenu { "ui/password.menu" } + + loadMenu { "ui/mod.menu" } + + loadMenu { "ui/demo.menu" } + + loadMenu { "ui/error.menu" } + + loadMenu { "ui/quit.menu" } + +} diff --git a/reaction/uifiles/min_hud.menu b/reaction/uifiles/min_hud.menu new file mode 100644 index 00000000..08b45b15 --- /dev/null +++ b/reaction/uifiles/min_hud.menu @@ -0,0 +1,674 @@ +#include "ui/menudef.h" + +// team menu +// +// defines from ui_shared.h + +{ + assetGlobalDef { + cursor "ui/assets/3_cursor2" // cursor + gradientBar "ui/assets/gradientbar2.tga" // gradient bar + fadeClamp 1.0 // sets the fadeup alpha + fadeCycle 1 // how often fade happens in milliseconds + fadeAmount 0.1 // amount to adjust alpha per cycle + + shadowX 5 // x amount for shadow offset + shadowY 5 // y amount for shadow offset + shadowColor 0.1 0.1 0.1 0.25 // shadow color + + font "fonts/impact.ttf" 16 // font + smallFont "fonts/impact.ttf" 12 // font + bigFont "fonts/impact.ttf" 20 // font + + + } + + + + + + + // SELECTED PLAYER // + + menuDef { + name "SelectedPlayer" + fullScreen MENU_FALSE + visible 1 + rect 0 390 222 64 + ownerdrawflag CG_SHOW_ANYTEAMGAME + + + itemDef { + name "b" + rect 0 0 222 64 + style 4 + border 1 + bordersize 1 + bordercolor .5 .5 .5 1 + visible 1 + ownerdrawflag CG_SHOW_TEAMINFO + } + itemDef { + name "b" + rect 0 40 222 24 + style 4 + border 1 + bordersize 1 + bordercolor .5 .5 .5 1 + visible 1 + ownerdrawflag CG_SHOW_NOTEAMINFO + } + + + itemDef { + name "b" + rect 0 4 221 64 + visible 1 + textscale .2 + textaligny 10 + textalignx 0 + forecolor 1 1 1 1 + ownerdrawflag CG_SHOW_TEAMINFO + ownerdraw CG_TEAMINFO + } + + + itemDef { + name "b" + rect 2 41 20 20 + visible 1 + ownerdrawflag CG_SHOW_NOTEAMINFO + ownerdraw CG_SELECTEDPLAYER_HEAD + } + itemDef { + name "b" + rect 21 44 16 16 + visible 1 + decoration + ownerdrawflag CG_SHOW_NOTEAMINFO + ownerdraw CG_SELECTEDPLAYER_STATUS + } + + + itemDef { + name "b" + rect 41 43 35 15 + textscale 0.2125 + textstyle 3 + forecolor 1 1 1 1 + visible 1 + decoration + ownerdrawflag CG_SHOW_NOTEAMINFO + ownerdraw CG_SELECTEDPLAYER_NAME + } + + /* + itemDef { + name "b" + rect 90 43 45 15 + textscale 0.2125 + textstyle 3 + forecolor 1 1 1 1 + visible 1 + decoration + ownerdrawflag CG_SHOW_NOTEAMINFO + ownerdraw CG_SELECTEDPLAYER_LOCATION + } + + */ + + + } + + + // PLAYER STATUS // + + menuDef { + name "playerStatus" + fullScreen MENU_FALSE + visible MENU_TRUE + rect 142 455 80 24 + + itemDef { + name "playerRect" + rect 1 1 78 22 + style 3 + background hudalert_good + visible 1 + ownerdrawflag CG_SHOW_IF_PLAYER_HAS_FLAG + } + + itemDef { + name "playerStatusRect" + style 4 + rect 0 0 80 24 + border 1 + bordersize 1 + bordercolor .5 .5 .5 1 + visible 1 + } + + + itemDef { + name "playeritem" + rect 5 4 16 16 + visible 1 + decoration + ownerdraw CG_PLAYER_ITEM + } + + itemDef { + name "CTFPOWERUP" + rect 25 4 16 16 + visible 1 + decoration + ownerdraw CG_CTF_POWERUP + } + + itemDef { + name "flag" + rect 45 4 16 16 + visible 1 + decoration + ownerdraw CG_PLAYER_HASFLAG2D + ownerdrawflag CG_SHOW_IF_PLAYER_HAS_FLAG + + } + + itemDef { + name "skulls" + rect 39 -14 40 32 + textaligny 4 + textalignx 0 + visible 1 + textscale .25 + decoration + textstyle 3 + ownerdraw CG_HARVESTER_SKULLS2D + } + + } + + // POWERUP AREA // + + menuDef { + name "powerup area" + fullScreen MENU_FALSE + visible MENU_TRUE + rect 0 455 141 24 + + + itemDef { + name "powerRect" + visible 1 + style 4 + rect 0 0 35 24 + } + itemDef { + name "powerRect" + visible 1 + style 4 + rect 70 0 35 24 + } + + itemDef { + name "powerRect" + visible 1 + style 4 + border 1 + bordersize 1 + bordercolor .5 .5 .5 1 + rect 0 0 141 24 + } + + + + itemDef { + name "powerupArea" + rect 2 3 18 18 + textscale .25 + visible 1 + decoration + ownerdraw CG_AREA_POWERUP + special 18 // spacing + align HUD_HORIZONTAL + } + + + } + + + + // AMMO // + + menuDef { + name "Ammo" + fullScreen MENU_FALSE + visible MENU_TRUE + rect 223 455 64 24 + + + itemDef { + name "ammoRect" + visible 1 + style 4 + border 1 + bordersize 1 + bordercolor .5 .5 .5 1 + rect 0 0 64 24 + } + + + itemDef { + name "a" + rect 30 1 24 19 + visible 1 + textstyle 3 + decoration + textscale .333 + forecolor 1 1 1 1 + ownerdraw CG_PLAYER_AMMO_VALUE + addColorRange -999 5 1 0 0 1 + addColorRange 6 999 1 .75 0 1 + } + + itemDef { + name "a" + rect 5 2 20 20 + visible 1 + decoration + ownerdraw CG_PLAYER_AMMO_ICON2D + } + + } + + + + + + + // PLAYER // + + menuDef { + name "Player" + fullScreen MENU_FALSE + visible MENU_TRUE + rect 288 455 64 24 + + itemDef { + name "playerRect" + rect 1 1 62 23 + style 3 + background hudalert + visible 1 + ownerdrawflag CG_SHOW_HEALTHCRITICAL + } + + itemDef { + name "playerRect" + rect 0 0 64 24 + style 4 + visible 1 + border 1 + bordersize 1 + bordercolor .5 .5 .5 1 + } + + + itemDef { + name "healthok" + rect 30 1 24 19 + visible 1 + textstyle 3 + decoration + forecolor 1 1 1 1 + textscale .333 + ownerdraw CG_PLAYER_HEALTH + addColorRange -999 25 1 0 0 1 + addColorRange 26 100 1 .75 0 1 + addColorRange 101 999 1 1 1 1 + } + + itemDef { + name "b" + rect 2 1 22 22 + visible 1 + decoration + ownerdraw CG_PLAYER_HEAD + } + } + + + + + + + + // ARMOR // + + menuDef { + name "Armor" + fullScreen MENU_FALSE + visible MENU_TRUE + rect 353 455 64 24 + + + itemDef { + name "armorRect" + rect 0 0 64 24 + visible 1 + style 4 + border 1 + bordersize 1 + bordercolor .5 .5 .5 1 + } + + itemDef { + name "armor" + rect 5 -8 20 20 + visible 1 + decoration + ownerdraw CG_PLAYER_ARMOR_ICON2D + } + + itemDef { + name "armor2" + textstyle 3 + rect 30 1 24 19 + visible 1 + decoration + textscale .333 + ownerdraw CG_PLAYER_ARMOR_VALUE + addColorRange -999 25 .67 0 0 1 + addColorRange 26 100 1 .75 0 1 + addColorRange 101 999 .75 .75 .75 1 + } + } + + + + + + + // TEAMSCORE // + + menuDef { + name "teamScore" + fullScreen MENU_FALSE + visible MENU_TRUE + rect 418 455 150 24 + ownerdrawflag CG_SHOW_ANYTEAMGAME + + itemDef { + name "teamRect" + rect 53 1 47 22 + style 3 + background hudalert_blue + visible 1 + ownerdrawflag CG_SHOW_BLUE_TEAM_HAS_REDFLAG + } + + itemDef { + name "teamRect" + rect 100 1 50 22 + style 3 + background hudalert_red + visible 1 + ownerdrawflag CG_SHOW_RED_TEAM_HAS_BLUEFLAG + } + + itemDef { + name "teamScoreRect" + visible 1 + rect 0 0 150 24 + border 1 + bordersize 1 + bordercolor .5 .5 .5 1 + style 4 + } + + itemDef { + name "f" + rect 55 5 16 16 + visible 1 + bordercolor 1 1 1 .75 + decoration + style 3 + background "ui/assets/bluechip.tga" + } + itemDef { + name "f" + rect 55 5 16 16 + visible 1 + bordercolor 1 1 1 .75 + decoration + style 3 + ownerdrawflag CG_SHOW_HARVESTER + background "icons/skull_blue.tga" + } + + itemDef { + name "blueflag" + rect 55 5 16 16 + visible 1 + decoration + ownerdrawflag CG_SHOW_CTF + ownerdraw CG_BLUE_FLAGSTATUS + } + itemDef { + name "playerScore" + rect 5 18 40 12 + visible 1 + textstyle 3 + decoration + forecolor 1 1 1 1 + textscale .25 + text "" + ownerdraw CG_CAPFRAGLIMIT + } + + itemDef { + name "oneflagstatus" + rect 34 5 16 16 + visible 1 + decoration + ownerdraw CG_ONEFLAG_STATUS + } + + itemDef { + name "r" + rect 71 6 18 12 + textstyle 3 + visible 1 + decoration + forecolor .25 .25 1 1 + textscale 0.25 + ownerdraw CG_BLUE_SCORE + } + + itemDef { + name "f" + rect 110 5 16 16 + visible 1 + bordercolor 1 1 1 1 + decoration + style 3 + background "ui/assets/redchip.tga" + } + + itemDef { + name "f" + rect 110 5 16 16 + visible 1 + bordercolor 1 1 1 1 + decoration + style 3 + ownerdrawflag CG_SHOW_HARVESTER + background "icons/skull_red.tga" + } + + itemDef { + name "f" + rect 110 5 16 16 + visible 1 + decoration + ownerdrawflag CG_SHOW_CTF + ownerdraw CG_RED_FLAGSTATUS + } + + + itemDef { + name "r" + rect 126 6 18 12 + textstyle 3 + visible 1 + decoration + forecolor 1 0 0 1 + textscale 0.25 + ownerdraw CG_RED_SCORE + } + } + + // TEAMSCORE // + + menuDef { + name "teamScore" + fullScreen MENU_FALSE + visible MENU_TRUE + rect 418 455 150 24 + ownerdrawflag CG_SHOW_ANYNONTEAMGAME + + + itemDef { + name "teamScoreRect" + visible 1 + rect 0 0 150 24 + border 1 + bordersize 1 + bordercolor .5 .5 .5 1 + style 4 + } + + + itemDef { + name "playerScore" + rect 8 18 40 0 + visible 1 + textstyle 3 + decoration + forecolor 1 1 1 1 + textscale .25 + text "" + ownerdraw CG_CAPFRAGLIMIT + } + + + + + itemDef { + name "r" + rect 40 18 18 12 + textstyle 3 + text "1st:" + visible 1 + decoration + forecolor .25 .25 1 1 + textscale 0.25 + ownerdraw CG_1STPLACE + } + + + itemDef { + name "r" + rect 105 18 18 12 + textstyle 3 + text "2nd:" + visible 1 + decoration + forecolor 1 0 0 1 + textscale 0.25 + ownerdraw CG_2NDPLACE + } + } + + // PLAYERSCORE // + + menuDef { + name "playerScore" + fullScreen MENU_FALSE + visible MENU_TRUE + rect 569 455 70 24 + + itemDef { + name "playerScoreRect" + visible 1 + rect 0 0 70 24 + border 1 + bordersize 1 + bordercolor .5 .5 .5 1 + style 4 + } + + + itemDef { + name "playerScore" + rect 4 6 75 12 + textstyle 3 + visible 1 + decoration + forecolor 1 1 1 1 + textscale .25 + ownerdraw CG_PLAYER_SCORE + } + + } + + + + + + + + + menuDef { + name "voiceMenu" + fullScreen MENU_FALSE + visible MENU_FALSE + rect 5 5 100 100 + + + itemDef { + name "voiceMenuRect" + style 4 + rect 2 2 50 50 + border 1 + bordersize 1 + bordercolor .5 .5 .5 1 + visible 1 + } + + itemDef { + name "b" + rect 2 2 50 50 + visible 1 + decoration + ownerdraw CG_VOICE_HEAD + } + + + itemDef { + name "b" + rect 2 55 50 12 + visible 1 + decoration + textscale .25 + textalign 0 + textalignx 0 + textaligny 12 + ownerdraw CG_VOICE_NAME + } + + + } + + diff --git a/reaction/uifiles/mod.menu b/reaction/uifiles/mod.menu new file mode 100644 index 00000000..2e6c36d4 --- /dev/null +++ b/reaction/uifiles/mod.menu @@ -0,0 +1,264 @@ +#include "ui/menudef.h" + +{ + + menuDef { + name "mod" + background "rq3-ta-menuback" // Makro: replace "rq3-ta-menuback" with "rq3-menuback" + // to use the current background + fullScreen MENU_TRUE + visible MENU_TRUE // Visible on open + focusColor RQ3_MAIN_FOCUSCOLOR // Menu focus color for text and items + + + onOpen { + uiScript LoadMods ; + play "sound/misc/menu1.wav" ; + } + + onEsc { close mod ; open main } + + +//================= +// RQ3 stuff +//================= + + + itemdef { + name overlay + style 1 + forecolor 0 0 0 1 + backcolor RQ3_MENU_OVERLAY_COLOR + rect 0 58 640 360 + visible 1 + decoration + } + + 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 "mods_icon" + style WINDOW_STYLE_SHADER + rect 8 8 48 48 + background "menu/art/rq3-menu-mods.tga" + decoration + visible 1 + } + + itemdef { + name "mods_title" + style WINDOW_STYLE_SHADER + rect 64 12 256 32 + background "menu/art/rq3-title-mods.tga" + decoration + visible 1 + } + +//================= +// Buttons, lists +//================= + + +//Window + + itemdef { + rect 170 100 300 240 + style WINDOW_STYLE_FILLED + backcolor Ig_Window_Color + visible 1 + border 1 + bordersize 1 + shadowStyle 1 + bordercolor Ig_Window_BorderColor + decoration + } + + itemdef { + text "Available mods:" + textscale .25 + type 0 + style WINDOW_STYLE_EMPTY + rect 182 108 276 24 + forecolor 1 1 1 1 + textstyle 0 + textalign 0 + textalignx 8 + textaligny 16 + decoration + visible 1 + } + +//Mod list + + itemdef { + name "modlist" + type ITEM_TYPE_LISTBOX + rect 182 132 276 188 + style WINDOW_STYLE_FILLED + backcolor 0 0 0 .65 + border 1 + bordersize 1 + bordercolor .25 .25 .25 1 + elementtype LISTBOX_TEXT + elementwidth 160 + elementheight 20 + textscale .25 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + outlinecolor .75 .75 1 .25 + feeder FEEDER_MODS + columns 1 4 40 40 + visible 1 + onFocus { show list_hint ; timeFade list_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade list_hint forecolor .9 .9 .9 0 0 250 } + doubleclick { close mod; uiScript RunMod } + } + + //Scrollbar separator + itemdef { + rect 440 132 18 188 + style WINDOW_STYLE_EMPTY + border 1 + bordersize 1 + bordercolor .25 .25 .25 1 + decoration + visible 1 + } + + itemdef { + name list_hint + text "Select a mod from the list" + 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 + } + +//Load mod + + itemdef { + name "btn_load" + style WINDOW_STYLE_SHADER + rect 560 432 64 32 + type 1 + background "menu/art/rq3-menu-go.tga" + action { close mod; uiScript Runmod ; } + onFocus { setbackground "menu/art/rq3-menu-go-focus-anim" ; show load_hint ; + timeFade load_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { setbackground "menu/art/rq3-menu-go.tga" ; + timeFade load_hint forecolor .9 .9 .9 0 0 250 } + visible 1 + } + + + itemdef { + name load_hint + text "Load the selected mod" + 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 + } + +//Back + + itemdef { + name "btn_back" + style WINDOW_STYLE_SHADER + rect 12 432 32 32 + type 1 + background "menu/art/rq3-menu-back.tga" + action { close mod; open main ; } + 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 } + visible 1 + } + + itemdef { + name back_hint + text "Go back to main 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 + } + + +} +} \ No newline at end of file diff --git a/reaction/uifiles/options.menu b/reaction/uifiles/options.menu new file mode 100644 index 00000000..a87fa0db --- /dev/null +++ b/reaction/uifiles/options.menu @@ -0,0 +1,944 @@ +#include "ui/menudef.h" +#define RQ3_Option_Color .75 .75 .75 1 + +{ + + menuDef { + name "options_menu" + background "rq3-ta-menuback" // Makro: replace "rq3-ta-menuback" with "rq3-menuback" + // to use the old background + fullScreen MENU_TRUE + visible MENU_TRUE // Visible on open + focusColor RQ3_MAIN_FOCUSCOLOR // Menu focus color for text and items + + onOpen { play "sound/misc/menu1.wav" } + onEsc { close options_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 "options_icon" + style WINDOW_STYLE_SHADER + rect 8 8 48 48 + background "menu/art/rq3-setup-options.tga" + decoration + visible 1 + } + + itemdef { + name "options_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 + } + + +//================= +// Buttons, lists +//================= + + +//Background window + + //Options window + + itemdef { + rect 48 72 256 20 + style WINDOW_STYLE_GRADIENT + border WINDOW_BORDER_KCGRADIENT + bordersize 1 + backcolor 0 0 .2 .75 + bordercolor .75 .75 .75 1 + text "Game options" + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .25 + textalign 0 + textalignx 76 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemdef { + rect 48 90 256 304 + 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 + } + + itemdef { + style WINDOW_STYLE_SHADER + rect 96 68 24 24 + background "menu/art/rq3-setup-options.tga" + decoration + visible 1 + } + + //Crosshairs window + + itemdef { + rect 340 72 256 20 + style WINDOW_STYLE_GRADIENT + border WINDOW_BORDER_KCGRADIENT + bordersize 1 + backcolor 0 0 .2 .75 + bordercolor .75 .75 .75 1 + text "Crosshair options" + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .25 + textalign 0 + textalignx 76 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemdef { + rect 340 90 256 160 + 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 + } + + itemdef { + style WINDOW_STYLE_SHADER + rect 388 68 24 24 + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + decoration + visible 1 + } + + +// Page 1 // + +//Simple items + + itemdef { + name opt_simpleitems + type ITEM_TYPE_YESNO + text "Simple Items:" + cvar "cg_simpleItems" + rect 56 100 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 144 + textaligny 20 + textscale .25 + forecolor RQ3_Option_Color + visible 1 + onFocus { show hint_simpleitems ; timeFade hint_simpleitems forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade hint_simpleitems forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name hint_simpleitems + text "Display weapons, items and ammo as 2D sprites" + 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 + } + +//Low quality sky + + itemdef { + name opt_fastsky + type ITEM_TYPE_YESNO + text "Low quality sky:" + cvar "r_fastsky" + rect 56 120 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 144 + textaligny 20 + textscale .25 + forecolor RQ3_Option_Color + visible 1 + onFocus { show hint_fastsky ; timeFade hint_fastsky forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade hint_fastsky forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name hint_fastsky + text "Use a solid color sky (better performance, lower quality)" + 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 + } + +//Ejecting brass + + itemdef { + name opt_brass + type ITEM_TYPE_MULTI + text "Ejecting Brass:" + cvar "cg_brassTime" + cvarFloatList { "High" 2500 "Med" 1250 "Off" 0 } + rect 56 140 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 144 + textaligny 20 + textscale .25 + forecolor RQ3_Option_Color + visible 1 + onFocus { show hint_brass ; timeFade hint_brass forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade hint_brass forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name hint_brass + text "Change the amount of ejecting brass" + 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 + } + +//Wall marks + + itemdef { + name opt_wmarks + type ITEM_TYPE_YESNO + text "Wall marks:" + cvar "cg_marks" + rect 56 160 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 144 + textaligny 20 + textscale .25 + forecolor RQ3_Option_Color + visible 1 + onFocus { show hint_wmarks ; timeFade hint_wmarks forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade hint_wmarks forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name hint_wmarks + text "Enable wall marks" + 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 + } + +//Dynamic lights + + itemdef { + name opt_dlight + type ITEM_TYPE_YESNO + text "Dynamic lights:" + cvar "r_dynamiclight" + rect 56 180 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 144 + textaligny 20 + textscale .25 + forecolor RQ3_Option_Color + visible 1 + onFocus { show hint_dlight ; timeFade hint_dlight forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade hint_dlight forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name hint_dlight + text "Enable dynamic lighting" + 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 + } + +//Identify target + + itemdef { + name opt_idtarget + type ITEM_TYPE_YESNO + text "Identify Target:" + cvar "cg_drawCrosshairNames" + rect 56 200 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 144 + textaligny 20 + textscale .25 + forecolor RQ3_Option_Color + visible 1 + onFocus { show hint_idtarget ; timeFade hint_idtarget forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade hint_idtarget forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name hint_idtarget + text "Enable crosshair target identification" + 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 + } + +//V-SYNC + + itemdef { + name opt_vsync + type ITEM_TYPE_YESNO + text "Sync Every Frame:" + cvar "r_finish" + rect 56 220 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 144 + textaligny 20 + textscale .25 + forecolor RQ3_Option_Color + visible 1 + onFocus { show hint_vsync ; timeFade hint_vsync forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade hint_vsync forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name hint_vsync + text "Enable V-SYNC (recommended off)" + 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 + } + +//Force player models + + itemdef { + name opt_fmodel + type ITEM_TYPE_YESNO + text "Force Player Models:" + cvar "cg_forceModel" + rect 56 240 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 144 + textaligny 20 + textscale .25 + forecolor RQ3_Option_Color + visible 1 + onFocus { show hint_fmodel ; timeFade hint_fmodel forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade hint_fmodel forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name hint_fmodel + text "Force player models to your own" + 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 + } + +//Draw team overlay + + itemdef { + name opt_toverlay + type ITEM_TYPE_YESNO + text "Draw Team Overlay:" + cvar "cg_drawTeamOverlay" + rect 56 260 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 144 + textaligny 20 + textscale .25 + forecolor RQ3_Option_Color + visible 1 + onFocus { show hint_toverlay ; timeFade hint_toverlay forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade hint_toverlay forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name hint_toverlay + text "Choose team overlay position" + 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 + } + +//Allow download from server + + itemdef { + name opt_allowdl + type ITEM_TYPE_YESNO + text "Allow Download:" + cvar "cl_allowDownload" + rect 56 280 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 144 + textaligny 20 + textscale .25 + forecolor RQ3_Option_Color + visible 1 + onFocus { show hint_allowdl ; timeFade hint_allowdl forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade hint_allowdl forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name hint_allowdl + text "Allow automatic downloads from server" + 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 + } + +//Muzzle flash + + itemdef { + name opt_muzzle + type ITEM_TYPE_YESNO + text "Muzzle Flash:" + cvar "cg_RQ3_flash" + rect 56 300 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 144 + textaligny 20 + textscale .25 + forecolor RQ3_Option_Color + visible 1 + onFocus { show hint_muzzle ; timeFade hint_muzzle forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade hint_muzzle forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name hint_muzzle + text "Enable weapon muzzle flashes" + 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 + } + +//Pain blends + + itemdef { + name opt_painblend + type ITEM_TYPE_YESNO + text "Pain Blends:" + cvar "cg_RQ3_painBlend" + rect 56 320 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 144 + textaligny 20 + textscale .25 + forecolor RQ3_Option_Color + visible 1 + onFocus { show hint_painblend ; timeFade hint_painblend forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade hint_painblend forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name hint_painblend + text "Enable screen pain blends" + 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 + } + +//Announcer + + itemdef { + name opt_announcer + type ITEM_TYPE_YESNO + text "Announcer:" + cvar "cg_RQ3_announcer" + rect 56 340 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 144 + textaligny 20 + textscale .25 + forecolor RQ3_Option_Color + visible 1 + onFocus { show hint_announcer ; timeFade hint_announcer forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade hint_announcer forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name hint_announcer + text "Enable Quake 3 announcer" + 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 + } + +//Impact effects + + itemdef { + name opt_impactfx + type ITEM_TYPE_YESNO + text "Impact Effects:" + cvar "cg_RQ3_impactEffects" + rect 56 360 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 144 + textaligny 20 + textscale .25 + forecolor RQ3_Option_Color + visible 1 + onFocus { show hint_impactfx ; timeFade hint_impactfx forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade hint_impactfx forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name hint_impactfx + text "Enable visual projectile impact effects" + 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 + } + +//Page 2 + +//Crosshair + + itemdef { + name opt_xhair + text "Crosshair:" + ownerdraw UI_CROSSHAIR + rect 496 100 24 24 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 20 + textscale .25 + forecolor RQ3_Option_Color + visible 1 + onFocus { show hint_xhair ; timeFade hint_xhair forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade hint_xhair forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name hint_xhair + text "Change regular crosshair style" + 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 + } + +//Crosshair size + + itemdef { + name opt_xhairsize + type ITEM_TYPE_MULTI + text "Crosshair Size:" + cvar "cg_crosshairSize" + cvarFloatList { "Small" 16 "Med" 24 "Big" 32 } + rect 352 120 256 20 + textalign ITEM_ALIGN_RIGHT + textalignx 144 + textaligny 20 + textscale .25 + forecolor RQ3_Option_Color + visible 1 + onFocus { show hint_xhairsize ; timeFade hint_xhairsize forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade hint_xhairsize forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name hint_xhairsize + text "Change the size of the regular crosshair" + 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 + } + +//SSG Crosshair + + itemDef { + type ITEM_TYPE_SLIDER + text "Red:" + cvarfloat "cg_RQ3_ssgColorR" 1 0 1 + rect 368 160 192 20 + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 14 + textscale .225 + forecolor RQ3_Option_Color + visible 1 + onFocus { show hint_ssgcolor ; timeFade hint_ssgcolor forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade hint_ssgcolor forecolor .9 .9 .9 0 0 250 } + } + + itemDef { + type ITEM_TYPE_SLIDER + text "Green:" + cvarfloat "cg_RQ3_ssgColorG" 1 0 1 + rect 368 180 192 20 + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 14 + textscale .225 + forecolor RQ3_Option_Color + visible 1 + onFocus { show hint_ssgcolor ; timeFade hint_ssgcolor forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade hint_ssgcolor forecolor .9 .9 .9 0 0 250 } + } + + itemDef { + type ITEM_TYPE_SLIDER + text "Blue:" + cvarfloat "cg_RQ3_ssgColorB" 0 0 1 + rect 368 200 192 20 + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 14 + textscale .225 + forecolor RQ3_Option_Color + visible 1 + onFocus { show hint_ssgcolor ; timeFade hint_ssgcolor forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade hint_ssgcolor forecolor .9 .9 .9 0 0 250 } + } + + itemDef { + type ITEM_TYPE_SLIDER + text "Alpha:" + cvarfloat "cg_RQ3_ssgColorA" .75 0 1 + rect 368 220 192 20 + textalign ITEM_ALIGN_RIGHT + textalignx 64 + textaligny 14 + textscale .225 + forecolor RQ3_Option_Color + visible 1 + onFocus { show hint_ssgcolor ; timeFade hint_ssgcolor forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade hint_ssgcolor forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name hint_ssgcolor + text "Change the color of the SSG crosshair" + 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 + } + +//SSG Crosshair Preview + + itemDef { + rect 400 268 144 108 + style WINDOW_STYLE_SHADER + background "ui/assets/rq3-ssg-background" + shadowStyle 1 + border 1 + bordersize 1 + bordercolor .5 .5 .5 1 + forecolor 1 1 1 1 + decoration + visible 1 + } + + itemDef { + rect 436 286 72 72 + ownerdraw UI_SSG_CROSSHAIR + style WINDOW_STYLE_EMPTY + decoration + visible 1 + //onFocus { show hint_ssgpic ; timeFade hint_ssgpic forecolor .9 .9 .9 1 0 250 } + //leaveFocus { timeFade hint_ssgpic forecolor .9 .9 .9 0 0 250 } + //action { play "sound/misc/menu1.wav" } + } + +/* + itemdef { + name hint_ssgpic + text "Click or use the arrows to change the SSG crosshair" + 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 + } +*/ + +//Prev crosshair + + itemDef { + rect 408 314 16 16 + style WINDOW_STYLE_SHADER + background "ui/assets/scrollbar_arrow_left" + type ITEM_TYPE_BUTTON + visible 1 + forecolor 1 1 1 .5 + onFocus { timefadeSelf forecolor 1 1 1 1 0 250 ; + show hint_ssgprev ; timeFade hint_ssgprev forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefadeSelf forecolor 1 1 1 .5 0 250 ; + timeFade hint_ssgprev forecolor .9 .9 .9 0 0 250 } + action { play "sound/misc/menu1.wav" ; uiScript nextSSGCrosshair "-1" instant } + } + + itemdef { + name hint_ssgprev + text "Select the previous SSG crosshair" + 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 + } + +//Next crosshair + + itemDef { + rect 520 314 16 16 + style WINDOW_STYLE_SHADER + background "ui/assets/scrollbar_arrow_right" + type ITEM_TYPE_BUTTON + visible 1 + forecolor 1 1 1 .5 + onFocus { timefadeSelf forecolor 1 1 1 1 0 250 ; + show hint_ssgnext ; timeFade hint_ssgnext forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefadeSelf forecolor 1 1 1 .5 0 250 ; + timeFade hint_ssgnext forecolor .9 .9 .9 0 0 250 } + action { play "sound/misc/menu1.wav" ; uiScript nextSSGCrosshair 1 instant } + } + + itemdef { + name hint_ssgnext + text "Select the next SSG crosshair" + 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 + } + +//Back + + itemdef { + name "btn_back" + style WINDOW_STYLE_SHADER + rect 12 432 32 32 + type ITEM_TYPE_BUTTON + background "menu/art/rq3-menu-back.tga" + action { close options_menu; open setup_menu ; } + onFocus { setbackground "menu/art/rq3-menu-back-focus-anim" ; + show hint_back ; timeFade hint_back forecolor .9 .9 .9 1 0 250 } + leaveFocus { setbackground "menu/art/rq3-menu-back.tga" ; + timeFade hint_back forecolor .9 .9 .9 0 0 250 } + visible 1 + } + + itemdef { + name hint_back + 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 + } + +} \ No newline at end of file diff --git a/reaction/uifiles/password.menu b/reaction/uifiles/password.menu new file mode 100644 index 00000000..95dd3a44 --- /dev/null +++ b/reaction/uifiles/password.menu @@ -0,0 +1,89 @@ +#include "ui/menudef.h" + +{ + // PASSWORD POPUP MENU // + + menuDef { + name "password_popmenu" + visible 0 + fullscreen 0 + rect 180 200 280 60 + focusColor RQ3_MAIN_FOCUSCOLOR // Menu focus color for text and items + style WINDOW_STYLE_EMPTY + border 1 + popup + onOpen { play "sound/misc/menu1.wav" ; setfocus passwordEntry } + onESC { close password_popmenu ; open joinserver } + + itemDef { + name window + rect 0 0 280 48 + style WINDOW_STYLE_FILLED + border 1 + borderSize 1 + bordercolor Ig_Window_BorderColor + backcolor Ig_Window_Color + shadowStyle 1 + visible 1 + decoration + } + + // PASSWORD // + + itemDef { + name password + text "Password:" + style 0 + decoration + textscale .25 + rect 0 14 80 20 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny 16 + forecolor 1 1 1 1 + visible 1 + } + + itemDef { + name passwordEntry + style WINDOW_STYLE_FILLED + text "" + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 14 + maxchars 20 + maxPaintChars 10 + textscale .25 + type ITEM_TYPE_EDITFIELD + cvar "password" + rect 100 14 120 20 + border 1 + bordersize 1 + bordercolor .25 .25 .25 1 + forecolor 1 1 1 1 + backcolor 1 1 1 .1 + visible 1 + onfocus { setcolor backcolor 1 1 1 .2 ; } + leavefocus { setcolor backcolor 1 1 1 .1 ; } + } + + // OK // + + itemDef { + text "Ok" + shortcutKey "O" + type ITEM_TYPE_BUTTON + textscale .25 + style WINDOW_STYLE_EMPTY + rect 240 14 60 20 + textalign 1 + textalignx 8 + textaligny 16 + forecolor 1 1 1 1 + visible 1 + action { play "sound/misc/menu1.wav" ; close password_popmenu ; open joinserver } + } + + + } +} diff --git a/reaction/uifiles/player.menu b/reaction/uifiles/player.menu new file mode 100644 index 00000000..e60d1b49 --- /dev/null +++ b/reaction/uifiles/player.menu @@ -0,0 +1,285 @@ +#include "ui/menudef.h" + +{ + + menuDef { + name "player_menu" + background "rq3-ta-menuback" // Makro: replace "rq3-ta-menuback" with "rq3-menuback" + // to use the current background + fullScreen MENU_TRUE + visible 0 // Visible on open + focusColor RQ3_MAIN_FOCUSCOLOR // Menu focus color for text and items + + + onOpen { uiScript update "ui_GetName" ; play "sound/misc/menu1.wav" } + onClose { uiScript update "ui_SetName" } + onEsc { close player_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 "player_icon" + style WINDOW_STYLE_SHADER + rect 8 8 48 48 + background "menu/art/rq3-setup-player.tga" + decoration + visible 1 + } + + itemdef { + name "player_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 + } + +//================= +// Buttons, lists +//================= + + +//Player model display + + itemdef { + name "model_preview" + ownerdraw UI_PLAYERMODEL + style 1 + rect 0 80 240 320 + visible 1 + decoration + } + + +//Name edit field + + itemdef { + name "name_caption" + style 0 + text "Player name:" + rect 220 120 120 20 + textstyle 3 + textscale .28 + textalign 0 + textalignx 4 + textaligny 16 + forecolor 1 1 .75 1 + visible 1 + decoration + } + + itemdef { + name "namefield" + rect 220 140 232 20 + type ITEM_TYPE_EDITFIELD + style 1 + text "" + cvar "ui_Name" + backcolor 0 0 0 .1 + forecolor 1 1 1 1 + outlinecolor 1 1 1 .15 + border 1 + bordersize 1 + bordercolor .5 .5 .5 .75 + textstyle 0 + maxchars 20 + textscale .25 + textalign 0 + textalignx 4 + textaligny 16 + visible 1 + onFocus { setitemcolor namefield backcolor 0 0 0 .25 ; show name_hint ; + timeFade name_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { setitemcolor namefield backcolor 0 0 0 .1 ; + timeFade name_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name name_hint + text "Enter player name" + 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 + } + +//Player model selection + + itemdef { + name "headlist_caption" + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_EDITFIELD + text "Player model:" + cvar "model" + rect 220 210 120 20 + textstyle 3 + textscale .28 + textalign 0 + textalignx 4 + textaligny 16 + forecolor 1 1 .75 1 + visible 1 + decoration + } + + itemdef { + name "headlist_window" + rect 220 230 392 108 + style WINDOW_STYLE_FILLED + border 1 + bordersize 1 + bordercolor .5 .5 .5 .75 + backcolor 0 0 0 .1 + visible 1 + decoration + } + + itemdef { + name "headlist" + rect 230 240 372 88 + style 0 + type ITEM_TYPE_LISTBOX + forecolor 1 1 1 1 + outlinecolor 1 1 .1 1 + border 0 + bordersize 2 + bordercolor 1 1 .5 .5 + elementwidth 61 + elementheight 61 + elementtype LISTBOX_IMAGE + feeder FEEDER_Q3HEADS + horizontalscroll + visible 1 + //onfocus { setitemcolor headlist bordercolor 1 0 0 1 ; } + //leavefocus { setitemcolor headlist bordercolor 1 0 0 0 ; } + onFocus { setitemcolor headlist_window backcolor 0 0 0 .25 ; show headlist_hint ; + timeFade headlist_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { setitemcolor headlist_window backcolor 0 0 0 .1 ; + timeFade headlist_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name headlist_hint + text "Click to change player model" + 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 + } + +//Back + + itemdef { + name "btn_back" + style WINDOW_STYLE_SHADER + rect 12 432 32 32 + type 1 + visible 1 + background "menu/art/rq3-menu-back.tga" + action { close player_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 + } + +} \ No newline at end of file diff --git a/reaction/uifiles/quit.menu b/reaction/uifiles/quit.menu new file mode 100644 index 00000000..f8fb49b5 --- /dev/null +++ b/reaction/uifiles/quit.menu @@ -0,0 +1,94 @@ +#include "ui/menudef.h" + +{ + \\ QUIT POPUP MENU \\ + + menuDef { + name "quit_popmenu" + visible 0 + rect 170 180 300 100 + focusColor RQ3_MAIN_FOCUSCOLOR + popup + outOfBoundsClick + //onOpen { transition window 0 50 300 0 0 0 300 100 10 4 } + //onClose { transition window 0 0 300 100 0 50 300 0 10 4 } + onOpen { play "sound/misc/menu1.wav" } + onESC { close quit_popmenu ; open main } + + + itemDef { + name window + style WINDOW_STYLE_SHADER + background "ui/assets/fake_gradient_75" + rect 0 0 300 100 + border 4 + bordersize 2 + bordercolor 1 0 0 1 + //backcolor 0 0 0 .65 + visible 1 + decoration + } + + + + // QUIT // + + itemDef { + name confirm + text "Exit Reaction Quake 3 ?" + style 0 + textscale .32 + textstyle 3 + rect 0 16 300 32 + textalign 1 + textalignx 150 + textaligny 16 + decoration + forecolor 1 1 1 1 + visible 1 + } + + // YES // + + itemDef { + name yes + text "YES" + shortcutKey "Y" + type 1 + style 0 + textscale .32 + textstyle 3 + rect 100 64 50 32 + textalign 1 + textalignx 25 + textaligny 16 + forecolor 1 1 1 1 + visible 1 + action { close main ; close quit_popmenu ; open credit } + mouseEnter { setitemcolor yes backcolor .1 .37 .1 1 } + mouseExit { setitemcolor yes backcolor .37 .1 .1 1 } + } + + // NO // + + itemDef { + name no + text "NO" + shortcutKey "N" + type 1 + style 0 + textscale .3 + textstyle 3 + rect 150 64 50 32 + textalign 1 + textalignx 25 + textaligny 16 + forecolor 1 1 1 1 + visible 1 + action { close quit_popmenu ; open main } + mouseEnter { setitemcolor no backcolor .1 .37 .1 1 } + mouseExit { setitemcolor no backcolor .37 .1 .1 1 } + } + +} +} \ No newline at end of file diff --git a/reaction/uifiles/serverinfo.menu b/reaction/uifiles/serverinfo.menu new file mode 100644 index 00000000..2a1fda46 --- /dev/null +++ b/reaction/uifiles/serverinfo.menu @@ -0,0 +1,107 @@ +#include "ui/menudef.h" +{ + + // Server Information Popup Menu // + + menuDef { + name "serverinfo_popmenu" + visible 0 + fullscreen 0 + rect 170 108 300 240 + focusColor RQ3_MAIN_FOCUSCOLOR + style 1 + border 1 + popup + onOpen { play "sound/misc/menu1.wav" ; uiScript ServerStatus } + onESC { close serverinfo_popmenu ; open joinserver } + +//Window + + itemdef { + rect 0 0 300 240 + style WINDOW_STYLE_FILLED + backcolor Ig_Window_Color + visible 1 + border 1 + bordersize 1 + shadowStyle 1 + bordercolor Ig_Window_BorderColor + decoration + } + +//Label + + itemdef { + text "Server info:" + textscale .25 + type 0 + style WINDOW_STYLE_EMPTY + rect 12 8 80 24 + forecolor 1 1 1 1 + textstyle 0 + textalign 0 + textalignx 8 + textaligny 16 + decoration + visible 1 + } + +//Server info list + + itemdef { + type ITEM_TYPE_LISTBOX + rect 12 32 276 188 + style WINDOW_STYLE_FILLED + backcolor 0 0 0 .65 + border 1 + bordersize 1 + bordercolor .25 .25 .25 1 + elementtype LISTBOX_TEXT + elementwidth 160 + elementheight 20 + textscale .225 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 14 + outlinecolor .75 .75 1 .25 + feeder FEEDER_SERVERSTATUS + columns 4 4 40 20 + 40 40 10 + 80 40 10 + 120 20 20 + visible 1 + } + + // Scrollbar separator // + + itemdef { + rect 270 32 18 188 + style WINDOW_STYLE_EMPTY + border 1 + borderSize 1 + bordercolor .25 .25 .25 1 + visible 1 + decoration + } + +//Refresh button + + itemdef { + text "Refresh" + textscale .25 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 208 8 80 24 + forecolor 1 1 1 1 + textstyle 0 + textalign ITEM_ALIGN_RIGHT + textalignx 80 + textaligny 16 + visible 1 + action { play "sound/misc/menu1.wav" ; uiScript "ServerStatus" } + } + + } +} + + diff --git a/reaction/uifiles/setup.menu b/reaction/uifiles/setup.menu new file mode 100644 index 00000000..fb5336d2 --- /dev/null +++ b/reaction/uifiles/setup.menu @@ -0,0 +1,494 @@ +#include "ui/menudef.h" + +{ + + menuDef { + name "setup_menu" + background "rq3-ta-menuback" // Makro: replace "rq3-ta-menuback" with "rq3-menuback" + // to use the old background + fullScreen MENU_TRUE + visible MENU_TRUE // Visible on open + focusColor RQ3_MAIN_FOCUSCOLOR // Menu focus color for text and items + + + onOpen { + play "sound/misc/menu1.wav" ; + } + + onEsc { close setup_menu ; open main } + + +//=================== +// 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 "setup_icon" + style WINDOW_STYLE_SHADER + rect 8 8 48 48 + background "menu/art/rq3-menu-setup.tga" + decoration + visible 1 + } + + itemdef { + name "setup_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 + } + +//=================== +// Buttons, lists +//=================== + +//Player + + itemdef { + name btn_player + group "topmenu" + type 1 + background "menu/art/rq3-setup-player" + rect 336 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + onFocus { show player_focus ; timefade player_focus forecolor 1 1 1 1 0 250 ; + show player_hint ; timeFade player_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade player_focus forecolor 1 1 1 0 0 250 ; timeFade player_hint forecolor .9 .9 .9 0 0 250 } + action { close setup_menu ; open player_menu ; } + } + + itemdef { + name player_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 { + name player_hint + text "Change player settings" + 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 + } + +//Control + + itemdef { + name btn_control + group "topmenu" + type 1 + background "menu/art/rq3-setup-controls" + rect 384 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + 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 ; } + } + + itemdef { + name control_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 control_hint + text "Change Reaction controls" + 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 + } + +//System + + itemdef { + name btn_system + group "topmenu" + type 1 + background "menu/art/rq3-setup-system" + rect 432 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + onFocus { show system_focus ; timefade system_focus forecolor 1 1 1 1 0 250 ; + show system_hint ; timeFade system_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade system_focus forecolor 1 1 1 0 0 250 ; timeFade system_hint forecolor .9 .9 .9 0 0 250 } + action { close setup_menu ; open system_menu ; } + } + + itemdef { + name system_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 system_hint + text "Change system settings" + 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 + } + +//Game options + + itemdef { + name btn_options + group "topmenu" + type 1 + background "menu/art/rq3-setup-options" + rect 480 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + onFocus { show options_focus ; timefade options_focus forecolor 1 1 1 1 0 250 ; + show options_hint ; timeFade options_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade options_focus forecolor 1 1 1 0 0 250 ; timeFade options_hint forecolor .9 .9 .9 0 0 250 } + action { close setup_menu ; open options_menu ; } + } + + itemdef { + name options_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 options_hint + text "Change game options" + 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 + } + +//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 { + name btn_default + group "topmenu" + type 1 + background "menu/art/rq3-setup-defaults" + rect 576 12 32 32 + style WINDOW_STYLE_SHADER + visible 1 + onFocus { show default_focus ; timefade default_focus forecolor 1 1 1 1 0 250 ; + show default_hint ; timeFade default_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timefade default_focus forecolor 1 1 1 0 0 250 ; timeFade default_hint forecolor .9 .9 .9 0 0 250 } + action { open reset_popmenu ; } + } + + itemdef { + name default_focus + background "menu/art/rq3-menu-focus" + forecolor 1 1 1 0 + rect 576 12 32 32 + style WINDOW_STYLE_SHADER + visible 0 + decoration + } + + itemdef { + name default_hint + text "Reset all settings (video, controls, game etc.) back to their default values" + 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 + } + +//Back + + itemdef { + name "btn_back" + style WINDOW_STYLE_SHADER + rect 12 432 32 32 + type 1 + background "menu/art/rq3-menu-back.tga" + action { close setup_menu; open main ; } + 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 } + visible 1 + } + + + itemdef { + name back_hint + text "Go back to main 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 + } + +} + + +//=================== +// Reset popup menu +//=================== + + + menuDef { + name "reset_popmenu" + visible 0 + rect 170 180 300 100 + focusColor RQ3_MAIN_FOCUSCOLOR + outOfBoundsClick + popup + //onOpen { transition window 0 50 300 0 0 0 300 100 10 4 } + //onClose { transition window 0 0 300 100 0 50 300 0 10 4 } + onopen { setfocus no ; } + onESC { close reset_popmenu ; open setup_menu ; } + + + itemDef { + name window + style WINDOW_STYLE_SHADER + background "ui/assets/fake_gradient_75" + rect 0 0 300 100 + border 4 + bordersize 2 + bordercolor 1 0 0 1 + //backcolor 0 0 0 .65 + visible 1 + decoration + } + + + + // RESET // + + itemDef { + name confirm + autowrapped + text "Reset all settings ?" + style 0 + textscale .32 + textstyle 3 + rect 50 16 200 48 + textalign 1 + textalignx 100 + textaligny 16 + decoration + forecolor 1 1 1 1 + visible 1 + } + + // YES // + + itemDef { + name yes + text "YES" + shortcutKey "Y" + type 1 + style 0 + textscale .32 + textstyle 3 + rect 100 64 50 32 + textalign 1 + textalignx 25 + textaligny 16 + forecolor 1 1 1 1 + visible 1 + action { close reset_popmenu ; close setup_menu ; open main ; uiScript resetDefaults ; } + mouseEnter { setitemcolor yes backcolor .1 .37 .1 1 } + mouseExit { setitemcolor yes backcolor .37 .1 .1 1 } + } + + // NO // + + itemDef { + name no + text "NO" + shortcutKey "N" + type 1 + style 0 + textscale .3 + textstyle 3 + rect 150 64 50 32 + textalign 1 + textalignx 25 + textaligny 16 + forecolor 1 1 1 1 + visible 1 + action { close reset_popmenu ; open setup_menu } + mouseEnter { setitemcolor no backcolor .1 .37 .1 1 } + mouseExit { setitemcolor no backcolor .37 .1 .1 1 } + } + + + + } + + +} \ No newline at end of file diff --git a/reaction/uifiles/specify.menu b/reaction/uifiles/specify.menu new file mode 100644 index 00000000..548fdf70 --- /dev/null +++ b/reaction/uifiles/specify.menu @@ -0,0 +1,121 @@ +#include "ui/menudef.h" + +{ + // SPECIFY ADDRESS POPUP MENU // + + menuDef { + name "specify_popmenu" + visible 0 + fullscreen 0 + rect 170 200 300 80 + focusColor RQ3_MAIN_FOCUSCOLOR // Menu focus color for text and items + style WINDOW_STYLE_EMPTY + border 1 + popup + onOpen { play "sound/misc/menu1.wav" ; setfocus addressEntry } + onESC { close specify_popmenu ; open joinserver } + + itemDef { + name window + rect 0 0 300 60 + style WINDOW_STYLE_FILLED + border 1 + borderSize 1 + bordercolor Ig_Window_BorderColor + backcolor Ig_Window_Color + shadowStyle 1 + visible 1 + decoration + } + + // ADDRESS // + + itemDef { + text "Address:" + style 0 + textscale .25 + rect 0 8 80 20 + textalign ITEM_ALIGN_LEFT + textalignx 16 + textaligny 16 + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef { + name addressEntry + style WINDOW_STYLE_FILLED + text "" + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 14 + maxPaintChars 18 + textscale .225 + type ITEM_TYPE_EDITFIELD + cvar "ui_RQ3_joinAddress" + rect 12 28 180 20 + border 1 + bordersize 1 + bordercolor .25 .25 .25 1 + forecolor 1 1 1 1 + backcolor 1 1 1 .1 + visible 1 + onfocus { setcolor backcolor 1 1 1 .2 ; } + leavefocus { setcolor backcolor 1 1 1 .1 ; } + } + + // PORT // + + itemDef { + text "Port:" + style 0 + textscale .25 + rect 188 8 40 20 + textalign ITEM_ALIGN_LEFT + textalignx 16 + textaligny 16 + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef { + name portEntry + style WINDOW_STYLE_FILLED + text "" + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 14 + maxPaintChars 7 + maxChars 7 + textscale .225 + type ITEM_TYPE_NUMERICFIELD + cvar "ui_RQ3_joinPort" + rect 200 28 48 20 + border 1 + bordersize 1 + bordercolor .25 .25 .25 1 + forecolor 1 1 1 1 + backcolor 1 1 1 .1 + visible 1 + onfocus { setcolor backcolor 1 1 1 .2 ; } + leavefocus { setcolor backcolor 1 1 1 .1 ; } + } + + // GO // + + itemDef { + shortcutKey "G" + style WINDOW_STYLE_SHADER + background "menu/art/rq3-menu-go.tga" + type ITEM_TYPE_BUTTON + rect 260 30 32 16 + visible 1 + onfocus { setbackground "menu/art/rq3-menu-go-focus-anim" } + leavefocus { setbackground "menu/art/rq3-menu-go.tga" } + action { play "sound/misc/menu1.wav" ; uiScript joinSpecifiedServer } + } + + } +} diff --git a/reaction/uifiles/system.menu b/reaction/uifiles/system.menu new file mode 100644 index 00000000..d494cc73 --- /dev/null +++ b/reaction/uifiles/system.menu @@ -0,0 +1,1182 @@ +#include "ui/menudef.h" +#define RQ3_System_Option_Color .75 .75 .75 1 + +{ + + menuDef { + name "system_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" ; show graphics ; hide driver } + onEsc { close system_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 "system_icon" + style WINDOW_STYLE_SHADER + rect 8 8 48 48 + background "menu/art/rq3-setup-system.tga" + decoration + visible 1 + } + + itemdef { + name "system_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 + } + +//=================== +// Buttons, lists +//=================== + + +//Graphics +//Background window + + itemdef { + name grph_caption + group graphics + rect 32 72 252 20 + style WINDOW_STYLE_GRADIENT + border WINDOW_BORDER_KCGRADIENT + bordersize 1 + backcolor 0 0 .2 .75 + bordercolor .75 .75 .75 1 + text "Graphics" + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .25 + textalign 0 + textalignx 72 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemdef { + name drv_caption + group driver + rect 32 72 252 20 + style WINDOW_STYLE_GRADIENT + border WINDOW_BORDER_KCGRADIENT + bordersize 1 + backcolor 0 0 .2 .75 + bordercolor .75 .75 .75 1 + text "Driver Info" + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .25 + textalign 0 + textalignx 72 + textaligny 14 + forecolor 1 1 1 1 + visible 0 + decoration + } + + + itemdef { + name grph_icon + group graphics + style WINDOW_STYLE_SHADER + rect 64 68 24 24 + background "menu/art/rq3-system-graphics.tga" + decoration + visible 1 + } + + itemdef { + name drv_icon + group driver + style WINDOW_STYLE_SHADER + rect 64 68 24 24 + background "menu/art/rq3-system-driverinfo.tga" + decoration + visible 0 + } + + itemdef { + name grph_window + rect 32 88 252 264 + 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 + } + + +//Pre-defined settings + + itemdef { + name opt_predef + group graphics + type ITEM_TYPE_MULTI + text "Quality:" + cvar "ui_glCustom" + rect 152 100 112 20 + cvarFloatList { "High Quality" 0 "Normal" 1 "Fast" 2 "Fastest" 3 "Custom" 4 } + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 20 + textscale .25 + forecolor RQ3_System_Option_Color + visible 1 + action { uiScript update "ui_glCustom" ; } + onFocus { show predef_hint ; timeFade predef_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade predef_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name predef_hint + text "Choose pre-defined graphics settings" + 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 + } + +//Driver + + itemdef { + name opt_gldriver + group graphics + type ITEM_TYPE_EDITFIELD + text "GL Driver:" + cvar "r_glDriver" + rect 152 120 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 20 + textscale .25 + forecolor RQ3_System_Option_Color + visible 1 + onFocus { show gldriver_hint ; timeFade gldriver_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade gldriver_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name gldriver_hint + text "Choose OpenGL driver" + 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 + } + +//GL Extensions + + itemdef { + name opt_glext + group graphics + type ITEM_TYPE_YESNO + text "GL Extensions:" + cvar "r_allowExtensions" + rect 152 140 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 20 + textscale .25 + forecolor RQ3_System_Option_Color + visible 1 + action { uiScript glCustom ; } + onFocus { show glext_hint ; timeFade glext_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade glext_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name glext_hint + text "Enable OpenGL extensions" + 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 + } + +//Resolution + + itemdef { + name opt_res + group graphics + type ITEM_TYPE_MULTI + text "Video Mode:" + cvar "r_mode" + cvarFloatList { "320x240" 0 "400x300" 1 "512x384" 2 "640x480" 3 "800x600" 4 "960x720" 5 "1024x768" 6 "1152x864" 7 "1280x1024" 8 "1600x1200" 9 "2048x1536" 10 "856x480 Wide Screen" 11 } + rect 152 160 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 20 + textscale .25 + forecolor RQ3_System_Option_Color + visible 1 + action { uiScript glCustom ; } + onFocus { show res_hint ; timeFade res_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade res_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name res_hint + text "Choose rendering resolution" + 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 + } + +//Color depth + + itemdef { + name opt_cldepth + group graphics + type ITEM_TYPE_MULTI + text "Color depth:" + cvar "r_colorbits" + cvarFloatList { "Desktop Default" 0 "16-bit" 16 "32-bit" 32 } + rect 152 180 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 20 + textscale .25 + forecolor RQ3_System_Option_Color + visible 1 + action { uiScript glCustom ; uiScript update "r_colorbits" ; } + onFocus { show cldepth_hint ; timeFade cldepth_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade cldepth_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name cldepth_hint + text "Choose rendering color depth" + 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 + } + +//Fullscreen + + itemdef { + name opt_fscreen + group graphics + type ITEM_TYPE_YESNO + text "Fullscreen:" + cvar "r_fullscreen" + rect 152 200 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 20 + textscale .25 + forecolor RQ3_System_Option_Color + visible 1 + action { uiScript glCustom ; } + onFocus { show fscreen_hint ; timeFade fscreen_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade fscreen_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name fscreen_hint + text "Render in full screen" + 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 + } + +//Lightmap/vertex + + itemdef { + name opt_light + group graphics + type ITEM_TYPE_MULTI + text "Lighting:" + cvar "r_vertexlight" + cvarFloatList { "Light Map (high)" 0 "Vertex (low)" 1 } + rect 152 220 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 20 + textscale .25 + forecolor RQ3_System_Option_Color + visible 1 + action { uiScript glCustom ; } + onFocus { show light_hint ; timeFade light_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade light_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name light_hint + text "Choose map light rendering mode" + 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 + } + +//Geometric detail + + itemdef { + name opt_geodetail + group graphics + type ITEM_TYPE_MULTI + text "Geometric Detail:" + cvar "r_lodbias" + cvarFloatList { "High" 0 "Medium" 1 "Low" 2 } + rect 152 240 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 20 + textscale .25 + forecolor RQ3_System_Option_Color + visible 1 + action { uiScript glCustom ; uiScript update "r_lodbias" ; } + onFocus { show geodetail_hint ; timeFade geodetail_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade geodetail_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name geodetail_hint + text "Choose geometric detail level" + 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 + } + +//Texture detail + + itemdef { + name opt_texdetail + group graphics + type ITEM_TYPE_MULTI + text "Texture Detail:" + cvar "r_picmip" + cvarFloatList { "Very Low" 3 "Low" 2 "Normal" 1 "High" 0 } + rect 152 260 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 20 + textscale .25 + forecolor RQ3_System_Option_Color + visible 1 + action { uiScript glCustom ; } + onFocus { show texdetail_hint ; timeFade texdetail_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade texdetail_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name texdetail_hint + text "Choose texture detail level" + 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 + } + +//Texture quality + + itemdef { + name opt_texquality + group graphics + type ITEM_TYPE_MULTI + text "Texture Quality:" + cvar "r_texturebits" + cvarFloatList { "Default" 0 "16 bit" 16 "32 bit" 32 } + rect 152 280 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 20 + textscale .25 + forecolor RQ3_System_Option_Color + visible 1 + action { uiScript glCustom ; } + onFocus { show texquality_hint ; timeFade texquality_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade texquality_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name texquality_hint + text "Choose texture quality" + 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 + } + +//Texture filtering mode + + itemdef { + name opt_texfilter + group graphics + type ITEM_TYPE_MULTI + text "Texture Filter:" + cvar "r_texturemode" + cvarStrList { "Bilinear", "GL_LINEAR_MIPMAP_NEAREST", "Trilinear", "GL_LINEAR_MIPMAP_LINEAR" } + rect 152 300 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 20 + textscale .25 + forecolor RQ3_System_Option_Color + visible 1 + action { uiScript glCustom ; } + onFocus { show texfilter_hint ; timeFade texfilter_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade texfilter_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name texfilter_hint + text "Choose texture filtering mode" + 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 + } + +//Compressed textures + + itemdef { + name opt_comptex + group graphics + type ITEM_TYPE_YESNO + text "Compress Textures:" + cvar "r_ext_compressed_textures" + rect 152 320 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 20 + textscale .25 + forecolor RQ3_System_Option_Color + visible 1 + action { uiScript glCustom ; } + onFocus { show comptex_hint ; timeFade comptex_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade comptex_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name comptex_hint + text "Enable texture compression" + 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 + } + +//Driver info window + + itemdef { + name driver_info + group driver + ownerdraw UI_GLINFO + rect 40 100 244 248 + style WINDOW_STYLE_EMPTY + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny 12 + textscale .2 + forecolor RQ3_System_Option_Color + visible 0 + decoration + } + +//Toggle: driver info + + itemdef { + name "btn_drinfo" + group graphics + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 56 360 24 24 + background "menu/art/rq3-system-driverinfo" + visible 1 + action { hide graphics ; show driver ; setfocus btn_graphics ; } + onFocus { setbackground "menu/art/rq3-system-driverinfo-anim" ; + show toggle_drinfo_hint ; timeFade toggle_drinfo_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { setbackground "menu/art/rq3-system-driverinfo" ; + timeFade toggle_drinfo_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name "btn_graphics" + group driver + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 56 360 24 24 + background "menu/art/rq3-system-graphics" + visible 0 + action { hide driver ; show graphics ; setfocus btn_drinfo ; } + onFocus { setbackground "menu/art/rq3-system-driverinfo-anim" ; + show toggle_graphics_hint ; timeFade toggle_graphics_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { setbackground "menu/art/rq3-system-driverinfo" ; + timeFade toggle_graphics_hint forecolor .9 .9 .9 0 0 250 } + } + +//Toggle: graphics + + itemdef { + name toggle_drinfo_hint + text "View OpenGL driver information" + 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 + } + + itemdef { + name toggle_graphics_hint + text "Show graphics settings" + 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 + } + + +//Apply + + itemdef { + name "btn_apply" + group graphics + style WINDOW_STYLE_FILLED + rect 184 360 80 20 + type ITEM_TYPE_BUTTON + text "apply" + textscale .25 + textstyle ITEM_TEXTSTYLE_NORMAL + textalign ITEM_ALIGN_RIGHT + textalignx 72 + textaligny 14 + backcolor 0 0 0 .2 + forecolor 1 1 1 .9 + border 1 + bordersize 1 + bordercolor .75 .75 .75 .75 + action { exec "vid_restart" ; } + onFocus { setitemcolor btn_apply backcolor 0 0 0 .5 ; show apply_hint ; + timeFade apply_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { setitemcolor btn_apply backcolor 0 0 0 .2 ; + timeFade apply_hint forecolor .9 .9 .9 0 0 250 } + + visible 1 + } + + itemdef { + name apply_hint + text "Apply graphics changes and return to main 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 + } + +//Display +//Background window + + itemdef { + name display_caption + rect 368 72 220 20 + style WINDOW_STYLE_GRADIENT + border WINDOW_BORDER_KCGRADIENT + bordersize 1 + backcolor 0 0 .2 .75 + bordercolor .75 .75 .75 1 + text "Display" + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .25 + textalign 0 + textalignx 72 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + decoration + } + + + itemdef { + name display_icon + style WINDOW_STYLE_SHADER + rect 400 68 24 24 + background "menu/art/rq3-system-display.tga" + decoration + visible 1 + } + + itemdef { + name display_window + rect 368 88 220 80 + 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 + } + + +//Brightness + + itemdef { + name opt_gamma + type ITEM_TYPE_SLIDER + text "Brightness:" + cvarfloat r_gamma 1 .5 1.7 + rect 472 100 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 20 + textscale .25 + forecolor RQ3_System_Option_Color + visible 1 + onFocus { show gamma_hint ; timeFade gamma_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade gamma_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name gamma_hint + text "Change image brightness" + 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 + } + +//Screen size + + itemdef { + name opt_screensize + type ITEM_TYPE_SLIDER + text "Screen Size:" + cvarfloat cg_viewsize 100 30 100 + rect 472 120 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 20 + textscale .25 + forecolor RQ3_System_Option_Color + visible 1 + onFocus { show screensize_hint ; timeFade screensize_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade screensize_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name screensize_hint + text "Change rendering window size" + 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 + } + +//Overbrightbits + + itemdef { + name opt_overbits + type ITEM_TYPE_YESNO + text "Overbright Bits:" + cvar "r_overbrightbits" + rect 512 140 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 20 + textscale .25 + forecolor RQ3_System_Option_Color + visible 1 + onFocus { show overbits_hint ; timeFade overbits_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade overbits_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name overbits_hint + text "Enable overbright bits (brighter image, lower quality)" + 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 + } + +//Sound +//Background window + + itemdef { + name sound_caption + rect 368 192 220 20 + style WINDOW_STYLE_GRADIENT + border WINDOW_BORDER_KCGRADIENT + bordersize 1 + backcolor 0 0 .2 .75 + bordercolor .75 .75 .75 1 + text "Sound" + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .25 + textalign 0 + textalignx 72 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + decoration + } + + + itemdef { + name sound_icon + style WINDOW_STYLE_SHADER + rect 400 188 24 24 + background "menu/art/rq3-system-sound.tga" + decoration + visible 1 + } + + itemdef { + name sound_window + rect 368 208 220 100 + 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 + } + + +//Sound volume + + itemdef { + name opt_svol + type ITEM_TYPE_SLIDER + text "Sound Volume:" + cvarfloat "s_volume" 0.7 0 1 + rect 472 220 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 20 + textscale .25 + forecolor RQ3_System_Option_Color + visible 1 + onFocus { show svol_hint ; timeFade svol_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade svol_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name svol_hint + text "Change sound effects volume" + 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 + } + +//Music volume + + itemdef { + name opt_mvol + type ITEM_TYPE_SLIDER + text "Music volume:" + cvarfloat "s_musicvolume" 0.25 0 1 + rect 472 240 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 20 + textscale .25 + forecolor RQ3_System_Option_Color + visible 1 + onFocus { show mvol_hint ; timeFade mvol_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade mvol_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name mvol_hint + text "Change music volume" + 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 + } + +//Sound quality + + itemdef { + name opt_squality + type ITEM_TYPE_MULTI + text "Sound Quality:" + cvar "s_khz" + cvarFloatList { "22 khz (high)" 22 "11 khz (low)" 11 } + rect 496 260 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 20 + textscale .25 + forecolor RQ3_System_Option_Color + visible 1 + onFocus { show squality_hint ; timeFade squality_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade squality_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name squality_hint + text "Change sound quality" + 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 + } + +//Doppler effect + + itemdef { + name opt_doppler + type ITEM_TYPE_YESNO + text "Doppler Sound:" + cvar "s_doppler" + rect 496 280 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 20 + textscale .25 + forecolor RQ3_System_Option_Color + visible 1 + onFocus { show doppler_hint ; timeFade doppler_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade doppler_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name doppler_hint + text "Enable doppler effect" + 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 + } + +//Network +//Background window + + itemdef { + name net_caption + rect 368 332 220 20 + style WINDOW_STYLE_GRADIENT + border WINDOW_BORDER_KCGRADIENT + bordersize 1 + backcolor 0 0 .2 .75 + bordercolor .75 .75 .75 1 + text "Network" + textstyle ITEM_TEXTSTYLE_SHADOWED + textscale .25 + textalign 0 + textalignx 72 + textaligny 14 + forecolor 1 1 1 1 + visible 1 + decoration + } + + + itemdef { + name net_icon + style WINDOW_STYLE_SHADER + rect 400 328 24 24 + background "menu/art/rq3-system-network.tga" + decoration + visible 1 + } + + itemdef { + name net_window + rect 368 348 220 40 + 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 + } + + +//Net rate + + itemdef { + name opt_netrate + type ITEM_TYPE_MULTI + text "Net Data Rate:" + cvar "rate" + cvarFloatList { "<=28.8k" 2500 "33.6k" 3000 "56k" 4000 "ISDN" 5000 "LAN/CABLE/xDSl" 25000 } + rect 512 360 112 20 + textalign ITEM_ALIGN_RIGHT + textalignx 0 + textaligny 20 + textscale .25 + forecolor RQ3_System_Option_Color + visible 1 + action { uiScript update ui_setRate ; } + onFocus { show netrate_hint ; timeFade netrate_hint forecolor .9 .9 .9 1 0 250 } + leaveFocus { timeFade netrate_hint forecolor .9 .9 .9 0 0 250 } + } + + itemdef { + name netrate_hint + text "Choose network speed" + 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 + } + +//Back + + itemdef { + name "btn_back" + style WINDOW_STYLE_SHADER + rect 12 432 32 32 + type 1 + background "menu/art/rq3-menu-back.tga" + action { close system_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 } + visible 1 + } + + 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/vid_restart.menu b/reaction/uifiles/vid_restart.menu new file mode 100644 index 00000000..f82957cd --- /dev/null +++ b/reaction/uifiles/vid_restart.menu @@ -0,0 +1,194 @@ +#include "ui/menudef.h" + +{ + \\ VID_RESTART POPUP MENU \\ + + menuDef { + name "vid_restart_popmenu" + visible 0 + fullscreen 0 + //rect 217 200 210 85 + rect 204 122 235 235 + //outOfBoundsClick // this closes the window if it gets a click out of the rectangle + focusColor 1 .75 0 1 + style 1 + border 1 + popup + onESC { close vid_restart_popmenu ; + open setup_menu ; + open system_menu } + + + + itemDef { + name window + rect 0 0 235 235 + style 3 + background "ui/assets/mainpop.tga" + visible 1 + decoration + } + itemDef { + name window + rect 47 47 144 144 + style 3 + background "centerconsole2" + visible 1 + decoration + } + + + + + + // VID_RESTART // + + itemDef { + name confirm + text "This will apply video" + style 0 + textscale .25 + textstyle 3 + rect 0 85 110 20 + textalign 1 + textalignx 117 + textaligny 15 + decoration + forecolor 1 1 1 1 + visible 1 + } + itemDef { + name confirm + text "settings and return" + style 0 + textscale .25 + textstyle 3 + rect 0 100 110 20 + textalign 1 + textalignx 117 + textaligny 15 + decoration + forecolor 1 1 1 1 + visible 1 + } + itemDef { + name confirm + text "to the Main Menu." + style 0 + textscale .25 + textstyle 3 + rect 0 115 110 20 + textalign 1 + textalignx 117 + textaligny 15 + decoration + forecolor 1 1 1 1 + visible 1 + } + + itemDef { + name yes + text "YES" + type 1 + textscale .25 + style WINDOW_STYLE_FILLED + background "ui/assets/button_back.tga" + rect 75 140 30 26 + textalign 1 + textalignx 15 + textaligny 20 + forecolor 1 1 1 1 + backcolor .37 .1 .1 1 + visible 1 + action { play "sound/misc/nomenu.wav" ; + close vid_restart_popmenu ; + exec "vid_restart" } + mouseEnter { setitemcolor yes backcolor .1 .37 .1 1 } + mouseExit { setitemcolor yes backcolor .37 .1 .1 1 } + } + + itemDef { + name yes + style WINDOW_STYLE_SHADER + background "ui/assets/framebutton.tga" + rect 75 140 30 26 + visible 1 + decoration + } + + itemDef { + name yes + style WINDOW_STYLE_SHADER + background "ui/assets/leftbutton.tga" + rect 69 140 7 26 + visible 1 + decoration + } + + itemDef { + name yes + style WINDOW_STYLE_SHADER + background "ui/assets/rightbutton.tga" + rect 104 140 7 26 + visible 1 + decoration + } + + + + + + itemDef { + name no + text "NO" + type 1 + textscale .25 + style WINDOW_STYLE_FILLED + background "ui/assets/button_back.tga" + rect 128 140 30 26 + textalign 1 + textalignx 15 + textaligny 20 + forecolor 1 1 1 1 + backcolor .37 .1 .1 1 + visible 1 + action { play "sound/misc/nomenu.wav" ; + close vid_restart_popmenu ; + open setup_menu ; + open system_menu } + mouseEnter { setitemcolor no backcolor .1 .37 .1 1 } + mouseExit { setitemcolor no backcolor .37 .1 .1 1 } + } + itemDef { + name no + style WINDOW_STYLE_SHADER + background "ui/assets/framebutton.tga" + rect 128 140 30 26 + visible 1 + decoration + } + + itemDef { + name no + style WINDOW_STYLE_SHADER + background "ui/assets/leftbutton.tga" + rect 122 140 7 26 + visible 1 + decoration + } + + itemDef { + name no + style WINDOW_STYLE_SHADER + background "ui/assets/rightbutton.tga" + rect 157 140 7 26 + visible 1 + decoration + } + + } + + +} + +