reaction/uifiles/ingame_options.menu

825 lines
14 KiB
Text
Raw Normal View History

2002-07-24 15:30:51 +00:00
#include "ui/menudef.h"
2003-03-31 01:09:19 +00:00
#define SECCOLOR1 1 1 1 0
#define SECCOLOR2 1 1 1 .2
2002-07-24 15:30:51 +00:00
{
//--------------//
// GAME OPTIONS //
//--------------//
menuDef {
name "ingame_options"
visible 0
fullscreen 0
2009-03-18 19:49:03 +00:00
//outOfBoundsClick // this closes the window if it gets a click out of the rectangle
onOOBClick { close _self ; open ingame }
2002-07-24 15:30:51 +00:00
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
2003-03-31 01:09:19 +00:00
onOpen { play "sound/misc/menu1.wav" ; hide grpGame ; show page1 ;
setitemcolor grpSections backcolor SECCOLOR1;
timeFade sectionPage1 backColor SECCOLOR2 0 250 ;
setfocus sectionPage1 }
2002-07-24 15:30:51 +00:00
//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"
2003-03-31 01:09:19 +00:00
shortcutKey "S"
2002-07-24 15:30:51 +00:00
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"
2003-03-31 01:09:19 +00:00
shortcutKey "C"
2002-07-24 15:30:51 +00:00
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
2003-03-31 01:09:19 +00:00
text "Settings. 1"
shortcutKey "1"
2002-07-24 15:30:51 +00:00
type ITEM_TYPE_BUTTON
textscale .225
2003-03-31 01:09:19 +00:00
style WINDOW_STYLE_FILLED
backcolor SECCOLOR1
2002-07-24 15:30:51 +00:00
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
2003-03-31 01:09:19 +00:00
action { play "sound/misc/menu1.wav" ; hide grpGame ; show page1 ;
setitemcolor grpSections backcolor SECCOLOR1;
timeFade sectionPage1 backColor SECCOLOR2 0 250 }
2002-07-24 15:30:51 +00:00
}
itemDef {
name sectionPage2
group grpSections
2003-03-31 01:09:19 +00:00
text "Crosshair. 2"
shortcutKey "2"
2002-07-24 15:30:51 +00:00
type ITEM_TYPE_BUTTON
textscale .225
2003-03-31 01:09:19 +00:00
style WINDOW_STYLE_FILLED
backcolor SECCOLOR1
2002-07-24 15:30:51 +00:00
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
2003-03-31 01:09:19 +00:00
action { play "sound/misc/menu1.wav" ; hide grpGame ; show page2 ;
setitemcolor grpSections backcolor SECCOLOR1;timeFade sectionPage2 backColor SECCOLOR2 0 250 }
}
itemDef {
name sectionPage3
group grpSections
text "Models. 3"
shortcutKey "3"
type ITEM_TYPE_BUTTON
textscale .225
style WINDOW_STYLE_FILLED
backcolor SECCOLOR1
rect 0 120 96 16
textalign ITEM_ALIGN_RIGHT
textalignx 88
textaligny 12
textstyle ITEM_TEXTSTYLE_SHADOWED
border 1
bordersize 1
bordercolor Ig_Window_BorderColor
forecolor Ig_Sub_TextColor
visible 1
action { play "sound/misc/menu1.wav" ; hide grpGame ; show page3 ;
setitemcolor grpSections backcolor SECCOLOR1;
timeFade sectionPage3 backColor SECCOLOR2 0 250 ;
uiScript buildReplacementList }
2002-07-24 15:30:51 +00:00
}
//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 "
2012-03-17 18:27:12 +00:00
"Reaction in order to load the new "
2002-07-24 15:30:51 +00:00
"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
}
2003-03-31 01:09:19 +00:00
// Page 3 //
//Background
itemdef {
name page3
group grpGame
rect 95 55 114 128
2003-03-31 01:09:19 +00:00
style WINDOW_STYLE_SHADER
background "ui/assets/rq3-ingame-loadout"
border 0
2003-03-31 01:09:19 +00:00
bordersize 1
bordercolor Ig_Window_BorderColor
//backcolor .5 .5 .5 .4
decoration
visible 1
}
//Preview
itemdef {
name page3
group grpGame
//type ITEM_TYPE_MODEL
ownerdraw UI_RQ3_REPLACEMENTMODEL
rect 103 63 96 96
decoration
visible 1
}
2003-03-31 14:46:29 +00:00
//Prev model
itemDef {
name page3
group grpGame
2003-03-31 21:24:32 +00:00
shortcutkey ","
2003-03-31 14:46:29 +00:00
rect 107 108 16 16
style WINDOW_STYLE_SHADER
background "ui/assets/arrow_left_white"
type ITEM_TYPE_BUTTON
visible 1
forecolor 1 1 1 .3
onFocus { timefadeSelf forecolor 1 1 1 1 0 250 }
leaveFocus { timefadeSelf forecolor 1 1 1 .3 0 250 }
action { play "sound/misc/menu1.wav" ; uiScript nextReplacement "-1" }
}
//Next model
itemDef {
name page3
group grpGame
2003-03-31 21:24:32 +00:00
shortcutkey "."
2003-03-31 14:46:29 +00:00
rect 179 108 16 16
style WINDOW_STYLE_SHADER
background "ui/assets/arrow_right_white"
type ITEM_TYPE_BUTTON
visible 1
forecolor 1 1 1 .3
onFocus { timefadeSelf forecolor 1 1 1 1 0 250 }
leaveFocus { timefadeSelf forecolor 1 1 1 .3 0 250 }
action { play "sound/misc/menu1.wav" ; uiScript nextReplacement "1" }
}
2003-03-31 01:09:19 +00:00
// Text
//Name
itemDef {
name page3
group grpGame
style 1
ownerdraw UI_RQ3_REPLACEMENTNAME
rect 107 150 80 16
2003-03-31 01:09:19 +00:00
textalign ITEM_ALIGN_LEFT
textalignx 5
textaligny 12
textscale .18
forecolor 0 0 0 1
border 0
2003-03-31 01:09:19 +00:00
bordersize 1
bordercolor Ig_Window_BorderColor
visible 0
decoration
}
2003-03-31 14:46:29 +00:00
//Select button
itemdef {
name page3
group grpGame
style WINDOW_STYLE_SHADER
forecolor .5 .5 .5 1
rect 95 166 112 32
decoration
background "ui/assets/button.tga"
visible 0
}
2003-03-31 14:46:29 +00:00
itemDef {
name page3
group grpGame
text "^_S^_elect"
shortcutKey "S"
2003-03-31 14:46:29 +00:00
type ITEM_TYPE_BUTTON
textscale .225
style WINDOW_STYLE_FILLED
rect 103 174 96 16
textalign ITEM_ALIGN_CENTER
textalignx 48
textaligny 12
textstyle ITEM_TEXTSTYLE_SHADOWED
2003-03-31 14:46:29 +00:00
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 "selectReplacement" }
}
2003-03-31 01:09:19 +00:00
//Type
2003-03-31 14:46:29 +00:00
2003-03-31 01:09:19 +00:00
itemDef {
name page3
group grpGame
style 1
text "Replace:"
ownerdraw UI_RQ3_REPLACEMENTTYPE
2003-03-31 21:24:32 +00:00
rect 103 216 96 16
2003-03-31 01:09:19 +00:00
textalign ITEM_ALIGN_LEFT
textalignx 4
textaligny 14
textscale .2
forecolor Ig_Sub_TextColor
visible 0
action { play "sound/misc/menu1.wav" }
}
//Sub-Type
itemDef {
name page3
group grpGame
style 1
text "Type:"
ownerdraw UI_RQ3_REPLACEMENTSUBTYPE
2003-03-31 21:24:32 +00:00
rect 208 216 96 16
2003-03-31 01:09:19 +00:00
textalign ITEM_ALIGN_LEFT
textalignx 4
textaligny 14
textscale .2
forecolor Ig_Sub_TextColor
visible 0
action { play "sound/misc/menu1.wav" }
}
//Description
itemDef {
name page3
group grpGame
style 1
//text "Text goes here"
ownerdraw UI_RQ3_REPLACEMENTINFO
rect 208 64 156 96
textalign ITEM_ALIGN_LEFT
textalignx 0
textaligny 14
textscale .225
forecolor Ig_Sub_TextColor
visible 0
decoration
}
//Note
itemDef {
name page3
group grpGame
style 1
text "Note: pressing the apply button will restart "
2012-03-17 18:27:12 +00:00
"Reaction in order to load the new "
2003-03-31 01:09:19 +00:00
"models and skins"
autowrapped
rect 112 256 232 20
textalign ITEM_ALIGN_LEFT
textalignx 4
textaligny 14
textscale .225
forecolor Ig_Sub_TextColor
visible 0
decoration
}
//Apply button
itemDef {
name page3
group grpGame
text "Apply"
type ITEM_TYPE_BUTTON
textscale .225
style WINDOW_STYLE_FILLED
rect 284 304 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 }
}
2012-03-17 18:27:12 +00:00
}