diff --git a/Projects/Android/AndroidManifest.xml b/Projects/Android/AndroidManifest.xml index 0116815..f10238e 100644 --- a/Projects/Android/AndroidManifest.xml +++ b/Projects/Android/AndroidManifest.xml @@ -1,8 +1,8 @@ + android:versionCode="16" + android:versionName="0.2.1" android:installLocation="auto" > diff --git a/Projects/Android/jni/JKVR/VrInputDefault.cpp b/Projects/Android/jni/JKVR/VrInputDefault.cpp index 2587f07..71fff8c 100644 --- a/Projects/Android/jni/JKVR/VrInputDefault.cpp +++ b/Projects/Android/jni/JKVR/VrInputDefault.cpp @@ -133,6 +133,12 @@ void HandleInput_Default( ovrInputStateGamepad *pFootTrackingNew, ovrInputStateG handleTrackedControllerButton(pDominantTrackedRemoteNew, pDominantTrackedRemoteOld, domButton1, A_MOUSE1); handleTrackedControllerButton(pDominantTrackedRemoteNew, pDominantTrackedRemoteOld, ovrButton_Trigger, A_MOUSE1); handleTrackedControllerButton(pDominantTrackedRemoteNew, pDominantTrackedRemoteOld, domButton2, A_ESCAPE); + + //To skip flatscreen cinematic + if ((pDominantTrackedRemoteNew->Buttons & primaryThumb) != + (pDominantTrackedRemoteOld->Buttons & primaryThumb)) { + sendButtonAction("+use", (pDominantTrackedRemoteNew->Buttons & primaryThumb)); + } } else { diff --git a/Projects/Android/jni/OpenJK/code/client/cl_cin.cpp b/Projects/Android/jni/OpenJK/code/client/cl_cin.cpp index cec1ac5..be87202 100644 --- a/Projects/Android/jni/OpenJK/code/client/cl_cin.cpp +++ b/Projects/Android/jni/OpenJK/code/client/cl_cin.cpp @@ -2022,7 +2022,6 @@ void CL_PlayInGameCinematic_f(void) #define TC_PLANE_TOP 0 #define TC_PLANE_BOTTOM 1100 -#define TC_DELAY 9000 #define TC_STOPTIME 81000 void SCR_AddCreditTextCrawl() { @@ -2060,7 +2059,7 @@ void SCR_AddCreditTextCrawl() VectorScaleM( verts[2].modulate, 0.1f, verts[2].modulate ); // darken at the top?? VectorScaleM( verts[3].modulate, 0.1f, verts[3].modulate ); - float timeoffset = (cls.realtime-startTime)*0.000015f -1; + float timeoffset = (cls.realtime-startTime)*0.00003f -1; VectorSet( verts[0].xyz, TC_PLANE_NEAR, -TC_PLANE_WIDTH, TC_PLANE_TOP ); verts[0].st[0] = 1; verts[0].st[1] = 1 +timeoffset; @@ -2079,7 +2078,7 @@ void SCR_AddCreditTextCrawl() // render it out re.ClearScene(); - re.AddPolyToScene( re.RegisterShaderNoMip( "menu/video/tc_demo" ), 4, verts ); + re.AddPolyToScene( re.RegisterShaderNoMip( "menu/video/beef_crawl" ), 4, verts ); re.RenderScene( &refdef ); } diff --git a/Projects/Android/jni/OpenJK/code/client/cl_scrn.cpp b/Projects/Android/jni/OpenJK/code/client/cl_scrn.cpp index df19f83..68f183b 100644 --- a/Projects/Android/jni/OpenJK/code/client/cl_scrn.cpp +++ b/Projects/Android/jni/OpenJK/code/client/cl_scrn.cpp @@ -419,6 +419,7 @@ void SCR_DrawScreenField( stereoFrame_t stereoFrame ) { re.BeginFrame( stereoFrame ); qboolean uiFullscreen = _UI_IsFullscreen(); + static bool drawCreditsCrawl = true; // if the menu is going to cover the entire screen, we // don't need to render anything under it @@ -446,6 +447,7 @@ void SCR_DrawScreenField( stereoFrame_t stereoFrame ) { CL_CGameRendering( stereoFrame ); break; case CA_ACTIVE: + drawCreditsCrawl = false; if (CL_IsRunningInGameCinematic() || CL_InGameCinematicOnStandBy()) { SCR_DrawCinematic(); @@ -472,7 +474,7 @@ void SCR_DrawScreenField( stereoFrame_t stereoFrame ) { SCR_DrawDebugGraph (); } - if ( uiFullscreen ) + if ( uiFullscreen && drawCreditsCrawl) { SCR_AddCreditTextCrawl(); } diff --git a/Projects/Android/jni/OpenJK/code/game/bg_pmove.cpp b/Projects/Android/jni/OpenJK/code/game/bg_pmove.cpp index 5ee52c8..5dc9ddb 100644 --- a/Projects/Android/jni/OpenJK/code/game/bg_pmove.cpp +++ b/Projects/Android/jni/OpenJK/code/game/bg_pmove.cpp @@ -146,6 +146,7 @@ extern cvar_t *g_debugMelee; extern cvar_t *g_saberNewControlScheme; extern cvar_t *g_stepSlideFix; extern cvar_t *g_saberAutoBlocking; +extern cvar_t *g_saberAutoDeflect1stPerson; static void PM_SetWaterLevelAtPoint( vec3_t org, int *waterlevel, int *watertype ); diff --git a/Projects/Android/jni/OpenJK/code/game/g_main.cpp b/Projects/Android/jni/OpenJK/code/game/g_main.cpp index 91302a3..853f116 100644 --- a/Projects/Android/jni/OpenJK/code/game/g_main.cpp +++ b/Projects/Android/jni/OpenJK/code/game/g_main.cpp @@ -186,6 +186,7 @@ cvar_t *g_AIsurrender; cvar_t *g_numEntities; //cvar_t *g_iscensored; +cvar_t *g_saberAutoDeflect1stPerson; cvar_t *g_saberAutoBlocking; cvar_t *g_saberRealisticCombat; cvar_t *debug_subdivision; @@ -659,6 +660,7 @@ void G_InitCvars( void ) { g_subtitles = gi.cvar( "g_subtitles", "0", CVAR_ARCHIVE ); com_buildScript = gi.cvar ("com_buildscript", "0", 0); + g_saberAutoDeflect1stPerson = gi.cvar( "g_saberAutoDeflect1stPerson", "0", CVAR_CHEAT );//Whether the saber will auto deflect missiles in first person g_saberAutoBlocking = gi.cvar( "g_saberAutoBlocking", "0", CVAR_CHEAT );//must press +block button to do any blocking g_saberRealisticCombat = gi.cvar( "g_saberMoreRealistic", "1", CVAR_ARCHIVE );//makes collision more precise, increases damage debug_subdivision = gi.cvar( "debug_subdivision", "0", CVAR_ARCHIVE );//debug for dismemberment diff --git a/Projects/Android/jni/OpenJK/codeJK2/cgame/cg_players.cpp b/Projects/Android/jni/OpenJK/codeJK2/cgame/cg_players.cpp index 1e16780..30a1216 100644 --- a/Projects/Android/jni/OpenJK/codeJK2/cgame/cg_players.cpp +++ b/Projects/Android/jni/OpenJK/codeJK2/cgame/cg_players.cpp @@ -3456,6 +3456,9 @@ void CG_AddRefEntityWithPowerups( refEntity_t *ent, int powerups, centity_t *cen VectorSubtract(vec3_origin, axis[2], hiltEnt.axis[0]); VectorCopy(axis[1], hiltEnt.axis[1]); VectorCopy(axis[0], hiltEnt.axis[2]); + for (int i = 0; i < 3; ++i) + VectorScale(hiltEnt.axis[i], 0.85f, hiltEnt.axis[i]); + cgi_R_AddRefEntityToScene(&hiltEnt); static int playingSaberSwingSound = 0; diff --git a/Projects/Android/jni/OpenJK/codeJK2/cgame/cg_view.cpp b/Projects/Android/jni/OpenJK/codeJK2/cgame/cg_view.cpp index 4aa9c44..1fc2bf8 100644 --- a/Projects/Android/jni/OpenJK/codeJK2/cgame/cg_view.cpp +++ b/Projects/Android/jni/OpenJK/codeJK2/cgame/cg_view.cpp @@ -2010,6 +2010,7 @@ wasForceSpeed=isForceSpeed; if (!in_camera && !cg.renderingThirdPerson && cg.predicted_player_state.stats[STAT_HEALTH] > 0 + && cg.snap->ps.weapon != WP_MELEE && !vr->weapon_stabilised && !cg_pano.integer && (cg.snap->ps.viewEntity == 0 || cg.snap->ps.viewEntity >= ENTITYNUM_WORLD)) @@ -2018,23 +2019,17 @@ wasForceSpeed=isForceSpeed; refEntity_t handEnt; memset( &handEnt, 0, sizeof(refEntity_t) ); BG_CalculateVROffHandPosition(handEnt.origin, handEnt.angles); - AngleVectors(handEnt.angles, forward, NULL, NULL); - VectorMA( handEnt.origin, 8.0f, forward, end ); - //If the current force power is directional, show the nav arrow from off-hand for now - if (showPowers[cg.forcepowerSelect] >= FP_PUSH) { - vec3_t color = {0.0f, 1.0f, 0.0f}; - FX_AddLine(handEnt.origin, end, 0.1f, 1.0f, 0.0f, - 1.0f, 0.0f, 0.0f, - color, color, 0.0f, - 60, cgi_R_RegisterShader("gfx/misc/nav_line"), - FX_SIZE_LINEAR | FX_ALPHA_LINEAR); - } + //Move it back a bit? + AngleVectors(handEnt.angles, forward, NULL, NULL); + VectorMA( handEnt.origin, -1.0f, forward, handEnt.origin ); + handEnt.renderfx = RF_DEPTHHACK; - handEnt.hModel = cgi_R_RegisterModel( "models/hands/left_hand_relaxed.md3" ); + handEnt.hModel = cgi_R_RegisterModel( "models/players/kyle/lhand_r.md3" ); VectorCopy(handEnt.origin, handEnt.oldorigin); AnglesToAxis(handEnt.angles, handEnt.axis); + cgi_R_AddRefEntityToScene(&handEnt); } } diff --git a/Projects/Android/jni/OpenJK/codeJK2/cgame/cg_weapons.cpp b/Projects/Android/jni/OpenJK/codeJK2/cgame/cg_weapons.cpp index 98fd2aa..8ec867f 100644 --- a/Projects/Android/jni/OpenJK/codeJK2/cgame/cg_weapons.cpp +++ b/Projects/Android/jni/OpenJK/codeJK2/cgame/cg_weapons.cpp @@ -2704,7 +2704,6 @@ void CG_ItemSelectorSelect_f( void ) } //reset ready for next time - cg.itemSelectorType = 0; cg.itemSelectorSelection = -1; } @@ -2752,6 +2751,7 @@ void CG_DrawItemSelector( void ) VectorSubtract(vr->weaponposition, cg.itemSelectorOrigin, controllerOffset); vec3_t wheelAngles, wheelOrigin, beamOrigin, wheelForward, wheelRight, wheelUp; + cg.itemSelectorAngles[YAW] = vr->hmdorientation[YAW]; BG_CalculateVRPositionInWorld(cg.itemSelectorOrigin, cg.itemSelectorOffset, cg.itemSelectorAngles, wheelOrigin, wheelAngles); AngleVectors(wheelAngles, wheelForward, wheelRight, wheelUp); @@ -2884,6 +2884,7 @@ void CG_DrawItemSelector( void ) sprite.reType = RT_SPRITE; sprite.customShader = cgs.media.binocularArrow; sprite.radius = 0.6f; + sprite.rotation = -90.0f; sprite.shaderRGBA[0] = 255; sprite.shaderRGBA[1] = 255; sprite.shaderRGBA[2] = 255; diff --git a/Projects/Android/jni/OpenJK/codeJK2/game/g_main.cpp b/Projects/Android/jni/OpenJK/codeJK2/game/g_main.cpp index 6a19cea..0091c53 100644 --- a/Projects/Android/jni/OpenJK/codeJK2/game/g_main.cpp +++ b/Projects/Android/jni/OpenJK/codeJK2/game/g_main.cpp @@ -164,6 +164,7 @@ cvar_t *g_AIsurrender; cvar_t *g_numEntities; cvar_t *g_iscensored; +cvar_t *g_saberAutoDeflect1stPerson; cvar_t *g_saberAutoBlocking; cvar_t *g_saberRealisticCombat; cvar_t *g_saberMoveSpeed; @@ -583,6 +584,7 @@ void G_InitCvars( void ) { g_subtitles = gi.cvar( "g_subtitles", "0", CVAR_ARCHIVE ); com_buildScript = gi.cvar ("com_buildscript", "0", 0); + g_saberAutoDeflect1stPerson = gi.cvar( "g_saberAutoDeflect1stPerson", "0", CVAR_ARCHIVE|CVAR_CHEAT );//Whether the saber will auto deflect missiles in first person g_saberAutoBlocking = gi.cvar( "g_saberAutoBlocking", "0", CVAR_ARCHIVE|CVAR_CHEAT );//must press +block button to do any blocking g_saberRealisticCombat = gi.cvar( "g_saberRealisticCombat", "1", CVAR_ARCHIVE );//makes collision more precise, increases damage g_saberMoveSpeed = gi.cvar( "g_saberMoveSpeed", "1", CVAR_ARCHIVE|CVAR_CHEAT );//how fast you run while attacking with a saber diff --git a/Projects/Android/jni/OpenJK/codeJK2/game/wp_saber.cpp b/Projects/Android/jni/OpenJK/codeJK2/game/wp_saber.cpp index aa97253..dd44cd8 100644 --- a/Projects/Android/jni/OpenJK/codeJK2/game/wp_saber.cpp +++ b/Projects/Android/jni/OpenJK/codeJK2/game/wp_saber.cpp @@ -116,6 +116,7 @@ void ForceThrow( gentity_t *self, qboolean pull ); qboolean WP_ForcePowerAvailable( gentity_t *self, forcePowers_t forcePower, int overrideAmt ); void WP_ForcePowerDrain( gentity_t *self, forcePowers_t forcePower, int overrideAmt ); +extern cvar_t *g_saberAutoDeflect1stPerson; extern cvar_t *g_saberAutoBlocking; extern cvar_t *g_saberRealisticCombat; extern int g_crosshairEntNum; @@ -4624,6 +4625,12 @@ void WP_SaberBlockNonRandom( gentity_t *self, vec3_t hitloc, qboolean missileBlo return; } + if (self->client->ps.clientNum == 0 && missileBlock && !cg_thirdPerson.integer && + !g_saberAutoDeflect1stPerson->integer) + { + return; + } + VectorSubtract( hitloc, self->client->renderInfo.eyePoint, diff ); diff[2] = 0; VectorNormalize( diff ); @@ -4901,10 +4908,18 @@ void WP_SaberStartMissileBlockCheck( gentity_t *self, usercmd_t *ucmd ) return; } - if ( !self->s.number && !g_saberAutoBlocking->integer && self->client->ps.saberBlockingTimes.number && !g_saberAutoBlocking->integer && + self->client->ps.saberBlockingTime < level.time) { + return; + } + } else // first person + { + if (!self->s.number && !g_saberAutoDeflect1stPerson->integer && + self->client->ps.saberBlockingTime < level.time) { + return; + } + } fwdangles[1] = self->client->ps.viewangles[1]; AngleVectors( fwdangles, forward, NULL, NULL ); @@ -5197,8 +5212,11 @@ void WP_SaberUpdate( gentity_t *self, usercmd_t *ucmd ) } else if ( self->client->ps.saberBlocking == BLK_TIGHT || self->client->ps.saberBlocking == BLK_WIDE ) {//FIXME: keep bbox in front of player, even when wide? + bool autoBlocking = (cg_thirdPerson.integer && g_saberAutoBlocking->integer) || + (!cg_thirdPerson.integer && g_saberAutoDeflect1stPerson->integer); vec3_t saberOrg; - if ( ( (self->s.number&&!Jedi_SaberBusy(self)&&!g_saberRealisticCombat->integer) || (self->s.number == 0 && self->client->ps.saberBlocking == BLK_WIDE && (g_saberAutoBlocking->integer||self->client->ps.saberBlockingTime>level.time)) ) + if ( ( (self->s.number&&!Jedi_SaberBusy(self)&&!g_saberRealisticCombat->integer) || (self->s.number == 0 && self->client->ps.saberBlocking == BLK_WIDE && + (autoBlocking||self->client->ps.saberBlockingTime>level.time)) ) && self->client->ps.weaponTime <= 0 ) {//full-size blocking for non-attacking player with g_saberAutoBlocking on vec3_t saberang={0,0,0}, fwd, sabermins={-8,-8,-8}, sabermaxs={8,8,8}; diff --git a/assets/weapons_vr_ja.cfg b/assets/weapons_vr_ja.cfg index 715a9c0..cd3871e 100644 --- a/assets/weapons_vr_ja.cfg +++ b/assets/weapons_vr_ja.cfg @@ -3,15 +3,21 @@ // put the weapon id at the end of the cvar name, so the knife is vr_weapon_adjustment_1 // Values are: scale,right,up,forward,pitch,yaw,roll -seta vr_weapon_adjustment_2 "1.0,-3.5,7.4,-12.0,0.0,0.0,0.0" -seta vr_weapon_adjustment_3 "1.0,-3.5,7.4,-10.0,0.0,0.0,0.0" -seta vr_weapon_adjustment_4 "1.0,-3.5,7.4,-6.0,0.0,0.0,0.0" +seta vr_weapon_adjustment_1 "0.55,-4.89,8.12,-12.36,-28.60,10.80,-199.50" +seta vr_weapon_adjustment_10 "1.624,-3.042,6.823,-9.175,24.600,0.000,-26.400" +seta vr_weapon_adjustment_11 "0.998,-5.711,9.158,-9.740,29.900,0.000,-15.200" +seta vr_weapon_adjustment_12 "1.424,-2.107,6.236,-8.006,29.900,0.000,-23.100" +seta vr_weapon_adjustment_13 "1.000,-6.500,9.240,-12.680,15.300,0.000,0.000" +seta vr_weapon_adjustment_14 "0.52,-12.87,13.29,-22.09,11.30,26.60,-3.40" +seta vr_weapon_adjustment_18 "0.510,-8.235,10.706,-3.922,-5.600,0.400,0.000" +seta vr_weapon_adjustment_19 "0.43,-8.97,13.22,-21.68,-4.80,-4.50,-0.40" +seta vr_weapon_adjustment_2 "0.952,-3.908,4.874,-9.349,0.000,0.000,0.000" +seta vr_weapon_adjustment_20 "0.44,-13.55,12.79,-26.06,0.30,-1.40,-0.40" +seta vr_weapon_adjustment_22 "0.64,-12.59,12.94,-20.44,11.30,26.60,-3.40" +seta vr_weapon_adjustment_3 "0.884,-4.140,7.036,-10.204,-0.000,0.000,0.000" +seta vr_weapon_adjustment_4 "0.844,-3.555,9.526,-3.246,0.000,0.000,0.000" seta vr_weapon_adjustment_5 "1.500,-2.747,5.707,-7.827,1.800,0.000,0.000" -seta vr_weapon_adjustment_6 "1.0,-3.5,7.0,-8.0,0.0,0.0,0.0" -seta vr_weapon_adjustment_7 "1.0,-5.0,7.5,-10.0,0.0,0.0,0.0" -seta vr_weapon_adjustment_8 "1.0,-5.0,8.0,-10.0,0.0,0.0,0.0" -seta vr_weapon_adjustment_13 "1.5,-5.0,8.0,-10.0,0.0,0.0,0.0" -seta vr_weapon_adjustment_9 "1.5,-4.0,7.5,-10.0,0.0,0.0,0.0" -seta vr_weapon_adjustment_10 "1.7,-4.5,8.0,-15.4,0.0,0.0,0.0" -seta vr_weapon_adjustment_11 "1.0,-6.0,6.0,-10.0,20.0,0.0,0.0" -seta vr_weapon_adjustment_12 "1.5,-5.0,7.0,-11.0,30.0,6.3,-12.0" +seta vr_weapon_adjustment_6 "0.700,-4.029,10.714,-6.771,0.000,0.000,0.000" +seta vr_weapon_adjustment_7 "0.844,-4.787,9.526,-9.550,0.000,0.000,0.000" +seta vr_weapon_adjustment_8 "1.000,-4.780,8.240,-10.440,0.000,0.000,0.000" +seta vr_weapon_adjustment_9 "1.100,-4.036,7.309,-7.836,0.000,0.000,0.000" diff --git a/assets/weapons_vr_jo.cfg b/assets/weapons_vr_jo.cfg index 632ab83..afdbd1b 100644 --- a/assets/weapons_vr_jo.cfg +++ b/assets/weapons_vr_jo.cfg @@ -4,20 +4,21 @@ // Values are: scale,right,up,forward,pitch,yaw,roll seta vr_weapon_adjustment_1 "0.55,-4.89,8.12,-12.36,-28.60,10.80,-199.50" -seta vr_weapon_adjustment_2 "0.952,-3.908,4.874,-9.349,0.000,0.000,0.000" -seta vr_weapon_adjustment_3 "0.884,-4.140,7.036,-10.204,-0.000,0.000,0.000" -seta vr_weapon_adjustment_4 "0.44,-8.75,12.50,-2.31,-0.00,-1.80,5.00" -seta vr_weapon_adjustment_5 "1.500,-2.747,5.707,-7.827,1.800,0.000,0.000" -seta vr_weapon_adjustment_6 "0.700,-4.029,10.714,-6.771,0.000,0.000,0.000" -seta vr_weapon_adjustment_7 "1.22,-5.65,6.81,-3.40,0.00,0.20,0.70" -seta vr_weapon_adjustment_8 "1.000,-4.780,8.240,-10.440,0.000,0.000,0.000" -seta vr_weapon_adjustment_9 "1.000,-4.780,8.240,-10.440,0.000,0.000,0.000" -seta vr_weapon_adjustment_10 "1.500,-3.600,5.973,-8.640,0.000,0.000,0.000" -seta vr_weapon_adjustment_11 "0.44,-9.55,12.79,-23.06,0.30,-1.40,-0.40" -seta vr_weapon_adjustment_20 "0.44,-13.55,12.79,-26.06,0.30,-1.40,-0.40" -seta vr_weapon_adjustment_12 "0.83,-7.61,10.14,-11.47,-2.60,-0.00,0.80" +seta vr_weapon_adjustment_10 "1.624,-3.042,6.823,-9.175,24.600,0.000,-26.400" +seta vr_weapon_adjustment_11 "0.998,-5.711,9.158,-9.740,29.900,0.000,-15.200" +seta vr_weapon_adjustment_12 "1.424,-2.107,6.236,-8.006,29.900,0.000,-23.100" seta vr_weapon_adjustment_13 "1.000,-6.500,9.240,-12.680,15.300,0.000,0.000" seta vr_weapon_adjustment_14 "0.52,-12.87,13.29,-22.09,11.30,26.60,-3.40" seta vr_weapon_adjustment_18 "0.510,-8.235,10.706,-3.922,-5.600,0.400,0.000" seta vr_weapon_adjustment_19 "0.43,-8.97,13.22,-21.68,-4.80,-4.50,-0.40" +seta vr_weapon_adjustment_2 "0.952,-3.908,4.874,-9.349,0.000,0.000,0.000" +seta vr_weapon_adjustment_20 "0.44,-13.55,12.79,-26.06,0.30,-1.40,-0.40" seta vr_weapon_adjustment_22 "0.64,-12.59,12.94,-20.44,11.30,26.60,-3.40" +seta vr_weapon_adjustment_3 "0.884,-4.140,7.036,-10.204,-0.000,0.000,0.000" +seta vr_weapon_adjustment_4 "0.844,-3.555,9.526,-3.246,0.000,0.000,0.000" +seta vr_weapon_adjustment_5 "1.500,-2.747,5.707,-7.827,1.800,0.000,0.000" +seta vr_weapon_adjustment_6 "0.700,-4.029,10.714,-6.771,0.000,0.000,0.000" +seta vr_weapon_adjustment_7 "0.844,-4.787,9.526,-9.550,0.000,0.000,0.000" +seta vr_weapon_adjustment_8 "1.000,-4.780,8.240,-10.440,0.000,0.000,0.000" +seta vr_weapon_adjustment_9 "1.100,-4.036,7.309,-7.836,0.000,0.000,0.000" + diff --git a/assets/z_vr_assets.pk3 b/assets/z_vr_assets.pk3 index 2320481..d28cb82 100644 Binary files a/assets/z_vr_assets.pk3 and b/assets/z_vr_assets.pk3 differ diff --git a/make_z_vr_assets_pk3.bat b/make_z_vr_assets_pk3.bat new file mode 100644 index 0000000..5e23133 --- /dev/null +++ b/make_z_vr_assets_pk3.bat @@ -0,0 +1,6 @@ +cd assets +del z_vr_assets.pk3 +cd .. +powershell Compress-Archive z_vr_assets/* z_vr_assets.zip +rename z_vr_assets.zip z_vr_assets.pk3 +move z_vr_assets.pk3 assets/ diff --git a/z_vr_assets/ext_data/npcs.cfg b/z_vr_assets/ext_data/npcs.cfg new file mode 100644 index 0000000..321e9c2 --- /dev/null +++ b/z_vr_assets/ext_data/npcs.cfg @@ -0,0 +1,2315 @@ +//Star Wars +/* +defaults and explanations of fields: + aggression 3 How likely they are to attack (from 1 (least) to 5 (most)) + aim 3 How good their aim is (from 1 (worst) to 5 (best)) + earshot 1024 How far in map units they can hear, in map units + evasion 3 How likely they are to take cover or defensive maneuvers (from 1 (least) to 5 (most)) + hfov 45 Horizontal field of view, in angles + intelligence 3 How smart they are, in general (from 1 (least) to 5 (most)) + move 3 How complex their moves are when evading or in combat (from 1 (least) to 5 (most)) + reactions 3 How quickly they react (from 1 (worst) to 5 (best)) + shootDistance 0 Overrides current weapon's max range + vfov 34 Vertical field of view, in angles + vigilance 0.1 How likely they are to notice something (from 0 (never) to 1 (always)) + visrange 2048 How far away they can see something, in map units + race none human, borg, parasite, klingon, malon, hirogen, stasis, species8472, dreadnought, harvester, reaver, avatar, vulcan + playerTeam none player, enemy, neutral + enemyTeam none player, enemy, neutral + + health 100 Health of entity (if not supplied by designer) + + moveType "runjump" Which movetype they can be (other choices are "static", "walk" and "flyswim" + yawSpeed 50 How quickly they can turn + walkSpeed 150 How fast they walk + runSpeed 300 How fast they run + acceleration 15 Acceleration (accel x 20fps = speed up per second, so accel of 15 means they can go from 0 to 300 in one second) + Accel of 0 means don't accel/decel - just start/stop (good if you're a slow mover anyway and/or robotic - like a Borg) + + scaleX 100 X (horiz) scale, 100 is normal 100% scale + scaleY 100 Y (horiz) scale, 100 is normal 100% scale + scaleZ 100 Z (vert) scale, 100 is normal 100% scale + scale 100 Sets all above 3 to what you specify + headModel "hazard" model directory/skin name + torsoModel "hazard" model directory/skin name + legsModel "hazard" model directory/skin name + headYawRangeLeft 70 How far left you can turn your head (angles) + headYawRangeRight 70 How far right you can turn your head (angles) + headPitchRangeUp 60 How far up you can tilt your head (angles) + headPitchRangeDown 60 How far down you can tilt your head (angles) + torsoYawRangeLeft 60 How far left you can turn your torso (angles) + torsoYawRangeRight 60 How far right you can turn your torso (angles) + torsoPitchRangeUp 30 How far up you can tilt your torso (angles) + torsoPitchRangeDown 70 How far down you can tilt your torso (angles) + + snd "munro" subdirectory of sound/player from which to get custom sounds (pain, death, jump, etc.) + dismemberProbHead 0 probability of head being dismembered ( from 0 (never) to 100 (always) ) + dismemberProbArms 0 probability of arms being dismembered ( from 0 (never) to 100 (always) ) + dismemberProbHands 0 probability of hands being dismembered ( from 0 (never) to 100 (always) ) + dismemberProbLegs 0 probability of legs being dismembered ( from 0 (never) to 100 (always) ) + dismemberProbWaist 0 probability of waist being dismembered ( from 0 (never) to 100 (always) ) +*/ + +//Characters +munro +{ + fullName "Katarn, Kyle" + playerModel kyle + saberColor blue + reactions 4 + aim 5 + move 3 + aggression 5 + evasion 5 + intelligence 5 + playerTeam player +// race human + class kyle + snd munro +} + +Kyle +{ + fullName "Katarn, Kyle" + playerModel kyle + saberColor blue + reactions 4 + aim 5 + move 3 + aggression 5 + evasion 5 + intelligence 5 + playerTeam player +// race human + class kyle + snd kyle + sndcombat kyle + sndjedi kyle + dismemberProbHead 1 + dismemberProbArms 1 + dismemberProbHands 20 + dismemberProbLegs 1 + dismemberProbWaist 1 +} + +Tavion +{ + playerModel tavion + rank commander + saberColor red + reactions 3 + aim 3 + move 5 + aggression 3 + evasion 4 + intelligence 5 + hfov 160 + vfov 160 + playerTeam enemy + enemyTeam player +// race human + class tavion + snd tavion + sndcombat tavion + sndjedi tavion + yawSpeed 120 + walkSpeed 55 + runSpeed 200 + health 300 + dismemberProbHead 10 + dismemberProbArms 35 + dismemberProbLegs 10 + dismemberProbHands 50 + dismemberProbWaist 10 +} + +Lando +{ + fullName "Calrissian, Lando" + playerModel lando + snd lando + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam player + enemyTeam enemy +// race human + class lando + snd lando + sndcombat lando + sndextra lando + sndjedi lando + walkSpeed 55 + runSpeed 200 + yawspeed 120 + dismemberProbHead 0 + dismemberProbArms 0 + dismemberProbHands 0 + dismemberProbLegs 0 + dismemberProbWaist 0 +} + +Reelo +{ + fullName "Baruk, Reelo" + playerModel reelo + snd reelo + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam enemy + enemyTeam player +// race klingon + class reelo + snd reelo + sndcombat reelo + sndextra reelo + yawspeed 90 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 5 + dismemberProbArms 1 + dismemberProbHands 20 + dismemberProbLegs 1 + dismemberProbWaist 0 +} + +Jan +{ + fullName "Ors, Jan" + playerModel jan + rank lt + reactions 3 + aim 5 + move 3 + aggression 3 + evasion 3 + intelligence 3 + playerTeam player + enemyTeam enemy + class jan + snd jan + sndcombat jan + sndextra jan + yawSpeed 140 + walkSpeed 55 + runSpeed 200 +// race human + snd jan + dismemberProbHead 0 + dismemberProbArms 0 + dismemberProbHands 1 + dismemberProbLegs 0 + dismemberProbWaist 0 +} + +Galak +{ + fullName "Fyyar, Galak" + playerModel galak + snd galak + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank captain + playerTeam enemy + enemyTeam player +// race klingon + class imperial + yawspeed 90 + walkSpeed 55 + runSpeed 200 +} + +Galak_Mech +{ + fullName "Fyyar, Galak" + playerModel galak_mech + health 1000 + width 20 + height 88 + crouchheight 88 + snd galak_mech + reactions 3 + aim 5 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam enemy + enemyTeam player +// race klingon + class galak_mech + snd galak + sndcombat galak + sndextra galak + yawSpeed 50 + walkSpeed 45 + runSpeed 150 + dismemberProbHead 0 + dismemberProbArms 0 + dismemberProbHands 0 + dismemberProbLegs 0 + dismemberProbWaist 0 + headPitchRangeUp 60 + headPitchRangeDown 60 + torsoPitchRangeUp 60 + torsoPitchRangeDown 60 +} + + +Desann +{ + fullName "Desann" + playerModel desann + saberColor red + rank captain + reactions 3 + aim 3 + move 5 + aggression 3 + evasion 5 + intelligence 5 + hfov 160 + vfov 160 + scale 135 + height 78 + crouchheight 42 + width 18 + playerTeam enemy + enemyTeam player +// race human + class desann + yawSpeed 120 + walkSpeed 55 + runSpeed 200 + snd desann + sndcombat desann + sndjedi desann + health 500 + dismemberProbHead 10 + dismemberProbArms 35 + dismemberProbLegs 10 + dismemberProbHands 50 + dismemberProbWaist 10 +} + +Luke +{ + fullName "Skywalker, Luke" + playerModel luke + saberColor green + rank captain + reactions 3 + aim 3 + move 3 + aggression 3 + evasion 5 + intelligence 3 + playerTeam player + enemyTeam enemy + class luke + yawSpeed 140 + walkSpeed 55 + runSpeed 200 +// race human + snd luke + sndcombat luke + sndjedi luke + health 200 + dismemberProbHead 0 + dismemberProbArms 0 + dismemberProbLegs 0 + dismemberProbHands 0 + dismemberProbWaist 0 +} + +MonMothma +{ + fullName "Mon Mothma" + playerModel monmothma + snd monmothma + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam player + enemyTeam enemy +// race human + class monmotha + walkSpeed 55 + runSpeed 200 + yawspeed 90 + dismemberProbHead 0 + dismemberProbArms 0 + dismemberProbLegs 0 + dismemberProbHands 0 + dismemberProbWaist 0 +} + +Bartender +{ + fullName "Bartender" + playerModel chiss + snd bartender + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam neutral + enemyTeam neutral +// race human + class bartender + walkSpeed 55 + runSpeed 200 + yawspeed 90 + dismemberProbHead 0 + dismemberProbArms 0 + dismemberProbLegs 0 + dismemberProbHands 0 + dismemberProbWaist 0 +} + +MorganKatarn +{ + fullName "MorganKatarn" + playerModel morgan + snd morgan + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam neutral + enemyTeam neutral +// race human + class morgan + walkSpeed 55 + runSpeed 200 + yawspeed 90 + dismemberProbHead 0 + dismemberProbArms 0 + dismemberProbLegs 0 + dismemberProbHands 0 + dismemberProbWaist 0 +} + +Prisoner +{ + playerModel prisoner + snd prisoner + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam player + enemyTeam enemy + class prisoner + snd prisoner1 + sndcombat prisoner1 + sndextra prisoner1 + walkSpeed 55 + runSpeed 200 + yawspeed 110 + dismemberProbHead 0 + dismemberProbArms 5 + dismemberProbLegs 0 + dismemberProbHands 10 + dismemberProbWaist 0 +} + +Prisoner2 +{ + playerModel prisoner + snd prisoner + surfOff "head head_face" + surfOn "head_off head_face_off" + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam player + enemyTeam enemy + class prisoner + snd prisoner2 + sndcombat prisoner2 + sndextra prisoner2 + walkSpeed 55 + runSpeed 200 + yawspeed 110 + dismemberProbHead 0 + dismemberProbArms 5 + dismemberProbLegs 0 + dismemberProbHands 10 + dismemberProbWaist 0 +} + +//NPC Humanoids +Jedi +{ + playerModel jedi + saberColor yellow + rank lt + reactions 3 + aim 3 + move 3 + aggression 3 + evasion 2 + intelligence 3 + playerTeam player + enemyTeam enemy + class jedi + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + snd jedi1 + sndcombat jedi1 + sndjedi jedi1 + health 200 + dismemberProbHead 0 + dismemberProbArms 5 + dismemberProbLegs 0 + dismemberProbHands 10 + dismemberProbWaist 0 +} + +Jedi2 +{ + playerModel jedi + saberColor orange + rank lt + customSkin j2 + surfOff "head head_face" + surfOn "head_off head_face_off" + reactions 3 + aim 3 + move 3 + aggression 3 + evasion 2 + intelligence 3 + playerTeam player + enemyTeam enemy + class jedi + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + snd jedi2 + sndcombat jedi2 + sndjedi jedi2 + health 200 + dismemberProbHead 0 + dismemberProbArms 5 + dismemberProbLegs 0 + dismemberProbHands 10 + dismemberProbWaist 0 +} + +JediF +{ + playerModel jan + surfOff "torso_vest hips_chaps torso_computer head_goggles torso_comp hips_belt" + surfOn "torso_augment_off hips_augment_off hips_torso_off" + saberColor random + rank lt + reactions 3 + aim 3 + move 3 + aggression 3 + evasion 2 + intelligence 3 + playerTeam player + enemyTeam enemy + class jedi + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + snd jan + sndcombat jan + sndjedi jan + health 200 + dismemberProbHead 0 + dismemberProbArms 5 + dismemberProbLegs 0 + dismemberProbHands 10 + dismemberProbWaist 0 +} + +JediTrainer +{ + playerModel jeditrainer + saberColor purple + rank commander + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 5 + intelligence 5 + playerTeam player + enemyTeam enemy + class jedi + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + snd jedi1 + sndcombat jedi1 + sndjedi jedi1 + health 400 + dismemberProbHead 0 + dismemberProbArms 5 + dismemberProbLegs 0 + dismemberProbHands 10 + dismemberProbWaist 0 +} + +Rebel +{ + playerModel rebel + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam player + enemyTeam enemy +// race human + class rebel + snd rebel1 + sndcombat rebel1 + sndextra rebel1 + yawspeed 120 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +Rebel2 +{ + playerModel rebel + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam player + enemyTeam enemy +// race human + class rebel + snd rebel2 + sndcombat rebel2 + sndextra rebel2 + yawspeed 120 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +BespinCop +{ + playerModel bespin_cop + health 40 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam player + enemyTeam enemy + walkSpeed 55 + runSpeed 200 + yawspeed 120 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +// race bespincop + class bespin_cop + snd bespincop1 + sndcombat bespincop1 + sndextra bespincop1 +} + +BespinCop2 +{ + playerModel bespin_cop + health 40 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam player + enemyTeam enemy + walkSpeed 55 + runSpeed 200 + yawspeed 120 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +// race bespincop + class bespin_cop + snd bespincop2 + sndcombat bespincop2 + sndextra bespincop2 +} + +Ugnaught +{ + playerModel ugnaught + scale 75 + health 10 + snd ugnaught + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam neutral + enemyTeam player +// race klingon + class ugnaught + yawspeed 90 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 1 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +Ugnaught2 +{ + playerModel ugnaught + surfOff "l_hand_purse" + surfOn "r_hand_tool_off" + scale 75 + health 10 + snd ugnaught + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam neutral + enemyTeam player +// race klingon + class ugnaught + yawspeed 90 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 1 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +Gran +{ + playerModel gran + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + health 30 + playerTeam enemy + enemyTeam player +// race klingon + class gran + snd gran1 + sndcombat gran1 + sndextra gran1 + yawspeed 90 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 1 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +Gran2 +{ + playerModel gran + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + health 30 + playerTeam enemy + enemyTeam player +// race klingon + class gran + snd gran2 + sndcombat gran2 + sndextra gran2 + yawspeed 90 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 1 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +GranShooter +{ + playerModel gran + surfOff "l_leg_kneeguard" + reactions 3 + aim 5 + move 3 + aggression 3 + evasion 1 + intelligence 5 + health 40 + rank crewman + playerTeam enemy + enemyTeam player +// race klingon + class gran + snd gran1 + sndcombat gran1 + sndextra gran1 + yawspeed 90 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 1 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +GranBoxer +{ + playerModel gran + surfOff "l_leg_kneeguard r_leg_kneeguard" + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + health 50 + rank crewman + playerTeam enemy + enemyTeam player +// race klingon + class gran + snd gran2 + sndcombat gran2 + sndextra gran2 + yawspeed 90 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 1 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +Rodian +{ + playerModel rodian + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + health 25 + rank crewman + playerTeam enemy + enemyTeam player +// race klingon + class rodian + snd rodian1 + sndcombat rodian1 + sndextra rodian1 + yawspeed 90 + walkSpeed 55 + runSpeed 200 + visrange 8192 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 1 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +Rodian2 +{ + playerModel rodian + surfOff "hips_belt torso_vest" + surfOn "torso_augment_off" + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + health 20 + rank crewman + playerTeam enemy + enemyTeam player +// race klingon + class rodian + snd rodian2 + sndcombat rodian2 + sndextra rodian2 + yawspeed 90 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 1 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +Weequay +{ + playerModel weequay +//FIXME: randomize these somehow, also belt... + surfOff "hips_lowerarmor" + surfOn "hips_torso_augment_off" + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + health 30 + rank crewman + playerTeam enemy + enemyTeam player +// race klingon + class weequay + snd weequay + sndcombat weequay + sndextra weequay + yawspeed 90 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 1 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +Weequay2 +{ + playerModel weequay + surfOff "head_l_hairback hips_r_strap hips_r_packsmall" + surfOn "head_r_hairshoulder_off hips_l_packsmall_off hips_l_strap_off" + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + health 30 + rank crewman + playerTeam enemy + enemyTeam player + class weequay + snd weequay + sndcombat weequay + sndextra weequay + yawspeed 90 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 1 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +Weequay3 +{ + playerModel weequay + surfOff "head_l_hairback hips_l_packlarge hips_l_packwide hips_r_strap hips_r_packsmall" + surfOn "head_r_hairback_off hips_l_packsmall_off hips_l_strap_off hips_r_packlarge_off hips_r_packwide_off" + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + health 30 + rank crewman + playerTeam enemy + enemyTeam player + class weequay + snd weequay + sndcombat weequay + sndextra weequay + yawspeed 90 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 1 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +Weequay4 +{ + playerModel weequay + surfOff "head_l_hairback hips_l_packlarge hips_l_packwide" + surfOn "head_l_hairshoulder_off hips_r_packlarge_off hips_r_packwide_off" + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + health 30 + rank crewman + playerTeam enemy + enemyTeam player +// race klingon + class weequay + snd weequay + sndcombat weequay + sndextra weequay + yawspeed 90 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 1 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +Trandoshan +{ + playerModel trandoshan + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + health 40 + rank crewman + playerTeam enemy + enemyTeam player +// race klingon + class trandoshan + snd trandoshan1 + sndcombat trandoshan1 + sndextra trandoshan1 + yawspeed 90 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 1 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +StormTrooper +{ + playerModel stormtrooper + surfOff torso_pauldron_off + surfOn "torso_armor_neck_augment torso_body_neck_augment" + health 30 + headPitchRangeDown 30 + reactions 2 //3 + aim 1 + move 2 //3 + aggression 2 //3 + evasion 1 + intelligence 5 + rank crewman + playerTeam enemy + enemyTeam player +// race klingon + class stormtrooper + height 64 + crouchheight 48 + walkSpeed 51 + runSpeed 130 //200 + snd st1 + sndcombat st1 + sndextra st1 + yawspeed 70 + walkSpeed 55 + runSpeed 130 //200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +StormTrooper2 +{ + playerModel stormtrooper + surfOff torso_pauldron_off + surfOn "torso_armor_neck_augment torso_body_neck_augment" + health 30 + headPitchRangeDown 30 + reactions 2 //3 + aim 1 + move 2 //3 + aggression 2 //3 + evasion 1 + intelligence 5 + rank crewman + playerTeam enemy + enemyTeam player +// race klingon + class stormtrooper + height 64 + crouchheight 48 + walkSpeed 51 + runSpeed 130 //200 + snd st2 + sndcombat st2 + sndextra st2 + yawspeed 70 + walkSpeed 55 + runSpeed 130 //200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +STOfficer +{ + playerModel stormtrooper + surfOn torso_pauldron_off + surfOff "torso_armor_neck_augment torso_body_neck_augment" + health 60 + headPitchRangeDown 30 + reactions 3 //5 + aim 3 //5 + move 3 //5 + aggression 3 //5 + evasion 3 //5 + intelligence 5 + rank ensign + scale 105 + playerTeam enemy + enemyTeam player +// race klingon + class stormtrooper + height 68 + crouchheight 52 + walkSpeed 51 + runSpeed 130 ///200 + snd stofficer1 + sndcombat stofficer1 + sndextra stofficer1 + yawspeed 90 + walkSpeed 55 + runSpeed 130 ///200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +StormPilot +{ + playerModel stormpilot + health 30 + headPitchRangeDown 30 + reactions 3 + aim 3 //5 + move 2 //3 + aggression 2 //3 + evasion 1 + intelligence 5 + rank crewman + playerTeam enemy + enemyTeam player + class stormtrooper + height 64 + crouchheight 48 + walkSpeed 51 + runSpeed 130 ///200 + snd st3 + sndcombat st3 + sndextra st3 + yawspeed 80 + walkSpeed 55 + runSpeed 130 ///200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +STOfficerAlt +{ + playerModel stormtrooper + surfOn torso_pauldron_off + surfOff "torso_armor_neck_augment torso_body_neck_augment" + health 60 + headPitchRangeDown 30 + reactions 3 //5 + aim 3 //5 + move 3 //5 + aggression 3 //5 + evasion 2 //5 + intelligence 5 + rank ensign + scale 105 + playerTeam enemy + enemyTeam player +// race klingon + class stormtrooper + height 68 + crouchheight 52 + walkSpeed 51 + runSpeed 130 //200 + snd stofficer2 + sndcombat stofficer2 + sndextra stofficer2 + yawspeed 90 + walkSpeed 55 + runSpeed 130 //200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +STCommander +{ + playerModel stormtrooper + surfOn torso_pauldron_off + surfOff "torso_armor_neck_augment torso_body_neck_augment" + health 60 + headPitchRangeDown 30 + reactions 4 + aim 4 + move 3 + aggression 4 + evasion 3 + intelligence 5 + rank ensign + scale 105 + playerTeam enemy + enemyTeam player +// race klingon + class stormtrooper + height 68 + crouchheight 52 + walkSpeed 51 + runSpeed 130 //200 + snd stofficer2 + sndcombat stofficer2 + sndextra stofficer2 + yawspeed 110 + walkSpeed 55 + runSpeed 130 //200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +SwampTrooper +{ + playerModel swamptrooper + headPitchRangeDown 30 + health 70 + reactions 3 + aim 3 + move 3 + aggression 3 + evasion 3 + intelligence 3 + scale 110 + playerTeam enemy + enemyTeam player +// race klingon + class swamptrooper + height 68 + crouchheight 52 + snd swamp1 + sndcombat swamp1 + sndextra swamp1 + yawspeed 100 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +SwampTrooper2 +{ + playerModel swamptrooper + headPitchRangeDown 30 + health 70 + reactions 3 + aim 3 + move 3 + aggression 3 + evasion 3 + intelligence 3 + scale 110 + playerTeam enemy + enemyTeam player +// race klingon + class swamptrooper + height 68 + crouchheight 52 + snd swamp2 + sndcombat swamp2 + sndextra swamp2 + yawspeed 100 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +RocketTrooper +{ + playerModel stormtrooper + surfOn torso_pauldron_off + surfOff "torso_armor_neck_augment torso_body_neck_augment" + health 60 + headPitchRangeDown 30 + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 5 + intelligence 5 + rank ensign + scale 110 + playerTeam enemy + enemyTeam player +// race klingon + class stormtrooper + height 68 + crouchheight 52 + walkSpeed 51 + runSpeed 200 + snd st3 + sndcombat st3 + sndextra st3 + yawspeed 100 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +Imperial +{ + playerModel imperial + surfOff l_arm_key + health 20 + reactions 2 + aim 2 + move 2 + aggression 2 + evasion 2 + intelligence 2 + rank lt + playerTeam enemy + enemyTeam player +// race klingon + class imperial + snd io2 + sndcombat io2 + sndextra io2 + yawspeed 110 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +ImpOfficer +{ + playerModel imperial + surfOff l_arm_key + customSkin officer + health 40 + reactions 3 + aim 3 + move 3 + aggression 3 + evasion 3 + intelligence 3 + rank ltcomm + playerTeam enemy + enemyTeam player +// race klingon + class imperial + snd io1 + sndcombat io1 + sndextra io1 + yawspeed 110 + walkSpeed 55 + runSpeed 130 //130 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +ImpCommander +{ + playerModel imperial + surfOff l_arm_key + customSkin commander + health 80 + reactions 3 //4 + aim 4 + move 2 //4 + aggression 3 //4 + evasion 2 //4 + intelligence 4 + rank commander + playerTeam enemy + enemyTeam player +// race klingon + class imperial +// snd io3 +// sndcombat io3 +// sndextra io3 + snd io1 + sndcombat io1 + sndextra io1 + yawspeed 110 + walkSpeed 55 + runSpeed 130 //200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +ImpWorker +{ + playerModel imperial_worker + headPitchRangeDown 30 + health 30 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam enemy + enemyTeam player +// race imperial + class impworker + height 64 + crouchheight 48 + walkSpeed 51 + runSpeed 200 + snd worker1 + sndcombat worker1 + sndextra worker1 + yawspeed 90 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +ImpWorker2 +{ + playerModel imperial_worker + headPitchRangeDown 30 + health 30 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam enemy + enemyTeam player +// race imperial + class impworker + height 64 + crouchheight 48 + walkSpeed 51 + runSpeed 200 + snd worker2 + sndcombat worker2 + sndextra worker2 + yawspeed 90 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +ImpWorker3 +{ + playerModel imperial_worker + headPitchRangeDown 30 + health 30 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam enemy + enemyTeam player +// race imperial + class impworker + height 64 + crouchheight 48 + walkSpeed 51 + runSpeed 200 + snd worker3 + sndcombat worker3 + sndextra worker3 + yawspeed 90 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +RebornAcrobat +{ + playerModel reborn + customSkin acrobat + saberColor red + rank crewman + reactions 1 //2 + aim 1 //3 + move 1 //5 + aggression 1 //3 + evasion 1 //3 + intelligence 5 + hfov 160 + vfov 160 + scale 96 + playerTeam enemy + enemyTeam player +// race human + class reborn + snd reborn1 + sndcombat reborn1 + sndjedi reborn1 + yawSpeed 140 + walkSpeed 55 + runSpeed 60 //200 + health 50 //100 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} + +Reborn +{ + playerModel reborn + saberColor red + reactions 1 + aim 1 + move 1 + aggression 1 + evasion 1 + intelligence 1 + hfov 120 + vfov 120 + scale 94 + playerTeam enemy + enemyTeam player +// race human + class reborn + snd reborn1 + sndcombat reborn1 + sndjedi reborn1 + yawSpeed 60 + walkSpeed 45 + runSpeed 50 //180 + health 25 //40 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} + +RebornForceUser +{ + playerModel reborn + customSkin forceuser + saberColor red + rank ensign + reactions 2 + aim 2 + move 3 //5 + aggression 2 + evasion 2 + intelligence 5 + hfov 160 + vfov 160 + scale 96 + playerTeam enemy + enemyTeam player +// race human + class reborn + snd reborn2 + sndcombat reborn2 + sndjedi reborn2 + yawSpeed 80 + walkSpeed 55 + runSpeed 55 //200 + health 60 //100 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} + +RebornFencer +{ + playerModel reborn + customSkin fencer + saberColor red + rank ltjg + reactions 1 //3 + aim 1 //3 + move 1 //5 + aggression 1 //4 + evasion 2 //3 + intelligence 5 + hfov 160 + vfov 160 + scale 96 + playerTeam enemy + enemyTeam player +// race human + class reborn + snd reborn2 + sndcombat reborn2 + sndjedi reborn2 + yawSpeed 140 + walkSpeed 55 + runSpeed 70 //200 + health 70 //100 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} + +RebornBoss +{ + playerModel reborn + customSkin boss + saberColor red + rank lt + reactions 3 + aim 3 + move 5 + aggression 4 + evasion 3 + intelligence 5 + hfov 160 + vfov 160 + playerTeam enemy + enemyTeam player +// race human + class reborn + snd reborn3 + sndcombat reborn3 + sndjedi reborn3 + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + health 150 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} + +ShadowTrooper +{ + playerModel shadowtrooper + saberColor red + rank ltcomm + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 4 + intelligence 5 + hfov 160 + vfov 160 + playerTeam enemy + enemyTeam player +// race human + class shadowtrooper + snd shadow1 + sndcombat shadow1 + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + health 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 1 +} + +ShadowTrooper2 +{ + playerModel shadowtrooper + saberColor red + rank lt + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 4 + intelligence 5 + hfov 160 + vfov 160 + playerTeam enemy + enemyTeam player +// race human + class shadowtrooper + snd shadow2 + sndcombat shadow2 + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + health 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 1 +} +//NPC Monsters +Howler +{ + playerModel howler + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + playerTeam enemy + enemyTeam player + class howler + yawSpeed 60 + runSpeed 150 + walkSpeed 50 + hFOV 120 + vfov 45 + snd howler + health 60 +} + +Minemonster +{ + playerModel minemonster + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + playerTeam enemy + enemyTeam player + class minemonster + snd mine + yawSpeed 160 + runSpeed 210 + walkSpeed 50 + hFOV 120 + vfov 45 + height 30 + width 9 + snd mine + health 40 +} + + +Glider +{ + playerModel glider + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + playerTeam neutral + enemyTeam neutral +// race harvester + class glider + yawSpeed 60 + runSpeed 150 + walkSpeed 50 + hFOV 120 + vfov 45 + snd glider +} + + +//NPC Droids +protocol +{ + playerModel protocol + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + playerTeam neutral + enemyTeam neutral +// race bot + class protocol + snd protocol + yawSpeed 60 + runSpeed 150 + walkSpeed 50 + height 48 + width 12 + hFOV 120 + vfov 45 + snd protocol +} + +protocol_imp +{ + playerModel protocol + surfOn head_off + surfOff head + customSkin imp + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + playerTeam neutral + enemyTeam neutral +// race bot + class protocol + snd protocol + yawSpeed 60 + runSpeed 150 + walkSpeed 50 + height 48 + width 12 + hFOV 120 + vfov 45 + snd protocol +} + +r2d2 +{ + playermodel r2d2 + headYawRangeLeft 180 + headYawRangeRight 180 + headPitchRangeUp 0 + headPitchRangeDown 0 + torsoYawRangeLeft 0 + torsoYawRangeRight 0 + torsoPitchRangeUp 10 + torsoPitchRangeDown 10 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + playerTeam neutral + enemyTeam neutral +// race bot + class r2d2 + yawSpeed 120 + runSpeed 150 + walkSpeed 50 + height 40 + width 12 + hFOV 120 + vfov 45 + snd r2d2 +} + +r2d2_imp +{ + playermodel r2d2 + customSkin imp + headYawRangeLeft 180 + headYawRangeRight 180 + headPitchRangeUp 0 + headPitchRangeDown 0 + torsoYawRangeLeft 0 + torsoYawRangeRight 0 + torsoPitchRangeUp 10 + torsoPitchRangeDown 10 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + playerTeam neutral + enemyTeam neutral +// race bot + class r2d2 + yawSpeed 120 + runSpeed 150 + walkSpeed 50 + height 40 + width 12 + hFOV 120 + vfov 45 + snd r2d2 +} + +r5d2 +{ + playerModel r5d2 + headYawRangeLeft 180 + headYawRangeRight 180 + headPitchRangeUp 0 + headPitchRangeDown 0 + torsoYawRangeLeft 0 + torsoYawRangeRight 0 + torsoPitchRangeUp 10 + torsoPitchRangeDown 10 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + playerTeam neutral + enemyTeam neutral +// race bot + class r5d2 + yawSpeed 60 + runSpeed 150 + walkSpeed 50 + height 40 + width 12 + hFOV 120 + vfov 45 + snd r5d2 +} + +r5d2_imp +{ + playerModel r5d2 + customSkin imp + headYawRangeLeft 180 + headYawRangeRight 180 + headPitchRangeUp 0 + headPitchRangeDown 0 + torsoYawRangeLeft 0 + torsoYawRangeRight 0 + torsoPitchRangeUp 10 + torsoPitchRangeDown 10 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + playerTeam neutral + enemyTeam neutral +// race bot + class r5d2 + yawSpeed 60 + runSpeed 150 + walkSpeed 50 + height 40 + width 12 + hFOV 120 + vfov 45 + snd r5d2 +} + +gonk +{ + playerModel gonk + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + playerTeam neutral + enemyTeam neutral +// race bot + class gonk + yawSpeed 60 + runSpeed 40 + walkSpeed 30 + height 32 + width 12 + hFOV 120 + vfov 45 + snd gonk +} + + +mouse +{ + headmodel none + torsomodel none + legsmodel mouse + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + playerTeam neutral + enemyTeam neutral +// race bot + class mouse + yawSpeed 120 + runSpeed 500 + walkSpeed 150 + height 16 + width 8 + hFOV 120 + vfov 45 + snd mouse +} + + +seeker +{ + headmodel none + torsomodel none + legsmodel remote + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 3 + intelligence 5 + playerTeam player + enemyTeam enemy +// race bot + class seeker + yawSpeed 120 + runSpeed 500 + walkSpeed 150 + height 32 + width 8 + hFOV 160 + vfov 45 + snd remote + moveType "flyswim" +} + +remote +{ + headmodel none + torsomodel none + legsmodel remote + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 3 + intelligence 5 + playerTeam enemy + enemyTeam player +// race bot + class remote + yawSpeed 120 + runSpeed 500 + walkSpeed 150 + height 32 + width 8 + hFOV 160 + vfov 45 + snd remote + moveType "flyswim" +} + +sentry +{ + playermodel sentry + health 100 + reactions 3 + aim 3 + move 3 + aggression 3 + evasion 1 + intelligence 5 + playerTeam enemy + enemyTeam player +// race bot + class sentry + health 150 + yawSpeed 120 + runSpeed 400 + walkSpeed 250 + height 48 + width 24 + hFOV 120 + vfov 160 + snd sentry +} + +interrogator +{ + playermodel interrogator + health 100 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + playerTeam enemy + enemyTeam player +// race bot + class interrogator + yawSpeed 120 + runSpeed 150 + walkSpeed 50 + height 24 + width 12 + hFOV 120 + vfov 45 + snd interrogator +} + + +probe +{ + playerModel probe + health 200 + headYawRangeLeft 180 + headYawRangeRight 180 + headPitchRangeUp 0 + headPitchRangeDown 0 + torsoYawRangeLeft 0 + torsoYawRangeRight 0 + torsoPitchRangeUp 10 + torsoPitchRangeDown 10 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + playerTeam enemy + enemyTeam player +// race bot + class probe + yawSpeed 60 + runSpeed 150 + walkSpeed 50 + height 110 + width 24 + hFOV 120 + vfov 45 + snd probe + moveType "flyswim" +} + +mark1 +{ + playerModel mark1 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + height 120 + width 36 + playerTeam enemy + enemyTeam player + health 300 +// race bot + class mark1 + yawSpeed 60 + runSpeed 150 + walkSpeed 70 + hFOV 120 + vfov 45 + snd mark1 +} + +mark2 +{ + playerModel mark2 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + playerTeam enemy + enemyTeam player +// race bot + class mark2 + yawSpeed 60 + runSpeed 150 + walkSpeed 75 + hFOV 120 + vfov 45 + snd mark2 +} + +atst +{ + playerModel atst +// headModel atst + //torsoModel atst + //legsModel atst + headYawRangeLeft 80 + headYawRangeRight 80 + headPitchRangeUp 30 + headPitchRangeDown 30 + torsoYawRangeLeft 0 + torsoYawRangeRight 0 + torsoPitchRangeUp 0 + torsoPitchRangeDown 0 + health 200 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + playerTeam enemy + enemyTeam player + height 272 + width 80 +// race bot + class atst + yawSpeed 60 + runSpeed 150 + walkSpeed 150 + hFOV 120 + vfov 45 + snd atst +} + +test +{ + playerModel test + playerTeam player + enemyTeam neutral + class kyle +} diff --git a/z_vr_assets/menu/video/beef_crawl.tga b/z_vr_assets/menu/video/beef_crawl.tga new file mode 100644 index 0000000..8035a7e Binary files /dev/null and b/z_vr_assets/menu/video/beef_crawl.tga differ diff --git a/z_vr_assets/models/players/kyle/hand.jpg b/z_vr_assets/models/players/kyle/hand.jpg new file mode 100644 index 0000000..2c767ef Binary files /dev/null and b/z_vr_assets/models/players/kyle/hand.jpg differ diff --git a/z_vr_assets/models/players/kyle/lhand_r.md3 b/z_vr_assets/models/players/kyle/lhand_r.md3 new file mode 100644 index 0000000..89d8299 Binary files /dev/null and b/z_vr_assets/models/players/kyle/lhand_r.md3 differ diff --git a/z_vr_assets/models/players/kyle/torso.jpg b/z_vr_assets/models/players/kyle/torso.jpg new file mode 100644 index 0000000..1eb06c4 Binary files /dev/null and b/z_vr_assets/models/players/kyle/torso.jpg differ diff --git a/z_vr_assets/ui/controls.menu b/z_vr_assets/ui/controls.menu new file mode 100644 index 0000000..7939af5 --- /dev/null +++ b/z_vr_assets/ui/controls.menu @@ -0,0 +1,1442 @@ +//-------------------------------------------------------------- +// +// CONTROLS MENU +// +//-------------------------------------------------------------- +{ + menuDef + { + name "controlsMenu" + fullScreen 1 // MENU_TRUE + rect 0 0 640 480 // Size and position of the menu + visible 1 // Visible on open + focusColor 1 1 1 1 // Focus color for text and items + descX 375 + descY 425 + descScale .8 + descColor .235 .882 .847 1 // Focus color for text and items + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + uiScript loadControls + hide forcecontrols + hide movecontrols + hide invcontrols + hide comfortcontrols + show setup_background + show weaponcontrols + } + + onClose + { + uiScript saveControls + } + + onESC + { + play sound/interface/menuroam + hide highlights + close controlsMenu + open mainMenu + } + + //---------------------------------------------------------------------------------------------- + // + // MENU BACKGROUND + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name frame_pic + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/menu1" // Frame + forecolor 1 1 1 1 + visible 1 + decoration + } + + // The saber glow on the left + itemDef + { + name saberglow + group none + style WINDOW_STYLE_SHADER + rect 30 0 90 480 + background "gfx/menus/menu3" // Frame + forecolor 0.8 0.8 0.8 1 + visible 1 + decoration + } + + + // The starwars logo on the top + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 143 12 470 93 + background "gfx/menus/menu4" // Frame + forecolor 1 1 1 1 + visible 1 + decoration + } + + // The saber halo on the left + itemDef + { + name saberhalo + group none + style WINDOW_STYLE_SHADER + rect -425 -185 1000 1000 + background "gfx/menus/menu2" // Frame + forecolor 0.5 0.5 0.5 1 + visible 1 + decoration + } + + itemDef + { + name logomodel + group none + type ITEM_TYPE_MODEL + rect -123 48 400 400 + model_angle 90 + model_rotation 3.5 + asset_model "models/map_objects/bespin/jk2logo.md3" +// model_fovx 37 +// model_fovy 34 +// model_origin 100 100 100 + visible 1 + decoration + } + + // The saber halo on the left + itemDef + { + name saberhalo2 + group none + style WINDOW_STYLE_SHADER + rect -225 15 600 600 + background "gfx/menus/menu2b" // Frame + forecolor 0.25 0.25 0.25 1 + visible 1 + decoration + } + + //---------------------------------------------------------------------------------------------- + // + // TOP MAIN MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + + // Big button "NEW" + itemDef + { + name newgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 115 115 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name newgamebutton + group toprow + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 115 115 130 24 + text @MENUS1_NEW + descText @MENUS1_START_A_NEW_GAME + font 3 + textscale 0.9 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + forecolor 0.64 0.65 1 1 + visible 1 + + mouseEnter + { + show newgamebutton_glow + } + mouseExit + { + hide newgamebutton_glow + } + action + { + play sound/interface/button1 + close all + open newgameMenu + } + } + + // Big button "LOAD" + itemDef + { + name loadgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 245 115 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name loadgamebutton + group toprow + text @MENUS1_LOAD + descText @MENUS1_LOAD_A_SAVED_GAME + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 245 115 130 24 + textaligny 0 + font 3 + textscale 0.9 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + forecolor 0.64 0.65 1 1 + visible 1 + + mouseEnter + { + show loadgamebutton_glow + } + mouseExit + { + hide loadgamebutton_glow + } + action + { + play sound/interface/button1 + close all + open loadgameMenu + } + } + + // Big button "CONTROLS" + itemDef + { + name controlsbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 375 115 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name controlsbutton + group toprow + text @MENUS0_CONTROLS2 + descText @MENUS0_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 375 115 130 24 + font 3 + textscale 0.9 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 1 1 1 + visible 1 + decoration + action + { + play sound/interface/button1 + } + + mouseEnter + { + show controlsbutton_glow + } + mouseExit + { + hide controlsbutton_glow + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 505 115 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name setupbutton + group toprow + text @MENUS0_SETUP + descText @MENUS0_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 505 115 130 24 + font 3 + textscale 0.9 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + backcolor 0 0 0 0 + forecolor 0.64 0.65 1 1 + visible 1 + + mouseEnter + { + show setupbutton_glow + } + mouseExit + { + hide setupbutton_glow + } + action + { + play sound/interface/button1 + close all + open setupMenu + } + } + + itemDef + { + name header_line + group toprow + style WINDOW_STYLE_SHADER + rect 125 136 500 4 + background "gfx/menus/menu_line" // Frame + forecolor 1 1 1 1 + visible 1 + decoration + } + + + //---------------------------------------------------------------------------------------------- + // + // OTHER MAIN MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + // Credits hidden button + itemDef + { + name creditsbutton + group othermain +// text @CREDITS + descText @MENUS0_SHOW_GAME_CREDITS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 51 284 52 60 + font 2 + textscale 1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textalignx 46 + backcolor 0 0 0 0 + forecolor 0.65 0.65 1 1 + visible 0 + + mouseEnter + { + setitemcolor saberhalo2 forecolor 0.7 0.7 0.7 1 + } + mouseExit + { + setitemcolor saberhalo2 forecolor 0.25 0.25 0.25 1 + } + action + { + play sound/interface/button1 + close all + open creditsMenu + } + } + + // EXIT button in lower left corner + // Big button "SETUP" + itemDef + { + name exitgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 115 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name exitgamebutton + group othermain + text @MENUS0_EXIT + descText @MENUS1_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 115 444 130 24 + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 0.65 0.65 1 1 + visible 1 + + mouseEnter + { + show exitgamebutton_glow + } + mouseExit + { + hide exitgamebutton_glow + } + action + { + play "sound/weapons/saber/saberoff.mp3" + close all + open quitMenu + } + } + + //---------------------------------------------------------------------------------------------- + // + // SECOND ROW MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + // Configure Controls title + itemDef + { + name control_title + group none + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS1_CONFIGURE_CONTROLS + rect 150 145 450 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -2 + forecolor 1 1 1 1 + visible 1 + decoration + } + + + // Weapons button + itemDef + { + name weaponscontrolbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 120 173 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name weaponscontrolbutton + group none + text @MENUS0_WEAPONS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 120 173 170 30 + font 3 + textscale 0.9 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 0.65 0.65 1 1 + visible 1 + descText @MENUS0_CONFIGURE_WEAPON_CONTROLS + + mouseEnter + { + show weaponscontrolbutton_glow + } + mouseExit + { + hide weaponscontrolbutton_glow + } + action + { + play sound/interface/button1 + show setup_background + show weaponcontrols + hide forcecontrols + hide movecontrols + hide invcontrols + hide comfortcontrols + setitemcolor weaponscontrolbutton forecolor 1 1 1 1 + setitemcolor forcecontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor movementcontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor inventorycontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor comfortcontrolbutton forecolor 0.64 0.65 1 1 + } + } + + // Force Powers button + itemDef + { + name forcecontrolbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 120 203 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name forcecontrolbutton + group none + text @MENUS1_FORCE_POWERS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 120 203 170 30 + font 3 + textscale 0.9 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 0.65 0.65 1 1 + visible 1 + descText "Configure Force Power controls." + + mouseEnter + { + show forcecontrolbutton_glow + } + mouseExit + { + hide forcecontrolbutton_glow + } + action + { + play sound/interface/button1 + show setup_background + hide weaponcontrols + show forcecontrols + hide movecontrols + hide invcontrols + hide comfortcontrols + setitemcolor weaponscontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor forcecontrolbutton forecolor 1 1 1 1 + setitemcolor movementcontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor inventorycontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor comfortcontrolbutton forecolor 0.64 0.65 1 1 + } + } + + // movement button + itemDef + { + name movementcontrolbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 120 233 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name movementcontrolbutton + group none + text @MENUS0_MOVEMENT + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 120 233 170 30 + font 3 + textscale 0.9 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 0.65 0.65 1 1 + visible 1 + descText "Configure Movement controls" + + mouseEnter + { + show movementcontrolbutton_glow + } + mouseExit + { + hide movementcontrolbutton_glow + } + action + { + play sound/interface/button1 + show setup_background + hide weaponcontrols + hide forcecontrols + show movecontrols + hide invcontrols + hide comfortcontrols + setitemcolor weaponscontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor forcecontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor movementcontrolbutton forecolor 1 1 1 1 + setitemcolor inventorycontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor comfortcontrolbutton forecolor 0.64 0.65 1 1 + } + } + + // inventory button + itemDef + { + name inventorycontrolbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 120 263 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name inventorycontrolbutton + group none + text @MENUS1_INVENTORY + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 120 263 170 30 + font 3 + textscale 0.9 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 0.65 0.65 1 1 + visible 1 + descText "Configure Inventory controls." + + mouseEnter + { + show inventorycontrolbutton_glow + } + mouseExit + { + hide inventorycontrolbutton_glow + } + action + { + play sound/interface/button1 + show setup_background + hide weaponcontrols + hide forcecontrols + hide movecontrols + show invcontrols + hide comfortcontrols + setitemcolor weaponscontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor forcecontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor movementcontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor inventorycontrolbutton forecolor 1 1 1 1 + setitemcolor comfortcontrolbutton forecolor 0.64 0.65 1 1 + } + } + + // comfort button + itemDef + { + name comfortcontrolbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 120 293 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name comfortcontrolbutton + group none + text "Comfort" + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 120 293 170 30 + font 3 + textscale 0.9 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 0.65 0.65 1 1 + visible 1 + descText "Configure comfort options." + + mouseEnter + { + show comfortcontrolbutton_glow + } + mouseExit + { + hide comfortcontrolbutton_glow + } + action + { + play sound/interface/button1 + show setup_background + hide weaponcontrols + hide forcecontrols + hide movecontrols + hide invcontrols + show comfortcontrols + setitemcolor weaponscontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor forcecontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor movementcontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor inventorycontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor comfortcontrolbutton forecolor 1 1 1 1 + } + } + + itemDef + { + name setup_background + group none + style WINDOW_STYLE_SHADER + rect 300 171 300 250 + background "gfx/menus/menu_box1" // Frame + forecolor 1 1 1 1 + visible 0 + decoration + } + + //---------------------------------------------------------------------------------------------- + // + // HIGHLIGHT BARS + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name highlight1 + group highlights + style WINDOW_STYLE_SHADER + rect 305 171 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight2 + group highlights + style WINDOW_STYLE_SHADER + rect 305 191 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight3 + group highlights + style WINDOW_STYLE_SHADER + rect 305 211 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight4 + group highlights + style WINDOW_STYLE_SHADER + rect 305 231 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight5 + group highlights + style WINDOW_STYLE_SHADER + rect 305 251 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight6 + group highlights + style WINDOW_STYLE_SHADER + rect 305 271 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight7 + group highlights + style WINDOW_STYLE_SHADER + rect 305 291 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight8 + group highlights + style WINDOW_STYLE_SHADER + rect 305 311 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight9 + group highlights + style WINDOW_STYLE_SHADER + rect 305 331 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight10 + group highlights + style WINDOW_STYLE_SHADER + rect 305 351 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight11 + group highlights + style WINDOW_STYLE_SHADER + rect 305 371 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight12 + group highlights + style WINDOW_STYLE_SHADER + rect 305 391 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + + + //---------------------------------------------------------------------------------------------- + // + // WEAPON MENU + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_MULTI + text @MENUS0_AUTO_SWITCH + cvar "cg_autoswitch" + cvarFloatList + { + @MENUS1_DON_T_SWITCH 0 + @MENUS1_BEST_SAFE_WEAPON 1 + @MENUS1_ALWAYS_BEST_WEAPON 2 + } + rect 305 191 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS1_CHOOSE_WHETHER_TO_SWITCH + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight2 + } + + mouseexit + { + hide highlight2 + } + + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_SLIDER + text "Weapon Pitch:" + cvarfloat "vr_weapon_pitchadjust" 5 -25 5 + rect 305 211 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 2 + descText "Sets aiming pitch of held weapon." + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight3 + } + + mouseexit + { + hide highlight3 + } + + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_YESNO + text "Virtual Gun Stock:" + cvar "vr_virtual_stock" + rect 305 231 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 2 + descText "Enables or disables virtual gun stock." + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight4 + } + + mouseexit + { + hide highlight4 + } + + } + + + + //---------------------------------------------------------------------------------------------- + // + // FORCE MENU + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name none + group forcecontrols + type ITEM_TYPE_YESNO + text "Placeholder:" + cvar "place_holder" + rect 305 191 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText "Item placeholder." + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight2 + } + mouseexit + { + hide highlight2 + } + } + + + + //---------------------------------------------------------------------------------------------- + // + // MOVEMENT MENU + // + //---------------------------------------------------------------------------------------------- + //itemDef + //{ + // name none + // group movecontrols + // type ITEM_TYPE_YESNO + // text @MENUS0_ALWAYS_RUN + // cvar "cl_run" + // rect 305 191 300 20 + // textalign ITEM_ALIGN_RIGHT + // textalignx 151 + // textaligny -2 + // font 2 + // textscale 0.8 + // forecolor 1 1 1 1 + // visible 0 + // // appearance_slot 1 + // descText @MENUS1_WHEN_ON_PLAYER_ALWAYS + // action + // { + // play sound/interface/button1 + // } + // + // mouseenter + // { + // show highlight2 + // } + // + // mouseexit + // { + // hide highlight2 + // } + //} + + itemDef + { + name none + group movecontrols + type ITEM_TYPE_SLIDER + text "Movement Speed:" + cvarfloat "vr_movement_multiplier" 0.1 0.4 1.2 + rect 305 191 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText "Sets player movement speed." + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight2 + } + + mouseexit + { + hide highlight2 + } + } + + itemDef + { + name none + group movecontrols + type ITEM_TYPE_MULTI + text "Direction Mode:" + cvar "vr_walkdirection" + cvarFloatList + { + "Off-hand Controller" 0 + "HMD" 1 + } + rect 305 211 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText "Choose movement direction mode." + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight3 + } + + mouseexit + { + hide highlight3 + } + + } + + itemDef + { + name none + group movecontrols + type ITEM_TYPE_YESNO + text "Smooth turn:" + cvar "vr_turn_mode" + rect 305 231 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 3 + descText "Enables or disables smooth turning." + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight4 + } + mouseexit + { + hide highlight4 + } + } + + itemDef + { + name none + group movecontrols + type ITEM_TYPE_MULTI + text "Turn Angle:" + cvar "vr_turn_angle" + cvarFloatList + { + "30 Degrees" 30 + "45 Degrees" 45 + "90 Degrees" 90 + } + rect 305 251 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 4 + descText "Degrees to turn when using snap turn / Speed of smooth turn" + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight5 + } + mouseexit + { + hide highlight5 + } + } + + itemDef + { + name movement + group movecontrols + type ITEM_TYPE_YESNO + text "Switch Sticks:" + cvar "vr_switch_sticks" + rect 305 271 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 5 + descText "Switches left/gight controller thubmsticks." + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight6 + } + mouseexit + { + hide highlight6 + } + } + + + + //---------------------------------------------------------------------------------------------- + // + // INVENTORY MENU + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name none + group invcontrols + type ITEM_TYPE_YESNO + text "Placeholder:" + cvar "place_holder" + rect 305 191 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText "Item placeholder." + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight2 + } + mouseexit + { + hide highlight2 + } + } + + + + //---------------------------------------------------------------------------------------------- + // + // COMFORT MENU + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name none + group comfortcontrols + type ITEM_TYPE_YESNO + text "Immersive Cinematics:" + cvar "vr_immersive_cinematics" + rect 305 191 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText "Enables or disables immersive cinematics." + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight2 + } + + mouseexit + { + hide highlight2 + } + } + + itemDef + { + name none + group comfortcontrols + type ITEM_TYPE_MULTI + text "Menu Screen Distance:" + cvar "vr_screen_dist" + cvarFloatList + { + "Near" 1.5 + "Medium" 2.5 + "Far" 3.5 + } + rect 305 211 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText "Select menu screen distance." + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight3 + } + + mouseexit + { + hide highlight3 + } + } + + + + //---------------------------------------------------------------------------------------------- + // + // Text + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name keyBindStatus + group none + ownerdraw 250 // UI_KEYBINDSTATUS + text @MENUS2_BLANK_1 + rect 375 425 0 0 + textStyle 0 + font 2 + textscale .8 + textalign ITEM_ALIGN_CENTER + forecolor 1 1 0 1 + visible 0 + decoration + } + + itemDef + { + name slider_message + group none + text @MENUS0_MOVE_THE_SLIDER_TO_INCREASE + rect 375 425 0 0 + textStyle 0 + font 2 + textscale .8 + textalign ITEM_ALIGN_CENTER + visible 0 + decoration + } + + itemDef + { + name yesno_message + group none + text @MENUS0_CLICK_ON_FIELD_TO_TOGGLE + rect 375 425 0 0 + textStyle 0 + font 2 + textscale .8 + textalign ITEM_ALIGN_CENTER + visible 0 + decoration + } + + itemDef + { + name multi_message + group none + text @MENUS0_CLICK_ON_FIELD_TO_CHANGE + rect 375 425 0 0 + textStyle 0 + font 2 + textscale .8 + textalign ITEM_ALIGN_CENTER + visible 0 + decoration + } + + } +} diff --git a/z_vr_assets/ui/ingamecontrols.menu b/z_vr_assets/ui/ingamecontrols.menu new file mode 100644 index 0000000..1917ebb --- /dev/null +++ b/z_vr_assets/ui/ingamecontrols.menu @@ -0,0 +1,1452 @@ +//-------------------------------------------------------------- +// +// in-game CONTROLS MENU +// +//-------------------------------------------------------------- +{ + menuDef + { + name "ingameControlsMenu" + fullScreen 1 // MENU_TRUE + rect 0 0 640 480 // Size and position of the menu + visible 1 // Visible on open + focusColor 1 1 1 1 // Focus color for text and items + descX 375 + descY 425 + descScale .8 + descColor .235 .882 .847 1 // Focus color for text and items + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + uiScript loadControls + hide forcecontrols + hide movecontrols + hide invcontrols + hide comfortcontrols + show setup_background + show weaponcontrols + } + + onClose + { + uiScript saveControls + } + + onESC + { + play sound/interface/button1.wav + hide highlights + close all + open ingameMainMenu + } + + //---------------------------------------------------------------------------------------------- + // + // MENU BACKGROUND + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name frame_pic + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/menu1" // Frame + forecolor 1 1 1 1 + visible 1 + decoration + } + + // The saber glow on the left + itemDef + { + name saberglow + group none + style WINDOW_STYLE_SHADER + rect 30 0 90 480 + background "gfx/menus/menu3" // Frame + forecolor 0.8 0.8 0.8 1 + visible 1 + decoration + } + + + // The starwars logo on the top + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 143 12 470 93 + background "gfx/menus/menu4" // Frame + forecolor 1 1 1 1 + visible 1 + decoration + } + + // The saber halo on the left + itemDef + { + name saberhalo + group none + style WINDOW_STYLE_SHADER + rect -425 -185 1000 1000 + background "gfx/menus/menu2" // Frame + forecolor 0.5 0.5 0.5 1 + visible 1 + decoration + } + + itemDef + { + name logomodel + group none + type ITEM_TYPE_MODEL + rect -123 48 400 400 + model_angle 90 + model_rotation 3.5 + asset_model "models/map_objects/bespin/jk2logo.md3" +// model_fovx 37 +// model_fovy 34 +// model_origin 100 100 100 + visible 1 + decoration + } + + // The saber halo on the left + itemDef + { + name saberhalo2 + group none + style WINDOW_STYLE_SHADER + rect -225 15 600 600 + background "gfx/menus/menu2b" // Frame + forecolor 0.25 0.25 0.25 1 + visible 1 + decoration + } + + //---------------------------------------------------------------------------------------------- + // + // TOP MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + + + // Big button "SAVE" + itemDef + { + name savegamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 115 115 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name savegamebutton + group toprow + text @MENUS1_SAVE + descText @MENUS1_SAVE_CURRENT_GAME + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 115 115 130 24 + textaligny 0 + font 3 + textscale 0.9 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + forecolor 0.65 0.65 1 1 + visible 1 + + mouseEnter + { + show savegamebutton_glow + } + mouseExit + { + hide savegamebutton_glow + } + action + { + play sound/interface/button1 + close all + open ingamesaveMenu + } + } + + // Big button "LOAD" + itemDef + { + name loadgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 245 115 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name loadgamebutton + group toprow + text @MENUS1_LOAD + descText @MENUS1_LOAD_A_SAVED_GAME + rect 245 115 130 24 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + textstyle 3 + font 3 + textscale 0.9 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textalignx 65 + forecolor 0.65 0.65 1 1 + visible 1 + + mouseEnter + { + show loadgamebutton_glow + } + mouseExit + { + hide loadgamebutton_glow + } + action + { + play sound/interface/button1 + close all + open ingameloadMenu + } + } + + // Big button "CONTROLS" + itemDef + { + name controlsbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 375 115 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name controlsbutton + group toprow + text @MENUS0_CONTROLS2 + descText @MENUS0_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 375 115 130 24 + font 3 + textscale 0.9 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 1 1 1 + visible 1 + decoration + action + { + play sound/interface/button1 + } + + mouseEnter + { + show controlsbutton_glow + } + mouseExit + { + hide controlsbutton_glow + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 505 115 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name setupbutton + group toprow + text @MENUS0_SETUP + descText @MENUS0_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 505 115 130 24 + font 3 + textscale 0.9 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + backcolor 0 0 0 0 + forecolor 0.65 0.65 1 1 + visible 1 + + mouseEnter + { + show setupbutton_glow + } + mouseExit + { + hide setupbutton_glow + } + action + { + play sound/interface/button1 + close all + open ingameSetupMenu + } + } + + itemDef + { + name header_line + group toprow + style WINDOW_STYLE_SHADER + rect 125 136 500 4 + background "gfx/menus/menu_line" // Frame + forecolor 1 1 1 1 + visible 1 + decoration + } + + + //---------------------------------------------------------------------------------------------- + // + // OTHER MAIN MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + // EXIT button in lower left corner + itemDef + { + name exitgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 115 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name exitgamebutton + group othermain + text @MENUS0_EXIT + descText @MENUS1_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 115 444 130 24 + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 0.65 0.65 1 1 + visible 1 + + mouseEnter + { + show exitgamebutton_glow + } + mouseExit + { + hide exitgamebutton_glow + } + action + { + play sound/interface/button1 + close all + open ingamequitMenu + } + } + + // RESUME button in the lower right corner + itemDef + { + name resumebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 495 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name resume + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 495 444 130 24 + text @MENUS1_RESUME + descText @MENUS1_RESUME_CURRENT_GAME + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 0.65 0.65 1 1 + visible 1 + mouseEnter + { + show resumebutton_glow + } + mouseExit + { + hide resumebutton_glow + } + action + { + play sound/interface/button1 + uiScript closeingame // Close menu + } + } + + //---------------------------------------------------------------------------------------------- + // + // SECOND ROW MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + // Configure Controls title + itemDef + { + name control_title + group none + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS1_CONFIGURE_CONTROLS + rect 150 145 450 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -2 + forecolor 1 1 1 1 + visible 1 + decoration + } + + + // Weapons button + itemDef + { + name weaponscontrolbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 120 173 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name weaponscontrolbutton + group none + text @MENUS0_WEAPONS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 120 173 170 30 + font 3 + textscale 0.9 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 0.65 0.65 1 1 + visible 1 + descText @MENUS0_CONFIGURE_WEAPON_CONTROLS + + mouseEnter + { + show weaponscontrolbutton_glow + } + mouseExit + { + hide weaponscontrolbutton_glow + } + action + { + play sound/interface/button1 + show setup_background + show weaponcontrols + hide forcecontrols + hide movecontrols + hide invcontrols + hide comfortcontrols + setitemcolor weaponscontrolbutton forecolor 1 1 1 1 + setitemcolor forcecontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor movementcontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor inventorycontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor comfortcontrolbutton forecolor 0.64 0.65 1 1 + } + } + + // Force Powers button + itemDef + { + name forcecontrolbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 120 203 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name forcecontrolbutton + group none + text @MENUS1_FORCE_POWERS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 120 203 170 30 + font 3 + textscale 0.9 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 0.65 0.65 1 1 + visible 1 + descText "Configure Force Power controls." + + mouseEnter + { + show forcecontrolbutton_glow + } + mouseExit + { + hide forcecontrolbutton_glow + } + action + { + play sound/interface/button1 + show setup_background + hide weaponcontrols + show forcecontrols + hide movecontrols + hide invcontrols + hide comfortcontrols + setitemcolor weaponscontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor forcecontrolbutton forecolor 1 1 1 1 + setitemcolor movementcontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor inventorycontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor comfortcontrolbutton forecolor 0.64 0.65 1 1 + } + } + + // movement button + itemDef + { + name movementcontrolbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 120 233 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name movementcontrolbutton + group none + text @MENUS0_MOVEMENT + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 120 233 170 30 + font 3 + textscale 0.9 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 0.65 0.65 1 1 + visible 1 + descText "Configure Movement controls" + + mouseEnter + { + show movementcontrolbutton_glow + } + mouseExit + { + hide movementcontrolbutton_glow + } + action + { + play sound/interface/button1 + show setup_background + hide weaponcontrols + hide forcecontrols + show movecontrols + hide invcontrols + hide comfortcontrols + setitemcolor weaponscontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor forcecontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor movementcontrolbutton forecolor 1 1 1 1 + setitemcolor inventorycontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor comfortcontrolbutton forecolor 0.64 0.65 1 1 + } + } + + // inventory button + itemDef + { + name inventorycontrolbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 120 263 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name inventorycontrolbutton + group none + text @MENUS1_INVENTORY + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 120 263 170 30 + font 3 + textscale 0.9 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 0.65 0.65 1 1 + visible 1 + descText "Configure Inventory controls." + + mouseEnter + { + show inventorycontrolbutton_glow + } + mouseExit + { + hide inventorycontrolbutton_glow + } + action + { + play sound/interface/button1 + show setup_background + hide weaponcontrols + hide forcecontrols + hide movecontrols + show invcontrols + hide comfortcontrols + setitemcolor weaponscontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor forcecontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor movementcontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor inventorycontrolbutton forecolor 1 1 1 1 + setitemcolor comfortcontrolbutton forecolor 0.64 0.65 1 1 + } + } + + // comfort button + itemDef + { + name comfortcontrolbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 120 293 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name comfortcontrolbutton + group none + text "Comfort" + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 120 293 170 30 + font 3 + textscale 0.9 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 0.65 0.65 1 1 + visible 1 + descText "Configure comfort options." + + mouseEnter + { + show comfortcontrolbutton_glow + } + mouseExit + { + hide comfortcontrolbutton_glow + } + action + { + play sound/interface/button1 + show setup_background + hide weaponcontrols + hide forcecontrols + hide movecontrols + hide invcontrols + show comfortcontrols + setitemcolor weaponscontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor forcecontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor movementcontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor inventorycontrolbutton forecolor 0.64 0.65 1 1 + setitemcolor comfortcontrolbutton forecolor 1 1 1 1 + } + } + + itemDef + { + name setup_background + group none + style WINDOW_STYLE_SHADER + rect 300 171 300 250 + background "gfx/menus/menu_box1" // Frame + forecolor 1 1 1 1 + visible 0 + decoration + } + + //---------------------------------------------------------------------------------------------- + // + // HIGHLIGHT BARS + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name highlight1 + group highlights + style WINDOW_STYLE_SHADER + rect 305 171 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight2 + group highlights + style WINDOW_STYLE_SHADER + rect 305 191 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight3 + group highlights + style WINDOW_STYLE_SHADER + rect 305 211 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight4 + group highlights + style WINDOW_STYLE_SHADER + rect 305 231 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight5 + group highlights + style WINDOW_STYLE_SHADER + rect 305 251 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight6 + group highlights + style WINDOW_STYLE_SHADER + rect 305 271 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight7 + group highlights + style WINDOW_STYLE_SHADER + rect 305 291 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight8 + group highlights + style WINDOW_STYLE_SHADER + rect 305 311 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight9 + group highlights + style WINDOW_STYLE_SHADER + rect 305 331 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight10 + group highlights + style WINDOW_STYLE_SHADER + rect 305 351 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight11 + group highlights + style WINDOW_STYLE_SHADER + rect 305 371 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight12 + group highlights + style WINDOW_STYLE_SHADER + rect 305 391 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + + + //---------------------------------------------------------------------------------------------- + // + // WEAPON MENU + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_MULTI + text @MENUS0_AUTO_SWITCH + cvar "cg_autoswitch" + cvarFloatList + { + @MENUS1_DON_T_SWITCH 0 + @MENUS1_BEST_SAFE_WEAPON 1 + @MENUS1_ALWAYS_BEST_WEAPON 2 + } + rect 305 191 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS1_CHOOSE_WHETHER_TO_SWITCH + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight2 + } + + mouseexit + { + hide highlight2 + } + + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_SLIDER + text "Weapon Pitch:" + cvarfloat "vr_weapon_pitchadjust" 5 -25 5 + rect 305 211 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 2 + descText "Sets aiming pitch of held weapon." + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight3 + } + + mouseexit + { + hide highlight3 + } + + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_YESNO + text "Virtual Gun Stock:" + cvar "vr_virtual_stock" + rect 305 231 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 2 + descText "Enables or disables virtual gun stock." + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight4 + } + + mouseexit + { + hide highlight4 + } + + } + + + + //---------------------------------------------------------------------------------------------- + // + // FORCE MENU + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name none + group forcecontrols + type ITEM_TYPE_YESNO + text "Placeholder:" + cvar "place_holder" + rect 305 191 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText "Item placeholder." + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight2 + } + mouseexit + { + hide highlight2 + } + } + + + + //---------------------------------------------------------------------------------------------- + // + // MOVEMENT MENU + // + //---------------------------------------------------------------------------------------------- + //itemDef + //{ + // name none + // group movecontrols + // type ITEM_TYPE_YESNO + // text @MENUS0_ALWAYS_RUN + // cvar "cl_run" + // rect 305 191 300 20 + // textalign ITEM_ALIGN_RIGHT + // textalignx 151 + // textaligny -2 + // font 2 + // textscale 0.8 + // forecolor 1 1 1 1 + // visible 0 + // // appearance_slot 1 + // descText @MENUS1_WHEN_ON_PLAYER_ALWAYS + // action + // { + // play sound/interface/button1 + // } + // + // mouseenter + // { + // show highlight2 + // } + // + // mouseexit + // { + // hide highlight2 + // } + //} + + itemDef + { + name none + group movecontrols + type ITEM_TYPE_SLIDER + text "Movement Speed:" + cvarfloat "vr_movement_multiplier" 0.1 0.4 1.2 + rect 305 191 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText "Sets player movement speed." + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight2 + } + + mouseexit + { + hide highlight2 + } + } + + itemDef + { + name none + group movecontrols + type ITEM_TYPE_MULTI + text "Direction Mode:" + cvar "vr_walkdirection" + cvarFloatList + { + "Off-hand Controller" 0 + "HMD" 1 + } + rect 305 211 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText "Choose movement direction mode." + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight3 + } + + mouseexit + { + hide highlight3 + } + + } + + itemDef + { + name none + group movecontrols + type ITEM_TYPE_YESNO + text "Smooth turn:" + cvar "vr_turn_mode" + rect 305 231 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 3 + descText "Enables or disables smooth turning." + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight4 + } + mouseexit + { + hide highlight4 + } + } + + itemDef + { + name none + group movecontrols + type ITEM_TYPE_MULTI + text "Turn Angle:" + cvar "vr_turn_angle" + cvarFloatList + { + "30 Degrees" 30 + "45 Degrees" 45 + "90 Degrees" 90 + } + rect 305 251 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 4 + descText "Degrees to turn when using snap turn / Speed of smooth turn" + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight5 + } + mouseexit + { + hide highlight5 + } + } + + itemDef + { + name movement + group movecontrols + type ITEM_TYPE_YESNO + text "Switch Sticks:" + cvar "vr_switch_sticks" + rect 305 271 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 5 + descText "Switches left/gight controller thubmsticks." + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight6 + } + mouseexit + { + hide highlight6 + } + } + + + + //---------------------------------------------------------------------------------------------- + // + // INVENTORY MENU + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name none + group invcontrols + type ITEM_TYPE_YESNO + text "Placeholder:" + cvar "place_holder" + rect 305 191 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText "Item placeholder." + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight2 + } + mouseexit + { + hide highlight2 + } + } + + + + //---------------------------------------------------------------------------------------------- + // + // COMFORT MENU + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name none + group comfortcontrols + type ITEM_TYPE_YESNO + text "Immersive Cinematics:" + cvar "vr_immersive_cinematics" + rect 305 191 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText "Enables or disables immersive cinematics." + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight2 + } + + mouseexit + { + hide highlight2 + } + } + + itemDef + { + name none + group comfortcontrols + type ITEM_TYPE_MULTI + text "Menu Screen Distance:" + cvar "vr_screen_dist" + cvarFloatList + { + "Near" 1.5 + "Medium" 2.5 + "Far" 3.5 + } + rect 305 211 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText "Select menu screen distance." + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight3 + } + + mouseexit + { + hide highlight3 + } + } + + + + //---------------------------------------------------------------------------------------------- + // + // Text + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name keyBindStatus + group none + ownerdraw 250 // UI_KEYBINDSTATUS + text @MENUS2_BLANK_1 + rect 320 425 0 0 + textStyle 0 + font 2 + textscale .8 + textalign ITEM_ALIGN_CENTER + forecolor .235 .882 .847 1 + visible 0 + decoration + } + + itemDef + { + name slider_message + group none + text @MENUS0_MOVE_THE_SLIDER_TO_INCREASE + rect 320 425 0 0 + textStyle 0 + font 2 + textscale .8 + textalign ITEM_ALIGN_CENTER + visible 0 + decoration + } + + itemDef + { + name yesno_message + group none + text @MENUS0_CLICK_ON_FIELD_TO_TOGGLE + rect 320 425 0 0 + textStyle 0 + font 2 + textscale .8 + textalign ITEM_ALIGN_CENTER + visible 0 + decoration + } + + itemDef + { + name multi_message + group none + text @MENUS0_CLICK_ON_FIELD_TO_CHANGE + rect 320 425 0 0 + textStyle 0 + font 2 + textscale .8 + textalign ITEM_ALIGN_CENTER + visible 0 + decoration + } + + } +} diff --git a/z_vr_assets/ui/ingamesetup.menu b/z_vr_assets/ui/ingamesetup.menu new file mode 100644 index 0000000..567b2b5 --- /dev/null +++ b/z_vr_assets/ui/ingamesetup.menu @@ -0,0 +1,2411 @@ +// MAIN MENU +{ + menuDef + { + name "ingameSetupMenu" + fullScreen 1 // MENU_TRUE + rect 0 0 640 480 // Size and position of the menu + visible 1 // Visible on open + focusColor 1 1 1 1 // Focus color for text and items + appearanceIncrement 10 // In miliseconds + descX 375 + descY 425 + descScale .8 + descColor .235 .882 .847 1 // Focus color for text and items + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + uiScript getvideosetup ; // Get video settings + hide applyChanges ; + hide video2 ; + hide vidrestart ; + hide sound ; + hide options ; + hide defaults + show setup_background ; + show video ; + } + + onESC + { + play "sound/interface/button1.wav" + + defer VideoSetup videowarningMenu ; + + hide highlights ; + close all ; + open ingameMainMenu ; + } + + //---------------------------------------------------------------------------------------------- + // + // MENU BACKGROUND + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name frame_pic + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/menu1" // Frame + forecolor 1 1 1 1 + visible 1 + decoration + } + + // The saber glow on the left + itemDef + { + name saberglow + group none + style WINDOW_STYLE_SHADER + rect 30 0 90 480 + background "gfx/menus/menu3" // Frame + forecolor 0.8 0.8 0.8 1 + visible 1 + decoration + } + + + // The starwars logo on the top + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 143 12 470 93 + background "gfx/menus/menu4" // Frame + forecolor 1 1 1 1 + visible 1 + decoration + } + + // The saber halo on the left + itemDef + { + name saberhalo + group none + style WINDOW_STYLE_SHADER + rect -425 -185 1000 1000 + background "gfx/menus/menu2" // Frame + forecolor 0.5 0.5 0.5 1 + visible 1 + decoration + } + + itemDef + { + name logomodel + group none + type ITEM_TYPE_MODEL + rect -123 48 400 400 + model_angle 90 + model_rotation 3.5 + asset_model "models/map_objects/bespin/jk2logo.md3" +// model_fovx 37 +// model_fovy 34 +// model_origin 100 100 100 + visible 1 + decoration + } + + // The saber halo on the left + itemDef + { + name saberhalo2 + group none + style WINDOW_STYLE_SHADER + rect -225 15 600 600 + background "gfx/menus/menu2b" // Frame + forecolor 0.25 0.25 0.25 1 + visible 1 + decoration + } + + //---------------------------------------------------------------------------------------------- + // + // TOP MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + + + // Big button "SAVE" + itemDef + { + name savegamebutton_glow + group highlights + style WINDOW_STYLE_SHADER + rect 115 115 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name savegamebutton + group toprow + text @MENUS1_SAVE + descText @MENUS1_SAVE_CURRENT_GAME + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 115 115 130 24 + textaligny 0 + font 3 + textscale 0.9 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + forecolor 0.65 0.65 1 1 + visible 1 + + mouseEnter + { + show savegamebutton_glow + } + mouseExit + { + hide savegamebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + + defer VideoSetup videowarningMenu ; + + close all ; + open ingamesaveMenu + } + } + + + // Big button "LOAD" + itemDef + { + name loadgamebutton_glow + group highlights + style WINDOW_STYLE_SHADER + rect 245 115 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name loadgamebutton + group toprow + text @MENUS1_LOAD + descText @MENUS1_LOAD_A_SAVED_GAME + rect 245 115 130 24 + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + textstyle 3 + font 3 + textscale 0.9 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textalignx 65 + forecolor 0.65 0.65 1 1 + visible 1 + + mouseEnter + { + show loadgamebutton_glow + } + mouseExit + { + hide loadgamebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + + defer VideoSetup videowarningMenu ; + + close all ; + open ingameloadMenu + } + } + + + // Big button "CONTROLS" + itemDef + { + name controlsbutton_glow + group highlights + style WINDOW_STYLE_SHADER + rect 375 115 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name controlsbutton + group toprow + text @MENUS0_CONTROLS2 + descText @MENUS0_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 375 115 130 24 + font 3 + textscale 0.9 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + backcolor 0 0 0 0 + forecolor 0.65 0.65 1 1 + visible 1 + + mouseEnter + { + show controlsbutton_glow + } + mouseExit + { + hide controlsbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + + defer VideoSetup videowarningMenu ; + + close all ; + open ingameControlsMenu ; + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton_glow + group highlights + style WINDOW_STYLE_SHADER + rect 505 115 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name setupbutton + group toprow + text @MENUS0_SETUP + descText @MENUS0_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 505 115 130 24 + font 3 + textscale 0.9 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 1 1 1 + visible 1 + decoration + action + { + play "sound/interface/button1.wav" ; + } + + mouseEnter + { + show setupbutton_glow + } + mouseExit + { + hide setupbutton_glow + } + } + + itemDef + { + name header_line + group toprow + style WINDOW_STYLE_SHADER + rect 125 136 500 4 + background "gfx/menus/menu_line" // Frame + forecolor 1 1 1 1 + visible 1 + decoration + } + + //---------------------------------------------------------------------------------------------- + // + // OTHER MAIN MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + // EXIT button in lower left corner + itemDef + { + name exitgamebutton_glow + group highlights + style WINDOW_STYLE_SHADER + rect 115 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name exitgamebutton + group othermain + text @MENUS0_EXIT + descText @MENUS1_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 115 444 130 24 + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 0.65 0.65 1 1 + visible 1 + + mouseEnter + { + show exitgamebutton_glow + } + mouseExit + { + hide exitgamebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + + defer VideoSetup videowarningMenu ; + + close all ; + open ingamequitMenu + } + } + + // RESUME button in the lower right corner + itemDef + { + name resumebutton_glow + group highlights + style WINDOW_STYLE_SHADER + rect 495 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name resume + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 495 444 130 24 + text @MENUS1_RESUME + descText @MENUS1_RESUME_CURRENT_GAME + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 0.65 0.65 1 1 + visible 1 + mouseEnter + { + show resumebutton_glow + } + mouseExit + { + hide resumebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + + defer VideoSetup videowarningMenu ; + + uiScript closeingame // Close menu + } + } + + //---------------------------------------------------------------------------------------------- + // + // SECOND ROW MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + // Setup Options title + itemDef + { + name setup_title + group none + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS2_SETUP_OPTIONS + rect 150 145 450 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -2 + forecolor 1 1 1 1 + visible 1 + // appearance_slot 2 + decoration + } + + + // video1 button + itemDef + { + name video1button_glow + group highlights + style WINDOW_STYLE_SHADER + rect 120 173 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + decoration + } + + itemDef + { + name video1menubutton + group none + text @MENUS1_VIDEO + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 120 173 170 30 + font 3 + textscale 0.9 + textalignx 170 + textaligny 5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 0.65 0.65 1 1 + visible 1 + descText @MENUS0_CONFIGURE_VIDEO_SETTINGS + + mouseEnter + { + show video1button_glow + } + mouseExit + { + hide video1button_glow + } + action + { + play "sound/interface/button1.wav" ; + + defer VideoSetup videowarningMenu ; + + uiScript getvideosetup ; // Get video settings + + show setup_background ; + show video ; + hide applyChanges ; + hide video2 ; + hide vidrestart ; + hide sound ; + hide options ; + hide defaults ; + setitemcolor video1menubutton forecolor 1 1 1 1 ; + setitemcolor video2menubutton forecolor 0.65 0.65 1 1 ; + setitemcolor soundmenubutton forecolor 0.65 0.65 1 1; + setitemcolor gameoptionmenubutton forecolor 0.65 0.65 1 1; + setitemcolor gamedefaultsmenubutton forecolor 0.65 0.65 1 1; + } + } + + // video2 button + itemDef + { + name video2button_glow + group highlights + style WINDOW_STYLE_SHADER + rect 120 203 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + decoration + } + + itemDef + { + name video2menubutton + group none + text @MENUS1_MORE_VIDEO + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 120 203 170 30 + font 3 + textscale 0.9 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 0.65 0.65 1 1 + visible 1 + descText @MENUS0_CONFIGUE_MORE_VIDEO_SETTINGS + + mouseEnter + { + show video2button_glow + } + mouseExit + { + hide video2button_glow + } + action + { + play "sound/interface/button1.wav" ; + + defer VideoSetup videowarningMenu ; + + show setup_background ; + hide video ; + hide applyChanges ; + show video2 ; + hide vidrestart ; + hide sound ; + hide options ; + hide defaults ; + setitemcolor video1menubutton forecolor 0.65 0.65 1 1 ; + setitemcolor video2menubutton forecolor 1 1 1 1 ; + setitemcolor soundmenubutton forecolor 0.65 0.65 1 1 ; + setitemcolor gameoptionmenubutton forecolor 0.65 0.65 1 1 ; + setitemcolor gamedefaultsmenubutton forecolor 0.65 0.65 1 1; + } + } + + // sound button + itemDef + { + name soundbutton_glow + group highlights + style WINDOW_STYLE_SHADER + rect 120 233 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + decoration + } + + itemDef + { + name soundmenubutton + group none + text @MENUS1_SOUND + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 120 233 170 30 + font 3 + textscale 0.9 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 0.65 0.65 1 1 + visible 1 + descText @MENUS0_CONFIGURE_SOUND_SETTINGS + + mouseEnter + { + show soundbutton_glow + } + mouseExit + { + hide soundbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + + defer VideoSetup videowarningMenu ; + + show setup_background ; + hide video ; + hide applyChanges ; + hide video2 ; + hide vidrestart ; + show sound ; + hide options ; + hide defaults ; + setitemcolor video1menubutton forecolor 0.65 0.65 1 1; + setitemcolor video2menubutton forecolor 0.65 0.65 1 1; + setitemcolor soundmenubutton forecolor 1 1 1 1 ; + setitemcolor gameoptionmenubutton forecolor 0.65 0.65 1 1; + setitemcolor gamedefaultsmenubutton forecolor 0.65 0.65 1 1; + } + } + + // gameoptions button + itemDef + { + name gameoptionsbutton_glow + group highlights + style WINDOW_STYLE_SHADER + rect 120 263 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + decoration + } + + itemDef + { + name gameoptionmenubutton + group none + text @MENUS1_GAME_OPTIONS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 120 263 170 30 + font 3 + textscale 0.9 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 0.65 0.65 1 1 + visible 1 + descText @MENUS0_CONFIGURE_GAME_OPTIONS + + mouseEnter + { + show gameoptionsbutton_glow + } + mouseExit + { + hide gameoptionsbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + + defer VideoSetup videowarningMenu ; + + show setup_background ; + hide video ; + hide applyChanges ; + hide video2 ; + hide vidrestart ; + hide sound ; + show options ; + hide defaults ; + setitemcolor video1menubutton forecolor 0.65 0.65 1 1; + setitemcolor video2menubutton forecolor 0.65 0.65 1 1; + setitemcolor soundmenubutton forecolor 0.65 0.65 1 1; + setitemcolor gameoptionmenubutton forecolor 1 1 1 1 ; + setitemcolor gamedefaultsmenubutton forecolor 0.65 0.65 1 1; + } + } + + + // gamedefaults button + itemDef + { + name gamedefaultsbutton_glow + group highlights + style WINDOW_STYLE_SHADER + rect 120 323 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + decoration + } + + itemDef + { + name gamedefaultsmenubutton + group none + text @MENUS1_DEFAULTS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 120 323 170 30 + font 3 + textscale 0.9 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 0.65 0.65 1 1 + visible 1 + descText @MENUS0_RESTORE_DEFAULT_SETTINGS + + mouseEnter + { + show gamedefaultsbutton_glow + } + mouseExit + { + hide gamedefaultsbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + + defer VideoSetup videowarningMenu ; + + show setup_background ; + hide video ; + hide applyChanges ; + hide video2 ; + hide vidrestart ; + hide sound ; + hide options ; + show defaults ; + setitemcolor video1menubutton forecolor 0.65 0.65 1 1; + setitemcolor video2menubutton forecolor 0.65 0.65 1 1; + setitemcolor soundmenubutton forecolor 0.65 0.65 1 1; + setitemcolor gameoptionmenubutton forecolor 0.65 0.65 1 1; + setitemcolor gamedefaultsmenubutton forecolor 1 1 1 1 ; + } + } + + itemDef + { + name setup_background + group none + style WINDOW_STYLE_SHADER + rect 300 171 300 250 + background "gfx/menus/menu_box1" // Frame + forecolor 1 1 1 1 + visible 0 + decoration + } + + //---------------------------------------------------------------------------------------------- + // + // HIGHLIGHT BARS + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name highlight1 + group highlights + style WINDOW_STYLE_SHADER + rect 305 171 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight2 + group highlights + style WINDOW_STYLE_SHADER + rect 305 191 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight3 + group highlights + style WINDOW_STYLE_SHADER + rect 305 211 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight4 + group highlights + style WINDOW_STYLE_SHADER + rect 305 231 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight5 + group highlights + style WINDOW_STYLE_SHADER + rect 305 251 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight6 + group highlights + style WINDOW_STYLE_SHADER + rect 305 271 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight7 + group highlights + style WINDOW_STYLE_SHADER + rect 305 291 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight8 + group highlights + style WINDOW_STYLE_SHADER + rect 305 311 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight9 + group highlights + style WINDOW_STYLE_SHADER + rect 305 331 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight10 + group highlights + style WINDOW_STYLE_SHADER + rect 305 351 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight11 + group highlights + style WINDOW_STYLE_SHADER + rect 305 371 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight12 + group highlights + style WINDOW_STYLE_SHADER + rect 305 391 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + //---------------------------------------------------------------------------------------------- + // + // VIDEO 1 MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name geometric_detail + group video + type ITEM_TYPE_MULTI + text @MENUS0_GEOMETRIC_DETAIL + rect 305 191 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + cvarFloatList { @MENUS0_LOW 2 @MENUS0_MEDIUM 1 @MENUS0_HIGH 0 } + descText @MENUS1_ADJUST_THE_NUMBER_OF + cvar "ui_r_lodbias" + + visible 0 + + mouseenter + { + show highlight2 + } + mouseexit + { + hide highlight2 + } + action + { + play "sound/interface/button1.wav" ; + uiScript glCustom ; + uiScript update "ui_r_lodbias" ; + setcvar ui_r_modified 1 ; + show applyChanges + } + } + + itemDef + { + name texture_detail + group video + type ITEM_TYPE_MULTI + text @MENUS0_TEXTURE_DETAIL + rect 305 211 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + cvarFloatList { @MENUS0_LOW 3 @MENUS0_MEDIUM 2 @MENUS0_HIGH 1 @MENUS0_VERY_HIGH 0 } + descText @MENUS1_SELECT_THE_RESOLUTION + cvar "ui_r_picmip" + + visible 0 + + mouseenter + { + show highlight3 + } + mouseexit + { + hide highlight3 + } + action + { + play "sound/interface/button1.wav" ; + uiScript glCustom ; + setcvar ui_r_modified 1 ; + show applyChanges + } + } + + itemDef + { + name texture_filter + group video + type ITEM_TYPE_MULTI + text @MENUS0_TEXTURE_FILTER + rect 305 231 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + cvarStrList { @MENUS1_BILINEAR , "GL_LINEAR_MIPMAP_NEAREST" , @MENUS1_TRILINEAR , "GL_LINEAR_MIPMAP_LINEAR" } + descText @MENUS1_ADJUST_HOW_WELL_THE_TEXTURES + cvar "ui_r_texturemode" + + visible 0 + + mouseenter + { + show highlight4 + } + mouseexit + { + hide highlight4 + } + action + { + play "sound/interface/button1.wav" ; + uiScript glCustom ; + setcvar ui_r_modified 1 ; + show applyChanges + } + } + + itemDef + { + name simple_shaders + group video + type ITEM_TYPE_MULTI + text @MENUS0_DETAILED_SHADERS + rect 305 251 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + cvarFloatList { @MENUS0_OFF 0 @MENUS0_ON 1 } + descText @MENUS1_HIDE_OR_UNHIDE_TEXTURES + cvar "ui_r_detailtextures" + + visible 0 + + mouseenter + { + show highlight5 + } + mouseexit + { + hide highlight5 + } + action + { + play "sound/interface/button1.wav" ; + uiScript glCustom ; + setcvar ui_r_modified 1 ; + show applyChanges + } + } + + itemDef + { + name compress_textures + group video_obsolete + type ITEM_TYPE_MULTI + text @MENUS0_COMPRESSED_TEXTURES + rect 305 271 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + cvarFloatList { @MENUS0_OFF 0 @MENUS0_ON 1 } + descText @MENUS1_TAKE_ADVANTAGE_OF_3D + cvar "ui_r_ext_compress_textures" + + visible 0 + + mouseenter + { + show highlight6 + } + mouseexit + { + hide highlight6 + } + action + { + play "sound/interface/button1.wav" + uiScript glCustom + setcvar ui_r_modified 1 + show applyChanges + } + } + + // APPLY CHANGES BUTTON + itemDef + { + name applybutton_glow + group none + style WINDOW_STYLE_SHADER + rect 120 383 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 0.5 0.5 1 + visible 0 + // appearance_slot 1 + decoration + } + + itemDef + { + name applyChanges + group none + text @MENUS0_APPLY_CHANGES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 120 383 170 30 + font 3 + textscale 0.9 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 1 0 0 1 + backcolor 0 0 1 0 + visible 0 + + mouseEnter + { + show applybutton_glow + } + mouseExit + { + hide applybutton_glow + } + action + { + play "sound/interface/button1.wav" ; + show setup_background ; + show vidrestart ; + hide video ; + hide video2 ; + hide applybutton_glow ; + } + } + + + + //---------------------------------------------------------------------------------------------- + // + // VIDEO RESTART + // + //---------------------------------------------------------------------------------------------- + // Faint red box + itemDef + { + name vidrestart_background + group vidrestart + style WINDOW_STYLE_SHADER + rect 300 171 300 250 + background "gfx/menus/menu_boxred" // Frame + forecolor 1 1 1 0.5 + visible 0 + decoration + } + + itemDef + { + name vidrestart_text1 + group vidrestart + text @MENUS3_INGAME_DEFAULT + text2 @MENUS3_INGAME_DEFAULT2 + rect 305 230 290 20 + textalign ITEM_ALIGN_CENTER + text2aligny 18 + textalignx 145 + font 2 + textscale 1 + forecolor 1 1 0 1 + visible 0 + decoration + } + + itemDef + { + name vidrestart_text2 + group vidrestart + text @MENUS0_VID_RESTART3 + rect 305 300 290 20 + textalign ITEM_ALIGN_CENTER + textalignx 145 + font 2 + textscale 1 + forecolor 1 1 0 1 + visible 0 + } + + + + itemDef + { + name vidrestart_yes_button + group none + style WINDOW_STYLE_SHADER + rect 467 386 120 32 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + // appearance_slot 4 + } + + // YES button + itemDef + { + name vidrestart_yes + group vidrestart + text @MENUS0_YES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 467 386 120 32 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny 0 + descText @MENUS0_APPLY_CHANGES_AND_THEN + forecolor 0.65 0.65 1 1 + visible -1 + // appearance_slot 5 + + action + { + play "sound/interface/button1.wav" ; + close all ; + uiScript updatevideosetup ; + } + mouseEnter + { + show vidrestart_yes_button + } + mouseExit + { + hide vidrestart_yes_button + } + + } + + itemDef + { + name vidrestart_no_button + group none + style WINDOW_STYLE_SHADER + rect 305 386 120 32 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + // appearance_slot 3 + } + + // CANCEL button + itemDef + { + name vidrestart_no + group vidrestart + text @MENUS0_NO + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 305 386 120 32 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny -1 + descText @MENUS0_DO_NOT_APPLY_CHANGES + forecolor 0.65 0.65 1 1 + visible 0 + // appearance_slot 6 + action + { + play "sound/interface/button1.wav" ; + show setup_background ; + hide vidrestart ; + show video ; + hide video2 ; + show applyChanges ; + hide vidrestart_yes_button ; + hide vidrestart_no_button ; + } + mouseEnter + { + show vidrestart_no_button + } + mouseExit + { + hide vidrestart_no_button + } + + } + + //---------------------------------------------------------------------------------------------- + // + // VIDEO 2 + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name gamma_text + group video2 + style WINDOW_STYLE_SHADER + rect 310 171 280 36 + background "gfx/menus/greyscale" // greyscale + forecolor 1 1 1 1 + visible 0 + decoration + // appearance_slot 1 + } + + + + itemDef + { + name bright_text + group video2 + text @MENUS0_ADJUST_BRIGHTNESS_SLIDER + text2 @MENUS0_THE_NUMBER_6_CAN_BARELY + text2aligny 14 + textalignx 128 + font 2 + textscale 0.8 + rect 305 211 256 20 + textalign ITEM_ALIGN_CENTER + forecolor 0.7 0.7 0.7 1 + visible 0 + // appearance_slot 2 + decoration + } + + itemDef + { + name brightness + group video2 + type ITEM_TYPE_SLIDER + text @MENUS0_VIDEO_BRIGHTNESS + cvarfloat "r_gamma" 1 .5 3 + rect 305 251 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 120 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 3 + descText @MENUS1_ADJUST_THE_BRIGHTNESS + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight5 + } + mouseexit + { + hide highlight5 + } + } + + itemDef + { + name shadows + group video2 + type ITEM_TYPE_MULTI + text @MENUS3_SHADOWS + descText @MENUS3_SHADOWS_DESC + cvar "cg_shadows" + cvarFloatList + { + @MENUS3_NONE 0 + @MENUS3_SHADOWS_SIMPLE 1 + @MENUS3_SHADOWS_VOLUMETRIC 2 +// "Projected" 3 + } + rect 305 271 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + action + { + play "sound/interface/button1.wav" ; + } + mouseenter + { + show highlight6 + } + mouseexit + { + hide highlight6 + } + + } + + + itemDef + { + name dynamic_light + group video2 + type ITEM_TYPE_MULTI + text @MENUS0_DYNAMIC_LIGHTS + cvar "r_dynamiclight" + cvarFloatList { @MENUS0_OFF 0 @MENUS0_ON 1 } + rect 305 291 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS1_TOGGLE_TO_TURN_ON_MOVING + + mouseenter + { + show highlight7 + } + mouseexit + { + hide highlight7 + } + action + { + play "sound/interface/button1.wav" ; + + } + } + + itemDef + { + name wall_marks + group video2 + type ITEM_TYPE_MULTI + text @MENUS0_WALL_MARKS + cvar "cg_marks" + cvarFloatList { @MENUS0_OFF 0 @MENUS0_ON 1 } + rect 305 311 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS1_TOGGLE_TO_DISPLAY_SCORCH + + mouseenter + { + show highlight8 + } + mouseexit + { + hide highlight8 + } + action + { + play "sound/interface/button1.wav" + } + } + + itemDef + { + name video_mode + group video2 + type ITEM_TYPE_MULTI + text @MENUS0_ANISOTROPIC_FILTERING + cvarTest r_ext_texture_filter_anisotropic_avail + hideCvar { 0 } + cvar r_ext_texture_filter_anisotropic + cvarFloatList { @MENUS0_OFF 0 @MENUS0_ON 1 } + rect 305 331 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 5 + + descText @MENUS1_TOGGLE_ADVANCED_TEXTURE + + mouseenter + { + show highlight9 + } + mouseexit + { + hide highlight9 + } + action + { + play "sound/interface/button1.wav" + } + } + + itemDef + { + name light_flares + group video2_obsolete + type ITEM_TYPE_MULTI + text @MENUS0_LIGHT_FLARES + cvar "r_flares" + cvarFloatList { @MENUS0_OFF 0 @MENUS0_ON 1 } + rect 305 351 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS1_TOGGLE_TO_SHOW_HALOS + + mouseenter + { + show highlight10 + } + mouseexit + { + hide highlight10 + } + action + { + play "sound/interface/button1.wav" + } + } + + + + //---------------------------------------------------------------------------------------------- + // + // SOUND FIELDS + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name effects_volume + group sound + type ITEM_TYPE_SLIDER + text @MENUS0_EFFECTS_VOLUME + cvarfloat "s_volume" 0 0 1 + rect 305 191 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 120 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS1_ADJUST_VOLUME_FOR_SOUND + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight2 + } + mouseexit + { + hide highlight2 + } + } + + itemDef + { + name music_volume + group sound + type ITEM_TYPE_SLIDER + text @MENUS0_MUSIC_VOLUME + cvarfloat "s_musicvolume" 0 0 1 + rect 305 211 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 120 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 2 + descText @MENUS1_ADJUST_VOLUME_FOR_MUSIC + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight3 + } + mouseexit + { + hide highlight3 + } + } + + itemDef + { + name voice_volume + group sound + type ITEM_TYPE_SLIDER + text @MENUS1_VOICE_VOLUME + cvarfloat "s_volumevoice" 0 0 1 + rect 305 231 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 120 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 2 + descText @MENUS2_ADJUST_VOLUME_FOR_SPEECH + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight4 + } + mouseexit + { + hide highlight4 + } + } + + itemDef + { + name sound_quality + group sound + type ITEM_TYPE_MULTI + text @MENUS0_SOUND_QUALITY + cvar "s_khz" + cvarFloatList { @MENUS0_LOW 11 @MENUS0_HIGH 22 } + rect 305 271 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 3 + descText @MENUS2_TRADE_CLARITY_OF_SOUND + + mouseenter + { + show highlight6 + } + mouseexit + { + hide highlight6 + } + action + { + play "sound/interface/button1.wav" + uiScript update s_khz + } + } + + //---------------------------------------------------------------------------------------------- + // + // OPTION FIELDS + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name draw_crosshair + group options + type ITEM_TYPE_MULTI + text @MENUS2_DRAW_CROSSHAIR + cvar "cg_drawcrosshair" + cvarFloatList + { + @MENUS0_OFF 0 + @MENUS0_ON 1 + } + rect 305 171 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS2_TOGGLE_TO_SHOW_OR_HIDE + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight1 + } + mouseexit + { + hide highlight1 + } + } + + + itemDef + { + name identifytarget + group options + type ITEM_TYPE_MULTI + text @MENUS0_IDENTIFY_TARGET + cvar "cg_crosshairIdentifyTarget" + cvarFloatList + { + @MENUS0_OFF 0 + @MENUS0_ON 1 + } + rect 305 191 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS2_TOGGLE_TO_HAVE_THE_CROSSHAIR + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight2 + } + mouseexit + { + hide highlight2 + } + } + + + itemDef + { + name slowmo + group options + type ITEM_TYPE_MULTI + text @MENUS2_SLOW_MOTION_DEATH + cvar "d_slowmodeath" + cvarFloatList + { + @MENUS2_NEVER 0 + @MENUS2_ON_DEATH 1 + @MENUS2_RARELY 2 + @MENUS1_NORMAL 3 + @MENUS2_OFTEN 4 + @MENUS2_FREQUENTLY 5 + @MENUS2_EXCESSIVELY 6 + } + rect 305 211 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS2_SELECT_THE_FREQUENCY + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight3 + } + mouseexit + { + hide highlight3 + } + } + + + itemDef + { + name force3rd + group options + type ITEM_TYPE_MULTI + text @MENUS2_3RD_PERSON_LIGHTSABER + cvar "cg_saberAutoThird" + cvarFloatList + { + @MENUS0_OFF 0 + @MENUS0_ON 1 + } + rect 305 231 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS2_WHEN_READYING_LIGHTSABER + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight4 + } + mouseexit + { + hide highlight4 + } + } + + + itemDef + { + name force1st + group options + type ITEM_TYPE_MULTI + text @MENUS2_1ST_PERSON_GUNS + cvar "cg_gunAutoFirst" + cvarFloatList + { + @MENUS0_OFF 0 + @MENUS0_ON 1 + } + rect 305 251 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS2_WHEN_PUTTING_AWAY_SABER + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight5 + } + mouseexit + { + hide highlight5 + } + } + + + itemDef + { + name dismemberment + group options + type ITEM_TYPE_MULTI + text @MENUS2_DISMEMBERMENT + cvar "g_dismemberment" + cvarFloatList + { + @MENUS0_OFF 0 + @MENUS0_ON 3 + } + cvarTest ui_iscensored + hideCvar { 1 } + rect 305 291 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS2_SELECT_WHAT_LIGHTSABER + action + { + play "sound/interface/button1.wav" ; + } + mouseenter + { + show highlight7 + } + mouseexit + { + hide highlight7 + } + } + + +// Weapon Sway. Yes, this is nutty. Two cvars here, one removes weapon sway, the other adds it. + itemDef + { + name weaponswayon + group options + type ITEM_TYPE_MULTI + text @MENUS3_VIEW_SWAYING + descText @MENUS3_VIEW_SWAYING_DESC + cvar "ui_disableWeaponSway" + cvarFloatList + { + @MENUS0_ON 0 + @MENUS0_OFF 1 + } + cvarTest "ui_disableWeaponSway" + showCvar + { + "0" + } + rect 305 311 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + + action + { + play "sound/interface/button1.wav" ; + exec "exec noMotion.cfg" ; + show weaponswayoff ; + setfocus weaponswayoff + } + mouseenter + { + show highlight8 + } + mouseexit + { + hide highlight8 + } + } + + itemDef + { + name weaponswayoff + group options + type ITEM_TYPE_MULTI + text @MENUS3_VIEW_SWAYING + descText @MENUS3_VIEW_SWAYING_DESC + cvar "ui_disableWeaponSway" + cvarFloatList + { + @MENUS0_ON 0 + @MENUS0_OFF 1 + } + cvarTest "ui_disableWeaponSway" + hideCvar + { + "0" + } + rect 305 311 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + + action + { + play "sound/interface/button1.wav" ; + exec "exec restoreMotion.cfg" ; + show weaponswayon ; + setfocus weaponswayon + } + mouseenter + { + show highlight8 + } + mouseexit + { + hide highlight8 + } + } + +/* + itemDef + { + name dismembermentprob + group options_obsolete + type ITEM_TYPE_MULTI + text @MENUS2_DISMEMBER_PROBABILITY + cvar "g_dismemberProbabilities" + cvarFloatList + { + @MENUS2_RARE 2 + @MENUS1_NORMAL 1 + @MENUS2_EXCESSIVE 0 + } + rect 305 311 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS2_SELECT_FREQUENCY_OF_DISMEMBERMENT + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight8 + } + mouseexit + { + hide highlight8 + } + } +*/ + + itemDef + { + name text + group options + type ITEM_TYPE_MULTI + text @MENUS0_TEXT + cvar "sp_language" + cvarFloatList + { + "English" 0 + "Francais" 1 + "Deutsch" 2 + } + rect 305 351 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS2_CHOOSE_THE_LANGUAGE_FOR + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight10 + } + mouseexit + { + hide highlight10 + } + } + + itemDef + { + name voice + group options + type ITEM_TYPE_MULTI + text @MENUS1_VOICE + cvar "s_language" + cvarStrList + { + "English", "english" + "Francais" "francais" + "Deutsch" "deutsch" + } + rect 305 371 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS3_CHOOSE_THE_LANGUAGE_TO + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight11 + } + mouseexit + { + hide highlight11 + } + } + + itemDef + { + name voice + group options + type ITEM_TYPE_MULTI + text @MENUS1_SUBTITLES + cvar "g_subtitles" + cvarFloatList + { + @MENUS3_NONE 0 + @MENUS3_IN_CINEMATICS 2 +// @MENUS3_ALL_VOICEOVERS 1 + } + rect 305 391 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS3_TOGGLE_WHETHER_SUBTITLES + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight12 + } + mouseexit + { + hide highlight12 + } + } + + + +// This menu option is no longer used. + itemDef + { + name sync_frame + group options_obsolete + type ITEM_TYPE_MULTI + text @MENUS1_SYNC_EVERY_FRAME + cvar "r_finish" + cvarFloatList + { + @MENUS0_OFF 0 + @MENUS0_ON 1 + } + rect 305 211 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS3_TOGGLE_TO_PREVENT_VIDEO + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight3 + } + mouseexit + { + hide highlight3 + } + } + + + //---------------------------------------------------------------------------------------------- + // + // RESET DEFAULTS + // + //---------------------------------------------------------------------------------------------- + // Faint red box + itemDef + { + name vidrestart_background + group defaults + style WINDOW_STYLE_SHADER + rect 300 171 300 250 + background "gfx/menus/menu_boxred" // Frame + forecolor 1 1 1 0.5 + visible 0 + decoration + } + + itemDef + { + name options + group defaults + text @MENUS0_WARNING + rect 305 191 300 20 + textalign ITEM_ALIGN_CENTER + textalignx 150 + font 2 + textscale 1 + forecolor 1 1 0 1 + visible 0 + decoration + } + + itemDef + { + name options + group defaults + text @MENUS3_INGAME_DEFAULT + text2 @MENUS3_INGAME_DEFAULT2 + rect 305 231 300 20 + textalign ITEM_ALIGN_CENTER + textalignx 150 + text2aligny 20 + font 2 + textscale 1 + forecolor 1 1 0 1 + visible 0 + decoration + } + + itemDef + { + name options + group defaults + text @MENUS0_VID_RESTART3 + rect 305 291 300 20 + textalign ITEM_ALIGN_CENTER + textalignx 150 + font 2 + textscale 1 + forecolor 1 1 0 1 + visible 0 + decoration + } + + + itemDef + { + name default_yes_button + group highlights + style WINDOW_STYLE_SHADER + rect 467 386 120 32 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + // appearance_slot 4 + } + + // YES button - lose reset defaults + itemDef + { + name default_yes + group defaults + text @MENUS0_YES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 467 386 120 32 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 60 + textaligny 0 + descText @MENUS1_RESET_DEFAULT_VALUES + forecolor 0.65 0.65 1 1 + visible 0 + // appearance_slot 5 + + action + { + play "sound/interface/button1.wav" ; + hide highlights ; + close all ; + uiscript resetdefaults + } + mouseEnter + { + show default_yes_button + } + mouseExit + { + hide default_yes_button + } + + } + + itemDef + { + name default_no_button + group highlights + style WINDOW_STYLE_SHADER + rect 305 386 120 32 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + // appearance_slot 3 + } + + // NO button - return to Main Menu + itemDef + { + name default_no + group defaults + text @MENUS0_NO + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 305 386 120 32 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 60 + textaligny 0 + descText @MENUS1_NOT_RESET_DEFAULT_VALUES + forecolor 0.65 0.65 1 1 + visible 0 + // appearance_slot 6 + action + { + play "sound/interface/button1.wav" ; + hide highlights ; + close all ; + open ingameMainMenu ; + } + mouseEnter + { + show default_no_button + } + mouseExit + { + hide default_no_button + } + } + } +} + diff --git a/z_vr_assets/ui/setup.menu b/z_vr_assets/ui/setup.menu new file mode 100644 index 0000000..45927ba --- /dev/null +++ b/z_vr_assets/ui/setup.menu @@ -0,0 +1,2538 @@ +//-------------------------------------------------------------- +// +// SETUP MENU +// +//-------------------------------------------------------------- +{ + menuDef + { + name "setupMenu" + fullScreen 1 // MENU_TRUE + rect 0 0 640 480 // Size and position of the menu + visible 1 // Visible on open + focusColor 1 1 1 1 // Focus color for text and items + background "gfx/menus/mainback" // Frame + appearanceIncrement 75 // In miliseconds + descX 375 + descY 425 + descScale .8 + descColor .235 .882 .847 1 // Focus color for text and items + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + uiScript getvideosetup ; // Get video settings + hide applyChanges ; + hide video2 ; + hide vidrestart ; + hide sound ; + hide options ; + hide mods ; + hide defaults ; + show video ; + show setup_background ; + hide highlights ; + } + + onESC + { + play "sound/interface/button1.wav" + + defer VideoSetup videowarningMenu ; + + close all ; + open mainMenu + } + + //---------------------------------------------------------------------------------------------- + // + // MENU BACKGROUND + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name frame_pic + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/menu1" // Frame + forecolor 1 1 1 1 + visible 1 + decoration + } + + // The saber glow on the left + itemDef + { + name saberglow + group none + style WINDOW_STYLE_SHADER + rect 30 0 90 480 + background "gfx/menus/menu3" // Frame + forecolor 0.8 0.8 0.8 1 + visible 1 + decoration + } + + + // The starwars logo on the top + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 143 12 470 93 + background "gfx/menus/menu4" // Frame + forecolor 1 1 1 1 + visible 1 + decoration + } + + // The saber halo on the left + itemDef + { + name saberhalo + group none + style WINDOW_STYLE_SHADER + rect -425 -185 1000 1000 + background "gfx/menus/menu2" // Frame + forecolor 0.5 0.5 0.5 1 + visible 1 + decoration + } + + itemDef + { + name logomodel + group none + type ITEM_TYPE_MODEL + rect -123 48 400 400 + model_angle 90 + model_rotation 3.5 + asset_model "models/map_objects/bespin/jk2logo.md3" +// model_fovx 37 +// model_fovy 34 +// model_origin 100 100 100 + visible 1 + decoration + } + + // The saber halo on the left + itemDef + { + name saberhalo2 + group none + style WINDOW_STYLE_SHADER + rect -225 15 600 600 + background "gfx/menus/menu2b" // Frame + forecolor 0.25 0.25 0.25 1 + visible 1 + decoration + } + + //---------------------------------------------------------------------------------------------- + // + // TOP MAIN MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + + // Big button "NEW" + itemDef + { + name newgamebutton_glow + group highlights + style WINDOW_STYLE_SHADER + rect 115 115 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + decoration + } + + itemDef + { + name newgamebutton + group toprow + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 115 115 130 24 + text @MENUS1_NEW + descText @MENUS1_START_A_NEW_GAME + font 3 + textscale 0.9 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textalignx 65 + textstyle 3 + forecolor 0.65 0.65 1 1 + visible 1 + + mouseEnter + { + show newgamebutton_glow + } + mouseExit + { + hide newgamebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + + defer VideoSetup videowarningMenu ; + + close all ; + open newgameMenu + } + } + + // Big button "LOAD" + itemDef + { + name loadgamebutton_glow + group highlights + style WINDOW_STYLE_SHADER + rect 245 115 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + decoration + } + + itemDef + { + name loadgamebutton + group toprow + text @MENUS1_LOAD + descText @MENUS1_LOAD_A_SAVED_GAME + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 245 115 130 24 + textaligny 0 + font 3 + textscale 0.9 + textalign ITEM_ALIGN_CENTER + textalignx 65 + textstyle 3 + forecolor 0.65 0.65 1 1 + visible 1 + + mouseEnter + { + show loadgamebutton_glow + } + mouseExit + { + hide loadgamebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + + defer VideoSetup videowarningMenu ; + + close all ; + open loadgameMenu + } + } + + // Big button "CONTROLS" + itemDef + { + name controlsbutton_glow + group highlights + style WINDOW_STYLE_SHADER + rect 375 115 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + decoration + } + + itemDef { + name controlsbutton + group toprow + text @MENUS0_CONTROLS2 + descText @MENUS0_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 375 115 130 24 + font 3 + textscale 0.9 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + backcolor 0 0 0 0 + forecolor 0.65 0.65 1 1 + visible 1 + + mouseEnter + { + show controlsbutton_glow + } + mouseExit + { + hide controlsbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + + defer VideoSetup videowarningMenu ; + + close all ; + open controlsMenu ; + } + + } + + // Big button "SETUP" + itemDef + { + name setupbutton_glow + group highlights + style WINDOW_STYLE_SHADER + rect 505 115 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name setupbutton + group toprow + text @MENUS0_SETUP + descText @MENUS0_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 505 115 130 24 + font 3 + textscale 0.9 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 1 1 1 + visible 1 + decoration + action + { + play "sound/interface/button1.wav" ; + } + + + mouseEnter + { + show setupbutton_glow + } + mouseExit + { + hide setupbutton_glow + } + } + + itemDef + { + name header_line + group toprow + style WINDOW_STYLE_SHADER + rect 125 136 500 4 + background "gfx/menus/menu_line" // Frame + forecolor 1 1 1 1 + visible 1 + decoration + } + + + //---------------------------------------------------------------------------------------------- + // + // OTHER MAIN MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + // Credits hidden button + itemDef + { + name creditsbutton + group othermain +// text @CREDITS + descText @MENUS0_SHOW_GAME_CREDITS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 51 284 52 60 + font 2 + textscale 1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textalignx 46 + backcolor 0 0 0 0 + forecolor 0.65 0.65 1 1 + visible 0 + + mouseEnter + { + setitemcolor saberhalo2 forecolor 0.7 0.7 0.7 1 + } + mouseExit + { + setitemcolor saberhalo2 forecolor 0.25 0.25 0.25 1 + } + action + { + play "sound/interface/button1.wav" ; + + defer VideoSetup videowarningMenu ; + + close all ; + open creditsMenu + } + } + + // EXIT button in lower left corner + // Big button "SETUP" + itemDef + { + name exitgamebutton_glow + group highlights + style WINDOW_STYLE_SHADER + rect 115 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + decoration + } + + itemDef + { + name exitgamebutton + group othermain + text @MENUS0_EXIT + descText @MENUS1_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 115 444 130 24 + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 0.65 0.65 1 1 + visible 1 + + mouseEnter + { + show exitgamebutton_glow + } + mouseExit + { + hide exitgamebutton_glow + } + action + { + play "sound/weapons/saber/saberoff.mp3"; + + defer VideoSetup videowarningMenu ; + + close all ; + open quitMenu + } + } + + //---------------------------------------------------------------------------------------------- + // + // SECOND ROW MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + // Setup Options title + itemDef + { + name setup_title + group none + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS2_SETUP_OPTIONS + rect 150 145 450 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -2 + forecolor 1 1 1 1 + visible 1 + // appearance_slot 2 + decoration + } + + + // video1 button + itemDef + { + name video1button_glow + group highlights + style WINDOW_STYLE_SHADER + rect 120 173 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + decoration + } + + itemDef + { + name video1menubutton + group none + text @MENUS1_VIDEO + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 120 173 170 30 + font 3 + textscale 0.9 + textalignx 170 + textaligny 5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 0.65 0.65 1 1 + visible 1 + descText @MENUS0_CONFIGURE_VIDEO_SETTINGS + + mouseEnter + { + show video1button_glow + } + mouseExit + { + hide video1button_glow + } + action + { + play "sound/interface/button1.wav" ; + + defer VideoSetup videowarningMenu ; + + uiScript getvideosetup ; // Get video settings + + show setup_background ; + show video ; + hide applyChanges ; + hide video2 ; + hide vidrestart ; + hide sound ; + hide options ; + hide mods ; + hide defaults ; + setfocus graphics ; + setitemcolor video1menubutton forecolor 1 1 1 1 ; + setitemcolor video2menubutton forecolor 0.65 0.65 1 1 ; + setitemcolor soundmenubutton forecolor 0.65 0.65 1 1; + setitemcolor gameoptionmenubutton forecolor 0.65 0.65 1 1; + setitemcolor modsmenubutton forecolor 0.65 0.65 1 1; + setitemcolor gamedefaultsmenubutton forecolor 0.65 0.65 1 1; + } + } + + // video2 button + itemDef + { + name video2button_glow + group highlights + style WINDOW_STYLE_SHADER + rect 120 203 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + decoration + } + + itemDef + { + name video2menubutton + group none + text @MENUS1_MORE_VIDEO + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 120 203 170 30 + font 3 + textscale 0.9 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 0.65 0.65 1 1 + visible 1 + descText @MENUS0_CONFIGUE_MORE_VIDEO_SETTINGS + + mouseEnter + { + show video2button_glow + } + mouseExit + { + hide video2button_glow + } + action + { + play "sound/interface/button1.wav" ; + + defer VideoSetup videowarningMenu ; + + show setup_background ; + hide video ; + hide applyChanges ; + show video2 ; + hide vidrestart ; + hide sound ; + hide options ; + hide mods ; + hide defaults ; + setitemcolor video1menubutton forecolor 0.65 0.65 1 1 ; + setitemcolor video2menubutton forecolor 1 1 1 1 ; + setitemcolor soundmenubutton forecolor 0.65 0.65 1 1 ; + setitemcolor gameoptionmenubutton forecolor 0.65 0.65 1 1 ; + setitemcolor modsmenubutton forecolor 0.65 0.65 1 1; + setitemcolor gamedefaultsmenubutton forecolor 0.65 0.65 1 1; + } + } + + // sound button + itemDef + { + name soundbutton_glow + group highlights + style WINDOW_STYLE_SHADER + rect 120 233 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + decoration + } + + itemDef + { + name soundmenubutton + group none + text @MENUS1_SOUND + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 120 233 170 30 + font 3 + textscale 0.9 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 0.65 0.65 1 1 + visible 1 + descText @MENUS0_CONFIGURE_SOUND_SETTINGS + + mouseEnter + { + show soundbutton_glow + } + mouseExit + { + hide soundbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + + defer VideoSetup videowarningMenu ; + + show setup_background ; + hide video ; + hide applyChanges ; + hide video2 ; + hide vidrestart ; + show sound ; + hide options ; + hide mods ; + hide defaults ; + setitemcolor video1menubutton forecolor 0.65 0.65 1 1; + setitemcolor video2menubutton forecolor 0.65 0.65 1 1; + setitemcolor soundmenubutton forecolor 1 1 1 1 ; + setitemcolor gameoptionmenubutton forecolor 0.65 0.65 1 1; + setitemcolor modsmenubutton forecolor 0.65 0.65 1 1; + setitemcolor gamedefaultsmenubutton forecolor 0.65 0.65 1 1; + } + } + + // gameoptions button + itemDef + { + name gameoptionsbutton_glow + group highlights + style WINDOW_STYLE_SHADER + rect 120 263 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + decoration + } + + itemDef + { + name gameoptionmenubutton + group none + text @MENUS1_GAME_OPTIONS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 120 263 170 30 + font 3 + textscale 0.9 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 0.65 0.65 1 1 + visible 1 + descText @MENUS0_CONFIGURE_GAME_OPTIONS + + mouseEnter + { + show gameoptionsbutton_glow + } + mouseExit + { + hide gameoptionsbutton_glow + } + action + { + defer VideoSetup videowarningMenu ; + + play "sound/interface/button1.wav" ; + show setup_background ; + hide video ; + hide applyChanges ; + hide video2 ; + hide vidrestart ; + hide sound ; + show options ; + hide mods ; + hide defaults ; + setitemcolor video1menubutton forecolor 0.65 0.65 1 1; + setitemcolor video2menubutton forecolor 0.65 0.65 1 1; + setitemcolor soundmenubutton forecolor 0.65 0.65 1 1; + setitemcolor gameoptionmenubutton forecolor 1 1 1 1 ; + setitemcolor modsmenubutton forecolor 0.65 0.65 1 1; + setitemcolor gamedefaultsmenubutton forecolor 0.65 0.65 1 1; + } + } + + // mods button + itemDef + { + name modsbutton_glow + group highlights + style WINDOW_STYLE_SHADER + rect 120 293 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + decoration + } + + itemDef + { + name modsmenubutton + group none + text @MENUS1_MODS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 120 293 170 30 + font 3 + textscale 0.9 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 0.65 0.65 1 1 + visible 1 + descText @MENUS0_CONFIGURE_GAME_OPTIONS + + mouseEnter + { + show modsbutton_glow + } + mouseExit + { + hide modsbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + + defer VideoSetup videowarningMenu ; + + show setup_background ; + hide video ; + hide applyChanges ; + hide video2 ; + hide vidrestart ; + hide sound ; + hide options ; + show mods ; + hide defaults ; + setitemcolor video1menubutton forecolor 0.65 0.65 1 1; + setitemcolor video2menubutton forecolor 0.65 0.65 1 1; + setitemcolor soundmenubutton forecolor 0.65 0.65 1 1; + setitemcolor gameoptionmenubutton forecolor 0.65 0.65 1 1; + setitemcolor modsmenubutton forecolor 1 1 1 1 ; + setitemcolor gamedefaultsmenubutton forecolor 0.65 0.65 1 1; + } + } + + // gamedefaults button + itemDef + { + name gamedefaultsbutton_glow + group highlights + style WINDOW_STYLE_SHADER + rect 120 323 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + decoration + } + + itemDef + { + name gamedefaultsmenubutton + group none + text @MENUS1_DEFAULTS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 120 323 170 30 + font 3 + textscale 0.9 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 0.65 0.65 1 1 + visible 1 + descText @MENUS0_RESTORE_DEFAULT_SETTINGS + + mouseEnter + { + show gamedefaultsbutton_glow + } + mouseExit + { + hide gamedefaultsbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + + defer VideoSetup videowarningMenu ; + + show setup_background ; + hide video ; + hide applyChanges ; + hide video2 ; + hide vidrestart ; + hide sound ; + hide options ; + hide mods ; + show defaults ; + setitemcolor video1menubutton forecolor 0.65 0.65 1 1; + setitemcolor video2menubutton forecolor 0.65 0.65 1 1; + setitemcolor soundmenubutton forecolor 0.65 0.65 1 1; + setitemcolor gameoptionmenubutton forecolor 0.65 0.65 1 1; + setitemcolor modsmenubutton forecolor 0.65 0.65 1 1; + setitemcolor gamedefaultsmenubutton forecolor 1 1 1 1 ; + } + } + + itemDef + { + name setup_background + group none + style WINDOW_STYLE_SHADER + rect 300 171 300 250 + background "gfx/menus/menu_box1" // Frame + forecolor 1 1 1 1 + visible 0 + decoration + } + + //---------------------------------------------------------------------------------------------- + // + // HIGHLIGHT BARS + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name highlight1 + group highlights + style WINDOW_STYLE_SHADER + rect 305 171 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight2 + group highlights + style WINDOW_STYLE_SHADER + rect 305 191 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight3 + group highlights + style WINDOW_STYLE_SHADER + rect 305 211 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight4 + group highlights + style WINDOW_STYLE_SHADER + rect 305 231 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight5 + group highlights + style WINDOW_STYLE_SHADER + rect 305 251 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight6 + group highlights + style WINDOW_STYLE_SHADER + rect 305 271 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight7 + group highlights + style WINDOW_STYLE_SHADER + rect 305 291 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight8 + group highlights + style WINDOW_STYLE_SHADER + rect 305 311 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight9 + group highlights + style WINDOW_STYLE_SHADER + rect 305 331 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight10 + group highlights + style WINDOW_STYLE_SHADER + rect 305 351 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight11 + group highlights + style WINDOW_STYLE_SHADER + rect 305 371 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight12 + group highlights + style WINDOW_STYLE_SHADER + rect 305 391 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + //---------------------------------------------------------------------------------------------- + // + // VIDEO 1 MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name geometric_detail + group video + type ITEM_TYPE_MULTI + text @MENUS0_GEOMETRIC_DETAIL + rect 305 191 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + cvarFloatList { @MENUS0_LOW 2 @MENUS0_MEDIUM 1 @MENUS0_HIGH 0 } + descText @MENUS1_ADJUST_THE_NUMBER_OF + cvar "ui_r_lodbias" + + visible 0 + + mouseenter + { + show highlight2 + } + mouseexit + { + hide highlight2 + } + action + { + play "sound/interface/button1.wav" ; + uiScript glCustom ; + uiScript update "ui_r_lodbias" ; + setcvar ui_r_modified 1 ; + show applyChanges + } + } + + itemDef + { + name texture_detail + group video + type ITEM_TYPE_MULTI + text @MENUS0_TEXTURE_DETAIL + rect 305 211 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + cvarFloatList { @MENUS0_LOW 3 @MENUS0_MEDIUM 2 @MENUS0_HIGH 1 @MENUS0_VERY_HIGH 0 } + descText @MENUS1_SELECT_THE_RESOLUTION + cvar "ui_r_picmip" + + visible 0 + + mouseenter + { + show highlight3 + } + mouseexit + { + hide highlight3 + } + action + { + play "sound/interface/button1.wav" ; + uiScript glCustom ; + setcvar ui_r_modified 1 ; + show applyChanges + } + } + + itemDef + { + name texture_filter + group video + type ITEM_TYPE_MULTI + text @MENUS0_TEXTURE_FILTER + rect 305 231 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + cvarStrList { @MENUS1_BILINEAR , "GL_LINEAR_MIPMAP_NEAREST" , @MENUS1_TRILINEAR , "GL_LINEAR_MIPMAP_LINEAR" } + descText @MENUS1_ADJUST_HOW_WELL_THE_TEXTURES + cvar "ui_r_texturemode" + + visible 0 + + mouseenter + { + show highlight4 + } + mouseexit + { + hide highlight4 + } + action + { + play "sound/interface/button1.wav" ; + uiScript glCustom ; + setcvar ui_r_modified 1 ; + show applyChanges + } + } + + itemDef + { + name simple_shaders + group video + type ITEM_TYPE_MULTI + text @MENUS0_DETAILED_SHADERS + rect 305 251 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + cvarFloatList { @MENUS0_OFF 0 @MENUS0_ON 1 } + descText @MENUS1_HIDE_OR_UNHIDE_TEXTURES + cvar "ui_r_detailtextures" + + visible 0 + + mouseenter + { + show highlight5 + } + mouseexit + { + hide highlight5 + } + action + { + play "sound/interface/button1.wav" ; + uiScript glCustom ; + setcvar ui_r_modified 1 ; + show applyChanges + } + } + + itemDef + { + name compress_textures + group video_obsolete + type ITEM_TYPE_MULTI + text @MENUS0_COMPRESSED_TEXTURES + rect 305 271 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + cvarFloatList { @MENUS0_OFF 0 @MENUS0_ON 1 } + descText @MENUS1_TAKE_ADVANTAGE_OF_3D + cvar "ui_r_ext_compress_textures" + + visible 0 + + mouseenter + { + show highlight6 + } + mouseexit + { + hide highlight6 + } + action + { + play "sound/interface/button1.wav" + uiScript glCustom + setcvar ui_r_modified 1 + show applyChanges + } + } + + // APPLY CHANGES BUTTON + itemDef + { + name applybutton_glow + group none + style WINDOW_STYLE_SHADER + rect 120 383 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 0.5 0.5 1 + visible 0 + // appearance_slot 1 + decoration + } + + itemDef + { + name applyChanges + group none + text @MENUS0_APPLY_CHANGES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 120 383 170 30 + font 3 + textscale 0.9 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 1 0 0 1 + backcolor 0 0 1 0 + visible 0 + + mouseEnter + { + show applybutton_glow + } + mouseExit + { + hide applybutton_glow + } + action + { + play "sound/interface/button1.wav" ; + show setup_background ; + show vidrestart ; + setfocus vidrestart_no ; + hide video ; + hide video2 ; + hide applybutton_glow ; + } + } + + + + //---------------------------------------------------------------------------------------------- + // + // VIDEO RESTART + // + //---------------------------------------------------------------------------------------------- + // Faint red box + itemDef + { + name vidrestart_background + group vidrestart + style WINDOW_STYLE_SHADER + rect 300 171 300 250 + background "gfx/menus/menu_boxred" // Frame + forecolor 1 1 1 0.5 + visible 0 + decoration + } + + itemDef + { + name vidrestart_text1 + group vidrestart + text @MENUS0_THIS_WILL_APPLY_VIDEO + text2 @MENUS0_AND_RETURN_TO_THE_MAIN + rect 305 230 290 20 + textalign ITEM_ALIGN_CENTER + text2aligny 18 + textalignx 145 + font 2 + textscale 1 + forecolor 1 1 0 1 + visible 0 + decoration + } + + itemDef + { + name vidrestart_text2 + group vidrestart + text @MENUS0_VID_RESTART3 + rect 305 300 290 20 + textalign ITEM_ALIGN_CENTER + textalignx 145 + font 2 + textscale 1 + forecolor 1 1 0 1 + visible 0 + } + + + + itemDef + { + name vidrestart_yes_button + group none + style WINDOW_STYLE_SHADER + rect 467 386 120 32 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + // appearance_slot 4 + } + + // YES button + itemDef + { + name vidrestart_yes + group vidrestart + text @MENUS0_YES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 467 386 120 32 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny 0 + descText @MENUS0_APPLY_CHANGES_AND_THEN + forecolor 0.65 0.65 1 1 + visible -1 + // appearance_slot 5 + + action + { + play "sound/interface/button1.wav" ; + close all ; + uiScript updatevideosetup ; + } + mouseEnter + { + show vidrestart_yes_button + } + mouseExit + { + hide vidrestart_yes_button + } + + } + + itemDef + { + name vidrestart_no_button + group none + style WINDOW_STYLE_SHADER + rect 305 386 120 32 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + // appearance_slot 3 + } + + // CANCEL button + itemDef + { + name vidrestart_no + group vidrestart + text @MENUS0_NO + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 305 386 120 32 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny -1 + descText @MENUS0_DO_NOT_APPLY_CHANGES + forecolor 0.65 0.65 1 1 + visible 0 + // appearance_slot 6 + action + { + play "sound/interface/button1.wav" ; + setfocus video1menubutton ; + show setup_background ; + hide vidrestart ; + show video ; + hide video2 ; + show applyChanges ; + hide vidrestart_yes_button ; + hide vidrestart_no_button ; + } + mouseEnter + { + show vidrestart_no_button + } + mouseExit + { + hide vidrestart_no_button + } + + } + + //---------------------------------------------------------------------------------------------- + // + // VIDEO 2 + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name gamma_text + group video2 + style WINDOW_STYLE_SHADER + rect 310 171 280 36 + background "gfx/menus/greyscale" // greyscale + forecolor 1 1 1 1 + visible 0 + decoration + // appearance_slot 1 + } + + + + itemDef + { + name bright_text + group video2 + text @MENUS0_ADJUST_BRIGHTNESS_SLIDER + text2 @MENUS0_THE_NUMBER_6_CAN_BARELY + text2aligny 14 + textalignx 128 + font 2 + textscale 0.8 + rect 305 211 256 20 + textalign ITEM_ALIGN_CENTER + forecolor 0.7 0.7 0.7 1 + visible 0 + // appearance_slot 2 + decoration + } + + itemDef + { + name brightness + group video2 + type ITEM_TYPE_SLIDER + text @MENUS0_VIDEO_BRIGHTNESS + cvarfloat "r_gamma" 1 .5 3 + rect 305 251 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 120 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 3 + descText @MENUS1_ADJUST_THE_BRIGHTNESS + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight5 + } + mouseexit + { + hide highlight5 + } + } + + itemDef + { + name shadows + group video2 + type ITEM_TYPE_MULTI + text @MENUS3_SHADOWS + descText @MENUS3_SHADOWS_DESC + cvar "cg_shadows" + cvarFloatList + { + @MENUS3_NONE 0 + @MENUS3_SHADOWS_SIMPLE 1 + @MENUS3_SHADOWS_VOLUMETRIC 2 +// "Projected" 3 + } + rect 305 271 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + action + { + play "sound/interface/button1.wav" ; + } + mouseenter + { + show highlight6 + } + mouseexit + { + hide highlight6 + } + + } + + + itemDef + { + name dynamic_light + group video2 + type ITEM_TYPE_MULTI + text @MENUS0_DYNAMIC_LIGHTS + cvar "r_dynamiclight" + cvarFloatList { @MENUS0_OFF 0 @MENUS0_ON 1 } + rect 305 291 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS1_TOGGLE_TO_TURN_ON_MOVING + + mouseenter + { + show highlight7 + } + mouseexit + { + hide highlight7 + } + action + { + play "sound/interface/button1.wav" ; + + } + } + + itemDef + { + name wall_marks + group video2 + type ITEM_TYPE_MULTI + text @MENUS0_WALL_MARKS + cvar "cg_marks" + cvarFloatList { @MENUS0_OFF 0 @MENUS0_ON 1 } + rect 305 311 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS1_TOGGLE_TO_DISPLAY_SCORCH + + mouseenter + { + show highlight8 + } + mouseexit + { + hide highlight8 + } + action + { + play "sound/interface/button1.wav" + } + } + + itemDef + { + name video_mode + group video2 + type ITEM_TYPE_MULTI + text @MENUS0_ANISOTROPIC_FILTERING + cvarTest r_ext_texture_filter_anisotropic_avail + hideCvar { 0 } + cvar r_ext_texture_filter_anisotropic + cvarFloatList { @MENUS0_OFF 0 @MENUS0_ON 1 } + rect 305 331 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 5 + + descText @MENUS1_TOGGLE_ADVANCED_TEXTURE + + mouseenter + { + show highlight9 + } + mouseexit + { + hide highlight9 + } + action + { + play "sound/interface/button1.wav" + } + } + + itemDef + { + name light_flares + group video2-obsolete + type ITEM_TYPE_MULTI + text @MENUS0_LIGHT_FLARES + cvar "r_flares" + cvarFloatList { @MENUS0_OFF 0 @MENUS0_ON 1 } + rect 305 351 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS1_TOGGLE_TO_SHOW_HALOS + + mouseenter + { + show highlight10 + } + mouseexit + { + hide highlight10 + } + action + { + play "sound/interface/button1.wav" + } + } + + + + //---------------------------------------------------------------------------------------------- + // + // SOUND FIELDS + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name effects_volume + group sound + type ITEM_TYPE_SLIDER + text @MENUS0_EFFECTS_VOLUME + cvarfloat "s_volume" 0 0 1 + rect 305 191 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 120 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS1_ADJUST_VOLUME_FOR_SOUND + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight2 + } + mouseexit + { + hide highlight2 + } + } + + itemDef + { + name music_volume + group sound + type ITEM_TYPE_SLIDER + text @MENUS0_MUSIC_VOLUME + cvarfloat "s_musicvolume" 0 0 1 + rect 305 211 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 120 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 2 + descText @MENUS1_ADJUST_VOLUME_FOR_MUSIC + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight3 + } + mouseexit + { + hide highlight3 + } + } + + itemDef + { + name voice_volume + group sound + type ITEM_TYPE_SLIDER + text @MENUS1_VOICE_VOLUME + cvarfloat "s_volumevoice" 0 0 1 + rect 305 231 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 120 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 2 + descText @MENUS2_ADJUST_VOLUME_FOR_SPEECH + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight4 + } + mouseexit + { + hide highlight4 + } + } + + itemDef + { + name sound_quality + group sound + type ITEM_TYPE_MULTI + text @MENUS0_SOUND_QUALITY + cvar "s_khz" + cvarFloatList { @MENUS0_LOW 11 @MENUS0_HIGH 22 } + rect 305 271 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 3 + descText @MENUS2_TRADE_CLARITY_OF_SOUND + + mouseenter + { + show highlight6 + } + mouseexit + { + hide highlight6 + } + action + { + play "sound/interface/button1.wav" + uiScript update s_khz + } + } + + //---------------------------------------------------------------------------------------------- + // + // OPTION FIELDS + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name draw_crosshair + group options + type ITEM_TYPE_MULTI + text @MENUS2_DRAW_CROSSHAIR + cvar "cg_drawcrosshair" + cvarFloatList { @MENUS0_OFF 0 @MENUS0_ON 1 } + rect 305 171 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + descText @MENUS2_TOGGLE_TO_SHOW_OR_HIDE + action + { + play "sound/interface/button1.wav" + } + mouseenter + { + show highlight1 + } + mouseexit + { + hide highlight1 + } + } + + + itemDef + { + name identifytarget + group options + type ITEM_TYPE_MULTI + text @MENUS0_IDENTIFY_TARGET + cvar "cg_crosshairIdentifyTarget" + cvarFloatList { @MENUS0_OFF 0 @MENUS0_ON 1 } + rect 305 191 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + descText @MENUS2_TOGGLE_TO_HAVE_THE_CROSSHAIR + + action + { + play "sound/interface/button1.wav" + } + mouseenter + { + show highlight2 + } + mouseexit + { + hide highlight2 + } + } + + + itemDef + { + name slowmo + group options + type ITEM_TYPE_MULTI + text @MENUS2_SLOW_MOTION_DEATH + cvar "d_slowmodeath" + cvarFloatList + { + @MENUS2_NEVER 0 + @MENUS2_ON_DEATH 1 + @MENUS2_RARELY 2 + @MENUS1_NORMAL 3 + @MENUS2_OFTEN 4 + @MENUS2_FREQUENTLY 5 + @MENUS2_EXCESSIVELY 6 + } + rect 305 211 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS2_SELECT_THE_FREQUENCY + + action + { + play "sound/interface/button1.wav" + } + mouseenter + { + show highlight3 + } + mouseexit + { + hide highlight3 + } + } + + + itemDef + { + name force3rd + group options + type ITEM_TYPE_MULTI + text @MENUS2_3RD_PERSON_LIGHTSABER + cvar "cg_saberAutoThird" + cvarFloatList { @MENUS0_OFF 0 @MENUS0_ON 1 } + rect 305 231 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS2_WHEN_READYING_LIGHTSABER + + action + { + play "sound/interface/button1.wav" + } + mouseenter + { + show highlight4 + } + mouseexit + { + hide highlight4 + } + } + + + itemDef + { + name force1st + group options + type ITEM_TYPE_MULTI + text @MENUS2_1ST_PERSON_GUNS + cvar "cg_gunAutoFirst" + cvarFloatList { @MENUS0_OFF 0 @MENUS0_ON 1 } + rect 305 251 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS2_WHEN_PUTTING_AWAY_SABER + + action + { + play "sound/interface/button1.wav" + } + mouseenter + { + show highlight5 + } + mouseexit + { + hide highlight5 + } + } + + + itemDef + { + name dismemberment + group options + type ITEM_TYPE_MULTI + text @MENUS2_DISMEMBERMENT + cvar "g_dismemberment" + cvarFloatList + { + @MENUS0_OFF 0 + @MENUS0_ON 3 + } + cvarTest ui_iscensored + hideCvar { 1 } + rect 305 291 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS2_SELECT_WHAT_LIGHTSABER + + action + { + play "sound/interface/button1.wav" + } + mouseenter + { + show highlight7 + } + mouseexit + { + hide highlight7 + } + } + +// Weapon Sway. Yes, this is nutty. Two cvars here, one removes weapon sway, the other adds it. + itemDef + { + name weaponswayon + group options + type ITEM_TYPE_MULTI + text @MENUS3_VIEW_SWAYING + descText @MENUS3_VIEW_SWAYING_DESC + cvar "ui_disableWeaponSway" + cvarFloatList + { + @MENUS0_ON 0 + @MENUS0_OFF 1 + } + cvarTest "ui_disableWeaponSway" + showCvar + { + "0" + } + rect 305 311 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + + action + { + play "sound/interface/button1.wav" + exec "exec noMotion.cfg" ; + show weaponswayoff ; + setfocus weaponswayoff + } + mouseenter + { + show highlight8 + } + mouseexit + { + hide highlight8 + } + } + + itemDef + { + name weaponswayoff + group options + type ITEM_TYPE_MULTI + text @MENUS3_VIEW_SWAYING + descText @MENUS3_VIEW_SWAYING_DESC + cvar "ui_disableWeaponSway" + cvarFloatList + { + @MENUS0_ON 0 + @MENUS0_OFF 1 + } + cvarTest "ui_disableWeaponSway" + hideCvar + { + "0" + } + rect 305 311 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + + action + { + play "sound/interface/button1.wav" + exec "exec restoreMotion.cfg" ; + show weaponswayon ; + setfocus weaponswayon + } + mouseenter + { + show highlight8 + } + mouseexit + { + hide highlight8 + } + } + + + +/* + itemDef + { + name dismembermentprob + group options_obsolete + type ITEM_TYPE_MULTI + text @MENUS2_DISMEMBER_PROBABILITY + cvar "g_dismemberProbabilities" + cvarFloatList + { + @MENUS2_RARE 2 + @MENUS1_NORMAL 1 + @MENUS2_EXCESSIVE 0 + } + rect 305 311 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS2_SELECT_FREQUENCY_OF_DISMEMBERMENT + action + { + play "sound/interface/button1.wav" + } + mouseenter + { + show highlight8 + } + mouseexit + { + hide highlight8 + } + } +*/ + + itemDef + { + name text + group options + type ITEM_TYPE_MULTI + text @MENUS0_TEXT + cvar "sp_language" + cvarFloatList + { + "English" 0 + "Francais" 1 + "Deutsch" 2 + } + rect 305 351 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS2_CHOOSE_THE_LANGUAGE_FOR + + action + { + play "sound/interface/button1.wav" + } + mouseenter + { + show highlight10 + } + mouseexit + { + hide highlight10 + } + } + + itemDef + { + name voice + group options + type ITEM_TYPE_MULTI + text @MENUS1_VOICE + cvar "s_language" + cvarStrList + { + "English", "english" + "Francais" "francais" + "Deutsch" "deutsch" + } + rect 305 371 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS3_CHOOSE_THE_LANGUAGE_TO + + action + { + play "sound/interface/button1.wav" + } + mouseenter + { + show highlight11 + } + mouseexit + { + hide highlight11 + } + } + + itemDef + { + name voice + group options + type ITEM_TYPE_MULTI + text @MENUS1_SUBTITLES + cvar "g_subtitles" + cvarFloatList + { + @MENUS3_NONE 0 + @MENUS3_IN_CINEMATICS 2 +// @MENUS3_ALL_VOICEOVERS 1 + } + rect 305 391 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS3_TOGGLE_WHETHER_SUBTITLES + + action + { + play "sound/interface/button1.wav" + } + mouseenter + { + show highlight12 + } + mouseexit + { + hide highlight12 + } + } + + + +// This menu option is no longer used. + itemDef + { + name sync_frame + group options_obsolete + type ITEM_TYPE_MULTI + text @MENUS1_SYNC_EVERY_FRAME + cvar "r_finish" + cvarFloatList { @MENUS0_OFF 0 @MENUS0_ON 1 } + rect 305 211 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale 0.8 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + descText @MENUS3_TOGGLE_TO_PREVENT_VIDEO + + action + { + play "sound/interface/button1.wav" + } + mouseenter + { + show highlight3 + } + mouseexit + { + hide highlight3 + } + } + + //---------------------------------------------------------------------------------------------- + // + // MOD GAME MENU specific stuff + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name serverinfo + group mods + rect 302 184 300 200 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 120 + elementheight 16 + font 2 + textscale 1 + border 1 + bordersize 1 + bordercolor .5 .5 .5 .5 + forecolor 0.65 0.65 1 1 + backcolor 0 0 .5 .25 + outlinecolor .5 .5 .5 .5 + elementtype LISTBOX_TEXT + feeder 9 + notselectable + visible 0 + columns 2 2 40 20 200 80 30 + } + + itemDef + { + name loadmod_button + group none + style WINDOW_STYLE_SHADER + rect 305 391 300 20 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + decoration + } + + itemDef + { + name loadmod + group mods + text @MENUS1_LOAD_MOD + descText @MENUS1_LOAD_CHOSEN_MOD + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 305 391 300 20 + textalign ITEM_ALIGN_CENTER + textalignx 150 + font 2 + textscale 0.8 + forecolor 0.65 0.65 1 1 + visible 0 + // appearance_slot 2 + action + { + play "sound/interface/button1.wav" +// uiScript loadgame + } + + mouseEnter + { + show loadmod_button + } + mouseExit + { + hide loadmod_button + } + } + + //---------------------------------------------------------------------------------------------- + // + // RESET DEFAULTS + // + //---------------------------------------------------------------------------------------------- + // Faint red box + itemDef + { + name vidrestart_background + group defaults + style WINDOW_STYLE_SHADER + rect 300 171 300 250 + background "gfx/menus/menu_boxred" // Frame + forecolor 1 1 1 0.5 + visible 0 + decoration + } + + itemDef + { + name options + group defaults + text @MENUS0_WARNING + rect 305 191 300 20 + textalign ITEM_ALIGN_CENTER + textalignx 150 + font 2 + textscale 1 + forecolor 1 1 0 1 + visible 0 + decoration + } + + itemDef + { + name options + group defaults + text @MENUS2_THIS_WILL_SET_ALL_GAME + text2 @MENUS2_TO_THEIR_FACTORY_SETTINGS + rect 305 231 300 20 + textalign ITEM_ALIGN_CENTER + textalignx 150 + text2aligny 20 + font 2 + textscale 1 + forecolor 1 1 0 1 + visible 0 + decoration + } + + itemDef + { + name options + group defaults + text @MENUS0_VID_RESTART3 + rect 305 291 300 20 + textalign ITEM_ALIGN_CENTER + textalignx 150 + font 2 + textscale 1 + forecolor 1 1 0 1 + visible 0 + decoration + } + + + itemDef + { + name default_yes_button + group highlights + style WINDOW_STYLE_SHADER + rect 467 386 120 32 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + // appearance_slot 4 + } + + // YES button - lose reset defaults + itemDef + { + name default_yes + group defaults + text @MENUS0_YES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 467 386 120 32 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 60 + textaligny 0 + descText @MENUS0_USE_DEFAULT_SETTINGS + forecolor 0.65 0.65 1 1 + visible 0 + // appearance_slot 5 + + action + { + play "sound/interface/button1.wav" ; + hide highlights ; + close all ; + uiscript resetdefaults + } + mouseEnter + { + show default_yes_button + } + mouseExit + { + hide default_yes_button + } + + } + + itemDef + { + name default_no_button + group highlights + style WINDOW_STYLE_SHADER + rect 305 386 120 32 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + // appearance_slot 3 + } + + // NO button - return to Main Menu + itemDef + { + name default_no + group defaults + text @MENUS0_NO + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 305 386 120 32 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 60 + textaligny 0 + descText @MENUS0_DO_NOT_RESET_DEFAULT + forecolor 0.65 0.65 1 1 + visible 0 + // appearance_slot 6 + action + { + play "sound/interface/button1.wav" + hide highlights ; + hide default_no_button + close all ; + open mainMenu ; + } + mouseEnter + { + show default_no_button + } + mouseExit + { + hide default_no_button + } + } + } +}