Update of in-game menu

This commit is contained in:
Petr Bartos 2022-03-12 23:07:39 +01:00
parent 5f751e542b
commit f998fd17d7
6 changed files with 1805 additions and 0 deletions

View file

@ -0,0 +1,382 @@
#include "ui/menudef.h"
{
assetGlobalDef {
font "fonts/font" 16 // font
smallFont "fonts/smallfont" 12 // font
bigFont "fonts/bigfont" 20 // font
cursor "ui/assets/3_cursor3" // 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
}
\\ INGAME MENU \\
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 480
focusColor 1 .75 0 1
disableColor .5 .5 .5 1
itemDef {
name "ingameRect"
visible 1
rect 0 0 620 26
style 0
border 1
bordercolor .5 .5 .5 1
forecolor 1 1 1 1
backcolor 0 0 .75 .5
visible 1
decoration
}
itemdef
{
name about
text "About"
rect 5 0 53 30
type 1
style WINDOW_STYLE_FILLED
background "ui/assets/button_back.tga"
textalign 1
textalignx 27
textaligny 22
textscale .25
forecolor 1 1 1 1
backcolor .0 .17 .0 1
visible 1
action { open ingame_about }
mouseEnter { setitemcolor about backcolor .1 .37 .1 1 }
mouseExit { setitemcolor about backcolor .0 .17 .0 1 }
}
itemdef
{
name aboutframe
style 3
rect 0 0 58 32
background "ui/assets/ingameframea.tga"
visible 1
decoration
}
itemDef {
name join
text "Join"
type 1
style WINDOW_STYLE_FILLED
background "ui/assets/button_back.tga"
cvarTest "ui_singleplayeractive"
disableCvar { "1" }
rect 58 0 58 30
textalign 1
textalignx 29
textaligny 22
textscale .25
forecolor 1 1 1 1
backcolor 0 .17 0 1
visible 1
action { open ingame_join }
mouseEnter { setitemcolor join backcolor .1 .37 .1 1 }
mouseExit { setitemcolor join backcolor 0 .17 0 1 }
}
itemdef
{
name joinframe
style 3
rect 58 0 58 32
background "ui/assets/ingameframe.tga"
visible 1
decoration
}
itemDef {
name orders
text "Orders"
type 1
style WINDOW_STYLE_FILLED
background "ui/assets/button_back.tga"
rect 116 0 58 30
textalign 1
textalignx 29
textaligny 22
textscale .25
cvarTest "g_gametype"
disableCvar { "0" ; "1" ; "2" ; "3" ; "8" }
visible 1
forecolor 1 1 1 1
backcolor 0 .17 0 1
action { open ingame_orders }
mouseEnter { setitemcolor orders backcolor .1 .37 .1 1 }
mouseExit { setitemcolor orders backcolor 0 .17 0 1 }
}
itemdef
{
name ordersframe
style 3
rect 116 0 58 32
background "ui/assets/ingameframe.tga"
visible 1
decoration
}
itemDef {
name addBot
text "Add Bot"
type 1
style WINDOW_STYLE_FILLED
background "ui/assets/button_back.tga"
rect 174 0 58 30
textalign 1
textalignx 29
textaligny 22
textscale .25
cvarTest "ui_singleplayeractive"
disableCvar { "1" }
forecolor 1 1 1 1
backcolor 0 .17 0 1
visible 1
action { open ingame_addbot }
mouseEnter { setitemcolor addBot backcolor .1 .37 .1 1 }
mouseExit { setitemcolor addBot backcolor 0 .17 0 1 }
}
itemdef
{
name addBotframe
style 3
rect 174 0 58 32
background "ui/assets/ingameframe.tga"
visible 1
decoration
}
itemDef {
name player
text "Player"
type 1
style WINDOW_STYLE_FILLED
background "ui/assets/button_back.tga"
rect 232 0 58 30
textalign 1
textalignx 29
textaligny 22
textscale .25
forecolor 1 1 1 1
backcolor 0 .17 0 1
visible 1
action { open ingame_player }
mouseEnter { setitemcolor player backcolor .1 .37 .1 1 }
mouseExit { setitemcolor player backcolor 0 .17 0 1 }
}
itemdef
{
name playerframe
style 3
rect 232 0 58 32
textalign 1
background "ui/assets/ingameframe.tga"
visible 1
decoration
}
itemDef {
name controls3
text "Controls"
type 1
style WINDOW_STYLE_FILLED
background "ui/assets/button_back.tga"
rect 290 0 58 30
textalign 1
textalignx 29
textaligny 22
textscale .25
forecolor 1 1 1 1
backcolor 0 .17 0 1
visible 1
action { open ingame_controls3 }
mouseEnter { setitemcolor controls3 backcolor .1 .37 .1 1 }
mouseExit { setitemcolor controls3 backcolor 0 .17 0 1 }
}
itemdef
{
name controlsframe
style 3
rect 290 0 58 32
textalign 1
background "ui/assets/ingameframe.tga"
visible 1
decoration
}
itemDef {
name options
text "Options"
type 1
style WINDOW_STYLE_FILLED
background "ui/assets/button_back.tga"
rect 348 0 58 30
textalign 1
textalignx 29
textaligny 22
textscale .25
forecolor 1 1 1 1
backcolor 0 .17 0 1
visible 1
action { open ingame_options }
mouseEnter { setitemcolor options backcolor .1 .37 .1 1 }
mouseExit { setitemcolor options backcolor 0 .17 0 1 }
}
itemdef
{
name optionsframe
style 3
rect 348 0 58 32
textalign 1
background "ui/assets/ingameframe.tga"
visible 1
decoration
}
itemDef {
name system
text "System"
type 1
style WINDOW_STYLE_FILLED
background "ui/assets/button_back.tga"
rect 406 0 58 30
textalign 1
textalignx 29
textaligny 22
textscale .25
forecolor 1 1 1 1
backcolor 0 .17 0 1
visible 1
action { open ingame_system }
mouseEnter { setitemcolor system backcolor .1 .37 .1 1 }
mouseExit { setitemcolor system backcolor 0 .17 0 1 }
}
itemdef
{
name systemframe
style 3
rect 406 0 58 32
textalign 1
background "ui/assets/ingameframe.tga"
visible 1
decoration
}
itemDef {
name vote
text "Vote"
type 1
style WINDOW_STYLE_FILLED
background "ui/assets/button_back.tga"
cvarTest "ui_singleplayeractive"
disableCvar { "1" }
rect 464 0 58 30
textalign 1
textalignx 29
textaligny 22
textscale .25
forecolor 1 1 1 1
backcolor 0 .17 0 1
visible 1
action { open ingame_vote }
mouseEnter { setitemcolor vote backcolor .1 .37 .1 1 }
mouseExit { setitemcolor vote backcolor 0 .17 0 1 }
}
itemdef
{
name voteframe
style 3
rect 464 0 58 32
textalign 1
background "ui/assets/ingameframe.tga"
visible 1
decoration
}
itemDef {
name callvote
text "CallVote"
type 1
style WINDOW_STYLE_FILLED
background "ui/assets/button_back.tga"
cvarTest "ui_singleplayeractive"
disableCvar { "1" }
rect 522 0 58 30
textalign 1
textalignx 29
textaligny 22
textscale .25
forecolor 1 1 1 1
backcolor 0 .17 0 1
visible 1
action { open ingame_callvote }
mouseEnter { setitemcolor callvote backcolor .1 .37 .1 1 }
mouseExit { setitemcolor callvote backcolor 0 .17 0 1 }
}
itemdef
{
name callvoteframe
style 3
rect 522 0 58 32
textalign 1
background "ui/assets/ingameframe.tga"
visible 1
decoration
}
itemDef {
name leave
text "Exit"
type 1
style WINDOW_STYLE_FILLED
background "ui/assets/button_back.tga"
rect 580 0 58 30
textalign 1
textalignx 29
textaligny 22
textscale .25
forecolor 1 1 1 1
backcolor 0 .17 0 1
visible 1
action { open ingame_leave }
mouseEnter { setitemcolor leave backcolor .1 .37 .1 1 }
mouseExit { setitemcolor leave backcolor 0 .17 0 1 }
}
itemdef
{
name leave
style 3
rect 580 0 58 32
textalign 1
background "ui/assets/ingameframe.tga"
visible 1
decoration
}
}
}

View file

@ -5,6 +5,7 @@
loadMenu { "ui/ingame_vote.menu" }
loadMenu { "ui/ingame_about.menu" }
loadMenu { "ui/ingame_controls.menu" }
loadMenu { "ui/ingame_controls3.menu" }
loadMenu { "ui/ingame_join.menu" }
loadMenu { "ui/ingame_options.menu" }
loadMenu { "ui/ingame_system.menu" }

View file

@ -0,0 +1,387 @@
#include "ui/menudef.h"
{
\\ SETUP MENU \\
menuDef {
name "ingame_controls3"
visible 0
fullscreen 0
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
rect 125 30 370 375
focusColor 1 .75 0 1
style 1
border 1
disableColor .5 .5 .5 0
itemDef {
name window
rect 10 15 360 360
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 64 10 92 8
style 3
background "ui/assets/ingametop.tga"
visible 1
decoration
}
itemDef {
name window
rect 224 10 92 8
style 3
background "ui/assets/ingametop.tga"
visible 1
decoration
}
itemDef {
name window
rect 317 10 64 64
style 3
background "ui/assets/ingamerightcorner.tga"
visible 1
decoration
}
itemDef {
name window
rect 154 0 73 16
style 3
background "ui/assets/ingameconnection.tga"
visible 1
decoration
}
itemDef {
name window
rect 0 314 64 64
style 3
background "ui/assets/ingameleftcornerb.tga"
visible 1
decoration
}
itemDef {
name window
rect 317 314 64 64
style 3
background "ui/assets/ingamerightcornerb.tga"
visible 1
decoration
}
itemDef {
name window
rect 0 64 16 84
style 3
background "ui/assets/ingameleft.tga"
visible 1
decoration
}
itemDef {
name window
rect 0 148 16 84
style 3
background "ui/assets/ingameleft.tga"
visible 1
decoration
}
itemDef {
name window
rect 0 232 16 84
style 3
background "ui/assets/ingameleft.tga"
visible 1
decoration
}
itemDef {
name window
rect 365 64 16 84
style 3
background "ui/assets/ingameright.tga"
visible 1
decoration
}
itemDef {
name window
rect 365 148 16 84
style 3
background "ui/assets/ingameright.tga"
visible 1
decoration
}
itemDef {
name window
rect 365 232 16 84
style 3
background "ui/assets/ingameright.tga"
visible 1
decoration
}
itemDef {
name window
rect 64 370 144 8
style 3
background "ui/assets/ingamebottom.tga"
visible 1
decoration
}
itemDef {
name window
rect 208 370 144 8
style 3
background "ui/assets/ingamebottom.tga"
visible 1
decoration
}
itemDef {
name controls3
group grpControls3
type ITEM_TYPE_YESNO
text "Autoswitch Weapons:"
cvar "cg_autoswitch"
rect 30 20 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name controls3
group grpControls3
type ITEM_TYPE_YESNO
text "Railgun Scope:"
cvar "vr_weaponScope"
rect 30 40 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name controls3
group grpControls3
type ITEM_TYPE_YESNO
text "Two-Handed Weapons:"
cvar "vr_twoHandedWeapons"
rect 30 60 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name controls3
group grpControls3
type ITEM_TYPE_MULTI
text "Direction Mode:"
cvar "vr_directionMode"
cvarFloatList { "HMD (Default)" 0 "Off-hand Controller" 1 }
rect 30 80 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name controls3
group grpControls3
text "Turning Mode:"
cvar "vr_snapturn"
cvarFloatList { "Smooth Turning" 0 "45 Degrees" 45 "90 Degrees" 90 }
rect 30 100 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name controls3
group grpControls3
type ITEM_TYPE_YESNO
text "Right-Handed:"
cvar "vr_righthanded"
rect 30 120 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name controls3
group grpControls3
type ITEM_TYPE_SLIDER
text "Weapon Pitch:"
cvarfloat "vr_weaponPitch" 5 -25 5
rect 30 140 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name controls3
group grpControls3
type ITEM_TYPE_MULTI
text "Weapon Selector Mode:"
cvar "vr_weaponSelectorMode"
cvarFloatList { "Controller Weapon Selector" 0 "HMD Weapon Wheel" 1 "Alt-Key Bindings" 2 "Thumbstick Forward/Back" 3 }
rect 30 160 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name controls3
group grpControls3
style 1
text "Comfort Options"
rect 100 195 100 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name controls3
group grpControls3
type ITEM_TYPE_SLIDER
text "Comfort Vignette:"
cvarfloat "vr_comfortVignette" 0.2 0 1
rect 30 220 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name controls3
group grpControls3
type ITEM_TYPE_SLIDER
text "Height Adjust:"
cvarfloat "vr_heightAdjust" 0.2 0 1
rect 30 240 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name controls3
group grpControls3
type ITEM_TYPE_YESNO
text "Roll When Hit:"
cvar "vr_rollWhenHit"
rect 30 260 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name controls3
group grpControls3
type ITEM_TYPE_SLIDER
text "Haptic Intensity:"
cvarfloat "vr_hudYOffset" 0.2 0 1
rect 30 280 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name controls3
group grpControls3
type ITEM_TYPE_MULTI
text "HUD Depth:"
cvar "vr_hudDepth"
cvarFloatList { "Very Close" 0 "Close" 1 "Middle" 2 "Further" 3 "Far" 4 "Distant" 5 }
rect 30 300 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name controls3
group grpControls3
type ITEM_TYPE_SLIDER
text "HUD Y Offset:"
cvarfloat "vr_hudYOffset" 20 -200 200
rect 30 320 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
}
}

View file

@ -0,0 +1,448 @@
#include "ui/menudef.h"
{
\\ SETUP MENU \\
menuDef {
name "ingame_options"
visible 0
fullscreen 0
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
rect 225 30 290 375
focusColor 1 .75 0 1
style 1
border 1
disableColor .5 .5 .5 0
itemDef {
name window
rect 10 15 280 360
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 64 10 52 8
style 3
background "ui/assets/ingametop.tga"
visible 1
decoration
}
itemDef {
name window
rect 184 10 52 8
style 3
background "ui/assets/ingametop.tga"
visible 1
decoration
}
itemDef {
name window
rect 237 10 64 64
style 3
background "ui/assets/ingamerightcorner.tga"
visible 1
decoration
}
itemDef {
name window
rect 114 0 73 16
style 3
background "ui/assets/ingameconnection.tga"
visible 1
decoration
}
itemDef {
name window
rect 0 314 64 64
style 3
background "ui/assets/ingameleftcornerb.tga"
visible 1
decoration
}
itemDef {
name window
rect 237 314 64 64
style 3
background "ui/assets/ingamerightcornerb.tga"
visible 1
decoration
}
itemDef {
name window
rect 0 64 16 84
style 3
background "ui/assets/ingameleft.tga"
visible 1
decoration
}
itemDef {
name window
rect 0 148 16 84
style 3
background "ui/assets/ingameleft.tga"
visible 1
decoration
}
itemDef {
name window
rect 0 232 16 84
style 3
background "ui/assets/ingameleft.tga"
visible 1
decoration
}
itemDef {
name window
rect 285 64 16 84
style 3
background "ui/assets/ingameright.tga"
visible 1
decoration
}
itemDef {
name window
rect 285 148 16 84
style 3
background "ui/assets/ingameright.tga"
visible 1
decoration
}
itemDef {
name window
rect 285 232 16 84
style 3
background "ui/assets/ingameright.tga"
visible 1
decoration
}
itemDef {
name window
rect 64 370 104 8
style 3
background "ui/assets/ingamebottom.tga"
visible 1
decoration
}
itemDef {
name window
rect 168 370 104 8
style 3
background "ui/assets/ingamebottom.tga"
visible 1
decoration
}
itemDef {
name options
group grpOptions
text "Crosshair:"
ownerdraw UI_CROSSHAIR
rect 173 20 20 17
textalign ITEM_ALIGN_RIGHT
textalignx 0
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name options
group grpOptions
type ITEM_TYPE_YESNO
text "Laser Sight:"
cvar "vr_lasersight"
rect 30 37 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name options
group grpOptions
type ITEM_TYPE_YESNO
text "Simple Items (World):"
cvar "cg_simpleItems"
rect 30 54 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name options
group grpOptions
type ITEM_TYPE_YESNO
text "Simple Items (Holster):"
cvar "cg_weaponSelectorSimple2DIcons"
rect 30 71 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name options
group grpOptions
type ITEM_TYPE_YESNO
text "Show Item In Hand:"
cvar "vr_showItemInHand"
rect 30 88 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name options
group grpOptions
type ITEM_TYPE_YESNO
text "Marks On Walls:"
cvar "cg_marks"
rect 30 105 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name options
group grpOptions
type ITEM_TYPE_YESNO
text "Show Floating Scores:"
cvar "cg_scorePlums"
rect 30 122 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name options
group grpOptions
text "Ejecting Brass:"
type ITEM_TYPE_MULTI
cvar "cg_brassTime"
cvarFloatList { "High" 2500 "Med" 1250 "Off" 0 }
rect 30 139 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name options
group grpOptions
type ITEM_TYPE_YESNO
text "Identify Target:"
cvar "cg_drawCrosshairNames"
rect 30 156 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name options
group grpOptions
type ITEM_TYPE_YESNO
text "Low Quality Sky:"
cvar "r_fastsky"
rect 30 173 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name options
group grpOptions
type ITEM_TYPE_YESNO
text "Force Player Models:"
cvar "cg_forceModel"
rect 30 190 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name options
group grpOptions
type ITEM_TYPE_YESNO
text "Draw Team Overlay:"
cvar "cg_drawTeamOverlay"
rect 30 207 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name options
group grpOptions
type ITEM_TYPE_YESNO
text "Show Time:"
cvar "cg_drawTimer"
rect 30 224 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name options
group grpOptions
type ITEM_TYPE_YESNO
text "Taunts Off:"
cvar "cg_noTaunt"
rect 30 241 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name options
group grpOptions
type ITEM_TYPE_YESNO
text "In Game Video:"
cvar "r_inGameVideo"
rect 30 258 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name options
group grpOptions
type ITEM_TYPE_MULTI
text "Statusbar:"
cvar "cg_hudfiles"
cvarStrList { Normal "ui/hud.txt" Small "ui/hud2.txt" }
rect 30 275 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name options
group grpOptions
type ITEM_TYPE_YESNO
text "Blood:"
cvar "com_blood"
rect 30 292 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
itemDef {
name options
group grpOptions
type ITEM_TYPE_YESNO
text "Gibs:"
cvar "cg_gibs"
rect 30 309 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
action { exec "loadhud" }
}
itemDef {
name options
group grpOptions
type ITEM_TYPE_YESNO
text "Extra Gibs (Perf. Hit):"
cvar "cg_megagibs"
rect 30 326 200 20
textalign ITEM_ALIGN_RIGHT
textalignx 143
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 1
}
}
}

View file

@ -0,0 +1,587 @@
#include "ui/menudef.h"
{
\\ SYSTEM MENU \\
menuDef {
name "ingame_system"
visible 0
fullscreen 0
outOfBoundsClick // this closes the window if it gets a click out of the rectangle
rect 298 30 276 325
focusColor 1 .75 0 1
style 1
border 1
onopen { hide grpsystem ; show graphics }
itemDef {
name window
rect 10 15 256 310
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 64 10 64 8
style 3
background "ui/assets/ingametop.tga"
visible 1
decoration
}
itemDef {
name window
rect 167 10 64 8
style 3
background "ui/assets/ingametop.tga"
visible 1
decoration
}
itemDef {
name window
rect 213 10 64 64
style 3
background "ui/assets/ingamerightcorner.tga"
visible 1
decoration
}
itemDef {
name window
rect 103 0 64 16
style 3
background "ui/assets/ingameconnection.tga"
visible 1
decoration
}
itemDef {
name window
rect 0 264 64 64
style 3
background "ui/assets/ingameleftcornerb.tga"
visible 1
decoration
}
itemDef {
name window
rect 213 264 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 0 192 16 74
style 3
background "ui/assets/ingameleft.tga"
visible 1
decoration
}
itemDef {
name window
rect 261 64 16 64
style 3
background "ui/assets/ingameright.tga"
visible 1
decoration
}
itemDef {
name window
rect 261 128 16 64
style 3
background "ui/assets/ingameright.tga"
visible 1
decoration
}
itemDef {
name window
rect 261 192 16 74
style 3
background "ui/assets/ingameright.tga"
visible 1
decoration
}
itemDef {
name window
rect 64 320 74 8
style 3
background "ui/assets/ingamebottom.tga"
visible 1
decoration
}
itemDef {
name window
rect 138 320 74 8
style 3
background "ui/assets/ingamebottom.tga"
visible 1
decoration
}
itemDef {
name ctr_graphics
text "Graphics"
type 1
textscale .25
group grpControlbutton
style WINDOW_STYLE_FILLED
background "ui/assets/button_back.tga"
rect 30 25 65 20
textalign 1
textalignx 32
textaligny 16
forecolor 1 1 1 1
backcolor .37 .1 .1 1
visible 1
action { hide grpSystem ; show graphics }
mouseEnter { setitemcolor ctr_graphics backcolor .1 .37 .1 1 }
mouseExit { setitemcolor ctr_graphics backcolor .37 .1 .1 1 }
}
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 0 50 256 20
textalign ITEM_ALIGN_RIGHT
textalignx 133
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 0
action { uiScript update "ui_glCustom" }
}
itemDef {
name graphics
group grpSystem
type ITEM_TYPE_MULTI
text "Refresh Rate:"
cvar "vr_refreshrate"
cvarFloatList { "60" 0 "72 (Default)" 1 "80" 2 "90" 3 }
rect 0 70 256 20
textalign ITEM_ALIGN_RIGHT
textalignx 133
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 0
decoration
action { uiScript update "vr_refreshrate" }
}
itemDef {
name graphics
group grpSystem
type ITEM_TYPE_YESNO
text "Sync Every Frame:"
cvar "r_finish"
rect 0 90 256 20
textalign ITEM_ALIGN_RIGHT
textalignx 133
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 0
action { uiScript glCustom }
}
itemDef {
name graphics
group grpSystem
type ITEM_TYPE_MULTI
text "Color Depth:"
cvar "r_colorbits"
cvarFloatList { "Desktop Default" 0 "16-bit" 16 "32-bit" 32 }
rect 0 110 256 20
textalign ITEM_ALIGN_RIGHT
textalignx 133
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 0
action { uiScript glCustom ; uiScript update "r_colorbits" }
}
itemDef {
name graphics
group grpSystem
type ITEM_TYPE_MULTI
text "Lighting:"
cvar "r_vertexlight"
cvarFloatList { "Light Map (high)" 0 "Vertex (low)" 1 }
rect 0 130 256 20
textalign ITEM_ALIGN_RIGHT
textalignx 133
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 0
action { uiScript glCustom }
}
itemDef {
name graphics
group grpSystem
type ITEM_TYPE_YESNO
text "Dynamic Lights:"
cvar "r_dynamiclight"
rect 0 150 256 20
textalign ITEM_ALIGN_RIGHT
textalignx 133
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 0
}
itemDef {
name graphics
group grpSystem
type ITEM_TYPE_MULTI
text "Geometric Detail:"
cvar "r_lodbias"
cvarFloatList { "High" 0 "Medium" 1 "Low" 2 }
rect 0 170 256 20
textalign ITEM_ALIGN_RIGHT
textalignx 133
textaligny 17
textscale .25
forecolor 1 1 1 1
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 { "Low" 2 "Normal" 1 "High" 0 }
rect 0 190 256 20
textalign ITEM_ALIGN_RIGHT
textalignx 133
textaligny 17
textscale .25
forecolor 1 1 1 1
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 0 210 256 20
textalign ITEM_ALIGN_RIGHT
textalignx 133
textaligny 17
textscale .25
forecolor 1 1 1 1
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 0 230 256 20
textalign ITEM_ALIGN_RIGHT
textalignx 133
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 0
action { uiScript glCustom }
}
itemDef {
name graphics
group grpSystem
type ITEM_TYPE_YESNO
text "Compress Textures:"
cvar "r_ext_compressed_textures"
rect 0 250 256 20
textalign ITEM_ALIGN_RIGHT
textalignx 133
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 0
action { uiScript glCustom }
}
//here
itemDef {
name ctr_driver
text "Driver Info"
type 1
textscale .25
group grpControlbutton
style WINDOW_STYLE_FILLED
background "ui/assets/button_back.tga"
rect 105 25 65 20
textalign 1
textalignx 32
textaligny 16
forecolor 1 1 1 1
backcolor .37 .1 .1 1
visible 1
action { hide grpSystem ; show driver }
mouseEnter { setitemcolor ctr_driver backcolor .1 .37 .1 1 }
mouseExit { setitemcolor ctr_driver backcolor .37 .1 .1 1 }
}
itemDef {
name driver
group grpSystem
rect 15 55 230 230
ownerdraw UI_GLINFO
textalign 1
textscale .15
textalignx 0
textaligny 17
forecolor 1 1 1 1
visible 0
decoration
}
itemDef {
name ctr_other
text "Other"
type 1
textscale .25
group grpControlbutton
style WINDOW_STYLE_FILLED
background "ui/assets/button_back.tga"
rect 180 25 65 20
textalign 1
textalignx 32
textaligny 16
forecolor 1 1 1 1
backcolor .37 .1 .1 1
visible 1
action { hide grpSystem ; show other }
mouseEnter { setitemcolor ctr_other backcolor .1 .37 .1 1 }
mouseExit { setitemcolor ctr_other backcolor .37 .1 .1 1 }
}
itemDef {
name other
group grpSystem
style 1
text "Sound"
rect 0 45 128 20
textalign ITEM_ALIGN_CENTER
textalignx 128
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 0
decoration
}
itemDef {
name other
group grpSystem
type ITEM_TYPE_SLIDER
text "Effects Volume:"
cvarfloat "s_volume" 0.7 0 1
rect 0 65 256 20
textalign ITEM_ALIGN_RIGHT
textalignx 128
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 0
}
itemDef {
name other
group grpSystem
type ITEM_TYPE_SLIDER
text "Music Volume:"
cvarfloat "s_musicvolume" 0.25 0 1
rect 0 85 256 20
textalign ITEM_ALIGN_RIGHT
textalignx 128
textaligny 17
textscale .25
forecolor 1 1 1 1
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 0 105 256 20
textalign ITEM_ALIGN_RIGHT
textalignx 128
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 0
}
itemDef {
name other
group grpSystem
type ITEM_TYPE_YESNO
text "Doppler Sound:"
cvar "s_doppler"
rect 0 125 256 20
textalign ITEM_ALIGN_RIGHT
textalignx 128
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 0
}
itemDef {
name other
group grpSystem
style 1
text "Network"
rect 0 165 128 20
textalign ITEM_ALIGN_CENTER
textalignx 128
textaligny 17
textscale .25
forecolor 1 1 1 1
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 0 185 256 20
textalign ITEM_ALIGN_RIGHT
textalignx 128
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 0
}
itemDef {
name other
group grpSystem
type ITEM_TYPE_YESNO
text "Auto-Download:"
cvar "cl_allowDownload"
rect 0 205 256 20
textalign ITEM_ALIGN_RIGHT
textalignx 128
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 0
}
itemDef {
name other
group grpSystem
type ITEM_TYPE_YESNO
text "Send Roll Angle:"
cvar "vr_sendRollToServer"
rect 0 225 256 20
textalign ITEM_ALIGN_RIGHT
textalignx 128
textaligny 17
textscale .25
forecolor 1 1 1 1
visible 0
}
itemDef {
name graphics
text "Apply"
type 1
textscale .25
group grpsystem
style WINDOW_STYLE_FILLED
background "ui/assets/button_back.tga"
rect 101 295 75 20
textalign 1
textalignx 37
textaligny 15
forecolor 1 1 1 1
backcolor .37 .1 .1 1
visible 0
action { exec "vid_restart" }
mouseEnter { setcolor backcolor .1 .37 .1 1 }
mouseExit { setcolor backcolor .37 .1 .1 1 }
}
}
}