mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-22 12:11:24 +00:00
4597b03873
Opens in Android Studio but haven't even tried to build it yet (it won't.. I know that much!)
597 lines
12 KiB
Text
597 lines
12 KiB
Text
#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 100 125 443 340
|
|
focusColor 1 .75 0 1
|
|
style 1
|
|
border 1
|
|
|
|
onopen { hide grpsystem ; hide grpapplysystem ; show graphics ; show graphicsapply }
|
|
|
|
|
|
itemDef {
|
|
name window
|
|
group ingamebox
|
|
// rect 0 46 300 340
|
|
rect 0 2 443 300
|
|
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 window
|
|
group ingamebox2
|
|
rect 2 4 439 20
|
|
style WINDOW_STYLE_FILLED
|
|
border 1
|
|
bordercolor .1 .1 .1 .2
|
|
forecolor 1 1 1 1
|
|
backcolor .3 0.5 0.2 .25
|
|
visible 1
|
|
decoration
|
|
}
|
|
|
|
|
|
|
|
itemDef {
|
|
name ctr_graphics
|
|
text "Graphics"
|
|
type 1
|
|
textscale .23
|
|
group grpControlbutton
|
|
background "ui/assets/button_back.tga"
|
|
rect 56 10 100 12
|
|
textalign 1
|
|
textalignx 50
|
|
textaligny 10
|
|
forecolor 1 1 1 1
|
|
visible 1
|
|
action { hide grpSystem ; show graphics ; show graphicsapply }
|
|
mouseEnter { setitemcolor ctr_graphics backcolor .1 .37 .1 1 }
|
|
mouseExit { setitemcolor ctr_graphics backcolor .37 .1 .1 1 }
|
|
}
|
|
|
|
itemDef {
|
|
name graphics
|
|
text "Set Recommended"
|
|
type 1
|
|
textscale .25
|
|
group grpsystem
|
|
style WINDOW_STYLE_FILLED
|
|
textalign ITEM_ALIGN_CENTER
|
|
rect 82 30 290 12
|
|
textalign 1
|
|
textalignx 145
|
|
textaligny 12
|
|
forecolor 1 1 1 1
|
|
backcolor 1 1 1 .07
|
|
visible 1
|
|
action { play "sound/misc/kcaction.wav" ;
|
|
open in_rec_restart_popmenu ; hide graphics ; hide graphicsapply}
|
|
}
|
|
|
|
|
|
|
|
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 }
|
|
|
|
cvarTest "ui_glCustom"
|
|
hideCvar { "999" } // 999 is 'recommended'
|
|
|
|
rect 82 55 290 12
|
|
textalign ITEM_ALIGN_RIGHT
|
|
textalignx 142
|
|
textaligny 10
|
|
textscale .23
|
|
style WINDOW_STYLE_FILLED
|
|
backcolor 1 1 1 .07
|
|
forecolor 1 1 1 1
|
|
visible 0
|
|
action {
|
|
uiScript update "ui_glCustom" }
|
|
}
|
|
|
|
|
|
itemDef {
|
|
name graphics
|
|
group grpSystem
|
|
text "Quality: Recommended"
|
|
type ITEM_TYPE_BUTTON
|
|
|
|
cvarTest "ui_glCustom"
|
|
showCvar { "999" } // 999 is 'recommended'
|
|
|
|
rect 82 55 290 12
|
|
textalign ITEM_ALIGN_CENTER
|
|
textalignx 162
|
|
textaligny 10
|
|
textscale .22
|
|
style WINDOW_STYLE_FILLED
|
|
backcolor 1 1 1 .07
|
|
forecolor 1 1 1 1
|
|
visible 0
|
|
action {
|
|
setcvar ui_glCustom 0; // 'recommended'
|
|
uiScript update "ui_glCustom" }
|
|
}
|
|
|
|
itemDef {
|
|
name graphics
|
|
group grpSystem
|
|
type ITEM_TYPE_YESNO
|
|
text "GL Extensions:"
|
|
cvar "r_allowExtensions"
|
|
rect 82 70 290 12
|
|
textalign ITEM_ALIGN_RIGHT
|
|
textalignx 142
|
|
textaligny 10
|
|
textscale .23
|
|
style WINDOW_STYLE_FILLED
|
|
backcolor 1 1 1 .07
|
|
forecolor 1 1 1 1
|
|
visible 0
|
|
action { uiScript glCustom }
|
|
}
|
|
|
|
itemDef {
|
|
name graphics
|
|
group grpSystem
|
|
type ITEM_TYPE_MULTI
|
|
text "Anisotropic Filter Level:"
|
|
cvar "r_ext_texture_filter_anisotropic"
|
|
cvarFloatList { "1" 1 "2" 2 "4" 4 "8" 8 "16" 16 }
|
|
rect 82 85 290 12
|
|
textalign ITEM_ALIGN_RIGHT
|
|
textalignx 142
|
|
textaligny 10
|
|
textscale .22
|
|
style WINDOW_STYLE_FILLED
|
|
backcolor 1 1 1 .07
|
|
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 { "Default" 0 "16 bit" 16 "32 bit" 32 }
|
|
rect 82 100 290 12
|
|
textalign ITEM_ALIGN_RIGHT
|
|
textalignx 142
|
|
textaligny 10
|
|
textscale .23
|
|
style WINDOW_STYLE_FILLED
|
|
backcolor 1 1 1 .07
|
|
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 82 130 290 12
|
|
textalign ITEM_ALIGN_RIGHT
|
|
textalignx 142
|
|
textaligny 10
|
|
textscale .23
|
|
style WINDOW_STYLE_FILLED
|
|
backcolor 1 1 1 .07
|
|
forecolor 1 1 1 1
|
|
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 82 145 290 12
|
|
textalign ITEM_ALIGN_RIGHT
|
|
textalignx 142
|
|
textaligny 10
|
|
textscale .23
|
|
style WINDOW_STYLE_FILLED
|
|
backcolor 1 1 1 .07
|
|
forecolor 1 1 1 1
|
|
visible 0
|
|
action { uiScript glCustom ; uiScript update "r_lodbias" }
|
|
}
|
|
|
|
itemDef {
|
|
name graphics
|
|
group grpSystem
|
|
type ITEM_TYPE_MULTI
|
|
text "General Textures:"
|
|
cvar "r_picmip"
|
|
cvarFloatList { "Low" 2 "Normal" 1 "High" 0 }
|
|
rect 82 160 290 12
|
|
|
|
textalign ITEM_ALIGN_RIGHT
|
|
textalignx 142
|
|
textaligny 10
|
|
textscale .23
|
|
style WINDOW_STYLE_FILLED
|
|
backcolor 1 1 1 .07
|
|
forecolor 1 1 1 1
|
|
visible 0
|
|
action { uiScript glCustom }
|
|
}
|
|
|
|
itemDef {
|
|
name graphics
|
|
group grpSystem
|
|
type ITEM_TYPE_MULTI
|
|
text "Character Textures:"
|
|
cvar "r_picmip2"
|
|
cvarFloatList { "Low" 3 "Normal" 2 "High" 1 "Extra" 0 }
|
|
rect 82 175 290 12
|
|
textalign ITEM_ALIGN_RIGHT
|
|
textalignx 142
|
|
textaligny 10
|
|
textscale .23
|
|
style WINDOW_STYLE_FILLED
|
|
backcolor 1 1 1 .07
|
|
forecolor 1 1 1 1
|
|
visible 0
|
|
action { uiScript glCustom }
|
|
}
|
|
|
|
|
|
|
|
itemDef {
|
|
name graphics
|
|
group grpSystem
|
|
type ITEM_TYPE_MULTI
|
|
text "Texture Filter:"
|
|
cvar "r_textureMode"
|
|
cvarStrList { "No filter", "GL_NEAREST", "Bilinear (no mipmap)", "GL_LINEAR", "Bilinear", "GL_LINEAR_MIPMAP_NEAREST", "Trilinear", "GL_LINEAR_MIPMAP_LINEAR" }
|
|
rect 82 190 290 12
|
|
textalign ITEM_ALIGN_RIGHT
|
|
textalignx 142
|
|
textaligny 10
|
|
textscale .23
|
|
style WINDOW_STYLE_FILLED
|
|
backcolor 1 1 1 .07
|
|
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 82 205 290 12
|
|
textalign ITEM_ALIGN_RIGHT
|
|
textalignx 142
|
|
textaligny 10
|
|
textscale .23
|
|
style WINDOW_STYLE_FILLED
|
|
backcolor 1 1 1 .07
|
|
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 82 220 290 12
|
|
textalign ITEM_ALIGN_RIGHT
|
|
textalignx 142
|
|
textaligny 10
|
|
textscale .23
|
|
style WINDOW_STYLE_FILLED
|
|
backcolor 1 1 1 .07
|
|
forecolor 1 1 1 1
|
|
visible 0
|
|
action { uiScript glCustom }
|
|
}
|
|
|
|
itemDef {
|
|
cvarTest "r_ignorehwgamma"
|
|
showcvar { "1" }
|
|
|
|
name graphics
|
|
group grpSystem
|
|
type ITEM_TYPE_SLIDER
|
|
text "Brightness:"
|
|
cvarfloat "r_gamma" 1 0.5 3
|
|
rect 82 235 290 12
|
|
textalign ITEM_ALIGN_RIGHT
|
|
textalignx 142
|
|
textaligny 10
|
|
textscale .23
|
|
style WINDOW_STYLE_FILLED
|
|
backcolor 1 1 1 .07
|
|
forecolor 1 1 1 1
|
|
visible 0
|
|
action { uiScript glCustom }
|
|
}
|
|
|
|
//
|
|
// Nvidia
|
|
//
|
|
itemDef {
|
|
name graphics
|
|
group grpSystem
|
|
type ITEM_TYPE_YESNO
|
|
|
|
text "Nvidia Distance Fog:"
|
|
cvar "r_ext_NV_fog_dist"
|
|
|
|
// would be nice to be able to do an extension check from the menu
|
|
// extensionTest "GL_NV_fog_distance"
|
|
|
|
rect 82 250 290 12
|
|
textalign ITEM_ALIGN_RIGHT
|
|
textalignx 142
|
|
textaligny 10
|
|
textscale .23
|
|
style WINDOW_STYLE_FILLED
|
|
backcolor 1 1 1 .07
|
|
forecolor 1 1 1 1
|
|
visible 0
|
|
action { uiScript glCustom }
|
|
}
|
|
|
|
//
|
|
// ATI
|
|
//
|
|
itemDef {
|
|
name graphics
|
|
group grpSystem
|
|
type ITEM_TYPE_YESNO
|
|
|
|
text "Trueform:"
|
|
cvar "r_ext_ATI_pntriangles"
|
|
|
|
// would be nice to be able to do an extension check from the menu
|
|
// extensionTest "GL_ATIX_pn_triangles"
|
|
|
|
rect 82 265 290 12
|
|
textalign ITEM_ALIGN_RIGHT
|
|
textalignx 142
|
|
textaligny 10
|
|
textscale .23
|
|
style WINDOW_STYLE_FILLED
|
|
backcolor 1 1 1 .07
|
|
forecolor 1 1 1 1
|
|
visible 0
|
|
action { uiScript glCustom }
|
|
}
|
|
|
|
|
|
//cvar_t *r_ext_ATI_pntriangles;
|
|
//cvar_t *r_ati_truform_tess;
|
|
//cvar_t *r_ati_truform_mode;
|
|
|
|
|
|
itemDef {
|
|
name graphicsapply
|
|
text "Apply"
|
|
type 1
|
|
textscale .25
|
|
style WINDOW_STYLE_FILLED
|
|
group grpsystem
|
|
rect 181 280 100 20
|
|
textalign 1
|
|
textalignx 50
|
|
textaligny 15
|
|
forecolor 1 1 1 1
|
|
backcolor .1 .1 .1 .1
|
|
visible 1
|
|
border 1
|
|
bordercolor .5 .5 .5 .5
|
|
action { play "sound/misc/kcaction.wav" ;
|
|
open in_vid_restart_popmenu ; hide graphics ; hide graphicsapply }
|
|
mouseEnter { setitemcolor graphicsapply backcolor .3 .5 .2 .25 }
|
|
mouseExit { setitemcolor graphicsapply backcolor .1 .1 .1 .1 }
|
|
|
|
}
|
|
|
|
|
|
//here
|
|
|
|
itemDef {
|
|
name ctr_driver
|
|
text "Driver Info"
|
|
type 1
|
|
textscale .23
|
|
group grpControlbutton
|
|
rect 181 10 100 12
|
|
textalign 1
|
|
textalignx 50
|
|
textaligny 10
|
|
forecolor 1 1 1 1
|
|
backcolor .1 .1 .1 0
|
|
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 6 40 420 300
|
|
ownerdraw UI_GLINFO
|
|
textscale .14
|
|
forecolor 1 1 1 1
|
|
visible 0
|
|
decoration
|
|
}
|
|
|
|
itemDef {
|
|
name ctr_sound
|
|
text "Sound"
|
|
type 1
|
|
textscale .23
|
|
group grpControlbutton
|
|
rect 306 10 100 12
|
|
textalign 1
|
|
textalignx 50
|
|
textaligny 10
|
|
forecolor 1 1 1 1
|
|
backcolor .1 .1 .1 0
|
|
visible 1
|
|
action { hide grpSystem ; show sound }
|
|
mouseEnter { setitemcolor ctr_sound backcolor .1 .37 .1 1 }
|
|
mouseExit { setitemcolor ctr_sound backcolor .37 .1 .1 1 }
|
|
}
|
|
|
|
|
|
itemDef {
|
|
name sound
|
|
group grpSystem
|
|
type ITEM_TYPE_SLIDER
|
|
text "Effects Volume:"
|
|
cvarfloat "s_volume" 0.7 0 1
|
|
rect 82 50 290 12
|
|
textalign ITEM_ALIGN_RIGHT
|
|
textalignx 142
|
|
textaligny 10
|
|
textscale .23
|
|
style WINDOW_STYLE_FILLED
|
|
backcolor 1 1 1 .07
|
|
forecolor 1 1 1 1
|
|
visible 0
|
|
}
|
|
|
|
itemDef {
|
|
name sound
|
|
group grpSystem
|
|
type ITEM_TYPE_SLIDER
|
|
text "Music Volume:"
|
|
cvarfloat "s_musicvolume" 0.25 0 1
|
|
rect 82 80 290 12
|
|
textalign ITEM_ALIGN_RIGHT
|
|
textalignx 142
|
|
textaligny 10
|
|
textscale .23
|
|
style WINDOW_STYLE_FILLED
|
|
backcolor 1 1 1 .07
|
|
forecolor 1 1 1 1
|
|
visible 0
|
|
}
|
|
|
|
itemDef {
|
|
name sound
|
|
group grpSystem
|
|
type ITEM_TYPE_MULTI
|
|
text "Sound Quality:"
|
|
cvar "s_khz"
|
|
cvarFloatList { "22 khz (high)" 22 "11 khz (low)" 11 }
|
|
rect 82 110 290 12
|
|
textalign ITEM_ALIGN_RIGHT
|
|
textalignx 142
|
|
textaligny 10
|
|
textscale .23
|
|
style WINDOW_STYLE_FILLED
|
|
backcolor 1 1 1 .07
|
|
forecolor 1 1 1 1
|
|
visible 0
|
|
action { show applysystem }
|
|
}
|
|
|
|
|
|
// itemDef {
|
|
// name sound
|
|
// group grpSystem
|
|
// type ITEM_TYPE_YESNO
|
|
// text "Doppler Sound:"
|
|
// cvar "s_doppler"
|
|
// rect 82 140 290 12
|
|
// textalign ITEM_ALIGN_RIGHT
|
|
// textalignx 142
|
|
// textaligny 10
|
|
// textscale .23
|
|
// style WINDOW_STYLE_FILLED
|
|
// backcolor 1 1 1 .07
|
|
// forecolor 1 1 1 1
|
|
// visible 0
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
itemDef {
|
|
name applysystem
|
|
group grpapplySystem
|
|
text "Apply"
|
|
type 1
|
|
style WINDOW_STYLE_FILLED
|
|
textscale .25
|
|
rect 181 140 100 20
|
|
textalign 1
|
|
textalignx 50
|
|
textaligny 15
|
|
forecolor 1 1 1 1
|
|
backcolor .1 .1 .1 .1
|
|
visible 1
|
|
border 1
|
|
bordercolor .5 .5 .5 .5
|
|
action { play "sound/misc/kcaction.wav" ;
|
|
open in_snd_restart_popmenu ; hide sound ; hide applysystem }
|
|
mouseEnter { setitemcolor applysystem backcolor .3 .5 .2 .25 }
|
|
mouseExit { setitemcolor applysystem backcolor .1 .1 .1 .1 }
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|