Added the UI files to cvs
BIN
reaction/uifiles/assets/black.jpg
Normal file
After Width: | Height: | Size: 643 B |
BIN
reaction/uifiles/assets/fake_gradient.tga
Normal file
BIN
reaction/uifiles/assets/fake_gradient_75.tga
Normal file
BIN
reaction/uifiles/assets/gradientbar2.tga
Normal file
BIN
reaction/uifiles/assets/halfgradleft.tga
Normal file
After Width: | Height: | Size: 16 KiB |
BIN
reaction/uifiles/assets/halfgradright.tga
Normal file
BIN
reaction/uifiles/assets/idlogo.tga
Normal file
BIN
reaction/uifiles/assets/mapshot01.jpg
Normal file
After Width: | Height: | Size: 103 KiB |
BIN
reaction/uifiles/assets/mapshot02.jpg
Normal file
After Width: | Height: | Size: 89 KiB |
BIN
reaction/uifiles/assets/mapshot03.jpg
Normal file
After Width: | Height: | Size: 113 KiB |
BIN
reaction/uifiles/assets/rq3-ingame-background.tga
Normal file
BIN
reaction/uifiles/assets/rq3-ingame-loadout.tga
Normal file
BIN
reaction/uifiles/assets/rq3-ingame-shadow-bottom.tga
Normal file
BIN
reaction/uifiles/assets/rq3-ingame-shadow-c1.tga
Normal file
BIN
reaction/uifiles/assets/rq3-ingame-shadow-c2.tga
Normal file
BIN
reaction/uifiles/assets/rq3-ingame-shadow-c3.tga
Normal file
BIN
reaction/uifiles/assets/rq3-ingame-shadow-c4.tga
Normal file
BIN
reaction/uifiles/assets/rq3-ingame-shadow-right.tga
Normal file
BIN
reaction/uifiles/assets/rq3-ingame-title.tga
Normal file
BIN
reaction/uifiles/assets/rq3-main-box-1.tga
Normal file
BIN
reaction/uifiles/assets/rq3-main-box-2.tga
Normal file
BIN
reaction/uifiles/assets/rq3-main-box-3.tga
Normal file
BIN
reaction/uifiles/assets/rq3-main-shadow-1.tga
Normal file
BIN
reaction/uifiles/assets/rq3-main-shadow-2.tga
Normal file
BIN
reaction/uifiles/assets/rq3-ssg-background.jpg
Normal file
After Width: | Height: | Size: 6.4 KiB |
BIN
reaction/uifiles/assets/scrollbar.tga
Normal file
BIN
reaction/uifiles/assets/scrollbar_arrow_dwn_a.tga
Normal file
BIN
reaction/uifiles/assets/scrollbar_arrow_left.tga
Normal file
BIN
reaction/uifiles/assets/scrollbar_arrow_right.tga
Normal file
BIN
reaction/uifiles/assets/scrollbar_arrow_up_a.tga
Normal file
BIN
reaction/uifiles/assets/scrollbar_thumb.tga
Normal file
After Width: | Height: | Size: 1.5 KiB |
BIN
reaction/uifiles/assets/slider2.tga
Normal file
After Width: | Height: | Size: 8.5 KiB |
BIN
reaction/uifiles/assets/sliderbutt_1.tga
Normal file
After Width: | Height: | Size: 2.5 KiB |
BIN
reaction/uifiles/assets/static_1.tga
Normal file
BIN
reaction/uifiles/assets/static_2.tga
Normal file
BIN
reaction/uifiles/assets/static_3.tga
Normal file
BIN
reaction/uifiles/assets/white.tga
Normal file
344
reaction/uifiles/cdkey.menu
Normal file
|
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
}
|
84
reaction/uifiles/connect.menu
Normal file
|
@ -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
|
||||
}
|
||||
|
||||
}
|
1542
reaction/uifiles/controls.menu
Normal file
122
reaction/uifiles/createfavorite.menu
Normal file
|
@ -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 }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
1159
reaction/uifiles/createserver.menu
Normal file
1446
reaction/uifiles/credit.menu
Normal file
264
reaction/uifiles/demo.menu
Normal file
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
106
reaction/uifiles/error.menu
Normal file
|
@ -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 }
|
||||
}
|
||||
}
|
||||
}
|
770
reaction/uifiles/fight.menu
Normal file
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
184
reaction/uifiles/findplayer.menu
Normal file
|
@ -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 }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
803
reaction/uifiles/hud.menu
Normal file
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
7
reaction/uifiles/hud.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
// hud menu defs
|
||||
//
|
||||
{
|
||||
loadMenu { "ui/hud.menu" }
|
||||
loadMenu { "ui/score.menu" }
|
||||
loadMenu { "ui/teamscore.menu" }
|
||||
}
|
7
reaction/uifiles/hud2.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
// hud menu defs
|
||||
//
|
||||
{
|
||||
loadMenu { "ui/min_hud.menu" }
|
||||
loadMenu { "ui/score.menu" }
|
||||
loadMenu { "ui/teamscore.menu" }
|
||||
}
|
446
reaction/uifiles/ingame.menu
Normal file
|
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
23
reaction/uifiles/ingame.txt
Normal file
|
@ -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" }
|
||||
|
||||
}
|
318
reaction/uifiles/ingame_about.menu
Normal file
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
128
reaction/uifiles/ingame_addbot.menu
Normal file
|
@ -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 }
|
||||
}
|
||||
}
|
||||
}
|
334
reaction/uifiles/ingame_callvote.menu
Normal file
|
@ -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 }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
1019
reaction/uifiles/ingame_controls.menu
Normal file
293
reaction/uifiles/ingame_devmode.menu
Normal file
|
@ -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 }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
136
reaction/uifiles/ingame_ignore.menu
Normal file
|
@ -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 }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
249
reaction/uifiles/ingame_item.menu
Normal file
|
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
}
|
184
reaction/uifiles/ingame_join.menu
Normal file
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
122
reaction/uifiles/ingame_join_dm.menu
Normal file
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
343
reaction/uifiles/ingame_leave.menu
Normal file
|
@ -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 }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
245
reaction/uifiles/ingame_matchmode.menu
Normal file
|
@ -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 }
|
||||
}
|
||||
}
|
||||
}
|
572
reaction/uifiles/ingame_options.menu
Normal file
|
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
}
|
481
reaction/uifiles/ingame_orders.menu
Normal file
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
230
reaction/uifiles/ingame_player.menu
Normal file
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
452
reaction/uifiles/ingame_scoreffa.menu
Normal file
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
63
reaction/uifiles/ingame_serverinfo.menu
Normal file
|
@ -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 }
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
611
reaction/uifiles/ingame_system.menu
Normal file
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
124
reaction/uifiles/ingame_tkok.menu
Normal file
|
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
}
|
161
reaction/uifiles/ingame_vote.menu
Normal file
|
@ -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 }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
71
reaction/uifiles/ingame_vote2.menu
Normal file
|
@ -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 }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
329
reaction/uifiles/ingame_weapon.menu
Normal file
|
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
}
|
1026
reaction/uifiles/joinserver.menu
Normal file
408
reaction/uifiles/main.menu
Normal file
|
@ -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
|
||||
}
|
||||
|
||||
}
|
362
reaction/uifiles/main2.menu
Normal file
|
@ -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
|
||||
}
|
||||
|
||||
}
|
347
reaction/uifiles/menudef.h
Normal file
|
@ -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
|
32
reaction/uifiles/menus.txt
Normal file
|
@ -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" }
|
||||
|
||||
}
|
674
reaction/uifiles/min_hud.menu
Normal file
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
264
reaction/uifiles/mod.menu
Normal file
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
944
reaction/uifiles/options.menu
Normal file
|
@ -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
|
||||
}
|
||||
|
||||
}
|
89
reaction/uifiles/password.menu
Normal file
|
@ -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 }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
285
reaction/uifiles/player.menu
Normal file
|
@ -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
|
||||
}
|
||||
|
||||
}
|
94
reaction/uifiles/quit.menu
Normal file
|
@ -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 }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
107
reaction/uifiles/serverinfo.menu
Normal file
|
@ -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" }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
494
reaction/uifiles/setup.menu
Normal file
|
@ -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 }
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
121
reaction/uifiles/specify.menu
Normal file
|
@ -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 }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
1182
reaction/uifiles/system.menu
Normal file
194
reaction/uifiles/vid_restart.menu
Normal file
|
@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|