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!)
339 lines
6 KiB
Text
339 lines
6 KiB
Text
#include "ui/menudef.h"
|
|
|
|
{
|
|
\\ SETUP MENU \\
|
|
|
|
menuDef {
|
|
name "ingame_controls"
|
|
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
|
|
onClose {
|
|
uiScript saveControls
|
|
}
|
|
onopen { hide grpControls ; show ingame_vr ; uiScript loadControls }
|
|
|
|
|
|
|
|
|
|
itemDef {
|
|
name window
|
|
group ingamebox
|
|
rect 0 2 443 315
|
|
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 keyBindStatus
|
|
rect 0 400 320 15
|
|
ownerdraw UI_KEYBINDSTATUS
|
|
text " "
|
|
forecolor 1 .75 0 1
|
|
textscale .230
|
|
textalignx 187
|
|
textalign 1
|
|
textaligny 10
|
|
visible 0
|
|
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_vr
|
|
text "VR Controls"
|
|
type 1
|
|
textscale .22
|
|
group grpSystembutton
|
|
style WINDOW_STYLE_FILLED
|
|
rect 172 10 100 12
|
|
textalign 1
|
|
textalignx 50
|
|
textaligny 10
|
|
forecolor 1 1 1 1
|
|
backcolor .1 .1 .1 0
|
|
visible 1
|
|
action { play "sound/misc/kcaction.wav" ;
|
|
hide grpControls ; show vr }
|
|
mouseEnter { show message_graphics ; setitemcolor ctr_vr backcolor .3 .3 .3 0 }
|
|
mouseExit { hide message_graphics ; setitemcolor ctr_vr backcolor .1 .1 .1 0 }
|
|
}
|
|
|
|
|
|
itemDef {
|
|
name ingame_vr
|
|
group grpControls
|
|
text "Control Scheme: "
|
|
type ITEM_TYPE_MULTI
|
|
cvar "vr_control_scheme"
|
|
cvarFloatList {"Right Handed" 0 "Left Handed" 10 }
|
|
rect 82 30 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 1
|
|
}
|
|
|
|
|
|
itemDef {
|
|
name ingame_vr
|
|
group grpControls
|
|
text "Switch Thumbsticks: "
|
|
type ITEM_TYPE_YESNO
|
|
cvar "vr_switch_sticks"
|
|
rect 82 45 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 1
|
|
}
|
|
|
|
itemDef {
|
|
name ingame_vr
|
|
group grpControls
|
|
text "Teleport: "
|
|
type ITEM_TYPE_YESNO
|
|
cvar "vr_teleport"
|
|
rect 82 60 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 1
|
|
}
|
|
|
|
itemDef {
|
|
name ingame_vr
|
|
group grpControls
|
|
type ITEM_TYPE_YESNO
|
|
text "Laser Sight: "
|
|
cvar "vr_lasersight"
|
|
rect 82 75 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 1
|
|
}
|
|
|
|
|
|
itemDef {
|
|
name ingame_vr
|
|
group grpControls
|
|
type ITEM_TYPE_SLIDER
|
|
text "Height Adjust:"
|
|
cvarfloat "cg_heightAdjust" .0 .01 1
|
|
rect 82 90 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 1
|
|
}
|
|
|
|
|
|
itemDef {
|
|
name ingame_vr
|
|
group grpControls
|
|
text "Turning Mode:"
|
|
type ITEM_TYPE_MULTI
|
|
cvar "vr_turn_mode"
|
|
cvarFloatList {"Snap Turn" 0 "Smooth Turn" 1 }
|
|
rect 82 105 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 1
|
|
}
|
|
|
|
|
|
itemDef {
|
|
name ingame_vr
|
|
group grpControls
|
|
type ITEM_TYPE_SLIDER
|
|
text "Turn Angle:"
|
|
cvarfloat "vr_turn_angle" .0 1 90
|
|
rect 82 120 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 1
|
|
}
|
|
|
|
|
|
itemDef {
|
|
name ingame_vr
|
|
group grpControls
|
|
type ITEM_TYPE_YESNO
|
|
text "Gaze Movement Direction: "
|
|
cvar "vr_walkdirection"
|
|
rect 82 135 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 1
|
|
}
|
|
|
|
itemDef {
|
|
name ingame_vr
|
|
group grpControls
|
|
type ITEM_TYPE_SLIDER
|
|
text "Movement Speed:"
|
|
cvarfloat "vr_movement_multiplier" .0 0.05 1.0
|
|
rect 82 150 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 1
|
|
}
|
|
|
|
itemDef {
|
|
name ingame_vr
|
|
group grpControls
|
|
text "Virtual Stock:"
|
|
type ITEM_TYPE_MULTI
|
|
cvar "vr_virtual_stock"
|
|
cvarFloatList {"Off" 0 "Classic" 1 }
|
|
rect 82 165 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 1
|
|
}
|
|
|
|
itemDef {
|
|
name ingame_vr
|
|
group grpControls
|
|
type ITEM_TYPE_SLIDER
|
|
text "Screen Distance:"
|
|
cvarfloat "vr_screen_dist" 2.0 0.5 8.0
|
|
rect 82 180 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 1
|
|
}
|
|
|
|
|
|
itemDef {
|
|
name ingame_vr
|
|
group grpControls
|
|
text "Cinematic:"
|
|
type ITEM_TYPE_MULTI
|
|
cvar "vr_cinematic_stereo"
|
|
cvarFloatList {"2D" 0 "3D" 1 }
|
|
rect 82 195 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 1
|
|
}
|
|
|
|
|
|
|
|
itemDef {
|
|
name yesno_message
|
|
rect 0 310 300 15
|
|
text "Select the Item to Toggle to Yes or No"
|
|
forecolor 1 .75 0 1
|
|
textscale .230
|
|
textalignx 221
|
|
textalign 1
|
|
textaligny 20
|
|
visible 0
|
|
decoration
|
|
}
|
|
|
|
itemDef {
|
|
name slider_message
|
|
rect 0 310 300 15
|
|
text "Drag the Slider to Increase and Decrease"
|
|
forecolor 1 .75 0 1
|
|
textscale .230
|
|
textalignx 221
|
|
textalign 1
|
|
textaligny 20
|
|
visible 0
|
|
decoration
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|