diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..d511905 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,339 @@ + GNU GENERAL PUBLIC LICENSE + Version 2, June 1991 + + Copyright (C) 1989, 1991 Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The licenses for most software are designed to take away your +freedom to share and change it. By contrast, the GNU General Public +License is intended to guarantee your freedom to share and change free +software--to make sure the software is free for all its users. This +General Public License applies to most of the Free Software +Foundation's software and to any other program whose authors commit to +using it. (Some other Free Software Foundation software is covered by +the GNU Lesser General Public License instead.) You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +this service if you wish), that you receive source code or can get it +if you want it, that you can change the software or use pieces of it +in new free programs; and that you know you can do these things. + + To protect your rights, we need to make restrictions that forbid +anyone to deny you these rights or to ask you to surrender the rights. +These restrictions translate to certain responsibilities for you if you +distribute copies of the software, or if you modify it. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must give the recipients all the rights that +you have. You must make sure that they, too, receive or can get the +source code. And you must show them these terms so they know their +rights. + + We protect your rights with two steps: (1) copyright the software, and +(2) offer you this license which gives you legal permission to copy, +distribute and/or modify the software. + + Also, for each author's protection and ours, we want to make certain +that everyone understands that there is no warranty for this free +software. If the software is modified by someone else and passed on, we +want its recipients to know that what they have is not the original, so +that any problems introduced by others will not reflect on the original +authors' reputations. + + Finally, any free program is threatened constantly by software +patents. We wish to avoid the danger that redistributors of a free +program will individually obtain patent licenses, in effect making the +program proprietary. To prevent this, we have made it clear that any +patent must be licensed for everyone's free use or not licensed at all. + + The precise terms and conditions for copying, distribution and +modification follow. + + GNU GENERAL PUBLIC LICENSE + TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + + 0. This License applies to any program or other work which contains +a notice placed by the copyright holder saying it may be distributed +under the terms of this General Public License. The "Program", below, +refers to any such program or work, and a "work based on the Program" +means either the Program or any derivative work under copyright law: +that is to say, a work containing the Program or a portion of it, +either verbatim or with modifications and/or translated into another +language. (Hereinafter, translation is included without limitation in +the term "modification".) Each licensee is addressed as "you". + +Activities other than copying, distribution and modification are not +covered by this License; they are outside its scope. The act of +running the Program is not restricted, and the output from the Program +is covered only if its contents constitute a work based on the +Program (independent of having been made by running the Program). +Whether that is true depends on what the Program does. + + 1. You may copy and distribute verbatim copies of the Program's +source code as you receive it, in any medium, provided that you +conspicuously and appropriately publish on each copy an appropriate +copyright notice and disclaimer of warranty; keep intact all the +notices that refer to this License and to the absence of any warranty; +and give any other recipients of the Program a copy of this License +along with the Program. + +You may charge a fee for the physical act of transferring a copy, and +you may at your option offer warranty protection in exchange for a fee. + + 2. You may modify your copy or copies of the Program or any portion +of it, thus forming a work based on the Program, and copy and +distribute such modifications or work under the terms of Section 1 +above, provided that you also meet all of these conditions: + + a) You must cause the modified files to carry prominent notices + stating that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in + whole or in part contains or is derived from the Program or any + part thereof, to be licensed as a whole at no charge to all third + parties under the terms of this License. + + c) If the modified program normally reads commands interactively + when run, you must cause it, when started running for such + interactive use in the most ordinary way, to print or display an + announcement including an appropriate copyright notice and a + notice that there is no warranty (or else, saying that you provide + a warranty) and that users may redistribute the program under + these conditions, and telling the user how to view a copy of this + License. (Exception: if the Program itself is interactive but + does not normally print such an announcement, your work based on + the Program is not required to print an announcement.) + +These requirements apply to the modified work as a whole. If +identifiable sections of that work are not derived from the Program, +and can be reasonably considered independent and separate works in +themselves, then this License, and its terms, do not apply to those +sections when you distribute them as separate works. But when you +distribute the same sections as part of a whole which is a work based +on the Program, the distribution of the whole must be on the terms of +this License, whose permissions for other licensees extend to the +entire whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest +your rights to work written entirely by you; rather, the intent is to +exercise the right to control the distribution of derivative or +collective works based on the Program. + +In addition, mere aggregation of another work not based on the Program +with the Program (or with a work based on the Program) on a volume of +a storage or distribution medium does not bring the other work under +the scope of this License. + + 3. You may copy and distribute the Program (or a work based on it, +under Section 2) in object code or executable form under the terms of +Sections 1 and 2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable + source code, which must be distributed under the terms of Sections + 1 and 2 above on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three + years, to give any third party, for a charge no more than your + cost of physically performing source distribution, a complete + machine-readable copy of the corresponding source code, to be + distributed under the terms of Sections 1 and 2 above on a medium + customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer + to distribute corresponding source code. (This alternative is + allowed only for noncommercial distribution and only if you + received the program in object code or executable form with such + an offer, in accord with Subsection b above.) + +The source code for a work means the preferred form of the work for +making modifications to it. For an executable work, complete source +code means all the source code for all modules it contains, plus any +associated interface definition files, plus the scripts used to +control compilation and installation of the executable. However, as a +special exception, the source code distributed need not include +anything that is normally distributed (in either source or binary +form) with the major components (compiler, kernel, and so on) of the +operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering +access to copy from a designated place, then offering equivalent +access to copy the source code from the same place counts as +distribution of the source code, even though third parties are not +compelled to copy the source along with the object code. + + 4. You may not copy, modify, sublicense, or distribute the Program +except as expressly provided under this License. Any attempt +otherwise to copy, modify, sublicense or distribute the Program is +void, and will automatically terminate your rights under this License. +However, parties who have received copies, or rights, from you under +this License will not have their licenses terminated so long as such +parties remain in full compliance. + + 5. You are not required to accept this License, since you have not +signed it. However, nothing else grants you permission to modify or +distribute the Program or its derivative works. These actions are +prohibited by law if you do not accept this License. Therefore, by +modifying or distributing the Program (or any work based on the +Program), you indicate your acceptance of this License to do so, and +all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + + 6. Each time you redistribute the Program (or any work based on the +Program), the recipient automatically receives a license from the +original licensor to copy, distribute or modify the Program subject to +these terms and conditions. You may not impose any further +restrictions on the recipients' exercise of the rights granted herein. +You are not responsible for enforcing compliance by third parties to +this License. + + 7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), +conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot +distribute so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you +may not distribute the Program at all. For example, if a patent +license would not permit royalty-free redistribution of the Program by +all those who receive copies directly or indirectly through you, then +the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under +any particular circumstance, the balance of the section is intended to +apply and the section as a whole is intended to apply in other +circumstances. + +It is not the purpose of this section to induce you to infringe any +patents or other property right claims or to contest validity of any +such claims; this section has the sole purpose of protecting the +integrity of the free software distribution system, which is +implemented by public license practices. Many people have made +generous contributions to the wide range of software distributed +through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing +to distribute software through any other system and a licensee cannot +impose that choice. + +This section is intended to make thoroughly clear what is believed to +be a consequence of the rest of this License. + + 8. If the distribution and/or use of the Program is restricted in +certain countries either by patents or by copyrighted interfaces, the +original copyright holder who places the Program under this License +may add an explicit geographical distribution limitation excluding +those countries, so that distribution is permitted only in or among +countries not thus excluded. In such case, this License incorporates +the limitation as if written in the body of this License. + + 9. The Free Software Foundation may publish revised and/or new versions +of the General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any +later version", you have the option of following the terms and conditions +either of that version or of any later version published by the Free +Software Foundation. If the Program does not specify a version number of +this License, you may choose any version ever published by the Free Software +Foundation. + + 10. If you wish to incorporate parts of the Program into other free +programs whose distribution conditions are different, write to the author +to ask for permission. For software which is copyrighted by the Free +Software Foundation, write to the Free Software Foundation; we sometimes +make exceptions for this. Our decision will be guided by the two goals +of preserving the free status of all derivatives of our free software and +of promoting the sharing and reuse of software generally. + + NO WARRANTY + + 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY +FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN +OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES +PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED +OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS +TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE +PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, +REPAIR OR CORRECTION. + + 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR +REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, +INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING +OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED +TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY +YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER +PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE +POSSIBILITY OF SUCH DAMAGES. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +convey the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + + Copyright (C) + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this +when it starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author + Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may +be called something other than `show w' and `show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your +school, if any, to sign a "copyright disclaimer" for the program, if +necessary. Here is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + `Gnomovision' (which makes passes at compilers) written by James Hacker. + + , 1 April 1989 + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. diff --git a/README.md b/README.md index fab58af..2129443 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,13 @@ Jedi-Academy ============ -Star Wars Jedi Knight: Jedi Academy \ No newline at end of file +Final source code for [Star Wars Jedi Knight: Jedi Academy](https://en.wikipedia.org/wiki/Star_Wars_Jedi_Knight:_Jedi_Academy) + +> Activision and Raven are releasing this code for people to learn from and play with. +> This code is copyright Activision 2003. This source is released under GNU GPLv2. + +The initial release can be found [on SourceForge](http://sourceforge.net/projects/jediacademy/files/), posted by [James Monroe](http://www.ravensoft.com/culture/our-people/9/james+monroe/staff-info/). Thanks to Raven Software for making this available to us. + +The code here should be consistent with the released version. The existing CVS meta files have been removed and Git files have been added. + +No further updates to this repository are planned unless updates are posted by Raven Software. Please fork the repository if you want to contribute changes. diff --git a/base/default.cfg b/base/default.cfg new file mode 100644 index 0000000..b7dbcf6 --- /dev/null +++ b/base/default.cfg @@ -0,0 +1,109 @@ +// +// SP JEDI ACADEMY DEFAULT CONFIG +// + +unbindall + +// +// WEAPONS +// +bind 1 "weapon 1" +bind 2 "weapon 2" +bind 3 "weapon 3" +bind 4 "weapon 4" +bind 5 "weapon 5" +bind 6 "weapon 6" +bind 7 "weapon 7" +bind 8 "weapon 8" +bind 9 "weapon 13" +bind 0 "weapon 9" +bind - "weapon 10" +bind = "weapon 0" + +bind \ weapongrabbed +bind [ weapprev +bind ] weapnext +bind mwheelup weapprev +bind mwheeldown weapnext + +// +// CHARACTER CONTROLS +// +bind CTRL +attack +bind ALT +altattack +bind SHIFT +speed +bind v +strafe +bind PGUP +lookup +bind PGDN +lookdown +bind END centerview +bind c +movedown +bind SPACE +moveup +bind ENTER +use +bind r +use + + +bind UPARROW +forward +bind DOWNARROW +back +bind LEFTARROW +left +bind RIGHTARROW +right +bind w +forward +bind a +moveleft +bind s +back +bind d +moveright +bind , +moveleft +bind . +moveright + +// +// FORCE POWERS +// + +bind F1 force_throw +bind F2 force_pull +bind F3 force_speed +bind F4 force_sight + +bind f +useforce +bind e forcenext +bind q forceprev + +bind TAB datapad +bind m datapad +bind p "cg_thirdperson !" +bind l saberAttackCycle + +// +// INVENTORY +// + +// +// QUICK KEYS +// + +//single only +bind F9 "load quick" +bind F10 "uimenu ingameloadmenu" +bind F11 "uimenu ingamesavemenu" +bind F12 "save quick" + +// +// MOUSE OPTIONS +// + +bind / +mlook + +// +// MOUSE BUTTONS +// + +bind MOUSE1 +attack +bind MOUSE2 +altattack +bind MOUSE3 saberAttackCycle + + +// +// CLIENT ENVIRONMENT COMMANDS +// + +bind ~ "toggleconsole" +bind ` "toggleconsole" + diff --git a/base/ext_data/MP/netf_overrides.txt b/base/ext_data/MP/netf_overrides.txt new file mode 100644 index 0000000..68b4138 --- /dev/null +++ b/base/ext_data/MP/netf_overrides.txt @@ -0,0 +1,155 @@ +;rww - this file will allow you to override the number of bits any given +;entityState value is sent across the network in for your mod. Do not +;mess with this unless you know what you're doing as it's easily possible +;to mess something up terribly. Just remove the ; in front of any of the +;values that you want to override and use the desired bit num. 0 is a +;special-case value, it means to send across as a float. GENTITYNUM_BITS +;means to send in as many bits as it takes to send the highest possible +;entity number. +; +;pos.trTime, 32 +;pos.trBase[0], 0 +;pos.trBase[1], 0 +;pos.trDelta[0], 0 +;pos.trDelta[1], 0 +;pos.trBase[2], 0 +;apos.trBase[1], 0 +;pos.trDelta[2], 0 +;apos.trBase[0], 0 +;event, 10 +;angles2[1], 0 +;eType, 8 +;torsoAnim, 16 +;forceFrame, 16 +;eventParm, 8 +;legsAnim, 16 +;torsoFlip, 1 +;legsFlip, 1 +;groundEntityNum, GENTITYNUM_BITS +;pos.trType, 8 +;eFlags, 32 +;bolt1, 8 +;bolt2, GENTITYNUM_BITS +;trickedentindex, 16 +;trickedentindex2, 16 +;trickedentindex3, 16 +;trickedentindex4, 16 +;speed, 0 +;fireflag, 2 +;genericenemyindex, 32 +;activeForcePass, 6 +;emplacedOwner, 32 +;otherEntityNum, GENTITYNUM_BITS +;weapon, 32 +;clientNum, GENTITYNUM_BITS +;angles[1], 0 +;pos.trDuration, 32 +;apos.trType, 8 +;origin[0], 0 +;origin[1], 0 +;origin[2], 0 +;solid, 24 +;owner, GENTITYNUM_BITS +;teamowner, 8 +;shouldtarget, 1 +;powerups, 16 +;modelGhoul2, 8 +;g2radius, 8 +;modelindex, -16 +;otherEntityNum2, GENTITYNUM_BITS +;loopSound, 8 +;loopIsSoundset, 1 +;soundSetIndex, 8 +;generic1, 8 +;origin2[2], 0 +;origin2[0], 0 +;origin2[1], 0 +;modelindex2, 8 +;angles[0], 0 +;time, 32 +;apos.trTime, 32 +;apos.trDuration, 32 +;apos.trBase[2], 0 +;apos.trDelta[0], 0 +;apos.trDelta[1], 0 +;apos.trDelta[2], 0 +;time2, 32 +;angles[2], 0 +;angles2[0], 0 +;angles2[2], 0 +;constantLight, 32 +;frame, 16 +;saberInFlight, 1 +;saberEntityNum, GENTITYNUM_BITS +;saberMove, 8 +;forcePowersActive, 32 +;isJediMaster, 1 +;isPortalEnt, 1 +;heldByClient, 6 +;ragAttach, GENTITYNUM_BITS +;iModelScale, 10 +;brokenLimbs, 8 +;boltToPlayer, 6 +;hasLookTarget, 1 +;lookTarget, GENTITYNUM_BITS +; +;customRGBA[0], 8 +;customRGBA[1], 8 +;customRGBA[2], 8 +;customRGBA[3], 8 +; +;health, 10 +;maxhealth, 10 +; +;npcSaber1, 9 +;npcSaber2, 9 +; +;csSounds_Std, 8 +;csSounds_Combat, 8 +;csSounds_Extra, 8 +;csSounds_Jedi, 8 +; +;surfacesOn, 32 +;surfacesOff, 32 +; +;boneIndex1, 6 +;boneIndex2, 6 +;boneIndex3, 6 +;boneIndex4, 6 +; +;boneOrient, 9 +; +;boneAngles1[0], 0 +;boneAngles1[1], 0 +;boneAngles1[2], 0 +; +;boneAngles2[0], 0 +;boneAngles2[1], 0 +;boneAngles2[2], 0 +; +;boneAngles3[0], 0 +;boneAngles3[1], 0 +;boneAngles3[2], 0 +; +;boneAngles4[0], 0 +;boneAngles4[1], 0 +;boneAngles4[2], 0 +; +;NPC_class, 8 +; +;m_iVehicleNum, 10 +; +;eFlags2,10 +; +;userInt1, 1 +;userInt2, 1 +;userInt3, 1 +;userFloat1, 1 +;userFloat2, 1 +;userFloat3, 1 +;userVec1[0], 1 +;userVec1[1], 1 +;userVec1[2], 1 +;userVec2[0], 1 +;userVec2[1], 1 +;userVec2[2], 1 diff --git a/base/ext_data/MP/psf_overrides.txt b/base/ext_data/MP/psf_overrides.txt new file mode 100644 index 0000000..dd58fcc --- /dev/null +++ b/base/ext_data/MP/psf_overrides.txt @@ -0,0 +1,181 @@ +;rww - this file will allow you to override the number of bits any given +;playerState value is sent across the network in for your mod. Do not +;mess with this unless you know what you're doing as it's easily possible +;to mess something up terribly. Just remove the ; in front of any of the +;values that you want to override and use the desired bit num. 0 is a +;special-case value, it means to send across as a float. GENTITYNUM_BITS +;means to send in as many bits as it takes to send the highest possible +;entity number. +; +;commandTime, 32 +;origin[0], 0 +;origin[1], 0 +;bobCycle, 8 +;velocity[0], 0 +;velocity[1], 0 +;viewangles[1], 0 +;viewangles[0], 0 +; +;weaponTime, -16 +;weaponChargeTime, 32 +;weaponChargeSubtractTime, 32 +;origin[2], 0 +;velocity[2], 0 +;pm_time, -16 +;eventSequence, 16 +;torsoAnim, 16 +;torsoTimer, 16 +;legsAnim, 16 +;legsTimer, 16 +;legsFlip, 1 +;torsoFlip, 1 +;movementDir, 4 +;events[0], 10 +;events[1], 10 +;pm_flags, 16 +;groundEntityNum, GENTITYNUM_BITS +;weaponstate, 4 +;eFlags, 32 +;externalEvent, 10 +;gravity, 16 +;speed, -16 +;basespeed, -16 +;delta_angles[1], 16 +;externalEventParm, 8 +;viewheight, -8 +;damageEvent, 8 +;damageYaw, 8 +;damagePitch, 8 +;damageCount, 8 +;damageType, 2 +;generic1, 8 +;pm_type, 8 +;delta_angles[0], 16 +;delta_angles[2], 16 +;eventParms[0], -16 +;eventParms[1], 8 +;clientNum, GENTITYNUM_BITS +;weapon, 8 +;viewangles[2], 0 +; +;jumppad_ent, 10 +;loopSound, 16 +;loopIsSoundset, 1 +; +;zoomMode, 2 +;zoomTime, 32 +;zoomLocked, 1 +;zoomFov, 0 +; +;fd.forcePowersActive, 32 +;fd.forceMindtrickTargetIndex, 16 +;fd.forceMindtrickTargetIndex2, 16 +;fd.forceMindtrickTargetIndex3, 16 +;fd.forceMindtrickTargetIndex4, 16 +;fd.forceJumpZStart, 0 +;fd.forcePowerSelected, 8 +;fd.forcePowersKnown, 32 +;fd.forcePower, 8 +;fd.forceSide, 2 +;fd.sentryDeployed, 1 +;fd.forcePowerLevel[FP_LEVITATION], 2 +;fd.forcePowerLevel[FP_SEE], 2 +;fd.forceGripCripple, 1 +;genericEnemyIndex, 32 +;activeForcePass, 6 +;hasDetPackPlanted, 1 +;emplacedIndex, GENTITYNUM_BITS +;fd.forceRageRecoveryTime, 32 +;rocketLockIndex, GENTITYNUM_BITS +;rocketLockTime, 32 +;rocketTargetTime, 32 +;holocronBits, 32 +;isJediMaster, 1 +;forceRestricted, 1 +;trueJedi, 1 +;trueNonJedi, 1 +;fallingToDeath, 32 +;electrifyTime, 32 +; +;fd.forcePowerDebounce[FP_LEVITATION], 32 +; +;saberMove, 32 +;saberActive, 1 +;saberInFlight, 1 +;saberBlocked, 8 +;saberEntityNum, GENTITYNUM_BITS +;saberCanThrow, 1 +;forceHandExtend, 8 +;forceDodgeAnim, 16 +;fd.saberAnimLevel, 4 +;fd.saberDrawAnimLevel, 4 +;saberAttackChainCount, 4 +;saberHolstered, 1 +; +;jetpackFuel, 8 +;cloakFuel, 8 +; +;duelIndex, GENTITYNUM_BITS +;duelTime, 32 +;duelInProgress, 1 +; +;saberLockTime, 32 +;saberLockEnemy, GENTITYNUM_BITS +;saberLockFrame, 16 +;saberLockAdvance, 1 +; +;inAirAnim, 1 +; +;lastHitLoc[2], 0 +;lastHitLoc[0], 0 +;lastHitLoc[1], 0 +; +;heldByClient, 6 +;ragAttach, GENTITYNUM_BITS +;iModelScale, 10 +;brokenLimbs, 8 +;hasLookTarget, 1 +;lookTarget, GENTITYNUM_BITS +; +;customRGBA[0], 8 +;customRGBA[1], 8 +;customRGBA[2], 8 +;customRGBA[3], 8 +; +;standheight, 10 +;crouchheight, 10 +; +;m_iVehicleNum, GENTITYNUM_BITS +; +;vehOrientation[0], 0 +;vehOrientation[1], 0 +;vehOrientation[2], 0 +; +;vehSurfaces, 16 +; +;vehTurnaroundIndex, GENTITYNUM_BITS +;vehTurnaroundTime, 32 +; +;moveDir[0], 0 +;moveDir[1], 0 +;moveDir[2], 0 +; +;vehBoarding, 1 +; +;hackingTime, 32 +;hackingBaseTime, 16 +; +;eFlags2,10 +; +;userInt1, 1 +;userInt2, 1 +;userInt3, 1 +;userFloat1, 1 +;userFloat2, 1 +;userFloat3, 1 +;userVec1[0], 1 +;userVec1[1], 1 +;userVec1[2], 1 +;userVec2[0], 1 +;userVec2[1], 1 +;userVec2[2], 1 diff --git a/base/ext_data/MP/vssver.scc b/base/ext_data/MP/vssver.scc new file mode 100644 index 0000000..f170414 Binary files /dev/null and b/base/ext_data/MP/vssver.scc differ diff --git a/base/ext_data/dms.dat b/base/ext_data/dms.dat new file mode 100644 index 0000000..8f50651 --- /dev/null +++ b/base/ext_data/dms.dat @@ -0,0 +1,1757 @@ +musicfiles +{ + kejimbase_explore + { + entry + { + marker0 0.000 + marker1 22.070 + marker2 53.723 + marker3 90.926 + } + exit + { + nextfile kejimbase_etr00 + time00 3.337 + time01 5.668 + time02 22.040 + time03 29.889 + time04 50.124 + time05 37.168 + time06 53.473 + time07 65.923 + time08 90.478 + time09 143.233 + time10 156.166 + time11 176.608 + time12 193.505 + } + exit + { + nextfile kejimbase_etr01 + time00 45.555 + time01 81.525 + time02 106.406 + time03 128.648 + time04 185.168 + time05 209.309 + } + } + kejimbase_action + { + entry + { + marker0 0.00 + marker1 42.585 + marker2 87.664 + } + exit + { + nextfile kejimbase_atr00 + nextmark marker0 + time00 69.347 + time01 72.142 + time02 80.444 + time03 87.608 + time04 90.185 + } + exit + { + nextfile kejimbase_atr01 + nextmark marker1 + time00 2.434 + time01 5.667 + time02 20.281 + } + exit + { + nextfile kejimbase_atr02 + nextmark marker2 + time00 62.894 + } + exit + { + nextfile kejimbase_atr03 + nextmark marker3 + time00 12.397 + time01 28.679 + time02 35.492 + time03 45.328 + } + } + ImpBaseB_Explore + { + entry + { + marker0 0 + marker1 37 + marker2 69.81 + marker3 119.97 + } + exit + { + nextfile ImpBaseB_Etr00 + time0 37 + time1 54.0 + time2 62.35 + time3 69.81 + time4 79.85 + time5 119.97 + time6 132.75 + time7 146.88 + } + exit + { + nextfile ImpBaseB_Etr01 + time0 13.67 + time1 26.96 + time2 89.42 + time3 96.92 + time4 107.77 + } + + } + ImpBaseB_Action + { + entry + { + marker0 0 + marker1 30.23 + marker2 45.45 + marker3 104.48 + } + exit + { + nextfile ImpBaseB_Atr00 + nextmark marker3 + time0 38.22 + time1 50.31 + time2 59.23 + time3 64.47 + time4 80.41 + time5 87.69 + time6 92.01 + time7 98.07 + time8 104.48 + } + exit + { + nextfile ImpBaseB_Atr01 + nextmark marker2 + time0 8.91 + time1 20.89 + } + exit + { + nextfile ImpBaseB_Atr02 + nextmark marker1 + time0 25.45 + time1 30.23 + } + exit + { + nextfile ImpBaseB_Atr03 + nextmark marker0 + time0 4.97 + time1 11.33 + time2 16.11 + time3 45.45 + time4 70.61 + time5 74.66 + } + } + ImpBaseC_explore + { + entry + { + marker0 0.000 + marker1 55.831 + marker2 11.160 + marker3 11.160 + + } + exit + { + nextfile ImpBaseC_etr00 + time00 42.904 + time01 71.172 + time02 127.721 + time03 150.290 + time04 171.618 + + } + exit + { + nextfile ImpBaseC_etr01 + time00 19.096 + time01 26.412 + time02 88.211 + time03 101.169 + + } + } + ImpBaseC_action + { + entry + { + marker0 0.00 + marker1 19.468 + marker2 33.480 + } + exit + { + nextfile ImpBaseC_atr00 + nextmark marker0 + time00 2.542 + time01 5.440 + time02 9.470 + time03 19.366 + } + exit + { + nextfile ImpBaseC_atr01 + nextmark marker1 + time00 25.544 + time01 29.140 + } + exit + { + nextfile ImpBaseC_atr02 + nextmark marker2 + time00 44.888 + } + exit + { + nextfile ImpBaseC_atr03 + nextmark marker3 + time00 34.272 + time01 65.224 + } + } + BespinA_Explore + { + entry + { + marker0 6.74 + marker1 17.51 + marker2 95.95 + marker3 149.87 + } + exit + { + nextfile BespinA_Etr00 + time00 42.01 + } + exit + { + nextfile BespinA_Etr01 + time00 165.65 + } + exit + { + nextfile BespinA_Etr02 + time00 17.51 + time01 29.50 + time02 54.80 + time03 70.21 + time04 90.25 + time05 106.40 + time06 120.53 + time07 149.87 + time08 178.36 + } + } + BespinA_Action + { + entry + { + marker0 0.00 + marker1 42.585 + marker2 87.664 + } + exit + { + nextfile BespinA_Atr00 + nextmark marker0 + time00 3.08 + time01 6.19 + time02 35.26 + } + exit + { + nextfile BespinA_Atr01 + nextmark marker1 + time00 8.98 + time01 14.76 + time02 20.65 + time03 44.34 + time04 47.28 + } + exit + { + nextfile BespinA_Atr02 + nextmark marker2 + time00 51.82 + time01 58.00 + } + exit + { + nextfile BespinA_Atr03 + nextmark marker3 + time00 28.90 + time01 64.78 + } + } + + besplat_explore + { + entry + { + marker0 46.78 + marker1 69.05 + marker2 85.85 + } + exit + { + nextfile besplat_etr00 + time0 6.89 + time1 21.26 + time3 55.52 + time4 69.75 + time5 85.87 + time6 98.12 + time7 119.44 + time8 131.95 + time9 157.58 + } + exit + { + nextfile besplat_etr01 + time0 34.15 + time1 141.84 + time2 174.72 + time3 183.05 + } + } + + besplat_action + { + entry + { + marker0 0 + marker1 16.56 + marker2 24.86 + marker3 62.37 + } + exit + { + nextfile besplat_atr00 + nextmark marker1 + time0 2.82 + time1 68.46 + } + exit + { + nextfile besplat_atr01 + nextmark marker2 + time0 41.23 + time1 54.20 + time2 59.31 + time3 76.51 + } + exit + { + nextfile besplat_atr02 + nextmark marker0 + time0 13.47 + time1 21.19 + time2 24.65 + time3 28.82 + time4 83.53 + } + } + + besplat_boss + { + } + + yavtrial_explore + { + entry + { + marker0 124.126 + marker1 102.326 + marker2 24.853 + marker3 0.00 + } + exit + { + nextfile yavtrial_etr00 + time00 3.095 + time01 23.931 + time02 24.937 + time03 46.905 + time04 61.268 + time05 79.042 + time06 101.750 + time07 118.136 + time08 147.951 + } + exit + { + nextfile yavtrial_etr01 + time00 161.783 + } + } + yavtrial_action + { + entry + { + marker0 0.00 + marker1 60.145 + marker2 85.922 + } + exit + { + nextfile yavtrial_atr00 + nextmark marker0 + time00 3.553 + time01 6.118 + time02 8.718 + time03 41.152 + time04 103.559 + } + exit + { + nextfile yavtrial_atr01 + nextmark marker1 + time00 9.307 + time01 12.310 + time02 16.719 + time03 20.045 + time04 26.229 + time05 35.160 + } + exit + { + nextfile yavtrial_atr02 + nextmark marker2 + time00 59.302 + time01 65.837 + time02 74.429 + } + exit + { + nextfile yavtrial_atr03 + nextmark marker3 + time00 38.325 + time01 49.857 + } + } + alienha_explore + { + entry + { + marker0 0 + marker1 65.84 + marker2 93.63 + } + exit + { + nextfile alienha_etr00 + time0 5.80 + time1 33.04 + time3 67.61 + } + exit + { + nextfile alienha_etr01 + time0 94.47 + time1 103.06 + time2 115.75 + time3 127.32 + time4 138.36 + time5 152.10 + time6 166.11 + time7 180.29 + } + } + alienha_action + { + entry + { + marker0 0 + marker1 40.96 + marker2 63.33 + } + exit + { + nextfile alienha_atr00 + nextmark marker2 + time0 3.35 + time1 6.85 + time3 15.70 + time4 22.61 + } + exit + { + nextfile alienha_atr01 + nextmark marker0 + time0 31.85 + time1 41.42 + time2 47.06 + } + exit + { + nextfile alienha_atr03 + nextmark marker1 + time0 53.01 + time1 58.57 + time2 62.87 + time3 72.03 + time4 89.64 + time5 96.94 + } + } + tunnels_explore + { + entry + { + marker0 0 + marker1 64.20 + marker2 96.47 + } + exit + { + nextfile tunnels_etr00 + time0 6.06 + time1 18.26 + time3 35.01 + time4 42.98 + time5 69.73 + time6 84.16 + } + exit + { + nextfile tunnels_etr01 + time0 94.81 + time1 111.25 + time2 121.77 + time3 134.68 + } + } + tunnels_action + { + entry + { + marker0 0 + marker1 22.39 + } + exit + { + nextfile tunnels_atr00 + nextmark marker0 + time0 0.29 + } + exit + { + nextfile tunnels_atr01 + nextmark marker2 + time0 15.62 + time1 22.94 + } + exit + { + nextfile tunnels_atr02 + nextmark marker2 + time0 29.14 + time1 35.63 + time2 45.33 + time3 51.78 + time4 58.67 + } + exit + { + nextfile tunnels_atr03 + nextmark marker1 + time0 64.81 + time1 68.53 + time2 72.28 + time3 75.89 + } + } + IMPBaseD_explore + { + entry + { + marker0 0.000 + marker1 66.790 + marker2 102.874 + marker3 150.554 + } + exit + { + nextfile IMPBaseD_etr00 + time00 7.997 + time01 16.678 + time02 44.664 + time03 70.836 + + } + exit + { + nextfile IMPBaseD_etr01 + time00 89.986 + time01 111.971 + time02 130.629 + time03 166.389 + time04 172.530 + } + } + IMPBaseD_action + { + entry + { + marker0 6.607 + marker1 60.118 + marker2 140.053 + } + exit + { + nextfile IMPBaseD_atr00 + nextmark marker0 + time00 6.457 + time01 13.265 + time02 18.757 + time03 25.194 + time04 152.772 + } + exit + { + nextfile IMPBaseD_atr01 + nextmark marker1 + time00 30.336 + time01 37.883 + time02 46.802 + time03 61.122 + } + exit + { + nextfile IMPBaseD_atr02 + nextmark marker2 + time00 78.257 + time01 85.312 + time02 92.170 + time03 140.866 + time04 149.597 + } + exit + { + nextfile IMPBaseD_atr03 + nextmark marker3 + time00 105.982 + time01 115.569 + time02 128.476 + } + } + swamp_explore + { + entry + { + marker0 0.000 + marker1 16.916 + marker2 80.714 + marker3 31.761 + + } + exit + { + nextfile swamp_etr00 + time00 11.185 + time01 20.989 + time02 51.408 + time03 63.196 + time04 71.293 + + } + exit + { + nextfile swamp_etr01 + time00 42.044 + time01 78.362 + time02 95.485 + time03 113.023 + + } + } + swamp_action + { + entry + { + marker0 0.00 + marker1 36.318 + marker2 45.982 + } + exit + { + nextfile swamp_atr00 + nextmark marker0 + time00 1.035 + } + exit + { + nextfile swamp_atr01 + nextmark marker1 + time00 6.835 + time01 11.323 + time02 18.592 + time03 36.230 + time04 59.793 + } + exit + { + nextfile swamp_atr02 + nextmark marker2 + time00 34.108 + time01 79.955 + time02 89.847 + time03 126.994 + + } + exit + { + nextfile swamp_atr03 + nextmark marker3 + time00 102.414 + time01 115.382 + time02 120.039 + } + } + yavtemp2_explore + { + entry + { + marker0 88.28 + marker1 48.10 + marker2 117.47 + marker3 0 + } + exit + { + nextfile yavtemp2_etr00 + time0 46.23 + time1 53.44 + time2 62.08 + time3 69.09 + time4 77.08 + time5 87.03 + time6 96.49 + } + exit + { + nextfile yavtemp2_etr01 + time0 15.24 + time1 31.79 + time2 42.78 + time3 114.18 + time4 134.25 + time5 144.89 + time6 160.03 + time7 168.03 + } + } + yavtemp2_action + { + entry + { + marker0 0 + marker1 17.35 + marker2 43.31 + marker3 60.39 + } + exit + { + nextfile yavtemp2_atr00 + nextmark marker0 + time0 0 + time1 8.78 + time2 13.47 + } + exit + { + nextfile yavtemp2_atr01 + nextmark marker1 + time0 23.89 + time1 28.62 + time2 41.11 + time3 46.73 + } + exit + { + nextfile yavtemp2_atr02 + nextmark marker2 + time0 48.95 + time1 60.59 + time2 69.13 + time3 97.63 + } + exit + { + nextfile yavtemp2_atr03 + nextmark marker3 + time0 91.11 + } + } + ImpBaseE_explore + { + entry + { + marker0 0.000 + marker1 13.805 + marker2 29.265 + marker3 137.915 + + } + exit + { + nextfile ImpBaseE_etr00 + time00 13.712 + time01 37.872 + time02 52.541 + time03 131.875 + time04 232.256 + + } + exit + { + nextfile ImpBaseE_etr01 + time00 120.057 + time01 157.080 + time02 176.388 + + } + } + ImpBaseE_action + { + entry + { + marker0 0.00 + marker1 18.336 + marker2 52.491 + } + exit + { + nextfile ImpBaseE_atr00 + nextmark marker0 + time00 22.012 + time01 32.861 + time02 73.853 + time03 77.808 + } + exit + { + nextfile ImpBaseE_atr01 + nextmark marker1 + time00 5.824 + time01 18.457 + time02 81.088 + time03 114.805 + } + exit + { + nextfile ImpBaseE_atr02 + nextmark marker2 + time00 1.923 + time01 26.892 + time02 30.703 + time03 59.294 + time04 65.331 + time05 88.803 + time06 91.876 + + } + exit + { + nextfile ImpBaseE_atr03 + nextmark marker3 + time00 11.958 + time01 43.027 + time02 48.014 + time04 96.757 + time05 107.858 + time06 130.437 + } + } + alienhb_explore + { + entry + { + marker0 127.71 + marker1 36.56 + marker2 89.94 + } + exit + { + nextfile alienhb_etr00 + time0 13.60 + time1 22.58 + time3 31.69 + time4 41.08 + time5 53.08 + time6 67.91 + time7 89.29 + time8 181.41 + } + exit + { + nextfile alienhb_etr01 + time0 109.08 + time1 123.18 + time2 134.76 + time3 149.54 + time4 160.53 + time5 174.10 + } + } + alienhb_action + { + entry + { + marker0 0 + marker1 6.85 + marker2 31.84 + marker3 66.77 + } + exit + { + nextfile alienhb_atr00 + nextmark marker0 + time0 5.29 + time1 21.54 + time3 26.21 + time4 120.30 + } + exit + { + nextfile alienhb_atr01 + nextmark marker1 + time0 10.35 + time1 17.03 + } + exit + { + nextfile alienhb_atr02 + nextmark marker2 + time0 60.27 + time1 70.21 + time2 80.36 + time3 93.55 + time4 100.47 + time5 111.75 + } + } + yavfinal_explore + { + entry + { + marker0 0.000 + marker1 18.664 + marker2 53.390 + marker3 97.161 + + } + exit + { + nextfile yavfinal_etr00 + time00 53.434 + time01 83.935 + + } + exit + { + nextfile yavfinal_etr01 + time00 9.852 + time01 94.171 + time02 104.106 + + } + } + yavfinal_action + { + entry + { + marker0 0.00 + marker1 43.094 + marker2 73.785 + } + exit + { + nextfile yavfinal_atr00 + nextmark marker0 + time00 53.502 + time01 61.386 + } + exit + { + nextfile yavfinal_atr01 + nextmark marker1 + time00 3.623 + time01 96.341 + } + exit + { + nextfile yavfinal_atr02 + nextmark marker2 + time00 9.019 + time01 11.707 + time02 15.535 + time03 29.107 + time04 35.847 + time05 75.327 + time06 101.992 + + } + exit + { + nextfile yavfinal_atr03 + nextmark marker3 + time00 21.257 + time01 25.167 + time02 43.800 + time03 106.249 + time04 113.638 + + } + } + yavfinal_boss + { + } + narshaada_explore + { + entry + { + marker0 123.18 + marker1 0 + marker2 43.30 + marker3 12.27 + } + exit + { + nextfile narshaada_etr00 + time0 55.86 + time1 70.17 + time2 78.63 + time3 88.61 + time4 106.57 + + } + exit + { + nextfile narshaada_etr01 + time0 13.75 + time1 31.29 + time2 43.84 + time4 123.91 + time5 134.92 + time6 149.29 + time7 168.16 + time8 184.19 + } + } + narshaada_action + { + entry + { + marker0 0 + marker1 15.65 + marker2 47.07 + } + exit + { + nextfile narshaada_atr00 + nextmark marker0 + time0 2.72 + time1 59.84 + time2 63.90 + time3 74.16 + time4 82.37 + } + exit + { + nextfile narshaada_atr01 + nextmark marker1 + time0 10.89 + time1 20.59 + time2 28.15 + time3 39.65 + time4 46.35 + } + exit + { + nextfile narshaada_atr02 + nextmark marker2 + time0 48.98 + time1 69.05 + } + exit + { + nextfile narshaada_atr03 + nextmark marker3 + time0 86.14 + time1 90.73 + time2 96.40 + time3 101.09 + } + } + tusken_explore + { + entry + { + marker0 0.000 + marker1 10.583 + marker2 71.039 + marker3 135.541 + } + exit + { + nextfile tusken_etr00 + time00 10.861 + time01 71.150 + time02 90.767 + time03 120.357 + } + exit + { + nextfile tusken_etr01 + time00 37.902 + time01 54.526 + time02 83.563 + } + } + tusken_action + { + entry + { + marker0 0.00 + marker1 12.897 + marker2 43.0 + marker3 91.709 + } + exit + { + nextfile tusken_atr00 + nextmark marker0 + time00 6.123 + time01 8.034 + time02 16.540 + time03 23.633 + time04 104.980 + } + exit + { + nextfile tusken_atr01 + nextmark marker1 + time00 57.368 + time01 63.503 + time02 66.717 + time03 77.926 + time04 90.472 + time05 93.797 + time06 98.102 + time07 108.327 + } + exit + { + nextfile tusken_atr02 + nextmark marker2 + time00 32.583 + } + exit + { + nextfile tusken_atr03 + nextmark marker3 + time00 31.374 + time01 40.811 + time02 43.581 + time03 46.745 + time04 53.173 + time05 71.815 + time06 74.780 + time07 82.316 + time08 87.553 + } + } + hoth2_explore + { + entry + { + marker0 0 + marker1 43.374 + marker2 101.295 + marker3 128 + } + exit + { + nextfile hoth2_etr00 + time00 0.6 + time01 68.013 + time02 102.813 + time03 140.937 + } + exit + { + nextfile hoth2_etr01 + time00 39.663 + time01 53.196 + time02 96.547 + time03 119.562 + time04 142.523 + } + + } + hoth2_action + { + entry + { + marker0 0 + marker1 27.263 + marker2 87.276 + marker3 117.919 + } + exit + { + nextfile hoth2_atr00 + nextmark marker0 + time00 7.092 + time01 14.241 + time02 20.347 + time03 67.703 + time04 69.517 + time05 71.844 + time06 75.125 + time07 78 + time08 82.965 + time09 129.589 + time10 158.426 + } + exit + { + nextfile hoth2_atr01 + nextmark marker1 + time00 25.993 + time01 29.983 + time02 35.6 + time03 38.318 + time04 40.995 + time05 42.335 + time06 52.587 + time07 57.297 + time08 60.622 + time09 62.617 + time10 84.422 + time11 96.308 + time12 98.358 + time13 102.459 + time14 104.409 + time15 109.8 + time16 118.721 + time17 141.128 + time18 145.861 + time19 150.9 + } + exit + { + nextfile hoth2_atr02 + nextmark marker2 + time00 32.915 + + } + exit + { + nextfile hoth2_atr03 + nextmark marker3 + time00 42.924 + time01 46.027 + time02 48.611 + time03 50.384 + time04 52.047 + time05 86.486 + time06 90.032 + time07 94.786 + time08 124.69 + time09 153.883 + } + } + dealsour_explore + { + entry + { + marker0 0.000 + marker1 100.492 + marker2 126.154 + + } + exit + { + nextfile dealsour_etr00 + time00 5.153 + time01 26.487 + time02 64.556 + time03 93.205 + time04 108.166 + time05 138.145 + } + exit + { + nextfile dealsour_etr01 + time00 9.143 + time01 21.223 + time02 43.388 + time03 87.830 + time04 116.589 + } + } + dealsour_action + { + entry + { + marker0 0.00 + marker1 65.166 + marker2 100.575 + } + exit + { + nextfile dealsour_atr00 + nextmark marker0 + time00 4.765 + time01 17.278 + time02 26.365 + time03 53.352 + time04 57.175 + time05 82.776 + } + exit + { + nextfile dealsour_atr01 + nextmark marker1 + time00 13.321 + time01 91.953 + time02 104.975 + } + exit + { + nextfile dealsour_atr02 + nextmark marker2 + time00 36.351 + time01 44.386 + time02 59.624 + time03 70.075 + time04 79.435 + time05 95.511 + } + } + rancor_explore + { + entry + { + marker0 0 + marker1 46.103 + marker2 88.328 + + } + exit + { + nextfile rancor_etr00 + time00 0.775 + time01 5.319 + time02 16.291 + time03 43.222 + time04 49.539 + time05 63.725 + time06 84.0 + time07 103.623 + + + } + exit + { + nextfile rancor_etr01 + time00 10.08 + time01 26.820 + time02 51.645 + time03 68.213 + time04 129.279 + } + + } + rancor_action + { + entry + { + marker0 0 + marker1 54.928 + marker2 88.315 + } + exit + { + nextfile rancor_atr00 + nextmark marker0 + time00 0.05 + time01 2.737 + time02 7.918 + time03 10.079 + time04 84.256 + time05 90.440 + time06 95.759 + time07 105.562 + time08 105.562 + time09 111.159 + time10 113.985 + time11 118.03 + } + exit + { + nextfile rancor_atr01 + nextmark marker1 + time00 8.921 + time01 24.975 + time02 31.458 + time03 35.586 + time04 38.523 + time05 56.3 + time06 60 + time07 65.549 + time08 73.223 + time09 77.467 + time10 102.791 + time11 123.9 + time12 141.193 + time13 144.02 + time14 146.296 + time15 151.234 + time16 155.057 + time17 157.329 + } + exit + { + nextfile rancor_atr02 + nextmark marker2 + time00 5.098 + time01 9.309 + time02 19.508 + time03 74.323 + time04 80.898 + time05 86.123 + time06 99.754 + time07 132.448 + time08 136.504 + time09 148.230 + time10 161.263 + } + } + korrib_lite_explore + { + entry + { + marker0 0.000 + marker1 20.170 + marker2 51.645 + marker3 73.201 + } + exit + { + nextfile korrib_lite_etr00 + time00 40.866 + time01 55.635 + time02 68.222 + } + exit + { + nextfile korrib_lite_etr01 + time00 0.200 + time01 15.472 + time02 77.914 + time03 80.977 + } + } + korrib_dark_explore + { + entry + { + marker0 0.000 + marker1 56.300 + marker2 81.901 + marker3 97.970 + } + exit + { + nextfile korrib_dark_etr00 + time00 0.100 + time01 55.719 + time02 69.607 + time03 105.397 + } + exit + { + nextfile korrib_dark_etr01 + time00 29.202 + time01 82.004 + } + } + korrib_action + { + entry + { + marker0 0.00 + marker1 41.495 + marker2 63.586 + marker3 96.124 + } + exit + { + nextfile korrib_atr00 + nextmark marker0 + time00 0.100 + time01 2.769 + time02 7.929 + time03 35.142 + time04 41.429 + time05 66.838 + time06 101.731 + time07 115.125 + } + exit + { + nextfile korrib_atr01 + nextmark marker1 + time00 10.161 + time01 31.271 + time02 33.499 + time03 45.925 + time04 48.117 + time05 53.043 + time06 63.397 + time07 105.512 + time08 108.174 + } + exit + { + nextfile korrib_atr02 + nextmark marker2 + time00 6.125 + time01 15.027 + time02 18.225 + time03 38.181 + time04 59.245 + time05 76.386 + time06 80.120 + time07 92.516 + } + exit + { + nextfile korrib_atr03 + nextmark marker3 + time00 20.844 + time01 24.075 + time02 74.372 + time03 85.475 + time04 89.990 + time05 117.480 + } + } + final_battle + { + } + vjun3_explore + { + + entry + { + marker0 0.000 + marker1 41.670 + marker2 146.402 + } + exit + { + nextfile vjun3_etr00 + time00 132.271 + time01 144.739 + } + exit + { + nextfile vjun3_etr01 + time00 13.138 + time01 25.994 + time02 85.175 + } + } + vjun3_action + { + entry + { + marker0 0.00 + marker1 8.256 + marker2 65.554 + } + exit + { + nextfile vjun3_atr00 + nextmark marker0 + time00 7.785 + time01 32.66 + time02 47.516 + time03 51.710 + time04 65.674 + time05 87.719 + time06 105.684 + time07 119.798 + time08 125.561 + time09 128.004 + } + exit + { + nextfile vjun3_atr01 + nextmark marker1 + time00 13.243 + time01 20.037 + time02 23.944 + time03 36.96 + time04 39.62 + time05 54.14 + time06 57.372 + time07 81.623 + time08 99.91 + } + exit + { + nextfile vjun3_atr02 + nextmark marker2 + time00 2.271 + time01 15.017 + time02 28.210 + time03 42.557 + time04 45.80 + time05 69.571 + time06 73.505 + time07 93.482 + time08 115.814 + } + } +} +levelmusic +{ + yavin1 + { + explore swamp_explore + action swamp_action + } + yavin1b + { + uses yavin1 + } + yavin2 + { + explore yavtemp2_explore + action yavtemp2_action + } + t1_fatal + { + explore tunnels_explore + action tunnels_action + } + t1_sour + { + explore dealsour_explore + action dealsour_action + } + t1_surprise + { + explore tusken_explore + action tusken_action + } + t1_danger + { + uses t1_surprise + } + hoth2 + { + explore hoth2_explore + action hoth2_action + } + hoth3 + { + uses hoth2 + } + t2_dpred + { + explore ImpBaseB_Explore + action ImpBaseB_Action + } + t2_wedge + { + explore besplat_explore + action besplat_action + boss besplat_boss + } + t2_rancor + { + explore rancor_explore + action rancor_action + } + t2_rogue + { + explore narshaada_explore + action narshaada_action + } + vjun1 + { + uses yavin2 + } + vjun2 + { + explore ImpBaseE_explore + action ImpBaseE_action + } + vjun3 + { + explore vjun3_explore + action vjun3_action + } + t3_bounty + { + uses t1_sour + } + t3_byss + { + explore alienhb_explore + action alienhb_action + } + t3_hevil + { + uses t2_wedge + } + t3_rift + { + uses yavin2 + } + taspir1 + { + uses vjun2 + } + taspir2 + { + uses vjun2 + } + kor_lite + { + explore korrib_lite_explore + action korrib_action + boss final_battle + } + kor_dark + { + explore korrib_dark_explore + action korrib_action + boss final_battle + } +} diff --git a/base/ext_data/items.dat b/base/ext_data/items.dat new file mode 100644 index 0000000..28daaf8 --- /dev/null +++ b/base/ext_data/items.dat @@ -0,0 +1,782 @@ +// EXTERNAL ITEM DATA +// + +//Fields +//pickupsound STRING; DEFAULT = sound/weapons/w_pkup.wav +//itemname STRING; +//classname STRING; +//count INT; ammount of ammo or health given with item +//icon STRING; +//min VECTOR; item bounds min, DEFAULT = -16 -16 -2 +//max VECTOR; item bounds max, DEFAULT = 16 16 16 +//pickupname STRING; name to show in inventory +//tag ENUM; WP_, or AMMO_ +//type ENUM; IT_WEAPON, IT_AMMO, IT_ARMOR, IT_HEALTH +//worldmodel STRING; model to show on ground or in hand + +{ +itemname ITM_SABER_PICKUP + +classname weapon_saber +worldmodel models/weapons2/saber/saber_w.md3 +icon gfx/hud/w_icon_lightsaber +// Amount of ammo given with weapon +count 50 +type IT_WEAPON +tag WP_SABER +min -16 -16 -8 +max 16 16 16 +} + + +{ +itemname ITM_BRYAR_PISTOL_PICKUP + +classname weapon_bryar_pistol +worldmodel models/weapons2/briar_pistol/briar_pistol_w.glm +icon gfx/hud/w_icon_briar +// Amount of ammo given with weapon +count 10 +type IT_WEAPON +tag WP_BRYAR_PISTOL +min -10 -10 -2 +max 10 10 12 +} + +{ +itemname ITM_BLASTER_PISTOL_PICKUP + +classname weapon_blaster_pistol +worldmodel models/weapons2/blaster_pistol/blaster_pistol_w.glm +icon gfx/hud/w_icon_blaster_pistol +// Amount of ammo given with weapon +count 10 +type IT_WEAPON +tag WP_BLASTER_PISTOL +min -10 -10 -2 +max 10 10 12 +} + +{ +itemname ITM_BLASTER_PICKUP + +classname weapon_blaster +worldmodel models/weapons2/blaster_r/blaster_w.glm +icon gfx/hud/w_icon_blaster +// Amount of ammo given with weapon +count 10 +type IT_WEAPON +tag WP_BLASTER +min -10 -10 -2 +max 10 10 12 +} + +{ +itemname ITM_DISRUPTOR_PICKUP + +classname weapon_disruptor +worldmodel models/weapons2/disruptor/disruptor_w.glm +icon gfx/hud/w_icon_disruptor +// Amount of ammo given with weapon +count 50 +type IT_WEAPON +tag WP_DISRUPTOR +min -10 -10 -2 +max 10 10 12 +} + +{ +itemname ITM_BOWCASTER_PICKUP + +classname weapon_bowcaster +worldmodel models/weapons2/bowcaster/bowcaster_w.glm +icon gfx/hud/w_icon_bowcaster +// Amount of ammo given with weapon +count 50 +type IT_WEAPON +tag WP_BOWCASTER +min -10 -10 -2 +max 10 10 12 +} + +{ +itemname ITM_REPEATER_PICKUP + +classname weapon_repeater +worldmodel models/weapons2/heavy_repeater/heavy_repeater_w.glm +icon gfx/hud/w_icon_repeater +// Amount of ammo given with weapon +count 50 +type IT_WEAPON +tag WP_REPEATER +min -10 -10 -2 +max 10 10 12 +} + +{ +itemname ITM_DEMP2_PICKUP + +classname weapon_demp2 +worldmodel models/weapons2/demp2/demp2_w.glm +icon gfx/hud/w_icon_demp2 +// Amount of ammo given with weapon +count 50 +type IT_WEAPON +tag WP_DEMP2 +min -10 -10 -2 +max 10 10 12 +} + + +{ +itemname ITM_FLECHETTE_PICKUP + +classname weapon_flechette +worldmodel models/weapons2/golan_arms/golan_arms_w.glm +icon gfx/hud/w_icon_flechette +// Amount of ammo given with weapon +count 50 +type IT_WEAPON +tag WP_FLECHETTE +min -10 -10 -2 +max 10 10 12 +} + +{ +itemname ITM_CONCUSSION_RIFLE_PICKUP + +classname weapon_concussion_rifle +worldmodel models/weapons2/concussion/c_rifle_w.glm +icon gfx/hud/w_icon_c_rifle +// Amount of ammo given with weapon +count 50 +type IT_WEAPON +tag WP_CONCUSSION +min -10 -10 -2 +max 10 10 12 +} + +{ +itemname ITM_ROCKET_LAUNCHER_PICKUP + +classname weapon_rocket_launcher +worldmodel models/weapons2/merr_sonn/merr_sonn_w.glm +icon gfx/hud/w_icon_merrsonn +// Amount of ammo given with weapon +count 50 +type IT_WEAPON +tag WP_ROCKET_LAUNCHER +min -10 -10 -2 +max 10 10 12 +} + + +{ +itemname ITM_THERMAL_DET_PICKUP + +classname weapon_thermal +worldmodel models/weapons2/thermal/thermal_pu.md3 +icon gfx/hud/w_icon_thermal +// Amount of ammo given with weapon +count 50 +type IT_WEAPON +tag WP_THERMAL +min -10 -10 -2 +max 10 10 12 +} + +{ +itemname ITM_TRIP_MINE_PICKUP + +classname weapon_trip_mine +worldmodel models/weapons2/laser_trap/laser_trap_pu.md3 +icon gfx/hud/w_icon_tripmine +// Amount of ammo given with weapon +count 50 +type IT_WEAPON +tag WP_TRIP_MINE +min -10 -10 -2 +max 10 10 12 +} + +{ +itemname ITM_DET_PACK_PICKUP + +classname weapon_det_pack +worldmodel models/weapons2/detpack/det_pack_pu.md3 +icon gfx/hud/w_icon_detpack +// Amount of ammo given with weapon +count 50 +type IT_WEAPON +tag WP_DET_PACK +min -10 -10 -2 +max 10 10 12 +} + +{ +itemname ITM_STUN_BATON_PICKUP + +classname weapon_stun_baton +worldmodel models/weapons2/stun_baton/stunbaton_w.glm +icon gfx/hud/w_icon_stunbaton +// Amount of ammo given with weapon +count 50 +type IT_WEAPON +tag WP_STUN_BATON +} + + +{ +itemname ITM_BOT_LASER_PICKUP + +classname weapon_botwelder +worldmodel models/weapons2/noweap/noweap.md3 +// Amount of ammo given with weapon +count 400 +type IT_WEAPON +tag WP_BOT_LASER +} + +{ +itemname ITM_MELEE + +classname weapon_melee +worldmodel models/weapons2/noweap/noweap.md3 +icon gfx/hud/w_icon_melee +// Amount of ammo given with weapon +count 400 +type IT_WEAPON +tag WP_MELEE +min -16 -16 -2 +max 16 16 16 +} + +{ +itemname ITM_EMPLACED_GUN_PICKUP + +classname weapon_emplaced_gun +worldmodel models/weapons2/noweap/noweap.md3 +// Amount of ammo given with weapon +count 800 +type IT_WEAPON +tag WP_EMPLACED_GUN +} + +{ +itemname ITM_TURRET_PICKUP + +classname weapon_turret +worldmodel models/weapons2/noweap/noweap.md3 +// Amount of ammo given with weapon +count 400 +type IT_WEAPON +tag WP_TURRET +} + +{ +itemname ITM_ATST_MAIN_PICKUP + +classname weapon_atst_main +worldmodel models/weapons2/noweap/noweap.md3 +icon gfx/hud/w_icon_atst +// Amount of ammo given with weapon +count 400 +type IT_WEAPON +tag WP_ATST_MAIN +} + +{ +itemname ITM_ATST_SIDE_PICKUP + +classname weapon_atst_side +worldmodel models/weapons2/noweap/noweap.md3 +icon gfx/hud/w_icon_atstside +// Amount of ammo given with weapon +count 400 +type IT_WEAPON +tag WP_ATST_SIDE +} + +{ +itemname ITM_TIE_FIGHTER_PICKUP + +classname weapon_tie_fighter +worldmodel models/weapons2/noweap/noweap.md3 +// Amount of ammo given with weapon +count 400 +type IT_WEAPON +tag WP_TIE_FIGHTER +} + +{ +itemname ITM_RAPID_FIRE_CONC_PICKUP + +classname weapon_rapid_concussion +worldmodel models/weapons2/noweap/noweap.md3 +// Amount of ammo given with weapon +count 400 +type IT_WEAPON +tag WP_RAPID_FIRE_CONC +} + +{ +itemname ITM_JAWA_PICKUP + +classname weapon_jawa +worldmodel models/weapons2/jawa/jawa_gun.md3 +// Amount of ammo given with weapon +count 400 +type IT_WEAPON +tag WP_JAWA +} + +{ +itemname ITM_TUSKEN_RIFLE_PICKUP + +classname weapon_tusken_rifle +worldmodel models/weapons2/tusken_rifle/tusken_rifle.md3 +// Amount of ammo given with weapon +count 400 +type IT_WEAPON +tag WP_TUSKEN_RIFLE +} + +{ +itemname ITM_TUSKEN_STAFF_PICKUP + +classname weapon_tusken_staff +worldmodel models/weapons2/tusken_staff/tusken_staff.md3 +// Amount of ammo given with weapon +count 400 +type IT_WEAPON +tag WP_TUSKEN_STAFF +} + +{ +itemname ITM_SCEPTER_PICKUP + +classname weapon_scepter +worldmodel models/weapons2/sith_scepter/sith_scepter.md3 +// Amount of ammo given with weapon +count 400 +type IT_WEAPON +tag WP_SCEPTER +} + +{ +itemname ITM_NOGHRI_STICK_PICKUP + +classname weapon_noghri_stick +worldmodel models/weapons2/noghri_stick/noghri_stick.md3 +// Amount of ammo given with weapon +count 400 +type IT_WEAPON +tag WP_NOGHRI_STICK +} +// +//Items +// + +// AMMO Items +//------------- +{ +itemname ITM_AMMO_FORCE_PICKUP + +classname ammo_force +worldmodel models/items/forcegem.md3 +pickupsound sound/player/enlightenment.wav +icon gfx/hud/forcegem_icon2 +count 100 +type IT_AMMO +tag AMMO_FORCE +max 8 8 16 +min -8 -8 -0 +} + +{ +itemname ITM_AMMO_BLASTER_PICKUP + +classname ammo_blaster +worldmodel models/items/energy_cell.md3 +icon gfx/hud/energy_cell +count 25 +type IT_AMMO +tag AMMO_BLASTER +max 8 8 16 +min -8 -8 -0 +} + +{ +itemname ITM_AMMO_POWERCELL_PICKUP + +classname ammo_powercell +worldmodel models/items/power_cell.md3 +icon gfx/hud/power_cell +count 100 +type IT_AMMO +tag AMMO_POWERCELL +max 8 8 16 +min -8 -8 -0 +} + + +{ +itemname ITM_AMMO_METAL_BOLTS_PICKUP + +classname ammo_metallic_bolts +worldmodel models/items/metallic_bolts.md3 +icon gfx/hud/metallic_bolts +count 100 +type IT_AMMO +tag AMMO_METAL_BOLTS +max 8 8 16 +min -8 -8 -0 +} + +{ +itemname ITM_AMMO_ROCKETS_PICKUP + +classname ammo_rockets +worldmodel models/items/rockets.md3 +icon gfx/hud/rockets +count 3 +type IT_AMMO +tag AMMO_ROCKETS +max 8 8 16 +min -8 -8 -0 +} + +{ +itemname ITM_AMMO_EMPLACED_PICKUP + +classname ammo_emplaced +worldmodel models/weapons2/noweap/noweap.md3 +count 100 +type IT_AMMO +tag AMMO_EMPLACED +max 8 8 16 +min -8 -8 -0 +} + +{ +itemname ITM_AMMO_THERMAL_PICKUP + +classname ammo_thermal +worldmodel models/weapons2/thermal/thermal_pu.md3 +icon gfx/hud/w_icon_thermal +count 4 +type IT_AMMO +tag AMMO_THERMAL +max 16 16 16 +min -16 -16 -0 +} + +{ +itemname ITM_AMMO_TRIPMINE_PICKUP + +classname ammo_tripmine +worldmodel models/weapons2/laser_trap/laser_trap_pu.md3 +icon gfx/hud/w_icon_tripmine +count 3 +type IT_AMMO +tag AMMO_TRIPMINE +max 8 8 16 +min -8 -8 -0 +} + +{ +itemname ITM_AMMO_DETPACK_PICKUP + +classname ammo_detpack +worldmodel models/weapons2/detpack/det_pack_pu.md3 +icon gfx/hud/w_icon_detpack +count 3 +type IT_AMMO +tag AMMO_DETPACK +max 8 8 16 +min -8 -8 -0 +} + + + +{ +itemname ITM_BATTERY_PICKUP + +classname item_battery +worldmodel models/items/battery.md3 +icon gfx/hud/battery +count 1000 +type IT_BATTERY +tag ITM_BATTERY_PICKUP +max 8 8 16 +min -8 -8 -0 +} + +{ +itemname ITM_SEEKER_PICKUP +classname item_seeker +worldmodel models/items/remote.md3 +icon gfx/hud/i_icon_seeker +count 120 +type IT_HOLDABLE +tag INV_SEEKER +max 8 8 16 +min -8 -8 -4 +} + +{ +itemname ITM_SHIELD_PICKUP +classname item_enviro +worldmodel models/items/shield.md3 +icon gfx/hud/i_icon_shieldwall +count 100 +type IT_HOLDABLE +tag ITM_SHIELD_PICKUP +max 8 8 16 +min -8 -8 -0 +} + +{ +itemname ITM_BACTA_PICKUP +classname item_bacta +worldmodel models/items/bacta.md3 +icon gfx/hud/i_icon_bacta +count 25 +type IT_HEALTH +tag ITM_MEDPAK_PICKUP +max 8 8 16 +min -8 -8 -0 +} + +{ +itemname ITM_DATAPAD_PICKUP +classname item_datapad +worldmodel models/items/datapad.md3 +count 1 +type IT_HOLDABLE +tag ITM_DATAPAD_PICKUP +max 8 8 16 +min -8 -8 -0 +} + +{ +itemname ITM_BINOCULARS_PICKUP +classname item_binoculars +worldmodel models/items/binoculars.md3 +icon gfx/hud/i_icon_zoom +count 1 +type IT_HOLDABLE +tag INV_ELECTROBINOCULARS +max 8 8 16 +min -8 -8 -0 +} + +{ +itemname ITM_SENTRY_GUN_PICKUP +classname item_sentry_gun +worldmodel models/items/psgun.glm +icon gfx/hud/i_icon_sentrygun +count 120 +type IT_HOLDABLE +tag INV_SENTRY +max 8 8 16 +min -8 -8 -0 +} + +{ +itemname ITM_LA_GOGGLES_PICKUP +classname item_la_goggles +worldmodel models/items/binoculars.md3 +icon gfx/hud/i_icon_goggles +count 30 +type IT_HOLDABLE +tag INV_LIGHTAMP_GOGGLES +max 8 8 16 +min -8 -8 -0 +} + +{ +itemname ITM_MEDPAK_PICKUP +classname item_medpak_instant +worldmodel models/items/medpac.md3 +icon gfx/hud/i_icon_medkit +count 20 +type IT_HEALTH +tag ITM_MEDPAK_PICKUP +max 8 8 16 +min -8 -8 -3 +} + +{ +itemname ITM_SHIELD_SM_PICKUP +classname item_shield_sm_instant +worldmodel models/items/psd_sm.md3 +icon gfx/hud/psd_small +count 25 +type IT_ARMOR +tag ITM_SHIELD_SM_PICKUP +max 8 8 16 +min -8 -8 -0 +} + +{ +itemname ITM_SHIELD_LRG_PICKUP +classname item_shield_lrg_instant +worldmodel models/items/psd.md3 +icon gfx/hud/psd_medium +count 50 +type IT_ARMOR +tag ITM_SHIELD_LRG_PICKUP +max 8 8 16 +min -8 -8 -4 +} + + +{ +itemname ITM_GOODIE_KEY_PICKUP +classname item_goodie_key +worldmodel models/items/key.md3 +icon gfx/hud/i_icon_goodie_key +type IT_HOLDABLE +tag INV_GOODIE_KEY +max 8 8 16 +min -8 -8 -0 +} + + +{ +itemname ITM_SECURITY_KEY_PICKUP +classname item_security_key +worldmodel models/items/key.md3 +icon gfx/hud/i_icon_security_key +type IT_HOLDABLE +tag INV_SECURITY_KEY +max 8 8 16 +min -8 -8 -0 +} + +{ +itemname ITM_FORCE_HEAL_PICKUP + +classname holocron_force_heal +worldmodel models/map_objects/force_holocrons/heal.md3 +pickupsound sound/player/holocron.wav +icon gfx/hud/f_icon_heal +count 1 +type IT_HOLOCRON +tag FP_HEAL +max 8 8 16 +min -8 -8 -0 +} + +{ +itemname ITM_FORCE_LEVITATION_PICKUP + +classname holocron_force_levitation +worldmodel models/map_objects/force_holocrons/jump.md3 +pickupsound sound/player/holocron.wav +icon gfx/hud/f_icon_levitation +count 1 +type IT_HOLOCRON +tag FP_LEVITATION +max 8 8 16 +min -8 -8 -0 +} + +{ +itemname ITM_FORCE_SPEED_PICKUP + +classname holocron_force_speed +worldmodel models/map_objects/force_holocrons/speed.md3 +pickupsound sound/player/holocron.wav +icon gfx/hud/f_icon_speed +count 1 +type IT_HOLOCRON +tag FP_SPEED +max 8 8 16 +min -8 -8 -0 +} + +{ +itemname ITM_FORCE_PUSH_PICKUP + +classname holocron_force_push +worldmodel models/map_objects/force_holocrons/push.md3 +pickupsound sound/player/holocron.wav +icon gfx/hud/f_icon_push +count 1 +type IT_HOLOCRON +tag FP_PUSH +max 8 8 16 +min -8 -8 -0 +} + +{ +itemname ITM_FORCE_PULL_PICKUP + +classname holocron_force_pull +worldmodel models/map_objects/force_holocrons/pull.md3 +pickupsound sound/player/holocron.wav +icon gfx/hud/f_icon_pull +count 1 +type IT_HOLOCRON +tag FP_PULL +max 8 8 16 +min -8 -8 -0 +} + +{ +itemname ITM_FORCE_TELEPATHY_PICKUP + +classname holocron_force_telepathy +worldmodel models/map_objects/force_holocrons/telepathy.md3 +pickupsound sound/player/holocron.wav +icon gfx/hud/f_icon_telepathy +count 1 +type IT_HOLOCRON +tag FP_TELEPATHY +max 8 8 16 +min -8 -8 -0 +} + +{ +itemname ITM_FORCE_GRIP_PICKUP + +classname holocron_force_grip +worldmodel models/map_objects/force_holocrons/grip.md3 +pickupsound sound/player/holocron.wav +icon gfx/hud/f_icon_grip +count 1 +type IT_HOLOCRON +tag FP_GRIP +max 8 8 16 +min -8 -8 -0 +} + +{ +itemname ITM_FORCE_LIGHTNING_PICKUP + +classname holocron_force_lightning +worldmodel models/map_objects/force_holocrons/lightning.md3 +pickupsound sound/player/holocron.wav +icon gfx/hud/f_icon_lightning +count 1 +type IT_HOLOCRON +tag FP_LIGHTNING +max 8 8 16 +min -8 -8 -0 +} + +{ +itemname ITM_FORCE_SABERTHROW_PICKUP + +classname holocron_force_saberthrow +worldmodel models/map_objects/force_holocrons/saberthrow.md3 +pickupsound sound/player/holocron.wav +icon gfx/hud/f_icon_saberthrow +count 1 +type IT_HOLOCRON +tag FP_SABERTHROW +max 8 8 16 +min -8 -8 -0 +} diff --git a/base/ext_data/npcs/Bartender.npc b/base/ext_data/npcs/Bartender.npc new file mode 100644 index 0000000..2e19752 --- /dev/null +++ b/base/ext_data/npcs/Bartender.npc @@ -0,0 +1,25 @@ +Bartender +{ + playerModel chiss + weapon WP_NONE + snd bartender + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL +// race human + class CLASS_BARTENDER + walkSpeed 55 + runSpeed 200 + yawspeed 90 + dismemberProbHead 0 + dismemberProbArms 0 + dismemberProbLegs 0 + dismemberProbHands 0 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/BespinCop.npc b/base/ext_data/npcs/BespinCop.npc new file mode 100644 index 0000000..0956903 --- /dev/null +++ b/base/ext_data/npcs/BespinCop.npc @@ -0,0 +1,57 @@ +BespinCop +{ + playerModel bespin_cop + weapon WP_BLASTER_PISTOL + health 40 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + walkSpeed 55 + runSpeed 200 + yawspeed 120 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +// race bespincop + class CLASS_BESPIN_COP + snd bespincop1 + sndcombat bespincop1 + sndextra bespincop1 +} + +BespinCop2 +{ + playerModel bespin_cop + weapon WP_BLASTER_PISTOL + health 40 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + walkSpeed 55 + runSpeed 200 + yawspeed 120 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +// race bespincop + class CLASS_BESPIN_COP + snd bespincop2 + sndcombat bespincop2 + sndextra bespincop2 +} \ No newline at end of file diff --git a/base/ext_data/npcs/Desann.npc b/base/ext_data/npcs/Desann.npc new file mode 100644 index 0000000..0416aaf --- /dev/null +++ b/base/ext_data/npcs/Desann.npc @@ -0,0 +1,53 @@ +Desann +{ + playerModel desann + saber desann + weapon WP_SABER + saberStyle 4 + FP_HEAL 0 + FP_LEVITATION 3 + FP_SPEED 3 + FP_PUSH 3 + FP_PULL 3 + FP_TELEPATHY 0 + FP_GRIP 3 + FP_LIGHTNING 3 + FP_RAGE 3 + FP_PROTECT 0 + FP_ABSORB 0 + FP_DRAIN 3 + FP_SEE 3 + FP_SABERTHROW 3 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + forceRegenRate 50 + 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 TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race human + class CLASS_DESANN + yawSpeed 120 + walkSpeed 55 + runSpeed 200 + snd desann + sndcombat desann + sndjedi desann + health 500 + dismemberProbHead 0 + dismemberProbArms 0 + dismemberProbLegs 0 + dismemberProbHands 0 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/Elder.npc b/base/ext_data/npcs/Elder.npc new file mode 100644 index 0000000..07367bf --- /dev/null +++ b/base/ext_data/npcs/Elder.npc @@ -0,0 +1,55 @@ +Elder +{ + playerModel prisoner + weapon WP_NONE + customSkin elder + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + class CLASS_PRISONER + snd prisoner1 + sndcombat prisoner1 + sndextra prisoner1 + walkSpeed 55 + runSpeed 200 + yawspeed 110 + dismemberProbHead 0 + dismemberProbArms 5 + dismemberProbLegs 0 + dismemberProbHands 10 + dismemberProbWaist 0 +} + +Elder2 +{ + playerModel prisoner + weapon WP_NONE + customSkin elder2 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + class CLASS_PRISONER + snd prisoner2 + sndcombat prisoner2 + sndextra prisoner2 + walkSpeed 55 + runSpeed 200 + yawspeed 110 + dismemberProbHead 0 + dismemberProbArms 5 + dismemberProbLegs 0 + dismemberProbHands 10 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/Galak.npc b/base/ext_data/npcs/Galak.npc new file mode 100644 index 0000000..ff1ead8 --- /dev/null +++ b/base/ext_data/npcs/Galak.npc @@ -0,0 +1,22 @@ +Galak +{ + playerModel galak + weapon WP_BLASTER + altFire 1 + rank commander + snd galak + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank captain + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race klingon + class CLASS_IMPERIAL + yawspeed 90 + walkSpeed 55 + runSpeed 200 +} \ No newline at end of file diff --git a/base/ext_data/npcs/Galak_Mech.npc b/base/ext_data/npcs/Galak_Mech.npc new file mode 100644 index 0000000..c3e9817 --- /dev/null +++ b/base/ext_data/npcs/Galak_Mech.npc @@ -0,0 +1,36 @@ +Galak_Mech +{ + playerModel galak_mech + weapon WP_REPEATER + 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 TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race klingon + class 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 +} \ No newline at end of file diff --git a/base/ext_data/npcs/Glider.npc b/base/ext_data/npcs/Glider.npc new file mode 100644 index 0000000..a5b8003 --- /dev/null +++ b/base/ext_data/npcs/Glider.npc @@ -0,0 +1,21 @@ +Glider +{ + playerModel glider + weapon WP_MELEE + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL +// race harvester + class CLASS_GLIDER + yawSpeed 60 + runSpeed 150 + walkSpeed 50 + hFOV 120 + vfov 45 + snd glider +} \ No newline at end of file diff --git a/base/ext_data/npcs/Gran.npc b/base/ext_data/npcs/Gran.npc new file mode 100644 index 0000000..85d6a0b --- /dev/null +++ b/base/ext_data/npcs/Gran.npc @@ -0,0 +1,125 @@ +Gran +{ + playerModel gran + customSkin sp + customRGBA random1 + weapon WP_THERMAL + weapon WP_MELEE + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + health 30 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class 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 + customSkin sp + customRGBA random1 + weapon WP_THERMAL + weapon WP_MELEE + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + health 30 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_GRAN + snd gran2 + sndcombat gran2 + sndextra gran2 + yawspeed 90 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 1 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +GranBoxer +{ + playerModel gran + customSkin sp + customRGBA random1 + weapon WP_MELEE + surfOff "l_leg_kneeguard r_leg_kneeguard" + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + health 50 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race klingon + class 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 + customSkin sp + customRGBA random1 + weapon WP_BLASTER + surfOff "l_leg_kneeguard" + reactions 3 + aim 5 + move 3 + aggression 3 + evasion 1 + intelligence 5 + health 40 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race klingon + class CLASS_GRAN + snd gran1 + sndcombat gran1 + sndextra gran1 + yawspeed 90 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 1 + dismemberProbHands 20 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/HazardTrooper.npc b/base/ext_data/npcs/HazardTrooper.npc new file mode 100644 index 0000000..9a0aa7e --- /dev/null +++ b/base/ext_data/npcs/HazardTrooper.npc @@ -0,0 +1,92 @@ +hazardtrooper +{ + playerModel hazardtrooper + weapon WP_REPEATER + health 150 + headPitchRangeDown 30 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_HAZARD_TROOPER + height 80 + crouchheight 48 + snd st1 + sndcombat st1 + sndextra st1 + yawspeed 100 + walkSpeed 55 + runSpeed 65 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +hazardtrooperconcussion +{ + playerModel hazardtrooper + weapon WP_CONCUSSION + health 150 + headPitchRangeDown 30 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_HAZARD_TROOPER + height 80 + crouchheight 48 + snd st1 + sndcombat st1 + sndextra st1 + yawspeed 100 + walkSpeed 55 + runSpeed 65 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +hazardtrooperofficer +{ + playerModel hazardtrooper + weapon WP_FLECHETTE + health 150 + headPitchRangeDown 30 + reactions 4 + aim 3 + move 4 + aggression 5 + evasion 2 + intelligence 5 + rank lt + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_HAZARD_TROOPER + height 64 + crouchheight 48 + snd stofficer1 + sndcombat stofficer1 + sndextra stofficer1 + yawspeed 100 + walkSpeed 55 + runSpeed 65 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} diff --git a/base/ext_data/npcs/Howler.npc b/base/ext_data/npcs/Howler.npc new file mode 100644 index 0000000..52bb620 --- /dev/null +++ b/base/ext_data/npcs/Howler.npc @@ -0,0 +1,23 @@ +Howler +{ + playerModel howler + weapon WP_MELEE + height 32 + crouchheight 32 + reactions 4 + aim 1 + move 5 + aggression 3 + evasion 5 + intelligence 2 + playerTeam TEAM_FREE + enemyTeam TEAM_FREE + class CLASS_HOWLER + yawSpeed 60 + runSpeed 300 + walkSpeed 100 + hFOV 120 + vfov 45 + snd howler + health 60 +} \ No newline at end of file diff --git a/base/ext_data/npcs/ImpCommander.npc b/base/ext_data/npcs/ImpCommander.npc new file mode 100644 index 0000000..31465e9 --- /dev/null +++ b/base/ext_data/npcs/ImpCommander.npc @@ -0,0 +1,34 @@ +ImpCommander +{ + playerModel imperial + weapon WP_BLASTER + altFire 1 + surfOff l_arm_key + customSkin commander + health 80 + reactions 4 + aim 4 + move 4 + aggression 4 + evasion 4 + intelligence 4 + rank commander + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race klingon + class CLASS_IMPERIAL +// snd io3 +// sndcombat io3 +// sndextra io3 + snd io1 + sndcombat io1 + sndextra io1 + yawspeed 110 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/ImpOfficer.npc b/base/ext_data/npcs/ImpOfficer.npc new file mode 100644 index 0000000..2db3124 --- /dev/null +++ b/base/ext_data/npcs/ImpOfficer.npc @@ -0,0 +1,30 @@ +ImpOfficer +{ + playerModel imperial + weapon WP_BLASTER + surfOff l_arm_key + customSkin officer + health 40 + reactions 3 + aim 3 + move 3 + aggression 3 + evasion 3 + intelligence 3 + rank ltcomm + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race klingon + class CLASS_IMPERIAL + snd io1 + sndcombat io1 + sndextra io1 + yawspeed 110 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/ImpWorker.npc b/base/ext_data/npcs/ImpWorker.npc new file mode 100644 index 0000000..24f68d2 --- /dev/null +++ b/base/ext_data/npcs/ImpWorker.npc @@ -0,0 +1,101 @@ +ImpWorker +{ + playerModel imperial_worker + weapon WP_BLASTER_PISTOL + headPitchRangeDown 30 + health 30 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race imperial + class 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 + weapon WP_BLASTER_PISTOL + headPitchRangeDown 30 + health 30 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race imperial + class 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 + weapon WP_BLASTER_PISTOL + headPitchRangeDown 30 + health 30 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race imperial + class 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 +} diff --git a/base/ext_data/npcs/Imperial.npc b/base/ext_data/npcs/Imperial.npc new file mode 100644 index 0000000..f7d6694 --- /dev/null +++ b/base/ext_data/npcs/Imperial.npc @@ -0,0 +1,29 @@ +Imperial +{ + playerModel imperial + weapon WP_BLASTER_PISTOL + surfOff l_arm_key + health 20 + reactions 2 + aim 2 + move 2 + aggression 2 + evasion 2 + intelligence 2 + rank lt + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race klingon + class CLASS_IMPERIAL + snd io2 + sndcombat io2 + sndextra io2 + yawspeed 110 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/Jan.npc b/base/ext_data/npcs/Jan.npc new file mode 100644 index 0000000..7851c8a --- /dev/null +++ b/base/ext_data/npcs/Jan.npc @@ -0,0 +1,30 @@ +Jan +{ + playerModel jan + weapon WP_BLASTER + altFire 1 + rank lt + reactions 3 + aim 5 + move 3 + aggression 3 + evasion 3 + intelligence 3 + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + class CLASS_JAN + sex female + 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 +} \ No newline at end of file diff --git a/base/ext_data/npcs/Jedi.npc b/base/ext_data/npcs/Jedi.npc new file mode 100644 index 0000000..ab86242 --- /dev/null +++ b/base/ext_data/npcs/Jedi.npc @@ -0,0 +1,102 @@ +Jedi +{ + playerModel jedi + saber single_2 + saberColor yellow + weapon WP_SABER + saberStyle 1 + saberStyle 3 + saberStyle 2 + FP_HEAL 1 + FP_LEVITATION 2 + FP_SPEED 2 + FP_PUSH 2 + FP_PULL 1 + FP_TELEPATHY 1 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_RAGE 0 + FP_PROTECT 1 + FP_ABSORB 1 + FP_DRAIN 0 + FP_SEE 1 + FP_SABERTHROW 2 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + forceRegenRate 150 + forcePowerMax 90 + rank lt + reactions 3 + aim 3 + move 3 + aggression 3 + evasion 2 + intelligence 3 + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + class 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 + saber single_7 + saberColor orange + weapon WP_SABER + saberStyle 1 + saberStyle 2 + saberStyle 3 + FP_HEAL 1 + FP_LEVITATION 2 + FP_SPEED 2 + FP_PUSH 2 + FP_PULL 1 + FP_TELEPATHY 1 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_RAGE 0 + FP_PROTECT 1 + FP_ABSORB 1 + FP_DRAIN 0 + FP_SEE 1 + FP_SABERTHROW 2 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + forceRegenRate 200 + forcePowerMax 75 + rank lt + customSkin j2 + reactions 3 + aim 3 + move 3 + aggression 3 + evasion 2 + intelligence 3 + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + class 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 +} \ No newline at end of file diff --git a/base/ext_data/npcs/JediF.npc b/base/ext_data/npcs/JediF.npc new file mode 100644 index 0000000..3d9a56e --- /dev/null +++ b/base/ext_data/npcs/JediF.npc @@ -0,0 +1,49 @@ +JediF +{ + playerModel jan + surfOff "torso_vest hips_chaps torso_computer head_goggles torso_comp hips_belt" + surfOn "torso_augment hips_augment hips_torso" + saber dual_3 + saberColor random + weapon WP_SABER + saberStyle 7 + FP_HEAL 1 + FP_LEVITATION 2 + FP_SPEED 2 + FP_PUSH 2 + FP_PULL 1 + FP_TELEPATHY 1 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_RAGE 0 + FP_PROTECT 1 + FP_ABSORB 1 + FP_DRAIN 0 + FP_SEE 2 + FP_SABERTHROW 2 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + rank lt + reactions 3 + aim 3 + move 3 + aggression 3 + evasion 2 + intelligence 3 + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + class CLASS_JEDI + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + sex female + snd jan + sndcombat jan + sndjedi jan + health 200 + dismemberProbHead 0 + dismemberProbArms 5 + dismemberProbLegs 0 + dismemberProbHands 10 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/JediMaster.npc b/base/ext_data/npcs/JediMaster.npc new file mode 100644 index 0000000..e307f18 --- /dev/null +++ b/base/ext_data/npcs/JediMaster.npc @@ -0,0 +1,47 @@ +JediMaster +{ + playerModel jedi + customSkin master + saber dual_3 + saberColor green + weapon WP_SABER + saberStyle 7 + FP_HEAL 2 + FP_LEVITATION 3 + FP_SPEED 3 + FP_PUSH 3 + FP_PULL 2 + FP_TELEPATHY 2 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_RAGE 0 + FP_PROTECT 2 + FP_ABSORB 2 + FP_DRAIN 0 + FP_SEE 2 + FP_SABERTHROW 3 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + rank commander + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 5 + intelligence 5 + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + class CLASS_JEDI + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + snd jedi2 + sndcombat jedi2 + sndjedi jedi2 + health 400 + dismemberProbHead 0 + dismemberProbArms 5 + dismemberProbLegs 0 + dismemberProbHands 10 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/JediTrainer.npc b/base/ext_data/npcs/JediTrainer.npc new file mode 100644 index 0000000..282e8cb --- /dev/null +++ b/base/ext_data/npcs/JediTrainer.npc @@ -0,0 +1,48 @@ +JediTrainer +{ + playerModel jeditrainer + saber jedi + saber2 jedi + saberColor purple + saber2Color purple + weapon WP_SABER + saberStyle 6 + FP_HEAL 2 + FP_LEVITATION 3 + FP_SPEED 3 + FP_PUSH 3 + FP_PULL 2 + FP_TELEPATHY 2 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_RAGE 0 + FP_PROTECT 2 + FP_ABSORB 2 + FP_DRAIN 0 + FP_SEE 2 + FP_SABERTHROW 3 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + rank commander + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 5 + intelligence 5 + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + class CLASS_JEDI + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + snd jedi2 + sndcombat jedi2 + sndjedi jedi2 + health 400 + dismemberProbHead 0 + dismemberProbArms 5 + dismemberProbLegs 0 + dismemberProbHands 10 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/Kyle.npc b/base/ext_data/npcs/Kyle.npc new file mode 100644 index 0000000..a289800 --- /dev/null +++ b/base/ext_data/npcs/Kyle.npc @@ -0,0 +1,91 @@ +Kyle +{ + playerModel kyle + saber kyle + rank commander + health 1000 + weapon WP_BRYAR_PISTOL + weapon WP_SABER + saberStyle 1 + saberStyle 3 + saberStyle 2 + FP_HEAL 3 + FP_LEVITATION 3 + FP_SPEED 3 + FP_PUSH 3 + FP_PULL 3 + FP_TELEPATHY 3 + FP_GRIP 3 + FP_LIGHTNING 2 + FP_SABERTHROW 3 + FP_RAGE 0 + FP_PROTECT 3 + FP_ABSORB 3 + FP_DRAIN 0 + FP_SEE 3 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + forcePowerMax 200 + reactions 4 + aim 5 + move 3 + aggression 5 + evasion 5 + intelligence 5 + playerTeam TEAM_PLAYER + class CLASS_KYLE + snd kyle + sndcombat kyle + sndjedi kyle + dismemberProbHead 0 + dismemberProbArms 0 + dismemberProbHands 0 + dismemberProbLegs 0 + dismemberProbWaist 0 +} + +Kyle_boss +{ + playerModel kyle + saber kyle_boss + rank captain + health 300 + weapon WP_SABER + saberStyle 1 + saberStyle 2 + saberStyle 3 + FP_HEAL 3 + FP_LEVITATION 3 + FP_SPEED 3 + FP_PUSH 3 + FP_PULL 3 + FP_TELEPATHY 3 + FP_GRIP 3 + FP_LIGHTNING 0 +// FP_SABERTHROW 3 + FP_SABERTHROW 0 + FP_RAGE 0 + FP_PROTECT 3 + FP_ABSORB 3 + FP_DRAIN 0 + FP_SEE 3 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + reactions 4 + aim 5 + move 3 + aggression 5 + evasion 5 + intelligence 5 + playerTeam TEAM_PLAYER + class CLASS_KYLE + snd kyle_boss + sndcombat kyle_boss + sndjedi kyle_boss + dismemberProbHead 0 + dismemberProbArms 0 + dismemberProbHands 0 + dismemberProbLegs 0 + dismemberProbWaist 0 +} + diff --git a/base/ext_data/npcs/Lando.npc b/base/ext_data/npcs/Lando.npc new file mode 100644 index 0000000..253f12b --- /dev/null +++ b/base/ext_data/npcs/Lando.npc @@ -0,0 +1,62 @@ +Lando +{ + playerModel lando + weapon WP_BLASTER + rank captain + altFire 1 + snd lando + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY +// race human + class 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 +} + +Lando_cin +{ + playerModel lando + rank captain + altFire 1 + snd lando + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY +// race human + class CLASS_LANDO + snd lando + sndcombat lando + sndextra lando + sndjedi lando + walkSpeed 52 + runSpeed 200 + yawspeed 120 + dismemberProbHead 0 + dismemberProbArms 0 + dismemberProbHands 0 + dismemberProbLegs 0 + dismemberProbWaist 0 +} diff --git a/base/ext_data/npcs/Luke.npc b/base/ext_data/npcs/Luke.npc new file mode 100644 index 0000000..220f833 --- /dev/null +++ b/base/ext_data/npcs/Luke.npc @@ -0,0 +1,49 @@ +Luke +{ + playerModel luke + saber luke + weapon WP_SABER + saberStyle 1 + saberStyle 3 + saberStyle 2 + FP_HEAL 3 + FP_LEVITATION 3 + FP_SPEED 3 + FP_PUSH 3 + FP_PULL 3 + FP_TELEPATHY 3 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_SABERTHROW 3 + FP_RAGE 0 + FP_PROTECT 3 + FP_ABSORB 3 + FP_DRAIN 0 + FP_SEE 3 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + forcePowerMax 200 + rank captain + reactions 3 + aim 3 + move 3 + aggression 3 + evasion 5 + intelligence 3 + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + class 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 +} \ No newline at end of file diff --git a/base/ext_data/npcs/Merchant.npc b/base/ext_data/npcs/Merchant.npc new file mode 100644 index 0000000..f62f6d2 --- /dev/null +++ b/base/ext_data/npcs/Merchant.npc @@ -0,0 +1,27 @@ +Merchant +{ + playerModel prisoner + weapon WP_NONE + customSkin merchant + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + class CLASS_PRISONER + snd prisoner2 + sndcombat prisoner2 + sndextra prisoner2 + walkSpeed 55 + runSpeed 200 + yawspeed 110 + dismemberProbHead 0 + dismemberProbArms 5 + dismemberProbLegs 0 + dismemberProbHands 10 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/Minemonster.npc b/base/ext_data/npcs/Minemonster.npc new file mode 100644 index 0000000..b3677a7 --- /dev/null +++ b/base/ext_data/npcs/Minemonster.npc @@ -0,0 +1,24 @@ +Minemonster +{ + playerModel minemonster + weapon WP_MELEE + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_MINEMONSTER + snd mine + yawSpeed 160 + runSpeed 210 + walkSpeed 50 + hFOV 120 + vfov 45 + height 30 + width 9 + snd mine + health 40 +} \ No newline at end of file diff --git a/base/ext_data/npcs/MonMothma.npc b/base/ext_data/npcs/MonMothma.npc new file mode 100644 index 0000000..d90f884 --- /dev/null +++ b/base/ext_data/npcs/MonMothma.npc @@ -0,0 +1,25 @@ +MonMothma +{ + playerModel monmothma + weapon WP_NONE + snd monmothma + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY +// race human + class CLASS_MONMOTHMA + walkSpeed 55 + runSpeed 200 + yawspeed 90 + dismemberProbHead 0 + dismemberProbArms 0 + dismemberProbLegs 0 + dismemberProbHands 0 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/MorganKatarn.npc b/base/ext_data/npcs/MorganKatarn.npc new file mode 100644 index 0000000..b3edec1 --- /dev/null +++ b/base/ext_data/npcs/MorganKatarn.npc @@ -0,0 +1,25 @@ +MorganKatarn +{ + playerModel morgan + weapon WP_NONE + snd morgan + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL +// race human + class CLASS_MORGAN + walkSpeed 55 + runSpeed 200 + yawspeed 90 + dismemberProbHead 0 + dismemberProbArms 0 + dismemberProbLegs 0 + dismemberProbHands 0 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/Noghri.npc b/base/ext_data/npcs/Noghri.npc new file mode 100644 index 0000000..1430d46 --- /dev/null +++ b/base/ext_data/npcs/Noghri.npc @@ -0,0 +1,27 @@ +Noghri +{ + playerModel noghri + weapon WP_NOGHRI_STICK + reactions 4 + aim 2 + move 5 + aggression 3 + evasion 5 + intelligence 3 + rank crewman + health 100 + playerTeam TEAM_FREE + enemyTeam TEAM_FREE + class CLASS_NOGHRI + snd noghri1 + sndcombat noghri1 + sndextra noghri1 + yawspeed 90 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 1 + dismemberProbHands 20 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/Prisoner.npc b/base/ext_data/npcs/Prisoner.npc new file mode 100644 index 0000000..98197c5 --- /dev/null +++ b/base/ext_data/npcs/Prisoner.npc @@ -0,0 +1,54 @@ +Prisoner +{ + playerModel prisoner + weapon WP_NONE + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + class 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 + weapon WP_NONE + customSkin prisoner2 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + class CLASS_PRISONER + snd prisoner2 + sndcombat prisoner2 + sndextra prisoner2 + walkSpeed 55 + runSpeed 200 + yawspeed 110 + dismemberProbHead 0 + dismemberProbArms 5 + dismemberProbLegs 0 + dismemberProbHands 10 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/Ragnos.npc b/base/ext_data/npcs/Ragnos.npc new file mode 100644 index 0000000..737c73d --- /dev/null +++ b/base/ext_data/npcs/Ragnos.npc @@ -0,0 +1,20 @@ +Ragnos +{ + playerModel marka_ragnos + weapon WP_NONE + rank captain + snd ragnos + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 5 + intelligence 5 + rank captain + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_GRAN + yawspeed 90 + walkSpeed 55 + runSpeed 200 +} \ No newline at end of file diff --git a/base/ext_data/npcs/Rax.npc b/base/ext_data/npcs/Rax.npc new file mode 100644 index 0000000..c3ea5c6 --- /dev/null +++ b/base/ext_data/npcs/Rax.npc @@ -0,0 +1,25 @@ +Rax +{ + playerModel rax_joris + weapon WP_CONCUSSION + altFire 1 + rank commander + snd rax + sndcombat rax + sndextra rax + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 4 + rank captain + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_IMPERIAL + yawspeed 90 + walkSpeed 55 + runSpeed 200 + health 300 + visrange 3000 +} \ No newline at end of file diff --git a/base/ext_data/npcs/Rebel.npc b/base/ext_data/npcs/Rebel.npc new file mode 100644 index 0000000..91015c6 --- /dev/null +++ b/base/ext_data/npcs/Rebel.npc @@ -0,0 +1,61 @@ +Rebel +{ + playerModel rebel + weapon WP_BLASTER + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY +// race human + class CLASS_REBEL +// snd rebel1 +// sndcombat rebel1 +// sndextra rebel1 + snd rebel_pilot1 + sndcombat rebel_pilot1 + sndextra rebel_pilot1 + yawspeed 120 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +Rebel2 +{ + playerModel rebel + weapon WP_BLASTER + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY +// race human + class CLASS_REBEL +// snd rebel2 +// sndcombat rebel2 +// sndextra rebel2 + snd rebel_pilot1 + sndcombat rebel_pilot1 + sndextra rebel_pilot1 + yawspeed 120 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/Rebel2.npc b/base/ext_data/npcs/Rebel2.npc new file mode 100644 index 0000000..a4186be --- /dev/null +++ b/base/ext_data/npcs/Rebel2.npc @@ -0,0 +1,27 @@ +Rebel2 +{ + playerModel rebel + weapon WP_BLASTER + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY +// race human + class CLASS_REBEL + snd rebel_pilot1 + sndcombat rebel_pilot1 + sndextra rebel_pilot1 + yawspeed 120 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/Reborn.npc b/base/ext_data/npcs/Reborn.npc new file mode 100644 index 0000000..99356e3 --- /dev/null +++ b/base/ext_data/npcs/Reborn.npc @@ -0,0 +1,50 @@ +Reborn +{ + playerModel reborn + saber reborn + weapon WP_SABER + saberStyle 1 + FP_HEAL 0 + FP_LEVITATION 1 + FP_SPEED 1 + FP_PUSH 0 + FP_PULL 0 + FP_TELEPATHY 0 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_RAGE 0 + FP_PROTECT 0 + FP_ABSORB 0 + FP_DRAIN 0 + FP_SEE 0 + FP_SABERTHROW 0 + FP_SABER_DEFENSE 1 + FP_SABER_OFFENSE 1 + forcePowerMax 50 + forceRegenRate 200 + reactions 1 + aim 1 + move 1 + aggression 1 + evasion 1 + intelligence 1 + hfov 120 + vfov 120 + scale 94 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race human + class CLASS_REBORN + snd reborn1 + sndcombat reborn1 + sndjedi reborn1 + yawSpeed 60 + walkSpeed 45 + runSpeed 180 + health 40 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/RebornAcrobat.npc b/base/ext_data/npcs/RebornAcrobat.npc new file mode 100644 index 0000000..91b89fd --- /dev/null +++ b/base/ext_data/npcs/RebornAcrobat.npc @@ -0,0 +1,51 @@ +RebornAcrobat +{ + playerModel reborn + customSkin acrobat + saber reborn + saberColor red + weapon WP_SABER + saberStyle 2 + FP_HEAL 0 + FP_LEVITATION 2 + FP_SPEED 1 + FP_PUSH 0 + FP_PULL 0 + FP_TELEPATHY 0 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_RAGE 0 + FP_PROTECT 0 + FP_ABSORB 0 + FP_DRAIN 0 + FP_SEE 0 + FP_SABERTHROW 0 + FP_SABER_DEFENSE 1 + FP_SABER_OFFENSE 1 + rank crewman + reactions 3 + aim 3 + move 5 + aggression 3 + evasion 3 + intelligence 5 + hfov 160 + vfov 160 + scale 96 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race human + class CLASS_REBORN + snd reborn1 + sndcombat reborn1 + sndjedi reborn1 + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + health 100 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/RebornBoss.npc b/base/ext_data/npcs/RebornBoss.npc new file mode 100644 index 0000000..e53cf18 --- /dev/null +++ b/base/ext_data/npcs/RebornBoss.npc @@ -0,0 +1,51 @@ +RebornBoss +{ + playerModel reborn + customSkin boss + saber shadowtrooper + weapon WP_SABER + saberStyle 1 + saberStyle 2 + saberStyle 3 + FP_HEAL 0 + FP_LEVITATION 2 + FP_SPEED 2 + FP_PUSH 2 + FP_PULL 1 + FP_TELEPATHY 0 + FP_GRIP 2 + FP_LIGHTNING 0 + FP_RAGE 1 + FP_PROTECT 0 + FP_ABSORB 0 + FP_DRAIN 1 + FP_SEE 1 + FP_SABERTHROW 2 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + rank lt + reactions 3 + aim 3 + move 5 + aggression 4 + evasion 3 + intelligence 5 + hfov 160 + vfov 160 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race human + class 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 +} \ No newline at end of file diff --git a/base/ext_data/npcs/RebornChiss.npc b/base/ext_data/npcs/RebornChiss.npc new file mode 100644 index 0000000..517c332 --- /dev/null +++ b/base/ext_data/npcs/RebornChiss.npc @@ -0,0 +1,54 @@ +RebornChiss +{ + playerModel chiss + saber reborn + saber2 sabersai + saber2color red + weapon WP_SABER + saberStyle 6 + FP_HEAL 0 + FP_LEVITATION 0 + FP_SPEED 1 + FP_PUSH 2 + FP_PULL 0 + FP_TELEPATHY 0 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_RAGE 1 + FP_PROTECT 0 + FP_ABSORB 0 + FP_DRAIN 0 + FP_SEE 1 + FP_SABERTHROW 2 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 2 + rank ltjg + reactions 3 + aim 3 + move 5 + aggression 4 + evasion 2 + intelligence 5 + hfov 160 + vfov 160 + scale 96 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race human + class CLASS_REBORN + snd bartender + sndcombat bartender + sndjedi bartender +// snd reborn2 +// sndcombat reborn2 +// sndjedi reborn2 + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + health 100 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/RebornFencer.npc b/base/ext_data/npcs/RebornFencer.npc new file mode 100644 index 0000000..eb44642 --- /dev/null +++ b/base/ext_data/npcs/RebornFencer.npc @@ -0,0 +1,52 @@ +RebornFencer +{ + playerModel reborn + customSkin fencer + saber reborn + weapon WP_SABER + saberStyle 1 + FP_HEAL 0 + FP_LEVITATION 0 + FP_SPEED 1 + FP_PUSH 2 + FP_PULL 0 + FP_TELEPATHY 0 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_RAGE 1 + FP_PROTECT 0 + FP_ABSORB 0 + FP_DRAIN 0 + FP_SEE 0 + FP_SABERTHROW 2 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 2 + forcePowerMax 75 + forceRegenRate 200 + rank ltjg + reactions 3 + aim 3 + move 5 + aggression 4 + evasion 2 + intelligence 5 + hfov 160 + vfov 160 + scale 96 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race human + class CLASS_REBORN + snd reborn2 + sndcombat reborn2 + sndjedi reborn2 + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + health 100 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/RebornForceUser.npc b/base/ext_data/npcs/RebornForceUser.npc new file mode 100644 index 0000000..d0e2a9f --- /dev/null +++ b/base/ext_data/npcs/RebornForceUser.npc @@ -0,0 +1,51 @@ +RebornForceUser +{ + playerModel reborn + customSkin forceuser + saber reborn + weapon WP_SABER + saberStyle 2 + FP_HEAL 0 + FP_LEVITATION 1 + FP_SPEED 1 + FP_PUSH 2 + FP_PULL 1 + FP_TELEPATHY 0 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_RAGE 0 + FP_PROTECT 0 + FP_ABSORB 0 + FP_DRAIN 0 + FP_SEE 1 + FP_SABERTHROW 0 + FP_SABER_DEFENSE 1 + FP_SABER_OFFENSE 1 + forceRegenRate 150 + rank ensign + reactions 3 + aim 3 + move 5 + aggression 2 + evasion 2 + intelligence 5 + hfov 160 + vfov 160 + scale 96 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race human + class CLASS_REBORN + snd reborn2 + sndcombat reborn2 + sndjedi reborn2 + yawSpeed 80 + walkSpeed 55 + runSpeed 200 + health 100 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/RebornRodian.npc b/base/ext_data/npcs/RebornRodian.npc new file mode 100644 index 0000000..7d8f607 --- /dev/null +++ b/base/ext_data/npcs/RebornRodian.npc @@ -0,0 +1,52 @@ +RebornRodian +{ + playerModel rodian + weapon WP_SABER + saber saberstar2 + saber2 saberstar2 + saberColor red + saber2Color red + saberStyle 6 + FP_HEAL 0 + FP_LEVITATION 3 + FP_SPEED 2 + FP_PUSH 1 + FP_PULL 1 + FP_TELEPATHY 0 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_RAGE 0 + FP_PROTECT 0 + FP_ABSORB 0 + FP_DRAIN 0 + FP_SEE 1 + FP_SABERTHROW 2 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 2 + rank lt + reactions 3 + aim 3 + move 5 + aggression 3 + evasion 3 + intelligence 5 + hfov 160 + vfov 160 + scale 96 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race human + class CLASS_REBORN + snd rodian1 + sndcombat rodian1 + sndjedi rodian1 + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + health 100 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/RebornTrandoshan.npc b/base/ext_data/npcs/RebornTrandoshan.npc new file mode 100644 index 0000000..f4f3727 --- /dev/null +++ b/base/ext_data/npcs/RebornTrandoshan.npc @@ -0,0 +1,50 @@ +RebornTrandoshan +{ + playerModel trandoshan + weapon WP_SABER + saber sabertrident + saberColor red + saberColor2 red + saberColor3 red + saberColor4 red + FP_HEAL 0 + FP_LEVITATION 2 + FP_SPEED 0 + FP_PUSH 2 + FP_PULL 2 + FP_TELEPATHY 0 + FP_GRIP 1 + FP_LIGHTNING 0 + FP_RAGE 1 + FP_PROTECT 0 + FP_ABSORB 0 + FP_DRAIN 1 + FP_SEE 0 + FP_SABERTHROW 0 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 2 + rank lt + reactions 3 + aim 3 + move 5 + aggression 4 + evasion 3 + intelligence 5 + hfov 160 + vfov 160 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + snd trandoshan1 + sndcombat trandoshan1 + sndjedi trandoshan1 + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + health 150 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/RebornWeequay.npc b/base/ext_data/npcs/RebornWeequay.npc new file mode 100644 index 0000000..8dd8da5 --- /dev/null +++ b/base/ext_data/npcs/RebornWeequay.npc @@ -0,0 +1,49 @@ +RebornWeequay +{ + playerModel weequay + weapon WP_SABER + saber saberbroad + saberColor red + saberColor2 red + saberStyle 3 + FP_HEAL 0 + FP_LEVITATION 2 + FP_SPEED 0 + FP_PUSH 3 + FP_PULL 3 + FP_TELEPATHY 0 + FP_GRIP 1 + FP_LIGHTNING 0 + FP_RAGE 2 + FP_PROTECT 0 + FP_ABSORB 0 + FP_DRAIN 1 + FP_SEE 0 + FP_SABERTHROW 1 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 2 + rank lt + reactions 3 + aim 3 + move 5 + aggression 4 + evasion 3 + intelligence 5 + hfov 160 + vfov 160 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + snd weequay + sndcombat weequay + sndjedi weequay + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + health 150 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/Reborn_dual.npc b/base/ext_data/npcs/Reborn_dual.npc new file mode 100644 index 0000000..8fdb62d --- /dev/null +++ b/base/ext_data/npcs/Reborn_dual.npc @@ -0,0 +1,103 @@ +reborn_dual +{ + playerModel reborn_new + customSkin red + saber reborn + saber2 reborn + weapon WP_SABER + saberStyle 6 + FP_HEAL 0 + FP_LEVITATION 3 + FP_SPEED 3 + FP_PUSH 3 + FP_PULL 2 + FP_TELEPATHY 0 + FP_GRIP 2 + FP_LIGHTNING 1 + FP_RAGE 2 + FP_PROTECT 0 + FP_ABSORB 0 + FP_DRAIN 2 + FP_SEE 2 + FP_SABERTHROW 2 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + rank ltcomm + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 5 + intelligence 5 + hfov 160 + vfov 160 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + snd reborn2 + sndcombat reborn2 + sndjedi reborn2 + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + health 300 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} + +reborn_dual2 +{ + playerModel reborn_new + customSkin blue + saber reborn + saber2 reborn + weapon WP_SABER + saberStyle 6 + FP_HEAL 0 + FP_LEVITATION 3 + FP_SPEED 1 + FP_PUSH 2 + FP_PULL 1 + FP_TELEPATHY 0 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_RAGE 1 + FP_PROTECT 0 + FP_ABSORB 0 + FP_DRAIN 0 + FP_SEE 0 + FP_SABERTHROW 2 + FP_SABER_DEFENSE 2 + FP_SABER_OFFENSE 3 + rank lt + reactions 5 + aim 5 + move 5 + aggression 4 + evasion 4 + intelligence 5 + hfov 160 + vfov 160 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + snd reborn2 + sndcombat reborn2 + sndjedi reborn2 + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + health 175 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} diff --git a/base/ext_data/npcs/Reborn_new.npc b/base/ext_data/npcs/Reborn_new.npc new file mode 100644 index 0000000..e0ebbc5 --- /dev/null +++ b/base/ext_data/npcs/Reborn_new.npc @@ -0,0 +1,104 @@ +reborn_new +{ + playerModel reborn_new + saber reborn_new + weapon WP_SABER + saberStyle 1 + saberStyle 3 + saberStyle 2 + FP_HEAL 0 + FP_LEVITATION 3 + FP_SPEED 3 + FP_PUSH 3 + FP_PULL 2 + FP_TELEPATHY 0 + FP_GRIP 3 + FP_LIGHTNING 1 + FP_RAGE 2 + FP_PROTECT 0 + FP_ABSORB 0 + FP_DRAIN 2 + FP_SEE 2 + FP_SABERTHROW 2 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + rank ltcomm + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 5 + intelligence 5 + hfov 160 + vfov 160 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + snd reborn2 + sndcombat reborn2 + sndjedi reborn2 + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + health 300 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} + +reborn_new2 +{ + playerModel reborn_new + customSkin blue + saber shadowtrooper + weapon WP_SABER + saberStyle 1 + saberStyle 3 + saberStyle 2 + FP_HEAL 0 + FP_LEVITATION 3 + FP_SPEED 1 + FP_PUSH 2 + FP_PULL 1 + FP_TELEPATHY 0 + FP_GRIP 2 + FP_LIGHTNING 0 + FP_RAGE 1 + FP_PROTECT 0 + FP_ABSORB 0 + FP_DRAIN 0 + FP_SEE 0 + FP_SABERTHROW 2 + FP_SABER_DEFENSE 2 + FP_SABER_OFFENSE 3 + rank lt + reactions 5 + aim 5 + move 5 + aggression 4 + evasion 4 + intelligence 5 + hfov 160 + vfov 160 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + snd reborn2 + sndcombat reborn2 + sndjedi reborn2 + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + health 175 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} diff --git a/base/ext_data/npcs/Reborn_staff.npc b/base/ext_data/npcs/Reborn_staff.npc new file mode 100644 index 0000000..705ac46 --- /dev/null +++ b/base/ext_data/npcs/Reborn_staff.npc @@ -0,0 +1,103 @@ +reborn_staff +{ + playerModel reborn_new + customSkin red + saber dual_1 + saberColor red + weapon WP_SABER + saberStyle 7 + FP_HEAL 0 + FP_LEVITATION 3 + FP_SPEED 3 + FP_PUSH 3 + FP_PULL 2 + FP_TELEPATHY 0 + FP_GRIP 2 + FP_LIGHTNING 1 + FP_RAGE 2 + FP_PROTECT 0 + FP_ABSORB 0 + FP_DRAIN 2 + FP_SEE 2 + FP_SABERTHROW 2 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + rank ltcomm + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 5 + intelligence 5 + hfov 160 + vfov 160 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + snd reborn1 + sndcombat reborn1 + sndjedi reborn1 + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + health 300 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} + +reborn_staff2 +{ + playerModel reborn_new + customSkin blue + saber dual_1 + saberColor red + weapon WP_SABER + saberStyle 7 + FP_HEAL 0 + FP_LEVITATION 3 + FP_SPEED 1 + FP_PUSH 2 + FP_PULL 1 + FP_TELEPATHY 0 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_RAGE 1 + FP_PROTECT 0 + FP_ABSORB 0 + FP_DRAIN 0 + FP_SEE 0 + FP_SABERTHROW 2 + FP_SABER_DEFENSE 2 + FP_SABER_OFFENSE 3 + rank lt + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 4 + intelligence 5 + hfov 160 + vfov 160 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + snd reborn1 + sndcombat reborn1 + sndjedi reborn1 + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + health 175 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} diff --git a/base/ext_data/npcs/Reborn_twin.npc b/base/ext_data/npcs/Reborn_twin.npc new file mode 100644 index 0000000..680939e --- /dev/null +++ b/base/ext_data/npcs/Reborn_twin.npc @@ -0,0 +1,275 @@ +DKothos +{ + playerModel reborn_twin +// customSkin ? + weapon WP_MELEE + health 500 + FP_HEAL 0 + FP_LEVITATION 3 + FP_SPEED 2 + FP_PUSH 3 + FP_PULL 0 + FP_TELEPATHY 0 + FP_GRIP 2 + FP_LIGHTNING 2 + FP_RAGE 0 + FP_PROTECT 2 + FP_ABSORB 2 + FP_DRAIN 2 + FP_SEE 0 + FP_SABERTHROW 0 + FP_SABER_DEFENSE 0 + FP_SABER_OFFENSE 0 + forcePowerMax 200 + forceRegenRate 50 + forceRegenAmount 2 + rank captain + reactions 5 + aim 5 + move 5 + aggression 1 + evasion 5 + intelligence 5 + hfov 160 + vfov 160 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + snd kothos + sndcombat kothos + sndjedi kothos + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} + +VKothos +{ + playerModel reborn_twin +// customSkin ? + weapon WP_MELEE + health 500 + FP_HEAL 0 + FP_LEVITATION 3 + FP_SPEED 2 + FP_PUSH 3 + FP_PULL 0 + FP_TELEPATHY 0 + FP_GRIP 2 + FP_LIGHTNING 2 + FP_RAGE 0 + FP_PROTECT 2 + FP_ABSORB 2 + FP_DRAIN 2 + FP_SEE 0 + FP_SABERTHROW 0 + FP_SABER_DEFENSE 0 + FP_SABER_OFFENSE 0 + forcePowerMax 200 + forceRegenRate 50 + forceRegenAmount 2 + rank captain + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 4 + intelligence 5 + hfov 160 + vfov 160 + hfov 120 + vfov 120 + scale 100 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + snd kothos + sndcombat kothos + sndjedi kothos + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} + +RebornMaster +{ + playerModel reborn_twin + customSkin boss + saber rebornmaster + weapon WP_SABER + saberStyle 1 + saberStyle 2 + saberStyle 3 + health 200 + FP_HEAL 3 + FP_LEVITATION 3 + FP_SPEED 3 + FP_PUSH 3 + FP_PULL 3 + FP_TELEPATHY 0 + FP_GRIP 3 + FP_LIGHTNING 3 + FP_RAGE 3 + FP_PROTECT 2 + FP_ABSORB 2 + FP_DRAIN 2 + FP_SEE 0 + FP_SABERTHROW 3 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + forcePowerMax 200 + forceRegenRate 50 + forceRegenAmount 2 + rank captain + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 5 + intelligence 5 + hfov 160 + vfov 160 + hfov 120 + vfov 120 + scale 100 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_SHADOWTROOPER + snd reborn1 + sndcombat reborn1 + sndjedi reborn1 + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} + +RebornMasterDual +{ + playerModel reborn_twin + customSkin boss + saber shadowtrooper + saber2 shadowtrooper + weapon WP_SABER + saberStyle 6 + health 200 + FP_HEAL 3 + FP_LEVITATION 3 + FP_SPEED 3 + FP_PUSH 3 + FP_PULL 3 + FP_TELEPATHY 0 + FP_GRIP 3 + FP_LIGHTNING 3 + FP_RAGE 3 + FP_PROTECT 2 + FP_ABSORB 2 + FP_DRAIN 2 + FP_SEE 0 + FP_SABERTHROW 3 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + forcePowerMax 200 + forceRegenRate 50 + forceRegenAmount 2 + rank captain + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 5 + intelligence 5 + hfov 160 + vfov 160 + hfov 120 + vfov 120 + scale 100 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_SHADOWTROOPER + snd reborn2 + sndcombat reborn2 + sndjedi reborn2 + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} + + +RebornMasterStaff +{ + playerModel reborn_twin + customSkin boss + saber dual_1 + saberColor red + weapon WP_SABER + saberStyle 7 + health 200 + FP_HEAL 3 + FP_LEVITATION 3 + FP_SPEED 3 + FP_PUSH 3 + FP_PULL 3 + FP_TELEPATHY 0 + FP_GRIP 3 + FP_LIGHTNING 3 + FP_RAGE 3 + FP_PROTECT 2 + FP_ABSORB 2 + FP_DRAIN 2 + FP_SEE 0 + FP_SABERTHROW 3 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + forcePowerMax 200 + forceRegenRate 50 + forceRegenAmount 2 + rank captain + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 5 + intelligence 5 + hfov 160 + vfov 160 + hfov 120 + vfov 120 + scale 100 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_SHADOWTROOPER + snd reborn2 + sndcombat reborn2 + sndjedi reborn2 + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} + diff --git a/base/ext_data/npcs/Reelo.npc b/base/ext_data/npcs/Reelo.npc new file mode 100644 index 0000000..d78df3b --- /dev/null +++ b/base/ext_data/npcs/Reelo.npc @@ -0,0 +1,30 @@ +Reelo +{ + playerModel reelo + weapon WP_BLASTER + rank commander + altFire 1 + snd reelo + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race klingon + class CLASS_REELO + snd reelo + sndcombat reelo + sndextra reelo + yawspeed 90 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 0 + dismemberProbHands 0 + dismemberProbLegs 0 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/RocketTrooper.npc b/base/ext_data/npcs/RocketTrooper.npc new file mode 100644 index 0000000..ad56be6 --- /dev/null +++ b/base/ext_data/npcs/RocketTrooper.npc @@ -0,0 +1,37 @@ +RocketTrooper +{ + playerModel stormtrooper +// surfOn torso_pauldron +// surfOff "torso_armor_neck_augment torso_body_neck_augment" + customSkin officer + weapon WP_ROCKET_LAUNCHER + health 60 + headPitchRangeDown 30 + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 5 + intelligence 5 + rank ensign + scale 110 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race klingon + class CLASS_STORMTROOPER + height 68 + crouchheight 52 + walkSpeed 51 + runSpeed 200 + snd stofficer1 + sndcombat stofficer1 + sndextra stofficer1 + yawspeed 100 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/Rodian.npc b/base/ext_data/npcs/Rodian.npc new file mode 100644 index 0000000..c80f8f0 --- /dev/null +++ b/base/ext_data/npcs/Rodian.npc @@ -0,0 +1,66 @@ +Rodian +{ + playerModel rodian + customSkin sp + customRGBA random1 + weapon WP_DISRUPTOR + altFire 1 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + health 25 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race klingon + class 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 + customSkin sp + customRGBA random1 + weapon WP_BLASTER + altFire 1 + surfOff "hips_belt torso_vest" + surfOn "torso_augment" + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + health 20 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race klingon + class CLASS_RODIAN + snd rodian2 + sndcombat rodian2 + sndextra rodian2 + yawspeed 90 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 1 + dismemberProbHands 20 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/STCommander.npc b/base/ext_data/npcs/STCommander.npc new file mode 100644 index 0000000..00c7c42 --- /dev/null +++ b/base/ext_data/npcs/STCommander.npc @@ -0,0 +1,37 @@ +STCommander +{ + playerModel stormtrooper +// surfOn torso_pauldron +// surfOff "torso_armor_neck_augment torso_body_neck_augment" + customSkin officer + weapon WP_REPEATER + health 60 + headPitchRangeDown 30 + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 5 + intelligence 5 + rank ensign + scale 105 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race klingon + class CLASS_STORMTROOPER + height 68 + crouchheight 52 + walkSpeed 51 + runSpeed 200 + snd stofficer1 + sndcombat stofficer1 + sndextra stofficer1 + yawspeed 110 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/STOfficer.npc b/base/ext_data/npcs/STOfficer.npc new file mode 100644 index 0000000..d7c6f52 --- /dev/null +++ b/base/ext_data/npcs/STOfficer.npc @@ -0,0 +1,74 @@ +STOfficer +{ + playerModel stormtrooper +// surfOn torso_pauldron +// surfOff "torso_armor_neck_augment torso_body_neck_augment" + customSkin officer + weapon WP_FLECHETTE + health 60 + headPitchRangeDown 30 + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 5 + intelligence 5 + rank ensign + scale 105 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_STORMTROOPER + height 68 + crouchheight 52 + walkSpeed 51 + runSpeed 200 + snd stofficer1 + sndcombat stofficer1 + sndextra stofficer1 + yawspeed 90 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +STOfficerAlt +{ + playerModel stormtrooper +// surfOn torso_pauldron +// surfOff "torso_armor_neck_augment torso_body_neck_augment" + customSkin officer + weapon WP_FLECHETTE + altFire 1 + health 60 + headPitchRangeDown 30 + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 5 + intelligence 5 + rank ensign + scale 105 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_STORMTROOPER + height 68 + crouchheight 52 + walkSpeed 51 + runSpeed 200 + snd stofficer1 + sndcombat stofficer1 + sndextra stofficer1 + yawspeed 90 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/STOfficerAlt.npc b/base/ext_data/npcs/STOfficerAlt.npc new file mode 100644 index 0000000..cc326e8 --- /dev/null +++ b/base/ext_data/npcs/STOfficerAlt.npc @@ -0,0 +1,37 @@ +STOfficerAlt +{ + playerModel stormtrooper + weapon WP_FLECHETTE + altFire 1 + surfOn torso_pauldron + 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 105 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race klingon + class CLASS_STORMTROOPER + height 68 + crouchheight 52 + walkSpeed 51 + runSpeed 200 + snd stofficer1 + sndcombat stofficer1 + sndextra stofficer1 + yawspeed 90 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/ShadowTrooper.npc b/base/ext_data/npcs/ShadowTrooper.npc new file mode 100644 index 0000000..e4c4d5f --- /dev/null +++ b/base/ext_data/npcs/ShadowTrooper.npc @@ -0,0 +1,100 @@ +ShadowTrooper +{ + playerModel shadowtrooper + saber shadowtrooper + weapon WP_SABER + saberStyle 1 + saberStyle 3 + saberStyle 2 + FP_HEAL 0 + FP_LEVITATION 3 + FP_SPEED 3 + FP_PUSH 3 + FP_PULL 2 + FP_TELEPATHY 0 + FP_GRIP 2 + FP_LIGHTNING 1 + FP_RAGE 2 + FP_PROTECT 0 + FP_ABSORB 0 + FP_DRAIN 2 + FP_SEE 2 + FP_SABERTHROW 2 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + rank ltcomm + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 4 + intelligence 5 + hfov 160 + vfov 160 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race human + class CLASS_SHADOWTROOPER + snd shadow1 + sndcombat shadow1 + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + health 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +ShadowTrooper2 +{ + playerModel shadowtrooper + saber shadowtrooper + saberColor red + weapon WP_SABER + saberStyle 3 + saberStyle 2 + saberStyle 1 + FP_HEAL 0 + FP_LEVITATION 3 + FP_SPEED 3 + FP_PUSH 3 + FP_PULL 2 + FP_TELEPATHY 0 + FP_GRIP 2 + FP_LIGHTNING 1 + FP_RAGE 2 + FP_PROTECT 0 + FP_ABSORB 0 + FP_DRAIN 2 + FP_SEE 2 + FP_SABERTHROW 2 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + rank lt + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 4 + intelligence 5 + hfov 160 + vfov 160 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race human + class CLASS_SHADOWTROOPER + snd shadow2 + sndcombat shadow2 + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + health 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} diff --git a/base/ext_data/npcs/StormPilot.npc b/base/ext_data/npcs/StormPilot.npc new file mode 100644 index 0000000..23aad7a --- /dev/null +++ b/base/ext_data/npcs/StormPilot.npc @@ -0,0 +1,35 @@ +StormPilot +{ + playerModel stormpilot + weapon WP_BLASTER_PISTOL + health 30 + headPitchRangeDown 30 + reactions 3 + aim 5 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_STORMTROOPER + height 64 + crouchheight 48 + walkSpeed 51 + runSpeed 200 +// snd stofficer1 +// sndcombat stofficer1 +// sndextra stofficer1 + snd worker2 + sndcombat worker2 + sndextra worker2 + yawspeed 80 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/StormTrooper.npc b/base/ext_data/npcs/StormTrooper.npc new file mode 100644 index 0000000..97cf9fc --- /dev/null +++ b/base/ext_data/npcs/StormTrooper.npc @@ -0,0 +1,67 @@ +StormTrooper +{ + playerModel stormtrooper + weapon WP_BLASTER + health 30 + headPitchRangeDown 30 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race klingon + class CLASS_STORMTROOPER + height 64 + crouchheight 38 + walkSpeed 51 + runSpeed 200 + snd st1 + sndcombat st1 + sndextra st1 + yawspeed 70 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +StormTrooper2 +{ + playerModel stormtrooper + weapon WP_BLASTER + health 30 + headPitchRangeDown 30 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race klingon + class CLASS_STORMTROOPER + height 64 + crouchheight 38 + walkSpeed 51 + runSpeed 200 + snd st2 + sndcombat st2 + sndextra st2 + yawspeed 70 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} diff --git a/base/ext_data/npcs/SwampTrooper.npc b/base/ext_data/npcs/SwampTrooper.npc new file mode 100644 index 0000000..fab379a --- /dev/null +++ b/base/ext_data/npcs/SwampTrooper.npc @@ -0,0 +1,63 @@ +SwampTrooper +{ + playerModel swamptrooper + weapon WP_FLECHETTE + headPitchRangeDown 30 + health 70 + reactions 3 + aim 3 + move 3 + aggression 3 + evasion 3 + intelligence 3 + scale 110 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race klingon + class 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 + weapon WP_REPEATER + headPitchRangeDown 30 + health 70 + reactions 3 + aim 3 + move 3 + aggression 3 + evasion 3 + intelligence 3 + scale 110 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race klingon + class 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 +} \ No newline at end of file diff --git a/base/ext_data/npcs/Tavion.npc b/base/ext_data/npcs/Tavion.npc new file mode 100644 index 0000000..2094777 --- /dev/null +++ b/base/ext_data/npcs/Tavion.npc @@ -0,0 +1,50 @@ +Tavion +{ + playerModel tavion + rank commander + saber tavion + saberColor red + weapon WP_SABER + saberStyle 5 + FP_HEAL 0 + FP_LEVITATION 3 + FP_SPEED 3 + FP_PUSH 3 + FP_PULL 2 + FP_TELEPATHY 0 + FP_GRIP 2 + FP_LIGHTNING 2 + FP_RAGE 2 + FP_PROTECT 0 + FP_ABSORB 0 + FP_DRAIN 1 + FP_SEE 1 + FP_SABERTHROW 3 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + reactions 3 + aim 3 + move 5 + aggression 3 + evasion 4 + intelligence 5 + hfov 160 + vfov 160 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race human + class CLASS_TAVION + sex female + snd tavion + sndcombat tavion + sndjedi tavion + yawSpeed 120 + walkSpeed 55 + runSpeed 200 + health 300 + dismemberProbHead 0 + dismemberProbArms 0 + dismemberProbLegs 0 + dismemberProbHands 0 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/Tavion_new.npc b/base/ext_data/npcs/Tavion_new.npc new file mode 100644 index 0000000..925a9eb --- /dev/null +++ b/base/ext_data/npcs/Tavion_new.npc @@ -0,0 +1,152 @@ +Tavion_new +{ + playerModel tavion_new + rank commander + saber tavion + saberColor red + weapon WP_SABER + saberStyle 5 + FP_HEAL 0 + FP_LEVITATION 3 + FP_SPEED 3 + FP_PUSH 3 + FP_PULL 2 + FP_TELEPATHY 0 + FP_GRIP 3 + FP_LIGHTNING 2 + FP_RAGE 2 + FP_PROTECT 0 + FP_ABSORB 0 + FP_DRAIN 2 + FP_SEE 1 + FP_SABERTHROW 3 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + reactions 3 + aim 3 + move 5 + aggression 3 + evasion 4 + intelligence 5 + hfov 160 + vfov 160 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race human + class CLASS_TAVION + sex female + snd tavion + sndcombat tavion + sndjedi tavion + yawSpeed 120 + walkSpeed 55 + runSpeed 200 + health 300 + dismemberProbHead 0 + dismemberProbArms 0 + dismemberProbLegs 0 + dismemberProbHands 0 + dismemberProbWaist 0 +} + +Tavion_scepter +{ + playerModel tavion_new + rank commander + saber tavion + saberColor red + weapon WP_SCEPTER + weapon WP_SABER + saberStyle 6 + health 400 + FP_HEAL 0 + FP_LEVITATION 3 + FP_SPEED 3 + FP_PUSH 3 + FP_PULL 3 + FP_TELEPATHY 0 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_RAGE 0 + FP_PROTECT 0 + FP_ABSORB 0 + FP_DRAIN 0 + FP_SEE 0 + FP_SABERTHROW 3 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 5 + intelligence 5 + hfov 160 + vfov 160 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + sex female + snd tavion + sndcombat tavion + sndjedi tavion + yawSpeed 120 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 0 + dismemberProbLegs 0 + dismemberProbHands 0 + dismemberProbWaist 0 +} + +Tavion_sith_sword +{ + playerModel tavion_new + customSkin possessed + rank captain + weapon WP_SABER + saber sith_sword + saberStyle 4 + health 250 + FP_HEAL 0 + FP_LEVITATION 3 + FP_SPEED 3 + FP_PUSH 3 + FP_PULL 3 + FP_TELEPATHY 0 + FP_GRIP 3 + FP_LIGHTNING 3 + FP_RAGE 3 + FP_PROTECT 0 + FP_ABSORB 0 + FP_DRAIN 3 + FP_SEE 0 + FP_SABERTHROW 3 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 5 + intelligence 5 + hfov 160 + vfov 160 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_DESANN + sex female + snd tavion + sndcombat tavion + sndjedi tavion + yawSpeed 120 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 0 + dismemberProbLegs 0 + dismemberProbHands 0 + dismemberProbWaist 0 +} + diff --git a/base/ext_data/npcs/Trandoshan.npc b/base/ext_data/npcs/Trandoshan.npc new file mode 100644 index 0000000..4e79871 --- /dev/null +++ b/base/ext_data/npcs/Trandoshan.npc @@ -0,0 +1,30 @@ +Trandoshan +{ + playerModel trandoshan + customSkin sp + customRGBA random1 + weapon WP_REPEATER + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + health 40 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race klingon + class CLASS_TRANDOSHAN + snd trandoshan1 + sndcombat trandoshan1 + sndextra trandoshan1 + yawspeed 90 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 1 + dismemberProbHands 20 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/Ugnaught.npc b/base/ext_data/npcs/Ugnaught.npc new file mode 100644 index 0000000..6a8de5a --- /dev/null +++ b/base/ext_data/npcs/Ugnaught.npc @@ -0,0 +1,55 @@ +Ugnaught +{ + playerModel ugnaught + weapon WP_NONE + scale 75 + health 10 + snd ugnaught + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_PLAYER + class CLASS_UGNAUGHT + yawspeed 90 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 1 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +Ugnaught2 +{ + playerModel ugnaught + weapon WP_NONE + surfOff "l_hand_purse" + surfOn "r_hand_tool" + scale 75 + health 10 + snd ugnaught + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_PLAYER + class CLASS_UGNAUGHT + yawspeed 90 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 1 + dismemberProbHands 20 + dismemberProbWaist 0 +} diff --git a/base/ext_data/npcs/Weequay.npc b/base/ext_data/npcs/Weequay.npc new file mode 100644 index 0000000..4cd6e42 --- /dev/null +++ b/base/ext_data/npcs/Weequay.npc @@ -0,0 +1,128 @@ +Weequay +{ + playerModel weequay + customSkin sp + customRGBA random1 + weapon WP_BOWCASTER +//FIXME: randomize these somehow, also belt... + surfOff "hips_lowerarmor" + surfOn "hips_torso_augment" + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + health 30 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class 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 + customSkin sp + customRGBA random1 + weapon WP_BOWCASTER + surfOff "head_l_hairback hips_r_strap hips_r_packsmall" + surfOn "head_r_hairshoulder hips_l_packsmall hips_l_strap" + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + health 30 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class 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 + customSkin sp + customRGBA random1 + weapon WP_BOWCASTER + surfOff "head_l_hairback hips_l_packlarge hips_l_packwide hips_r_strap hips_r_packsmall" + surfOn "head_r_hairback hips_l_packsmall hips_l_strap hips_r_packlarge hips_r_packwide" + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + health 30 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class 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 + customSkin sp + customRGBA random1 + weapon WP_BOWCASTER + surfOff "head_l_hairback hips_l_packlarge hips_l_packwide" + surfOn "head_l_hairshoulder hips_r_packlarge hips_r_packwide" + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + health 30 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_WEEQUAY + snd weequay + sndcombat weequay + sndextra weequay + yawspeed 90 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 1 + dismemberProbHands 20 + dismemberProbWaist 0 +} diff --git a/base/ext_data/npcs/alora.npc b/base/ext_data/npcs/alora.npc new file mode 100644 index 0000000..7d2c478 --- /dev/null +++ b/base/ext_data/npcs/alora.npc @@ -0,0 +1,103 @@ +alora +{ + playerModel alora + rank lt + saber single_4 + saberColor red + weapon WP_SABER + saberStyle 2 + saberStyle 1 + health 300 + FP_HEAL 0 + FP_LEVITATION 2 + FP_SPEED 2 + FP_PUSH 2 + FP_PULL 2 + FP_TELEPATHY 0 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_RAGE 0 + FP_PROTECT 0 + FP_ABSORB 0 + FP_DRAIN 0 + FP_SEE 0 + FP_SABERTHROW 2 + FP_SABER_DEFENSE 2 + FP_SABER_OFFENSE 2 + reactions 3 + aim 3 + move 5 + aggression 3 + evasion 4 + intelligence 5 + hfov 160 + vfov 160 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + sex female + snd alora + sndcombat alora + sndjedi alora + yawSpeed 120 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 0 + dismemberProbLegs 0 + dismemberProbHands 0 + dismemberProbWaist 0 +} + +alora_dual +{ +// playerModel alora2 + playerModel alora + rank commander + saber single_4 + saberColor red + saber2 single_4 + saber2Color red + weapon WP_SABER + saberStyle 6 + health 500 + FP_HEAL 0 + FP_LEVITATION 3 + FP_SPEED 3 + FP_PUSH 3 + FP_PULL 3 + FP_TELEPATHY 0 + FP_GRIP 2 + FP_LIGHTNING 2 + FP_RAGE 3 + FP_PROTECT 0 + FP_ABSORB 0 + FP_DRAIN 0 + FP_SEE 0 + FP_SABERTHROW 3 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 5 + intelligence 5 + hfov 160 + vfov 160 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_ALORA + sex female + snd alora + sndcombat alora + sndjedi alora + yawSpeed 120 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 0 + dismemberProbLegs 0 + dismemberProbHands 0 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/assassin_droid.npc b/base/ext_data/npcs/assassin_droid.npc new file mode 100644 index 0000000..774379f --- /dev/null +++ b/base/ext_data/npcs/assassin_droid.npc @@ -0,0 +1,32 @@ +assassin_droid +{ + playerModel assassin_droid + weapon WP_BLASTER + health 150 + headPitchRangeDown 30 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_ASSASSIN_DROID + height 64 + crouchheight 48 + walkSpeed 51 + runSpeed 200 + snd shadowtrooper1 + sndcombat shadowtrooper1 + sndextra shadowtrooper1 + yawspeed 70 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 100 + dismemberProbArms 100 + dismemberProbLegs 100 + dismemberProbHands 100 + dismemberProbWaist 100 +} \ No newline at end of file diff --git a/base/ext_data/npcs/atst.npc b/base/ext_data/npcs/atst.npc new file mode 100644 index 0000000..1a4a977 --- /dev/null +++ b/base/ext_data/npcs/atst.npc @@ -0,0 +1,36 @@ +atst +{ + playerModel atst + weapon WP_ATST_MAIN + weapon WP_ATST_SIDE +// 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 TEAM_ENEMY + enemyTeam TEAM_PLAYER + height 272 + width 80 +// race bot + class CLASS_ATST + yawSpeed 60 + runSpeed 150 + walkSpeed 150 + hFOV 120 + vfov 45 + snd atst +} \ No newline at end of file diff --git a/base/ext_data/npcs/atst_vehicle.npc b/base/ext_data/npcs/atst_vehicle.npc new file mode 100644 index 0000000..1140aff --- /dev/null +++ b/base/ext_data/npcs/atst_vehicle.npc @@ -0,0 +1,13 @@ +ATST_vehicle +{ + weapon WP_BOWCASTER + weapon WP_ROCKET_LAUNCHER + weapon WP_EMPLACED_GUN + playerModel atst + playerTeam TEAM_FREE + enemyTeam TEAM_FREE + class CLASS_VEHICLE + height 272 + width 80 + health 3000 +} \ No newline at end of file diff --git a/base/ext_data/npcs/boba_fett.npc b/base/ext_data/npcs/boba_fett.npc new file mode 100644 index 0000000..3eca577 --- /dev/null +++ b/base/ext_data/npcs/boba_fett.npc @@ -0,0 +1,44 @@ + +boba_fett +{ + playerModel boba_fett + altFire 1 + weapon WP_MELEE + weapon WP_DISRUPTOR + weapon WP_ROCKET_LAUNCHER + weapon WP_BLASTER + FP_HEAL 0 + FP_LEVITATION 3 + FP_SPEED 0 + FP_PUSH 0 + FP_PULL 0 + FP_TELEPATHY 0 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_SABERTHROW 0 + FP_SABER_DEFENSE 0 + FP_SABER_OFFENSE 0 + health 400 + headPitchRangeDown 30 + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 5 + intelligence 5 + earshot 2048 + visrange 4096 + hfov 120 + vfov 100 + rank captain + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_BOBAFETT + walkSpeed 80 + runSpeed 250 + snd boba + sndcombat boba + sndextra boba + yawspeed 180 +} + diff --git a/base/ext_data/npcs/chewie.npc b/base/ext_data/npcs/chewie.npc new file mode 100644 index 0000000..487ea98 --- /dev/null +++ b/base/ext_data/npcs/chewie.npc @@ -0,0 +1,86 @@ +chewie +{ + playerModel chewbacca + altFire 0 + weapon WP_BOWCASTER + FP_HEAL 0 + FP_LEVITATION 0 + FP_SPEED 0 + FP_PUSH 0 + FP_PULL 0 + FP_TELEPATHY 0 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_SABERTHROW 0 + FP_SABER_DEFENSE 0 + FP_SABER_OFFENSE 0 + health 400 + scale 122 + width 18 + height 78 + crouchheight 42 + headPitchRangeDown 30 + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 5 + intelligence 5 + earshot 1024 + visrange 2048 + hfov 120 + vfov 100 + rank captain + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + class CLASS_REBEL + walkSpeed 60 + runSpeed 160 + snd chewbacca + sndcombat chewbacca + sndextra chewbacca + yawspeed 90 +} + +chewie_cin +{ + playerModel chewbacca + altFire 0 + FP_HEAL 0 + FP_LEVITATION 0 + FP_SPEED 0 + FP_PUSH 0 + FP_PULL 0 + FP_TELEPATHY 0 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_SABERTHROW 0 + FP_SABER_DEFENSE 0 + FP_SABER_OFFENSE 0 + health 400 + scale 122 + width 18 + height 78 + crouchheight 42 + headPitchRangeDown 30 + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 5 + intelligence 5 + earshot 1024 + visrange 2048 + hfov 120 + vfov 100 + rank captain + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + class CLASS_REBEL + walkSpeed 60 + runSpeed 160 + snd chewbacca + sndcombat chewbacca + sndextra chewbacca + yawspeed 90 +} \ No newline at end of file diff --git a/base/ext_data/npcs/cultist.npc b/base/ext_data/npcs/cultist.npc new file mode 100644 index 0000000..9bf1050 --- /dev/null +++ b/base/ext_data/npcs/cultist.npc @@ -0,0 +1,38 @@ +cultist +{ + playerModel cultist + weapon WP_BLASTER + altfire 1 + FP_LEVITATION 3 + FP_SPEED 2 + FP_PUSH 2 + FP_PULL 2 + FP_GRIP 1 + FP_LIGHTNING 1 + FP_DRAIN 1 + rank ltcomm + reactions 1 + aim 1 + move 1 + aggression 1 + evasion 1 + intelligence 1 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race human + class CLASS_REBORN + snd cultist1 + sndcombat cultist1 + sndjedi cultist1 + yawSpeed 60 + walkSpeed 45 + runSpeed 180 + health 50 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/cultist_destroyer.npc b/base/ext_data/npcs/cultist_destroyer.npc new file mode 100644 index 0000000..368d80b --- /dev/null +++ b/base/ext_data/npcs/cultist_destroyer.npc @@ -0,0 +1,31 @@ +cultist_destroyer +{ + playerModel cultist + customSkin red + weapon WP_MELEE + FP_LEVITATION 3 + rank ltcomm + reactions 1 + aim 1 + move 1 + aggression 5 + evasion 1 + intelligence 1 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + snd cultist3 + sndcombat cultist3 + sndjedi cultist3 + yawSpeed 60 + walkSpeed 72 + runSpeed 230 + health 100 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/cultist_drain.npc b/base/ext_data/npcs/cultist_drain.npc new file mode 100644 index 0000000..857d587 --- /dev/null +++ b/base/ext_data/npcs/cultist_drain.npc @@ -0,0 +1,37 @@ +cultist_drain +{ + playerModel cultist + customSkin red + weapon WP_MELEE + FP_LEVITATION 1 + FP_PUSH 3 + FP_DRAIN 3 + forcePowerMax 200 + forceRegenRate 50 + forceRegenAmount 2 + rank captain + reactions 1 + aim 1 + move 1 + aggression 5 + evasion 3 + intelligence 1 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race human + class CLASS_REBORN + snd cultist3 + sndcombat cultist3 + sndjedi cultist3 + yawSpeed 60 + walkSpeed 45 + runSpeed 180 + health 100 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/cultist_grip.npc b/base/ext_data/npcs/cultist_grip.npc new file mode 100644 index 0000000..1fb84f3 --- /dev/null +++ b/base/ext_data/npcs/cultist_grip.npc @@ -0,0 +1,38 @@ +cultist_grip +{ + playerModel cultist + weapon WP_MELEE + FP_LEVITATION 1 + FP_PUSH 3 + FP_PULL 2 +// FP_GRIP 3 + FP_GRIP 2 + forcePowerMax 200 + forceRegenRate 50 + forceRegenAmount 2 + rank captain + reactions 1 + aim 1 + move 1 + aggression 5 + evasion 3 + intelligence 1 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race human + class CLASS_REBORN + snd cultist3 + sndcombat cultist3 + sndjedi cultist3 + yawSpeed 60 + walkSpeed 45 + runSpeed 180 + health 100 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/cultist_lightning.npc b/base/ext_data/npcs/cultist_lightning.npc new file mode 100644 index 0000000..a4a4f20 --- /dev/null +++ b/base/ext_data/npcs/cultist_lightning.npc @@ -0,0 +1,37 @@ +cultist_lightning +{ + playerModel cultist + customSkin blue + weapon WP_MELEE + FP_LEVITATION 1 + FP_PUSH 3 + FP_LIGHTNING 3 + forcePowerMax 200 + forceRegenRate 50 + forceRegenAmount 2 + rank captain + reactions 1 + aim 1 + move 1 + aggression 5 + evasion 3 + intelligence 1 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race human + class CLASS_REBORN + snd cultist3 + sndcombat cultist3 + sndjedi cultist3 + yawSpeed 60 + walkSpeed 45 + runSpeed 180 + health 100 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/cultist_saber.npc b/base/ext_data/npcs/cultist_saber.npc new file mode 100644 index 0000000..6d285b9 --- /dev/null +++ b/base/ext_data/npcs/cultist_saber.npc @@ -0,0 +1,294 @@ +cultist_saber +{ + playerModel cultist + customSkin brown + saber reborn + weapon WP_SABER + saberStyle 1 + FP_LEVITATION 1 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 1 + reactions 1 + aim 1 + move 1 + aggression 3 + evasion 1 + intelligence 1 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + snd cultist1 + sndcombat cultist1 + sndjedi cultist1 + yawSpeed 60 + walkSpeed 45 + runSpeed 180 + health 100 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} + +cultist_saber_throw +{ + playerModel cultist + customSkin brown + saber reborn + weapon WP_SABER + saberStyle 1 + FP_LEVITATION 1 + FP_SABER_DEFENSE 2 + FP_SABER_OFFENSE 1 + FP_SABERTHROW 1 + reactions 1 + aim 1 + move 1 + aggression 2 + evasion 1 + intelligence 1 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + snd cultist1 + sndcombat cultist1 + sndjedi cultist1 + yawSpeed 60 + walkSpeed 45 + runSpeed 180 + health 100 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} + +cultist_saber_med +{ + playerModel cultist + customSkin brown + saber reborn + weapon WP_SABER + saberStyle 2 + FP_LEVITATION 1 + FP_SABER_DEFENSE 2 + FP_SABER_OFFENSE 2 + rank crewman + reactions 1 + aim 1 + move 1 + aggression 3 + evasion 1 + intelligence 1 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + snd cultist1 + sndcombat cultist1 + sndjedi cultist1 + yawSpeed 60 + walkSpeed 45 + runSpeed 180 + health 100 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} + +cultist_saber_med_throw +{ + playerModel cultist + customSkin brown + saber reborn + weapon WP_SABER + saberStyle 2 + FP_LEVITATION 1 + FP_SABER_DEFENSE 1 + FP_SABER_OFFENSE 2 + FP_SABERTHROW 2 + rank crewman + reactions 1 + aim 1 + move 1 + aggression 2 + evasion 1 + intelligence 1 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + snd cultist1 + sndcombat cultist1 + sndjedi cultist1 + yawSpeed 60 + walkSpeed 45 + runSpeed 180 + health 100 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} + +cultist_saber_strong +{ + playerModel cultist + customSkin brown + saber reborn + weapon WP_SABER + saberStyle 3 + FP_LEVITATION 1 + FP_SABER_DEFENSE 1 + FP_SABER_OFFENSE 3 + rank ensign + reactions 1 + aim 1 + move 1 + aggression 3 + evasion 1 + intelligence 1 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + snd cultist1 + sndcombat cultist1 + sndjedi cultist1 + yawSpeed 60 + walkSpeed 45 + runSpeed 180 + health 100 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} + +cultist_saber_strong_throw +{ + playerModel cultist + customSkin brown + saber reborn + weapon WP_SABER + saberStyle 3 + FP_LEVITATION 1 + FP_SABER_DEFENSE 1 + FP_SABER_OFFENSE 3 + FP_SABERTHROW 2 + rank ensign + reactions 1 + aim 1 + move 1 + aggression 2 + evasion 1 + intelligence 1 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + snd cultist1 + sndcombat cultist1 + sndjedi cultist1 + yawSpeed 60 + walkSpeed 45 + runSpeed 180 + health 100 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} + +cultist_saber_all +{ + playerModel cultist + customSkin brown + saber reborn + weapon WP_SABER + saberStyle 1 + saberStyle 3 + saberStyle 2 + FP_LEVITATION 1 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + rank crewman + reactions 1 + aim 1 + move 1 + aggression 4 + evasion 1 + intelligence 1 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + snd cultist1 + sndcombat cultist1 + sndjedi cultist1 + yawSpeed 60 + walkSpeed 45 + runSpeed 180 + health 100 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} + +cultist_saber_all_throw +{ + playerModel cultist + customSkin brown + saber reborn + weapon WP_SABER + saberStyle 1 + saberStyle 3 + saberStyle 2 + FP_LEVITATION 1 + FP_SABER_DEFENSE 2 + FP_SABER_OFFENSE 3 + FP_SABERTHROW 2 + rank crewman + reactions 1 + aim 1 + move 1 + aggression 3 + evasion 1 + intelligence 1 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + snd cultist1 + sndcombat cultist1 + sndjedi cultist1 + yawSpeed 60 + walkSpeed 45 + runSpeed 180 + health 100 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} + diff --git a/base/ext_data/npcs/cultist_saber_powers.npc b/base/ext_data/npcs/cultist_saber_powers.npc new file mode 100644 index 0000000..21715cd --- /dev/null +++ b/base/ext_data/npcs/cultist_saber_powers.npc @@ -0,0 +1,305 @@ +cultist_saber2 +{ + playerModel cultist + customSkin brown + saber reborn + weapon WP_SABER + saberStyle 1 + rank ltjg + FP_PUSH 1 + FP_LEVITATION 1 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 2 + reactions 1 + aim 1 + move 1 + aggression 3 + evasion 2 + intelligence 1 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + snd cultist1 + sndcombat cultist1 + sndjedi cultist1 + yawSpeed 60 + walkSpeed 45 + runSpeed 180 + health 150 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} + +cultist_saber_throw2 +{ + playerModel cultist + customSkin brown + saber reborn + weapon WP_SABER + saberStyle 1 + rank ltjg + FP_PUSH 1 + FP_LEVITATION 1 + FP_SABER_DEFENSE 2 + FP_SABER_OFFENSE 2 + FP_SABERTHROW 1 + reactions 1 + aim 1 + move 1 + aggression 2 + evasion 2 + intelligence 1 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + snd cultist1 + sndcombat cultist1 + sndjedi cultist1 + yawSpeed 60 + walkSpeed 45 + runSpeed 180 + health 150 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} + +cultist_saber_med2 +{ + playerModel cultist + customSkin brown + saber reborn + weapon WP_SABER + saberStyle 2 + rank ensign + FP_PUSH 1 + FP_LEVITATION 1 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + reactions 1 + aim 1 + move 1 + aggression 3 + evasion 2 + intelligence 1 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + snd cultist1 + sndcombat cultist1 + sndjedi cultist1 + yawSpeed 60 + walkSpeed 45 + runSpeed 180 + health 150 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} + +cultist_saber_med_throw2 +{ + playerModel cultist + customSkin brown + saber reborn + weapon WP_SABER + saberStyle 2 + rank ensign + FP_PUSH 1 + FP_LEVITATION 1 + FP_SABER_DEFENSE 2 + FP_SABER_OFFENSE 2 + FP_SABERTHROW 2 + reactions 1 + aim 1 + move 1 + aggression 2 + evasion 2 + intelligence 1 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + snd cultist1 + sndcombat cultist1 + sndjedi cultist1 + yawSpeed 60 + walkSpeed 45 + runSpeed 180 + health 150 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} + +cultist_saber_strong2 +{ + playerModel cultist + customSkin brown + saber reborn + weapon WP_SABER + saberStyle 3 + rank ltjg + FP_PUSH 1 + FP_LEVITATION 1 + FP_SABER_DEFENSE 2 + FP_SABER_OFFENSE 3 + reactions 1 + aim 1 + move 1 + aggression 3 + evasion 2 + intelligence 1 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + snd cultist1 + sndcombat cultist1 + sndjedi cultist1 + yawSpeed 60 + walkSpeed 45 + runSpeed 180 + health 150 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} + +cultist_saber_strong_throw2 +{ + playerModel cultist + customSkin brown + saber reborn + weapon WP_SABER + saberStyle 3 + rank ltjg + FP_PUSH 1 + FP_LEVITATION 1 + FP_SABER_DEFENSE 2 + FP_SABER_OFFENSE 3 + FP_SABERTHROW 2 + reactions 1 + aim 1 + move 1 + aggression 2 + evasion 2 + intelligence 1 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + snd cultist1 + sndcombat cultist1 + sndjedi cultist1 + yawSpeed 60 + walkSpeed 45 + runSpeed 180 + health 150 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} + +cultist_saber_all2 +{ + playerModel cultist + customSkin brown + saber reborn + weapon WP_SABER + saberStyle 1 + saberStyle 3 + saberStyle 2 + rank ltjg + FP_PUSH 1 + FP_LEVITATION 1 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + rank crewman + reactions 1 + aim 1 + move 1 + aggression 4 + evasion 2 + intelligence 1 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + snd cultist1 + sndcombat cultist1 + sndjedi cultist1 + yawSpeed 60 + walkSpeed 45 + runSpeed 180 + health 150 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} + +cultist_saber_all_throw2 +{ + playerModel cultist + customSkin brown + saber reborn + weapon WP_SABER + saberStyle 1 + saberStyle 3 + saberStyle 2 + rank ltjg + FP_PUSH 1 + FP_LEVITATION 1 + FP_SABER_DEFENSE 2 + FP_SABER_OFFENSE 3 + FP_SABERTHROW 2 + reactions 1 + aim 1 + move 1 + aggression 3 + evasion 2 + intelligence 1 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + snd cultist1 + sndcombat cultist1 + sndjedi cultist1 + yawSpeed 60 + walkSpeed 45 + runSpeed 180 + health 150 + dismemberProbHead 0 + dismemberProbArms 20 + dismemberProbLegs 0 + dismemberProbHands 30 + dismemberProbWaist 0 +} + diff --git a/base/ext_data/npcs/cultistcommando.npc b/base/ext_data/npcs/cultistcommando.npc new file mode 100644 index 0000000..fb451dc --- /dev/null +++ b/base/ext_data/npcs/cultistcommando.npc @@ -0,0 +1,31 @@ +cultistcommando +{ + playerModel cultist + weapon WP_BLASTER_PISTOL + FP_LEVITATION 2 + rank ltcomm + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 4 + intelligence 5 + hfov 160 + vfov 160 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// class CLASS_COMMANDO + class CLASS_REBORN + snd cultist3 + sndcombat cultist3 + sndextra cultist3 + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + health 250 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/gonk.npc b/base/ext_data/npcs/gonk.npc new file mode 100644 index 0000000..ad3b0fd --- /dev/null +++ b/base/ext_data/npcs/gonk.npc @@ -0,0 +1,23 @@ +gonk +{ + playerModel gonk + weapon WP_NONE + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL +// race bot + class CLASS_GONK + yawSpeed 60 + runSpeed 40 + walkSpeed 30 + height 32 + width 12 + hFOV 120 + vfov 45 + snd gonk +} \ No newline at end of file diff --git a/base/ext_data/npcs/human_merc.npc b/base/ext_data/npcs/human_merc.npc new file mode 100644 index 0000000..d7fb00b --- /dev/null +++ b/base/ext_data/npcs/human_merc.npc @@ -0,0 +1,372 @@ +human_merc +{ + playerModel human_merc + weapon WP_BLASTER + surfOff "l_arm_pocket l_arm_key" + health 100 + headPitchRangeDown 30 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_STORMTROOPER + height 64 + crouchheight 48 + walkSpeed 51 + runSpeed 200 + snd humanmerc1 + sndcombat humanmerc1 + sndextra humanmerc1 + yawspeed 70 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +human_merc_bow +{ + playerModel human_merc + surfOff "l_arm_pocket l_arm_key" + weapon WP_BOWCASTER + health 100 + headPitchRangeDown 30 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_STORMTROOPER + height 64 + crouchheight 48 + walkSpeed 51 + runSpeed 200 + snd humanmerc2 + sndcombat humanmerc2 + sndextra humanmerc2 + yawspeed 70 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +human_merc_rep +{ + playerModel human_merc + surfOff "l_arm_pocket l_arm_key" + weapon WP_REPEATER + health 100 + headPitchRangeDown 30 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_STORMTROOPER + height 64 + crouchheight 48 + walkSpeed 51 + runSpeed 200 + snd humanmerc2 + sndcombat humanmerc2 + sndextra humanmerc2 + yawspeed 70 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +human_merc_flc +{ + playerModel human_merc + surfOff "l_arm_pocket l_arm_key" + weapon WP_FLECHETTE + health 100 + headPitchRangeDown 30 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_STORMTROOPER + height 64 + crouchheight 48 + walkSpeed 51 + runSpeed 200 + snd humanmerc1 + sndcombat humanmerc1 + sndextra humanmerc1 + yawspeed 70 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +human_merc_cnc +{ + playerModel human_merc + surfOff "l_arm_pocket l_arm_key" + weapon WP_CONCUSSION + health 100 + headPitchRangeDown 30 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_STORMTROOPER + height 64 + crouchheight 48 + walkSpeed 51 + runSpeed 200 + snd humanmerc2 + sndcombat humanmerc2 + sndextra humanmerc2 + yawspeed 70 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +human_merc +{ + playerModel human_merc + surfOff "l_arm_pocket l_arm_key" + weapon WP_BLASTER + health 100 + headPitchRangeDown 30 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_STORMTROOPER + height 64 + crouchheight 48 + walkSpeed 51 + runSpeed 200 + snd st1 + sndcombat st1 + sndextra st1 + yawspeed 70 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +human_merc_bow +{ + playerModel human_merc + surfOff "l_arm_pocket l_arm_key" + weapon WP_BOWCASTER + health 100 + headPitchRangeDown 30 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_STORMTROOPER + height 64 + crouchheight 48 + walkSpeed 51 + runSpeed 200 + snd st1 + sndcombat st1 + sndextra st1 + yawspeed 70 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +human_merc_rep +{ + playerModel human_merc + surfOff "l_arm_pocket l_arm_key" + weapon WP_REPEATER + health 100 + headPitchRangeDown 30 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_STORMTROOPER + height 64 + crouchheight 48 + walkSpeed 51 + runSpeed 200 + snd st1 + sndcombat st1 + sndextra st1 + yawspeed 70 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +human_merc_flc +{ + playerModel human_merc + surfOff "l_arm_pocket l_arm_key" + weapon WP_FLECHETTE + health 100 + headPitchRangeDown 30 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_STORMTROOPER + height 64 + crouchheight 48 + walkSpeed 51 + runSpeed 200 + snd st1 + sndcombat st1 + sndextra st1 + yawspeed 70 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +lannik_racto +{ + playerModel human_merc + customSkin racto + surfOff "l_arm_pocket l_arm_key" + weapon WP_CONCUSSION + health 300 + headPitchRangeDown 30 + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 5 + intelligence 5 + rank captain + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_STORMTROOPER + height 64 + crouchheight 48 + snd lannik + sndcombat lannik + sndextra lannik + yawspeed 70 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +human_merc_key +{ + playerModel human_merc + customSkin key_carrier + weapon WP_BLASTER + health 100 + headPitchRangeDown 30 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_STORMTROOPER + height 64 + crouchheight 48 + walkSpeed 51 + runSpeed 200 + snd st1 + sndcombat st1 + sndextra st1 + yawspeed 70 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} diff --git a/base/ext_data/npcs/interrogator.npc b/base/ext_data/npcs/interrogator.npc new file mode 100644 index 0000000..554ca5e --- /dev/null +++ b/base/ext_data/npcs/interrogator.npc @@ -0,0 +1,24 @@ +interrogator +{ + playermodel interrogator + weapon WP_NONE + health 100 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race bot + class CLASS_INTERROGATOR + yawSpeed 120 + runSpeed 150 + walkSpeed 50 + height 24 + width 12 + hFOV 120 + vfov 45 + snd interrogator +} \ No newline at end of file diff --git a/base/ext_data/npcs/jawa.npc b/base/ext_data/npcs/jawa.npc new file mode 100644 index 0000000..2dc88e9 --- /dev/null +++ b/base/ext_data/npcs/jawa.npc @@ -0,0 +1,54 @@ +jawa +{ + playerModel jawa + weapon WP_NONE + scale 75 + health 10 + snd jawa + sndcombat jawa + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_FREE + class CLASS_JAWA + yawspeed 90 + walkSpeed 55 + runSpeed 150 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 1 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +jawa_armed +{ + playerModel jawa + weapon WP_JAWA + scale 75 + health 10 + snd jawa + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_FREE + class CLASS_JAWA + yawspeed 90 + walkSpeed 55 + runSpeed 100 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 1 + dismemberProbHands 20 + dismemberProbWaist 0 +} diff --git a/base/ext_data/npcs/jedi_random.npc b/base/ext_data/npcs/jedi_random.npc new file mode 100644 index 0000000..fa4b57c --- /dev/null +++ b/base/ext_data/npcs/jedi_random.npc @@ -0,0 +1,648 @@ + +jedi_hf1 +{ + playerModel jedi_hf + customSkin head_B1|torso_C1|lower_D1 +// customRGBA 255 157 114 + customRGBA jedi_hf + saber single_1 + saberColor random + weapon WP_SABER + saberStyle 1 + saberStyle 3 + saberStyle 2 + FP_HEAL 1 + FP_LEVITATION 2 + FP_SPEED 2 + FP_PUSH 2 + FP_PULL 1 + FP_TELEPATHY 1 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_RAGE 0 + FP_PROTECT 1 + FP_ABSORB 1 + FP_DRAIN 0 + FP_SEE 1 + FP_SABERTHROW 2 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + forceRegenRate 150 + forcePowerMax 90 + rank lt + reactions 3 + aim 3 + move 3 + aggression 3 + evasion 2 + intelligence 3 + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + class CLASS_JEDI + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + sex female + snd female_jedi1 + sndcombat female_jedi1 + sndjedi female_jedi1 + health 200 + dismemberProbHead 0 + dismemberProbArms 5 + dismemberProbLegs 0 + dismemberProbHands 10 + dismemberProbWaist 0 +} + +jedi_hf2 +{ + playerModel jedi_hf + customSkin head_C1|torso_A1|lower_B1 +// customRGBA 233 183 208 + customRGBA jedi_hf + saber single_2 + saberColor random + weapon WP_SABER + saberStyle 1 + saberStyle 3 + saberStyle 2 + FP_HEAL 1 + FP_LEVITATION 2 + FP_SPEED 2 + FP_PUSH 2 + FP_PULL 1 + FP_TELEPATHY 1 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_RAGE 0 + FP_PROTECT 1 + FP_ABSORB 1 + FP_DRAIN 0 + FP_SEE 1 + FP_SABERTHROW 2 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + forceRegenRate 150 + forcePowerMax 90 + rank lt + reactions 3 + aim 3 + move 3 + aggression 3 + evasion 2 + intelligence 3 + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + class CLASS_JEDI + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + sex female + snd female_jedi1 + sndcombat female_jedi1 + sndjedi female_jedi1 + health 200 + dismemberProbHead 0 + dismemberProbArms 5 + dismemberProbLegs 0 + dismemberProbHands 10 + dismemberProbWaist 0 +} + +jedi_hm1 +{ + playerModel jedi_hm + customSkin head_A1|torso_A1|lower_B1 +// customRGBA 112 153 161 + customRGBA jedi_hm + saber single_3 + saberColor random + weapon WP_SABER + saberStyle 1 + saberStyle 3 + saberStyle 2 + FP_HEAL 1 + FP_LEVITATION 2 + FP_SPEED 2 + FP_PUSH 2 + FP_PULL 1 + FP_TELEPATHY 1 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_RAGE 0 + FP_PROTECT 1 + FP_ABSORB 1 + FP_DRAIN 0 + FP_SEE 1 + FP_SABERTHROW 2 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + forceRegenRate 150 + forcePowerMax 90 + rank lt + reactions 3 + aim 3 + move 3 + aggression 3 + evasion 2 + intelligence 3 + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + class 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 +} + +jedi_hm2 +{ + playerModel jedi_hm + customSkin head_B1|torso_C1|lower_A1 +// customRGBA 254 197 73 + customRGBA jedi_hm + saber single_4 + saberColor random + weapon WP_SABER + saberStyle 1 + saberStyle 3 + saberStyle 2 + FP_HEAL 1 + FP_LEVITATION 2 + FP_SPEED 2 + FP_PUSH 2 + FP_PULL 1 + FP_TELEPATHY 1 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_RAGE 0 + FP_PROTECT 1 + FP_ABSORB 1 + FP_DRAIN 0 + FP_SEE 1 + FP_SABERTHROW 2 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + forceRegenRate 150 + forcePowerMax 90 + rank lt + reactions 3 + aim 3 + move 3 + aggression 3 + evasion 2 + intelligence 3 + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + class 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 +} + +jedi_kdm1 +{ + playerModel jedi_kdm + customSkin head_B1|torso_D1|lower_C1 +// customRGBA 138 83 0 + customRGBA jedi_kdm + saber dual_3 + saberColor random + weapon WP_SABER + saberStyle 7 + FP_HEAL 1 + FP_LEVITATION 2 + FP_SPEED 1 + FP_PUSH 2 + FP_PULL 1 + FP_TELEPATHY 1 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_RAGE 0 + FP_PROTECT 1 + FP_ABSORB 1 + FP_DRAIN 0 + FP_SEE 1 + FP_SABERTHROW 0 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + forceRegenRate 150 + forcePowerMax 90 + rank lt + reactions 3 + aim 3 + move 3 + aggression 3 + evasion 2 + intelligence 3 + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + class 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 +} + +jedi_kdm2 +{ + playerModel jedi_kdm + customSkin head_C1|torso_B1|lower_B1 +// customRGBA 225 226 144 + customRGBA jedi_kdm + saber single_5 + saberColor random + weapon WP_SABER + saberStyle 2 + saberStyle 3 + FP_HEAL 2 + FP_LEVITATION 2 + FP_SPEED 2 + FP_PUSH 2 + FP_PULL 3 + FP_TELEPATHY 1 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_RAGE 0 + FP_PROTECT 2 + FP_ABSORB 2 + FP_DRAIN 0 + FP_SEE 1 + FP_SABERTHROW 2 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + forceRegenRate 150 + forcePowerMax 90 + rank lt + reactions 3 + aim 3 + move 3 + aggression 3 + evasion 2 + intelligence 3 + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + class 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 +} + +jedi_rm1 +{ + playerModel jedi_rm + customSkin head_A1|torso_A1|lower_A1 +// customRGBA 163 79 17 + customRGBA jedi_rm + saber single_6 + saberColor random + weapon WP_SABER + saberStyle 2 + saberStyle 1 + FP_HEAL 1 + FP_LEVITATION 3 + FP_SPEED 3 + FP_PUSH 2 + FP_PULL 1 + FP_TELEPATHY 1 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_RAGE 0 + FP_PROTECT 1 + FP_ABSORB 2 + FP_DRAIN 0 + FP_SEE 1 + FP_SABERTHROW 2 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + forceRegenRate 150 + forcePowerMax 90 + rank lt + reactions 3 + aim 3 + move 3 + aggression 3 + evasion 2 + intelligence 3 + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + class 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 +} + +jedi_rm2 +{ + playerModel jedi_rm + customSkin head_B1|torso_B1|lower_C1 +// customRGBA 49 155 131 + customRGBA jedi_rm + saber single_7 + saberColor random + weapon WP_SABER + saberStyle 2 + saberStyle 1 + FP_HEAL 2 + FP_LEVITATION 3 + FP_SPEED 3 + FP_PUSH 2 + FP_PULL 1 + FP_TELEPATHY 1 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_RAGE 0 + FP_PROTECT 2 + FP_ABSORB 1 + FP_DRAIN 0 + FP_SEE 1 + FP_SABERTHROW 2 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + forceRegenRate 150 + forcePowerMax 90 + rank lt + reactions 3 + aim 3 + move 3 + aggression 3 + evasion 2 + intelligence 3 + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + class 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 +} + +jedi_tf1 +{ + playerModel jedi_tf + customSkin head_A1|torso_A1|lower_D1 +// customRGBA 255 200 212 + customRGBA jedi_tf + saber dual_5 + saberColor random + weapon WP_SABER + saberStyle 7 + FP_HEAL 1 + FP_LEVITATION 2 + FP_SPEED 2 + FP_PUSH 2 + FP_PULL 1 + FP_TELEPATHY 1 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_RAGE 0 + FP_PROTECT 1 + FP_ABSORB 1 + FP_DRAIN 0 + FP_SEE 1 + FP_SABERTHROW 0 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + forceRegenRate 150 + forcePowerMax 90 + rank lt + reactions 3 + aim 3 + move 3 + aggression 3 + evasion 2 + intelligence 3 + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + class CLASS_JEDI + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + sex female + snd female_jedi2 + sndcombat female_jedi2 + sndjedi female_jedi2 + health 200 + dismemberProbHead 0 + dismemberProbArms 5 + dismemberProbLegs 0 + dismemberProbHands 10 + dismemberProbWaist 0 +} + +jedi_tf2 +{ + playerModel jedi_tf + customSkin head_B2|torso_C1|lower_C1 +// customRGBA 255 255 255 + customRGBA jedi_tf + saber single_8 + saberColor random + weapon WP_SABER + saberStyle 1 + saberStyle 2 + FP_HEAL 2 + FP_LEVITATION 3 + FP_SPEED 3 + FP_PUSH 2 + FP_PULL 2 + FP_TELEPATHY 1 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_RAGE 0 + FP_PROTECT 2 + FP_ABSORB 1 + FP_DRAIN 0 + FP_SEE 1 + FP_SABERTHROW 2 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + forceRegenRate 150 + forcePowerMax 90 + rank lt + reactions 3 + aim 3 + move 3 + aggression 3 + evasion 2 + intelligence 3 + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + class CLASS_JEDI + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + sex female + snd female_jedi2 + sndcombat female_jedi2 + sndjedi female_jedi2 + health 200 + dismemberProbHead 0 + dismemberProbArms 5 + dismemberProbLegs 0 + dismemberProbHands 10 + dismemberProbWaist 0 +} + +jedi_zf1 +{ + playerModel jedi_zf + customSkin head_B1|torso_A1|lower_D1 +// customRGBA 255 164 59 + customRGBA jedi_zf + saber single_9 + saberColor random + weapon WP_SABER + saberStyle 1 + saberStyle 3 + saberStyle 2 + FP_HEAL 1 + FP_LEVITATION 2 + FP_SPEED 2 + FP_PUSH 2 + FP_PULL 1 + FP_TELEPATHY 1 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_RAGE 0 + FP_PROTECT 1 + FP_ABSORB 1 + FP_DRAIN 0 + FP_SEE 1 + FP_SABERTHROW 2 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + forceRegenRate 150 + forcePowerMax 90 + rank lt + reactions 3 + aim 3 + move 3 + aggression 3 + evasion 2 + intelligence 3 + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + class CLASS_JEDI + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + sex female + snd female_jedi2 + sndcombat female_jedi2 + sndjedi female_jedi2 + health 200 + dismemberProbHead 0 + dismemberProbArms 5 + dismemberProbLegs 0 + dismemberProbHands 10 + dismemberProbWaist 0 +} + +jedi_zf2 +{ + playerModel jedi_zf + customSkin head_C1|torso_C1|lower_B1 +// customRGBA 161 226 240 + customRGBA jedi_zf + saber single_9 + saber2 single_1 + saberColor random + saber2Color random + weapon WP_SABER + saberStyle 6 + FP_HEAL 1 + FP_LEVITATION 2 + FP_SPEED 2 + FP_PUSH 2 + FP_PULL 1 + FP_TELEPATHY 1 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_RAGE 0 + FP_PROTECT 1 + FP_ABSORB 1 + FP_DRAIN 0 + FP_SEE 1 + FP_SABERTHROW 2 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + forceRegenRate 150 + forcePowerMax 90 + rank lt + reactions 3 + aim 3 + move 3 + aggression 3 + evasion 2 + intelligence 3 + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + class CLASS_JEDI + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + sex female + snd female_jedi1 + sndcombat female_jedi1 + sndjedi female_jedi1 + health 200 + dismemberProbHead 0 + dismemberProbArms 5 + dismemberProbLegs 0 + dismemberProbHands 10 + dismemberProbWaist 0 +} + + diff --git a/base/ext_data/npcs/lambdashuttle.npc b/base/ext_data/npcs/lambdashuttle.npc new file mode 100644 index 0000000..af433f5 --- /dev/null +++ b/base/ext_data/npcs/lambdashuttle.npc @@ -0,0 +1,12 @@ + +//NOTE: for vehicle-class NPCs, the playerModel key is actually their entry in the vehicles.dat + +LambdaShuttle +{ + weapon WP_NONE + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL + class CLASS_VEHICLE + width 250 + height 248 +} diff --git a/base/ext_data/npcs/mark1.npc b/base/ext_data/npcs/mark1.npc new file mode 100644 index 0000000..13f3d26 --- /dev/null +++ b/base/ext_data/npcs/mark1.npc @@ -0,0 +1,24 @@ +mark1 +{ + playerModel mark1 + weapon WP_BOT_LASER + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + height 120 + width 36 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + health 300 +// race bot + class CLASS_MARK1 + yawSpeed 60 + runSpeed 150 + walkSpeed 70 + hFOV 120 + vfov 45 + snd mark1 +} \ No newline at end of file diff --git a/base/ext_data/npcs/mark2.npc b/base/ext_data/npcs/mark2.npc new file mode 100644 index 0000000..b068136 --- /dev/null +++ b/base/ext_data/npcs/mark2.npc @@ -0,0 +1,21 @@ +mark2 +{ + playerModel mark2 + weapon WP_BOT_LASER + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race bot + class CLASS_MARK2 + yawSpeed 60 + runSpeed 150 + walkSpeed 75 + hFOV 120 + vfov 45 + snd mark2 +} \ No newline at end of file diff --git a/base/ext_data/npcs/mouse.npc b/base/ext_data/npcs/mouse.npc new file mode 100644 index 0000000..316c361 --- /dev/null +++ b/base/ext_data/npcs/mouse.npc @@ -0,0 +1,25 @@ +mouse +{ + headmodel none + torsomodel none + legsmodel mouse + weapon WP_NONE + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL +// race bot + class CLASS_MOUSE + yawSpeed 120 + runSpeed 500 + walkSpeed 150 + height 16 + width 8 + hFOV 120 + vfov 45 + snd mouse +} \ No newline at end of file diff --git a/base/ext_data/npcs/nullDriver.npc b/base/ext_data/npcs/nullDriver.npc new file mode 100644 index 0000000..8577d3b --- /dev/null +++ b/base/ext_data/npcs/nullDriver.npc @@ -0,0 +1,10 @@ + +nullDriver +{ + playerModel kyle + weapon WP_NONE + playerTeam neutral + enemyTeam neutral + class kyle +} + diff --git a/base/ext_data/npcs/player.npc b/base/ext_data/npcs/player.npc new file mode 100644 index 0000000..1a80b65 --- /dev/null +++ b/base/ext_data/npcs/player.npc @@ -0,0 +1,7 @@ + +Player +{ + playerModel player + class CLASS_PLAYER +} + diff --git a/base/ext_data/npcs/probe.npc b/base/ext_data/npcs/probe.npc new file mode 100644 index 0000000..b419387 --- /dev/null +++ b/base/ext_data/npcs/probe.npc @@ -0,0 +1,33 @@ +probe +{ + playerModel probe + weapon WP_BOT_LASER + 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 TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race bot + class CLASS_PROBE + yawSpeed 60 + runSpeed 150 + walkSpeed 50 + height 110 + width 24 + hFOV 120 + vfov 45 + snd probe + moveType "flyswim" +} \ No newline at end of file diff --git a/base/ext_data/npcs/protocol.npc b/base/ext_data/npcs/protocol.npc new file mode 100644 index 0000000..befd1c1 --- /dev/null +++ b/base/ext_data/npcs/protocol.npc @@ -0,0 +1,24 @@ +protocol +{ + playerModel protocol + weapon WP_NONE + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL +// race bot + class CLASS_PROTOCOL + snd protocol + yawSpeed 60 + runSpeed 150 + walkSpeed 50 + height 65 + width 12 + hFOV 120 + vfov 45 + snd protocol +} \ No newline at end of file diff --git a/base/ext_data/npcs/protocol_imp.npc b/base/ext_data/npcs/protocol_imp.npc new file mode 100644 index 0000000..e5708f8 --- /dev/null +++ b/base/ext_data/npcs/protocol_imp.npc @@ -0,0 +1,27 @@ +protocol_imp +{ + playerModel protocol + weapon WP_NONE + surfOn head_off + surfOff head + customSkin imp + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL +// race bot + class CLASS_PROTOCOL + snd protocol + yawSpeed 60 + runSpeed 150 + walkSpeed 50 + height 65 + width 12 + hFOV 120 + vfov 45 + snd protocol +} \ No newline at end of file diff --git a/base/ext_data/npcs/r2d2.npc b/base/ext_data/npcs/r2d2.npc new file mode 100644 index 0000000..9a091b1 --- /dev/null +++ b/base/ext_data/npcs/r2d2.npc @@ -0,0 +1,31 @@ +r2d2 +{ + playermodel r2d2 + weapon WP_NONE + 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 TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL +// race bot + class CLASS_R2D2 + yawSpeed 120 + runSpeed 150 + walkSpeed 50 + height 40 + width 12 + hFOV 120 + vfov 45 + snd r2d2 +} \ No newline at end of file diff --git a/base/ext_data/npcs/r2d2_imp.npc b/base/ext_data/npcs/r2d2_imp.npc new file mode 100644 index 0000000..43fbd3d --- /dev/null +++ b/base/ext_data/npcs/r2d2_imp.npc @@ -0,0 +1,32 @@ +r2d2_imp +{ + playermodel r2d2 + weapon WP_NONE + 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 TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL +// race bot + class CLASS_R2D2 + yawSpeed 120 + runSpeed 150 + walkSpeed 50 + height 40 + width 12 + hFOV 120 + vfov 45 + snd r2d2 +} \ No newline at end of file diff --git a/base/ext_data/npcs/r5d2.npc b/base/ext_data/npcs/r5d2.npc new file mode 100644 index 0000000..c69cb08 --- /dev/null +++ b/base/ext_data/npcs/r5d2.npc @@ -0,0 +1,31 @@ +r5d2 +{ + playerModel r5d2 + weapon WP_NONE + 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 TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL +// race bot + class CLASS_R5D2 + yawSpeed 60 + runSpeed 150 + walkSpeed 50 + height 40 + width 12 + hFOV 120 + vfov 45 + snd r5d2 +} \ No newline at end of file diff --git a/base/ext_data/npcs/r5d2_imp.npc b/base/ext_data/npcs/r5d2_imp.npc new file mode 100644 index 0000000..6a2909a --- /dev/null +++ b/base/ext_data/npcs/r5d2_imp.npc @@ -0,0 +1,33 @@ +r5d2_imp +{ + playerModel r5d2 + weapon WP_NONE +//oops, guess they never made this skin... +// 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 TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL +// race bot + class CLASS_R5D2 + yawSpeed 60 + runSpeed 150 + walkSpeed 50 + height 40 + width 12 + hFOV 120 + vfov 45 + snd r5d2 +} \ No newline at end of file diff --git a/base/ext_data/npcs/rancor.npc b/base/ext_data/npcs/rancor.npc new file mode 100644 index 0000000..8893a6e --- /dev/null +++ b/base/ext_data/npcs/rancor.npc @@ -0,0 +1,70 @@ + +rancor +{ + playerModel rancor + weapon WP_MELEE + health 2000 + headPitchRangeDown 30 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_FREE + enemyTeam TEAM_FREE + class CLASS_RANCOR + height 160 + crouchheight 128 + width 60 + snd rancor + sndcombat rancor + sndextra rancor + yawspeed 40 +// walkSpeed 173 +// runSpeed 173 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 0 + dismemberProbLegs 0 + dismemberProbHands 0 + dismemberProbWaist 0 +} + +mutant_rancor +{ + playerModel mutant_rancor + weapon WP_MELEE + health 10000 + headPitchRangeDown 30 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_FREE + enemyTeam TEAM_FREE + class CLASS_RANCOR + scale 200 + height 350 + crouchheight 350 + width 120 + snd mutant_rancor + sndcombat mutant_rancor + sndextra mutant_rancor + yawspeed 40 +// walkSpeed 173 +// runSpeed 173 + walkSpeed 110 + runSpeed 400 + dismemberProbHead 0 + dismemberProbArms 0 + dismemberProbLegs 0 + dismemberProbHands 0 + dismemberProbWaist 0 +} + diff --git a/base/ext_data/npcs/rancor_vehicle.npc b/base/ext_data/npcs/rancor_vehicle.npc new file mode 100644 index 0000000..3b2cf27 --- /dev/null +++ b/base/ext_data/npcs/rancor_vehicle.npc @@ -0,0 +1,14 @@ + +//NOTE: for vehicle-class NPCs, the playerModel key is actually their entry in the vehicles.dat + +Rancor_vehicle +{ + weapon WP_NONE + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL + class CLASS_VEHICLE + snd rancor + height 128 + crouchheight 128 + width 60 +} diff --git a/base/ext_data/npcs/remote.npc b/base/ext_data/npcs/remote.npc new file mode 100644 index 0000000..e2bfa06 --- /dev/null +++ b/base/ext_data/npcs/remote.npc @@ -0,0 +1,53 @@ +remote +{ +// headmodel none +// torsomodel none +// legsmodel remote + playerModel remote + weapon WP_BOT_LASER + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 3 + intelligence 5 + playerTeam TEAM_FREE + enemyTeam TEAM_FREE + class CLASS_SEEKER + yawSpeed 120 + runSpeed 500 + walkSpeed 150 + height 32 + width 8 + hFOV 160 + vfov 45 + snd remote + moveType "flyswim" +} + +remote_sp +{ + headmodel none + torsomodel none + legsmodel remote_sp + weapon WP_BOT_LASER + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 3 + intelligence 5 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race bot + class CLASS_REMOTE + yawSpeed 120 + runSpeed 500 + walkSpeed 150 + height 32 + width 8 + hFOV 160 + vfov 45 + snd remote + moveType "flyswim" +} diff --git a/base/ext_data/npcs/rockettrooper2.npc b/base/ext_data/npcs/rockettrooper2.npc new file mode 100644 index 0000000..3197583 --- /dev/null +++ b/base/ext_data/npcs/rockettrooper2.npc @@ -0,0 +1,71 @@ +RocketTrooper2 +{ + playerModel rockettrooper + weapon WP_ROCKET_LAUNCHER + health 200 + headPitchRangeDown 30 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_ROCKETTROOPER + height 72 + crouchheight 48 + walkSpeed 51 + runSpeed 200 + snd st1 + sndcombat st1 + sndextra st1 + walkSpeed 55 + runSpeed 150 + yawspeed 50 + visrange 2048 + earshot 2048 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +RocketTrooper2Officer +{ + playerModel rockettrooper + weapon WP_REPEATER + health 400 + headPitchRangeDown 30 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank lt + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_ROCKETTROOPER + height 72 + crouchheight 48 + walkSpeed 51 + runSpeed 200 + snd st1 + sndcombat st1 + sndextra st1 + walkSpeed 55 + runSpeed 200 + yawspeed 50 + hfov 60 + vfov 80 + visrange 2048 + earshot 2048 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} diff --git a/base/ext_data/npcs/rockettrooper_w.npc b/base/ext_data/npcs/rockettrooper_w.npc new file mode 100644 index 0000000..46425bf --- /dev/null +++ b/base/ext_data/npcs/rockettrooper_w.npc @@ -0,0 +1,35 @@ + +RocketTrooper_ver1 +{ + playerModel stormtrooper + weapon WP_BLASTER + health 30 + headPitchRangeDown 30 + reactions 3 + aim 5 + move 3 + aggression 3 + scaley 130 + scalex 120 + evasion 1 + intelligence 5 + rank crewman + playerTeam enemy + enemyTeam player + class stormtrooper + height 64 + crouchheight 48 + walkSpeed 51 + runSpeed 200 + snd st1 + sndcombat st1 + sndextra st1 + yawspeed 70 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} diff --git a/base/ext_data/npcs/rocks.npc b/base/ext_data/npcs/rocks.npc new file mode 100644 index 0000000..f396b6c --- /dev/null +++ b/base/ext_data/npcs/rocks.npc @@ -0,0 +1,28 @@ +rocks +{ + playerModel rocks + weapon WP_NONE + scale 100 + health 100 + snd jawa + sndcombat jawa + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_FREE + class CLASS_KYLE + yawspeed 90 + walkSpeed 55 + runSpeed 150 + dismemberProbHead 0 + dismemberProbArms 0 + dismemberProbLegs 0 + dismemberProbHands 0 + dismemberProbWaist 0 +} + diff --git a/base/ext_data/npcs/rosh_penin.npc b/base/ext_data/npcs/rosh_penin.npc new file mode 100644 index 0000000..5e5e67d --- /dev/null +++ b/base/ext_data/npcs/rosh_penin.npc @@ -0,0 +1,124 @@ +rosh_penin_noforce +{ + playerModel rosh_penin + weapon WP_MELEE + FP_HEAL 0 + FP_LEVITATION 0 + FP_SPEED 0 + FP_PUSH 0 + FP_PULL 1 + FP_TELEPATHY 0 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_RAGE 0 + FP_PROTECT 0 + FP_ABSORB 0 + FP_DRAIN 0 + FP_SEE 0 + FP_SABERTHROW 0 + FP_SABER_DEFENSE 0 + FP_SABER_OFFENSE 0 + rank crewman + reactions 1 + aim 1 + move 1 + aggression 1 + evasion 1 + intelligence 1 + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + class CLASS_REBEL + snd rosh + sndcombat rosh + sndjedi rosh + dismemberProbHead 0 + dismemberProbArms 0 + dismemberProbHands 0 + dismemberProbLegs 0 + dismemberProbWaist 0 +} + +rosh_penin +{ + playerModel rosh_penin + saber training + weapon WP_SABER + saberStyle 3 + FP_HEAL 0 + FP_LEVITATION 3 + FP_SPEED 3 + FP_PUSH 2 + FP_PULL 3 + FP_TELEPATHY 0 + FP_GRIP 0 + FP_LIGHTNING 0 + FP_RAGE 0 + FP_PROTECT 0 + FP_ABSORB 0 + FP_DRAIN 0 + FP_SEE 0 + FP_SABERTHROW 2 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + rank lt + reactions 2 + aim 2 + move 3 + aggression 5 + evasion 3 + intelligence 2 + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY + class CLASS_JEDI + snd rosh + sndcombat rosh + sndjedi rosh + dismemberProbHead 0 + dismemberProbArms 0 + dismemberProbHands 0 + dismemberProbLegs 0 + dismemberProbWaist 0 +} + +rosh_dark +{ + playerModel rosh_penin + saber shadowtrooper + weapon WP_SABER + saberStyle 3 + health 500 + FP_HEAL 0 + FP_LEVITATION 2 + FP_SPEED 2 + FP_PUSH 2 + FP_PULL 2 + FP_TELEPATHY 0 + FP_GRIP 2 + FP_LIGHTNING 1 + FP_RAGE 1 + FP_PROTECT 1 + FP_ABSORB 1 + FP_DRAIN 0 + FP_SEE 0 + FP_SABERTHROW 2 + FP_SABER_DEFENSE 2 + FP_SABER_OFFENSE 2 + rank lt + reactions 2 + aim 2 + move 3 + aggression 5 + evasion 3 + intelligence 2 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_REBORN + snd rosh_boss + sndcombat rosh_boss + sndjedi rosh_boss + dismemberProbHead 0 + dismemberProbArms 0 + dismemberProbHands 0 + dismemberProbLegs 0 + dismemberProbWaist 0 +} diff --git a/base/ext_data/npcs/saber_droid.npc b/base/ext_data/npcs/saber_droid.npc new file mode 100644 index 0000000..2b42d9f --- /dev/null +++ b/base/ext_data/npcs/saber_droid.npc @@ -0,0 +1,66 @@ +saber_droid_training +{ + playerModel saber_droid + saber droid + weapon WP_SABER + saberStyle 1 + FP_SABER_DEFENSE 1 + FP_SABER_OFFENSE 1 + reactions 1 + aim 1 + move 1 + aggression 1 + evasion 1 + intelligence 1 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_SABER_DROID + snd saber_droid + sndcombat saber_droid + sndjedi saber_droid + yawSpeed 100 + walkSpeed 60 + runSpeed 200 + health 50 + dismemberProbHead 100 + dismemberProbArms 100 + dismemberProbLegs 100 + dismemberProbHands 100 + dismemberProbWaist 100 +} + +saber_droid +{ + playerModel saber_droid + saber droid + weapon WP_SABER + saberStyle 1 + FP_SABER_DEFENSE 3 + FP_SABER_OFFENSE 3 + rank ensign + reactions 1 + aim 1 + move 1 + aggression 1 + evasion 1 + intelligence 1 + hfov 120 + vfov 120 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_SABER_DROID + snd saber_droid + sndcombat saber_droid + sndjedi saber_droid + yawSpeed 100 + walkSpeed 60 + runSpeed 200 + health 300 + dismemberProbHead 100 + dismemberProbArms 100 + dismemberProbLegs 100 + dismemberProbHands 100 + dismemberProbWaist 100 +} diff --git a/base/ext_data/npcs/saboteur.npc b/base/ext_data/npcs/saboteur.npc new file mode 100644 index 0000000..96b71b9 --- /dev/null +++ b/base/ext_data/npcs/saboteur.npc @@ -0,0 +1,61 @@ +saboteur +{ + playerModel saboteur + weapon WP_BLASTER_RIFLE + altFire 1 + rank crewman + reactions 5 + aim 3 + move 5 + aggression 5 + evasion 4 + intelligence 5 + hfov 160 + vfov 160 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_SABOTEUR + snd sab1 + sndcombat sab1 + sndextra sab1 + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + health 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} + +saboteurcommando +{ + playerModel saboteur + weapon WP_BLASTER_RIFLE + altFire 1 + rank crewman + reactions 5 + aim 3 + move 5 + aggression 5 + evasion 4 + intelligence 5 + hfov 160 + vfov 160 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_SABOTEUR + snd sab2 + sndcombat sab2 + sndextra sab2 + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + health 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} diff --git a/base/ext_data/npcs/saboteurpistol.npc b/base/ext_data/npcs/saboteurpistol.npc new file mode 100644 index 0000000..d5b5511 --- /dev/null +++ b/base/ext_data/npcs/saboteurpistol.npc @@ -0,0 +1,29 @@ +saboteurpistol +{ + playerModel saboteur + weapon WP_BLASTER_PISTOL + rank ltjg + reactions 5 + aim 4 + move 5 + aggression 5 + evasion 4 + intelligence 5 + hfov 160 + vfov 160 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_SABOTEUR + snd sab1 + sndcombat sab1 + sndextra sab1 + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + health 100 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/saboteursniper.npc b/base/ext_data/npcs/saboteursniper.npc new file mode 100644 index 0000000..5cc7adb --- /dev/null +++ b/base/ext_data/npcs/saboteursniper.npc @@ -0,0 +1,30 @@ +saboteursniper +{ + playerModel saboteur + weapon WP_DISRUPTOR + altFire 1 + rank crewman + reactions 5 + aim 5 + move 5 + aggression 5 + evasion 4 + intelligence 5 + hfov 160 + vfov 160 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_SABOTEUR + snd sab2 + sndcombat sab2 + sndextra sab2 + yawSpeed 140 + walkSpeed 55 + runSpeed 200 + health 100 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/sand_creature.npc b/base/ext_data/npcs/sand_creature.npc new file mode 100644 index 0000000..37daee8 --- /dev/null +++ b/base/ext_data/npcs/sand_creature.npc @@ -0,0 +1,48 @@ +sand_creature +{ + playermodel sand_creature + weapon WP_NONE +// health 500 + health 150 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + playerTeam TEAM_FREE + enemyTeam TEAM_FREE + class CLASS_SAND_CREATURE + yawSpeed 120 + runSpeed 300 + walkSpeed 125 + height 24 + width 48 + hFOV 120 + vfov 45 + snd sand_creature +} + +sand_creature_fast +{ + playermodel sand_creature + weapon WP_NONE + health 500 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + playerTeam TEAM_FREE + enemyTeam TEAM_FREE + class CLASS_SAND_CREATURE + yawSpeed 120 + runSpeed 400 + walkSpeed 400 + height 24 + width 48 + hFOV 120 + vfov 45 + snd sand_creature +} diff --git a/base/ext_data/npcs/seeker.npc b/base/ext_data/npcs/seeker.npc new file mode 100644 index 0000000..8c2e929 --- /dev/null +++ b/base/ext_data/npcs/seeker.npc @@ -0,0 +1,26 @@ +seeker +{ + headmodel none + torsomodel none + legsmodel remote + weapon WP_BOT_LASER + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 3 + intelligence 5 + playerTeam TEAM_PLAYER + enemyTeam TEAM_ENEMY +// race bot + class CLASS_SEEKER + yawSpeed 120 + runSpeed 500 + walkSpeed 150 + height 32 + width 8 + hFOV 160 + vfov 45 + snd remote + moveType "flyswim" +} \ No newline at end of file diff --git a/base/ext_data/npcs/sentry.npc b/base/ext_data/npcs/sentry.npc new file mode 100644 index 0000000..c070b51 --- /dev/null +++ b/base/ext_data/npcs/sentry.npc @@ -0,0 +1,25 @@ +sentry +{ + playermodel sentry + weapon WP_NONE + health 100 + reactions 3 + aim 3 + move 3 + aggression 3 + evasion 1 + intelligence 5 + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER +// race bot + class CLASS_SENTRY + health 150 + yawSpeed 120 + runSpeed 400 + walkSpeed 250 + height 48 + width 24 + hFOV 120 + vfov 160 + snd sentry +} \ No newline at end of file diff --git a/base/ext_data/npcs/snowtrooper.npc b/base/ext_data/npcs/snowtrooper.npc new file mode 100644 index 0000000..8432af0 --- /dev/null +++ b/base/ext_data/npcs/snowtrooper.npc @@ -0,0 +1,33 @@ + +SnowTrooper +{ + playerModel snowtrooper + weapon WP_BLASTER + health 30 + headPitchRangeDown 30 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_STORMTROOPER + height 64 + crouchheight 48 + walkSpeed 51 + runSpeed 200 + snd st1 + sndcombat st1 + sndextra st1 + yawspeed 70 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 0 + dismemberProbHands 20 + dismemberProbWaist 0 +} diff --git a/base/ext_data/npcs/swoop.npc b/base/ext_data/npcs/swoop.npc new file mode 100644 index 0000000..d8b6be9 --- /dev/null +++ b/base/ext_data/npcs/swoop.npc @@ -0,0 +1,115 @@ + +//NOTE: for vehicle-class NPCs, the playerModel key is actually their entry in the vehicles.dat + +Swoop +{ + weapon WP_BLASTER + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL + class CLASS_VEHICLE + width 24 + height 32 +} + +Swoop_black +{ + weapon WP_BLASTER + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL + class CLASS_VEHICLE + width 24 + height 32 +} + +Swoop_blue +{ + weapon WP_BLASTER + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL + class CLASS_VEHICLE + width 24 + height 32 +} + +Swoop_gold +{ + weapon WP_BLASTER + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL + class CLASS_VEHICLE + width 24 + height 32 +} + +Swoop_green +{ + weapon WP_BLASTER + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL + class CLASS_VEHICLE + width 24 + height 32 +} + +Swoop_purple +{ + weapon WP_BLASTER + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL + class CLASS_VEHICLE + width 24 + height 32 +} + +Swoop_red +{ + weapon WP_BLASTER + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL + class CLASS_VEHICLE + width 24 + height 32 +} + +Swoop_silver +{ + weapon WP_BLASTER + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL + class CLASS_VEHICLE + width 24 + height 32 +} + +Swoop_cin +{ + weapon WP_BLASTER + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL + class CLASS_VEHICLE + width 24 + height 32 +} + +swoop_mp +{ + weapon WP_BLASTER + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL + class CLASS_VEHICLE + width 24 + height 32 +} + +swoop_mp2 +{ + weapon WP_BLASTER + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL + class CLASS_VEHICLE + width 24 + height 32 +} + + + diff --git a/base/ext_data/npcs/tauntaun.npc b/base/ext_data/npcs/tauntaun.npc new file mode 100644 index 0000000..7d327b5 --- /dev/null +++ b/base/ext_data/npcs/tauntaun.npc @@ -0,0 +1,11 @@ + +//NOTE: for vehicle-class NPCs, the playerModel key is actually their entry in the vehicles.dat + +Tauntaun +{ + weapon WP_NONE + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL + class CLASS_VEHICLE + snd tauntaun +} diff --git a/base/ext_data/npcs/test.npc b/base/ext_data/npcs/test.npc new file mode 100644 index 0000000..c736e96 --- /dev/null +++ b/base/ext_data/npcs/test.npc @@ -0,0 +1,8 @@ +test +{ + playerModel test + weapon WP_NONE + playerTeam TEAM_PLAYER + enemyTeam TEAM_NEUTRAL + class CLASS_KYLE +} \ No newline at end of file diff --git a/base/ext_data/npcs/tie-bomber.npc b/base/ext_data/npcs/tie-bomber.npc new file mode 100644 index 0000000..38b1500 --- /dev/null +++ b/base/ext_data/npcs/tie-bomber.npc @@ -0,0 +1,19 @@ +//NOTE: for vehicle-class NPCs, the playerModel key is actually their entry in the vehicles.dat + +tie-bomber +{ + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL + class CLASS_VEHICLE + width 200 + height 256 +} + +tie-bomber2 +{ + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL + class CLASS_VEHICLE + width 200 + height 256 +} diff --git a/base/ext_data/npcs/tie-fighter.npc b/base/ext_data/npcs/tie-fighter.npc new file mode 100644 index 0000000..00e4f51 --- /dev/null +++ b/base/ext_data/npcs/tie-fighter.npc @@ -0,0 +1,11 @@ + +//NOTE: for vehicle-class NPCs, the playerModel key is actually their entry in the vehicles.dat + +tie-fighter +{ + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL + class CLASS_VEHICLE + width 140 + height 300 +} diff --git a/base/ext_data/npcs/tusken.npc b/base/ext_data/npcs/tusken.npc new file mode 100644 index 0000000..7539204 --- /dev/null +++ b/base/ext_data/npcs/tusken.npc @@ -0,0 +1,27 @@ +tusken +{ + playerModel tusken + weapon WP_TUSKEN_STAFF + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + health 50 + rank crewman + playerTeam TEAM_FREE + enemyTeam TEAM_FREE + class CLASS_TUSKEN + snd tusken + sndcombat tusken + sndextra tusken + yawspeed 90 + walkSpeed 55 + runSpeed 200 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 1 + dismemberProbHands 20 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/tuskensniper.npc b/base/ext_data/npcs/tuskensniper.npc new file mode 100644 index 0000000..efdd260 --- /dev/null +++ b/base/ext_data/npcs/tuskensniper.npc @@ -0,0 +1,29 @@ +tuskensniper +{ + playerModel tusken + weapon WP_TUSKEN_RIFLE + altFire 1 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + health 50 + rank crewman + playerTeam TEAM_ENEMY + enemyTeam TEAM_PLAYER + class CLASS_TUSKEN + snd tusken + sndcombat tusken + sndextra tusken + yawspeed 90 + walkSpeed 55 + runSpeed 200 + visRange 3000 + dismemberProbHead 0 + dismemberProbArms 10 + dismemberProbLegs 1 + dismemberProbHands 20 + dismemberProbWaist 0 +} \ No newline at end of file diff --git a/base/ext_data/npcs/vssver.scc b/base/ext_data/npcs/vssver.scc new file mode 100644 index 0000000..1efdfbf Binary files /dev/null and b/base/ext_data/npcs/vssver.scc differ diff --git a/base/ext_data/npcs/wampa.npc b/base/ext_data/npcs/wampa.npc new file mode 100644 index 0000000..7475e8f --- /dev/null +++ b/base/ext_data/npcs/wampa.npc @@ -0,0 +1,35 @@ + +wampa +{ + playerModel wampa + scale 150 + weapon WP_MELEE + health 800 + headPitchRangeDown 30 + reactions 3 + aim 1 + move 3 + aggression 3 + evasion 1 + intelligence 5 + rank crewman + playerTeam TEAM_FREE + enemyTeam TEAM_FREE + class CLASS_WAMPA + height 128 + crouchheight 80 + width 30 + snd wampa + sndcombat wampa + sndextra wampa + yawspeed 80 + walkSpeed 120 + runSpeed 300 + hfov 100 + vfov 90 + dismemberProbHead 0 + dismemberProbArms 0 + dismemberProbLegs 0 + dismemberProbHands 0 + dismemberProbWaist 0 +} diff --git a/base/ext_data/npcs/wampa_vehicle.npc b/base/ext_data/npcs/wampa_vehicle.npc new file mode 100644 index 0000000..9b68e67 --- /dev/null +++ b/base/ext_data/npcs/wampa_vehicle.npc @@ -0,0 +1,14 @@ + +//NOTE: for vehicle-class NPCs, the playerModel key is actually their entry in the vehicles.dat + +wampa_vehicle +{ + weapon WP_NONE + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL + class CLASS_VEHICLE + snd wampa + height 100 + crouchheight 80 + width 30 +} diff --git a/base/ext_data/npcs/wildtauntaun.npc b/base/ext_data/npcs/wildtauntaun.npc new file mode 100644 index 0000000..2213f12 --- /dev/null +++ b/base/ext_data/npcs/wildtauntaun.npc @@ -0,0 +1,12 @@ + +//NOTE: for vehicle-class NPCs, the playerModel key is actually their entry in the vehicles.dat + +WildTauntaun +{ + weapon WP_NONE + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL + class CLASS_VEHICLE + customSkin wild + snd tauntaun +} diff --git a/base/ext_data/npcs/x-wing.npc b/base/ext_data/npcs/x-wing.npc new file mode 100644 index 0000000..1cd3e36 --- /dev/null +++ b/base/ext_data/npcs/x-wing.npc @@ -0,0 +1,11 @@ + +//NOTE: for vehicle-class NPCs, the playerModel key is actually their entry in the vehicles.dat + +X-Wing +{ + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL + class CLASS_VEHICLE + width 230 + height 128 +} diff --git a/base/ext_data/npcs/yt-1300.npc b/base/ext_data/npcs/yt-1300.npc new file mode 100644 index 0000000..151369d --- /dev/null +++ b/base/ext_data/npcs/yt-1300.npc @@ -0,0 +1,12 @@ + +//NOTE: for vehicle-class NPCs, the playerModel key is actually their entry in the vehicles.dat + +YT-1300 +{ + weapon WP_NONE + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL + class CLASS_VEHICLE + width 565 + height 323 +} diff --git a/base/ext_data/npcs/z-95.npc b/base/ext_data/npcs/z-95.npc new file mode 100644 index 0000000..6e6280a --- /dev/null +++ b/base/ext_data/npcs/z-95.npc @@ -0,0 +1,11 @@ + +//NOTE: for vehicle-class NPCs, the playerModel key is actually their entry in the vehicles.dat + +Z-95 +{ + playerTeam TEAM_NEUTRAL + enemyTeam TEAM_NEUTRAL + class CLASS_VEHICLE + width 230 + height 128 +} diff --git a/base/ext_data/sabers/NotUsed/exotic.sab b/base/ext_data/sabers/NotUsed/exotic.sab new file mode 100644 index 0000000..c5f4bd2 --- /dev/null +++ b/base/ext_data/sabers/NotUsed/exotic.sab @@ -0,0 +1,270 @@ + +SaberLance +{ + saberType SABER_LANCE + saberModel "models/weapons2/saber_maul/saber_w.glm" + customSkin "models/weapons2/saber_maul/saber_w.skin" + saberLength 80 + saberRadius 6 +// saberStyle lance + saberStyle strong + lockable 0 + throwable 0 + blocking 0 + twoHanded 1 + forceRestrict FP_SPEED + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN + forceRestrict FP_SABERTHROW + parryBonus 2 + breakParryBonus 3 + disarmBonus 1 + maxChain 1 +} + +SaberShortStaff +{ + saberType SABER_STAFF + saberModel "models/weapons2/saber_reborn/saber_w.glm" + numBlades 2 + saberLength 20 + saberStyle tavion + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN + lockBonus -1 + breakParryBonus -1 +} + +SaberStaff2 +{ + saberType SABER_STAFF + saberModel "models/weapons2/saber_maul/saber_w.glm" + customSkin "models/weapons2/saber_maul/saber_w.skin" + numBlades 2 + saberLength 40 + saberLength2 24 + saberStyle staff + throwable 0 + twoHanded 1 + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN + forceRestrict FP_SABERTHROW +} + +SaberStaff3 +{ + saberType SABER_STAFF + saberModel "models/weapons2/saber_reborn/saber_w.glm" + numBlades 2 + saberLength 4 + saberLength2 24 +// saberStyle dagger + saberStyle fast +} + +SaberDagger +{ + saberType SABER_DAGGER + saberModel "models/weapons2/saber_reborn/saber_w.glm" + saberLength 16 + saberRadius 2 + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN + lockBonus -1 + parryBonus -1 + breakParryBonus -1 + disarmBonus -1 + maxChain -1 +} + +SaberBroad +{ + saberType SABER_BROAD + saberModel "models/weapons2/saber_desann/saber_w.glm" + numBlades 2 + saberLength 24 + saberRadius 6 + saberStyle strong + twoHanded 1 + forceRestrict FP_SPEED + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN + lockBonus 1 + breakParryBonus 2 + maxChain 2 +} + +SaberProng +{ + saberType SABER_PRONG + saberModel "models/weapons2/saber_reborn/saber_w.glm" + numBlades 2 + saberLength 24 +} + +SaberArc +{ + saberType SABER_ARC + saberModel "models/weapons2/saber_maul/saber_w.glm" + customSkin "models/weapons2/saber_maul/saber_w.skin" + numBlades 4 + saberLength 20 + saberLength2 10 + saberLength3 10 + saberLength4 20 +// saberStyle strong + throwable 0 +// twoHanded 1 + forceRestrict FP_SPEED + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN + forceRestrict FP_SABERTHROW + lockBonus 2 + parryBonus 2 + breakParryBonus 2 + disarmBonus 2 +} + +SaberSai +{ + saberType SABER_SAI + saberModel "models/weapons2/saber/saber_w.glm" + numBlades 3 + saberLength 16 + saberLength2 8 + saberLength3 8 + saberRadius2 1 + saberRadius3 1 + saberStyle tavion +// throwable 0 + blocking 0 + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN + parryBonus 1 + breakParryBonus -1 + disarmBonus 3 +} + +SaberClaw +{ + saberType SABER_CLAW + saberModel "models/weapons2/saber_reborn/saber_w.glm" + numBlades 3 + saberLength 16 + saberRadius 2 + saberStyle tavion + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN + throwable 0 + disarmable 0 + blocking 0 + lockBonus 1 + parryBonus 1 +// breakParryBonus -1 + disarmBonus 1 + maxChain -1 +} + +SaberStar +{ + saberType SABER_STAR + saberModel "models/weapons2/saber_reborn/saber_w.glm" + numBlades 6 + saberLength 16 + saberRadius 2 + saberStyle tavion + blocking 0 + returnDamage 1 + forceRestrict FP_SPEED + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN + parryBonus 2 + lockBonus -1 + breakParryBonus -1 + disarmBonus 1 + maxChain 3 +} + +SaberStar2 +{ + saberType SABER_STAR + saberModel "models/weapons2/saber_reborn/saber_w.glm" + numBlades 6 + saberLength 8 + saberRadius 1 + saberStyle tavion + returnDamage 1 + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN + parryBonus 1 + breakParryBonus -1 + disarmBonus 2 + maxChain -1 +} + +SaberTrident +{ + saberType SABER_TRIDENT + saberModel "models/weapons2/saber_maul/saber_w.glm" + customSkin "models/weapons2/saber_maul/saber_w.skin" + numBlades 4 + saberLength 18 + saberLength2 10 + saberLength3 10 + saberLength4 8 + saberRadius2 2 + saberRadius3 2 + saberStyle strong + throwable 0 + blocking 0 + twoHanded 1 + forceRestrict FP_SPEED + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN + disarmBonus 1 + maxChain 1 +} + + + diff --git a/base/ext_data/sabers/NotUsed/extra.sab b/base/ext_data/sabers/NotUsed/extra.sab new file mode 100644 index 0000000..7adaaf6 --- /dev/null +++ b/base/ext_data/sabers/NotUsed/extra.sab @@ -0,0 +1,397 @@ + +alaris +{ + saberType SABER_SINGLE + saberModel "models/weapons2/saber_alaris/saber_w.glm" + customSkin "models/weapons2/saber_alaris/saber_w.skin" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor purple + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN +} + +apex1 +{ + saberType SABER_SINGLE + saberModel "models/weapons2/saber_apex1/saber_w.glm" + customSkin "models/weapons2/saber_apex1/saber_w.skin" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor blue + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN +} + +apex2 +{ + saberType SABER_SINGLE + saberModel "models/weapons2/saber_apex1/saber_w.glm" + customSkin "models/weapons2/saber_apex1/saber_w2.skin" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor green + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN +} + +apex3 +{ + saberType SABER_SINGLE + saberModel "models/weapons2/saber_apex1/saber_w.glm" + customSkin "models/weapons2/saber_apex1/saber_w3.skin" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor yellow + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN +} + +darksaber +{ + saberType SABER_SINGLE + saberModel "models/weapons2/saber/saber_w.glm" + customSkin "models/weapons2/saber/saber_w_dark.skin" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor red + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN +} + +dooku +{ + saberType SABER_SINGLE + saberModel "models/weapons2/saber_dooku/saber_w.glm" + customSkin "models/weapons2/saber_dooku/saber_w.skin" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor red + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN +} + +dooku2 +{ + saberType SABER_SINGLE + saberModel "models/weapons2/saber_dooku2/saber_w.glm" + customSkin "models/weapons2/saber_dooku2/saber_w.skin" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor red + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN +} + +exarkun +{ + saberType SABER_SINGLE + saberModel "models/weapons2/saber_exarkun/saber_w.glm" + customSkin "models/weapons2/saber_exarkun/saber_w.skin" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor red + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN +} + +gold +{ + saberType SABER_SINGLE + saberModel "models/weapons2/saber_gold/saber_w.glm" + customSkin "models/weapons2/saber_gold/saber_w.skin" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor green + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN +} + +gold1 +{ + saberType SABER_SINGLE + saberModel "models/weapons2/saber_gold1/saber_w.glm" + customSkin "models/weapons2/saber_gold1/saber_w.skin" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor yellow + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN +} + +sith1 +{ + saberType SABER_SINGLE + saberModel "models/weapons2/saber_sith1/saber_w.glm" + customSkin "models/weapons2/saber_sith1/saber_w.skin" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor red + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN +} + +sith2 +{ + saberType SABER_SINGLE + saberModel "models/weapons2/saber_sith2/saber_w.glm" + customSkin "models/weapons2/saber_sith2/saber_w.skin" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor red + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN +} + +sith3 +{ + saberType SABER_SINGLE + saberModel "models/weapons2/saber_sith3/saber_w.glm" + customSkin "models/weapons2/saber_sith3/saber_w.skin" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor red + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN +} + +lukeANH +{ + saberType SABER_SINGLE + saberModel "models/weapons2/saber_lukeANH/saber_w.glm" + customSkin "models/weapons2/saber_lukeANH/saber_w.skin" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor blue + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN +} + +obi +{ + saberType SABER_SINGLE + saberModel "models/weapons2/saber_obi/saber_w.glm" + customSkin "models/weapons2/saber_obi/saber_w.skin" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor blue + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN +} + +plo_koon +{ + saberType SABER_SINGLE + saberModel "models/weapons2/saber_plo_koon/saber_w.glm" + customSkin "models/weapons2/saber_plo_koon/saber_w.skin" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor green + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN +} + +QuiGon +{ + saberType SABER_SINGLE + saberModel "models/weapons2/saber_QuiGon/saber_w.glm" + customSkin "models/weapons2/saber_QuiGon/saber_w.skin" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor green + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN +} + +rusted +{ + saberType SABER_SINGLE + saberModel "models/weapons2/saber_rusted/saber_w.glm" + customSkin "models/weapons2/saber_rusted/saber_w.skin" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor yellow + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN +} + +kenobi +{ + saberType SABER_SINGLE + saberModel "models/weapons2/saber_kenobi/saber_w.glm" + customSkin "models/weapons2/saber_kenobi/saber_w.skin" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor blue + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN +} + +vader2 +{ + saberType SABER_SINGLE + saberModel "models/weapons2/saber_vader2/saber_w.glm" + customSkin "models/weapons2/saber_vader2/saber_w.skin" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor red + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN +} + +windu +{ + saberType SABER_SINGLE + saberModel "models/weapons2/saber_windu/saber_w.glm" + customSkin "models/weapons2/saber_windu/saber_w.skin" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor purple + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN +} + +yoda2 +{ + saberType SABER_SINGLE + saberModel "models/weapons2/saber_yoda/saber_w.glm" + customSkin "models/weapons2/saber_yoda/saber_w.skin" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 32 + saberColor green + forceRestrict FP_PUSH + forceRestrict FP_PULL + forceRestrict FP_TELEPATHY + forceRestrict FP_GRIP + forceRestrict FP_LIGHTNING + forceRestrict FP_DRAIN +} + diff --git a/base/ext_data/sabers/NotUsed/vssver.scc b/base/ext_data/sabers/NotUsed/vssver.scc new file mode 100644 index 0000000..8165f75 Binary files /dev/null and b/base/ext_data/sabers/NotUsed/vssver.scc differ diff --git a/base/ext_data/sabers/dual_1.sab b/base/ext_data/sabers/dual_1.sab new file mode 100644 index 0000000..e930b81 --- /dev/null +++ b/base/ext_data/sabers/dual_1.sab @@ -0,0 +1,21 @@ + +dual_1 +{ + name @MENUS_STAFF_HILT1 + saberType SABER_STAFF + saberModel "models/weapons2/saber_dual_1/saber_dual_1.glm" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberColor random + numBlades 2 + saberLength 32 + saberStyle staff + throwable 0 + singleBladeStyle medium + singleBladeThrowable 1 + brokenSaber1 brokenstaff + brokenSaber2 brokenstaff + twoHanded 1 +} + diff --git a/base/ext_data/sabers/dual_2.sab b/base/ext_data/sabers/dual_2.sab new file mode 100644 index 0000000..c8b4771 --- /dev/null +++ b/base/ext_data/sabers/dual_2.sab @@ -0,0 +1,21 @@ + +dual_2 +{ + name @MENUS_STAFF_HILT2 + saberType SABER_STAFF + saberModel "models/weapons2/saber_dual_2/saber_dual_2.glm" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberColor random + numBlades 2 + saberLength 32 + saberStyle staff + throwable 0 + singleBladeStyle medium + singleBladeThrowable 1 + brokenSaber1 brokenstaff + brokenSaber2 brokenstaff + twoHanded 1 +} + diff --git a/base/ext_data/sabers/dual_3.sab b/base/ext_data/sabers/dual_3.sab new file mode 100644 index 0000000..1667237 --- /dev/null +++ b/base/ext_data/sabers/dual_3.sab @@ -0,0 +1,21 @@ + +dual_3 +{ + name @MENUS_STAFF_HILT3 + saberType SABER_STAFF + saberModel "models/weapons2/saber_dual_3/saber_dual_3.glm" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberColor random + numBlades 2 + saberLength 32 + saberStyle staff + throwable 0 + singleBladeStyle medium + singleBladeThrowable 1 + brokenSaber1 brokenstaff + brokenSaber2 brokenstaff + twoHanded 1 +} + diff --git a/base/ext_data/sabers/dual_4.sab b/base/ext_data/sabers/dual_4.sab new file mode 100644 index 0000000..8697480 --- /dev/null +++ b/base/ext_data/sabers/dual_4.sab @@ -0,0 +1,21 @@ + +dual_4 +{ + name @MENUS_STAFF_HILT4 + saberType SABER_STAFF + saberModel "models/weapons2/saber_dual_4/saber_dual_4.glm" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberColor random + numBlades 2 + saberLength 32 + saberStyle staff + throwable 0 + singleBladeStyle medium + singleBladeThrowable 1 + brokenSaber1 brokenstaff + brokenSaber2 brokenstaff + twoHanded 1 +} + diff --git a/base/ext_data/sabers/dual_5.sab b/base/ext_data/sabers/dual_5.sab new file mode 100644 index 0000000..f51a85b --- /dev/null +++ b/base/ext_data/sabers/dual_5.sab @@ -0,0 +1,21 @@ + +dual_5 +{ + name @MENUS_STAFF_HILT5 + saberType SABER_STAFF + saberModel "models/weapons2/saber_dual_5/saber_dual_5.glm" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberColor random + numBlades 2 + saberLength 32 + saberStyle staff + throwable 0 + singleBladeStyle medium + singleBladeThrowable 1 + brokenSaber1 brokenstaff + brokenSaber2 brokenstaff + twoHanded 1 +} + diff --git a/base/ext_data/sabers/empty.sab b/base/ext_data/sabers/empty.sab new file mode 100644 index 0000000..26a55f9 --- /dev/null +++ b/base/ext_data/sabers/empty.sab @@ -0,0 +1,11 @@ +empty +{ + saberType SABER_SINGLE + saberModel "models/weapons2/noweap/noweap.glm" + soundOn "sound/null.wav" + soundLoop "sound/null.wav" + soundOff "sound/null.wav" + saberLength 0 + saberColor blue + notInMP 1 +} \ No newline at end of file diff --git a/base/ext_data/sabers/sabers.sab b/base/ext_data/sabers/sabers.sab new file mode 100644 index 0000000..48fd67d --- /dev/null +++ b/base/ext_data/sabers/sabers.sab @@ -0,0 +1,325 @@ +//Lightsaber configurations, use by name + +/* +NOTE: add new sabers by putting their entries in a .sab file in ext_data/sabers + +defaults and explanations of fields: + //saber type + saberType SABER_NONE - what kind of saber to use ( SABER_SINGLE, SABER_STAFF) + + //saber hilt + saberModel "models/weapons2/saber_reborn/saber_w.glm" - what saber hilt model to use + + A note about saber hilt models: the surface names on saber models should *always* start with "w_", the code expects it. + + customSkin "" - a .skin file to apply to the saber hilt model, if any (overrides saber hilt model's internal texture mapping) + + soundOn "sound/weapons/saber/enemy_saber_on.wav" - turn on sound + soundLoop "sound/weapons/saber/saberhum3.wav" - loop sound (must be a .wav file) + soundOff "sound/weapons/saber/enemy_saber_off.wav" - turn off sound + + //blades + numBlades 1 - how many blades it has (min of 1, max of 8) + + A note about blade tags: each blade will be drawn from it's corresponding tag's position and in the direction (negative X axis in ModView) of that tag. + The naming of the tags must be as follows: + "tag_blade1" for the first blade. I made the code fall back to "tag_flash" if it can't find the tag_blades so that the code will still work pre-JKA sabers, but we you should always use the new name. + All following blades (if applicable) should be "tag_blade2", "tag_blade3", etc., to a maximum of 8 blades ("tag_blade8") + + //saber length + //NOTE: these should be inputted in order - setting "saberLength" automatically sets all of the others to the same length + saberLength 32 - how long the saber's first blade should be (minimum of 4) + saberLength2 saberLength - how long the saber's second blade should be (minimum of 4) + saberLength3 saberLength - how long the saber's third blade should be (minimum of 4) + saberLength4 saberLength - how long the saber's fourth blade should be (minimum of 4) + saberLength5 saberLength - how long the saber's fifth blade should be (minimum of 4) + saberLength6 saberLength - how long the saber's sixth blade should be (minimum of 4) + saberLength7 saberLength - how long the saber's seventh blade should be (minimum of 4) + saberLength8 saberLength - how long the saber's eigth blade should be (minimum of 4) + + //saber radius + //NOTE: these should be inputted in order - setting "saberLength" automatically sets all of the others to the same length + saberRadius 3 - how wide the saber's first blade should be (minimum of 0.25) + saberRadius2 saberRadius - how wide the saber's second blade should be (minimum of 0.25) + saberRadius3 saberRadius - how wide the saber's third blade should be (minimum of 0.25) + saberRadius4 saberRadius - how wide the saber's fourth blade should be (minimum of 0.25) + saberRadius5 saberRadius - how wide the saber's fifth blade should be (minimum of 0.25) + saberRadius6 saberRadius - how wide the saber's sixth blade should be (minimum of 0.25) + saberRadius7 saberRadius - how wide the saber's seventh blade should be (minimum of 0.25) + saberRadius8 saberRadius - how wide the saber's eigth blade should be (minimum of 0.25) + + //saberColor - valid colors: random, red, orange, yellow, green, blue, and purple + //NOTE: these should be inputted in order - setting "saberColor" automatically sets all of the others to the same color + saberColor red - what color the saber's 1st blade should be + saberColor2 saberColor - what color the saber's 2nd blade should be + saberColor3 saberColor - what color the saber's 3rd blade should be + saberColor4 saberColor - what color the saber's 4th blade should be + saberColor5 saberColor - what color the saber's 5th blade should be + saberColor6 saberColor - what color the saber's 6th blade should be + saberColor7 saberColor - what color the saber's 7th blade should be + saberColor8 saberColor - what color the saber's 8th blade should be + + //locked style + saberStyle none - what one style it's limited to, if any (fast, medium, strong, desann, tavion) + + //maxChain + maxChain 0 - how many moves can be chained in a row with this weapon (-1 is infinite, 0 is use default behavior) + + //throwable + lockable 1 - whether or not it can be stuck in a saber lock + + //throwable + throwable 1 - whether or not it can be thrown + + //disarmable + disarmable 1 - whether or not it can be disarmed (dropped) + + //blocking + blocking 1 - whether or not user will try to block incoming shots (shots always bounce off it, this just determines if the user *tries* to block with it) + + //twoHanded + twoHanded 0 - whether or not it requires 2 hands (makes it restrict force powers but makes it stronger in locks or parries) + + //force power restrictions + forceRestrict 0 - what force powers it restricts, use these keys, a seperate entry per power: + FP_HEAL + FP_LEVITATION + FP_SPEED + FP_PUSH + FP_PULL + FP_TELEPATHY + FP_GRIP + FP_LIGHTNING + FP_SABERTHROW + FP_SABER_DEFENSE + FP_SABER_OFFENSE + //new Jedi Academy powers + FP_RAGE + FP_PROTECT + FP_ABSORB + FP_DRAIN + FP_SEE + + //lockBonus + lockBonus 0 - this pushes harder/weaker in saberlocks + + //parryBonus + parryBonus 0 - this is stronger/weaker in a parry (harder to break, more likely to knockaway) + + //breakParryBonus + breakParryBonus 0 - this is more/less likely to break a parry + + //disarmBonus + disarmBonus 0 - this is more/less likely to disarm another saber in a saberlock or knockaway + + singleBladeStyle none - makes it so that you use a different style if you only have the first blade active + + singleBladeThrowable 0 - makes it so that you can throw this saber if only the first blade is on + + brokenSaber1 none - if saber is actually hit by another saber, it can be cut in half/broken and will be replaced with this saber in your right hand + brokenSaber2 none - if saber is actually hit by another saber, it can be cut in half/broken and will be replaced with this saber in your left hand + + returnDamage 0 - when returning from a saber throw, it keeps spinning and doing damage + +//===The following fields were added later:=========================================================================== + //done in cgame (client-side code) + noWallMarks 0 - if 1, stops the saber from drawing marks on the world (good for real-sword type mods) + noDlight 0 - if 1, stops the saber from drawing a dynamic light (good for real-sword type mods) + noBlade 0 - if 1, stops the saber from drawing a blade (good for real-sword type mods) + trailStyle 0 - default (0) is normal, 1 is a motion blur and 2 is no trail at all (good for real-sword type mods) + g2MarksShader none - if set, the game will use this shader for marks on enemies instead of the default "gfx/damage/saberglowmark" + + //done in game (server-side code) + knockbackScale 0 - if non-zero, uses damage done to calculate an appropriate amount of knockback + damageScale 1 - scale up or down the damage done by the saber + noDismemberment 0 - if non-zero, the saber never does dismemberment (good for pointed/blunt melee weapons) + bounceOnWalls 0 - if non-zero, the saber will bounce back when it hits solid architecture (good for real-sword type mods) + noIdleEffect 0 - if non-zero, the saber will not do damage or any effects when it is idle (not in an attack anim). (good for real-sword type mods) + stickOnImpact 0 - if non-zero, the saber will stick in the wall when thrown and hits solid architecture (good for sabers that are meant to be thrown). + noAttack 0 - if non-zero, you cannot attack with the saber (for sabers/weapons that are meant to be thrown only, not used as melee weapons). +//========================================================================================================================================= +*/ + +Kyle +{ + name "Katarn" + saberType SABER_SINGLE + saberModel "models/weapons2/saber/saber_w.glm" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor blue +} + +Kyle_boss +{ + name "Katarn" + saberType SABER_SINGLE + saberModel "models/weapons2/saber/saber_w.glm" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor blue + lockBonus 2 + parryBonus 2 + disarmBonus 2 + notInMP 1 +} + +Luke +{ + name "Skywalker" + saberType SABER_SINGLE + saberModel "models/weapons2/saber_luke/saber_w.glm" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum5.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor green + notInMP 1 +} + +Desann +{ + name "Retribution" + saberType SABER_SINGLE + saberModel "models/weapons2/saber_desann/saber_w.glm" + soundLoop "sound/weapons/saber/saberhum2.wav" +// saberLength 48 + saberLength 64 + saberRadius 6 + saberColor red + notInMP 1 +} + +RebornMaster +{ + name "RebornMaster" + saberType SABER_SINGLE + saberModel "models/weapons2/saber_desann/saber_w.glm" + soundLoop "sound/weapons/saber/saberhum2.wav" + saberLength 48 + saberColor red + lockBonus 1 + parryBonus 1 + breakParryBonus 1 + disarmBonus 2 + notInMP 1 +} + +Tavion +{ + name "Stinger" + saberType SABER_SINGLE + saberModel "models/weapons2/saber_reborn/saber_w.glm" + saberLength 40 + saberColor red + notInMP 1 +} + +reborn_new +{ + name "reborn_new" + saberType SABER_SINGLE + saberModel "models/weapons2/saber_reborn/saber_w.glm" + saberLength 40 + saberColor red + lockBonus 1 + parryBonus 1 + breakParryBonus 1 + disarmBonus 1 + notInMP 1 +} + +Shadowtrooper +{ + name "Shadowtrooper" + saberType SABER_SINGLE + saberModel "models/weapons2/saber_reborn/saber_w.glm" + saberLength 40 + saberColor red + notInMP 1 +} + +Reborn +{ + name "Reborn" + saberType SABER_SINGLE + saberModel "models/weapons2/saber_reborn/saber_w.glm" + saberLength 32 + saberColor red + notInMP 1 +} + +Training +{ + name "Training" + saberType SABER_SINGLE + saberModel "models/weapons2/saber_reborn/saber_w.glm" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 32 + saberColor yellow + notInMP 1 +} + +Jedi +{ + name "Apprentice" + saberType SABER_SINGLE + saberModel "models/weapons2/saber_reborn/saber_w.glm" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum1.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor random + notInMP 1 +} + +Yoda +{ + name "Eternal" + saberType SABER_SINGLE + saberModel "models/weapons2/saber_yoda/saber_w.glm" + customSkin "models/weapons2/saber_yoda/saber_w.skin" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum1.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 32 + saberColor green + saberStyle tavion + maxChain -1 + disarmable 0 + lockBonus 2 + parryBonus 5 + breakParryBonus 1 + disarmBonus 3 + notInMP 1 +} + +brokenStaff +{ + saberType SABER_SINGLE + //FIXME: need actual broken staff model + saberModel "models/weapons2/saber_reborn/saber_w.glm" + numBlades 1 + saberLength 32 + throwable 1 + twoHanded 0 + notInMP 1 +} + +droid +{ + saberType SABER_SINGLE + saberModel "models/weapons2/saber_reborn/saber_w.glm" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor yellow + notInMP 1 +} \ No newline at end of file diff --git a/base/ext_data/sabers/single_1.sab b/base/ext_data/sabers/single_1.sab new file mode 100644 index 0000000..7b7c7e1 --- /dev/null +++ b/base/ext_data/sabers/single_1.sab @@ -0,0 +1,13 @@ + +single_1 +{ + name @MENUS_SINGLE_HILT1 + saberType SABER_SINGLE + saberModel "models/weapons2/saber_1/saber_1.glm" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor random +} + diff --git a/base/ext_data/sabers/single_2.sab b/base/ext_data/sabers/single_2.sab new file mode 100644 index 0000000..0eebf09 --- /dev/null +++ b/base/ext_data/sabers/single_2.sab @@ -0,0 +1,13 @@ + +single_2 +{ + name @MENUS_SINGLE_HILT2 + saberType SABER_SINGLE + saberModel "models/weapons2/saber_2/saber_2.glm" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor random +} + diff --git a/base/ext_data/sabers/single_3.sab b/base/ext_data/sabers/single_3.sab new file mode 100644 index 0000000..fb70c0a --- /dev/null +++ b/base/ext_data/sabers/single_3.sab @@ -0,0 +1,13 @@ + +single_3 +{ + name @MENUS_SINGLE_HILT3 + saberType SABER_SINGLE + saberModel "models/weapons2/saber_3/saber_3.glm" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor random +} + diff --git a/base/ext_data/sabers/single_4.sab b/base/ext_data/sabers/single_4.sab new file mode 100644 index 0000000..9861cc3 --- /dev/null +++ b/base/ext_data/sabers/single_4.sab @@ -0,0 +1,13 @@ + +single_4 +{ + name @MENUS_SINGLE_HILT4 + saberType SABER_SINGLE + saberModel "models/weapons2/saber_4/saber_4.glm" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor random +} + diff --git a/base/ext_data/sabers/single_5.sab b/base/ext_data/sabers/single_5.sab new file mode 100644 index 0000000..bd90d49 --- /dev/null +++ b/base/ext_data/sabers/single_5.sab @@ -0,0 +1,13 @@ + +single_5 +{ + name @MENUS_SINGLE_HILT5 + saberType SABER_SINGLE + saberModel "models/weapons2/saber_5/saber_5.glm" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor random +} + diff --git a/base/ext_data/sabers/single_6.sab b/base/ext_data/sabers/single_6.sab new file mode 100644 index 0000000..513bcc6 --- /dev/null +++ b/base/ext_data/sabers/single_6.sab @@ -0,0 +1,13 @@ + +single_6 +{ + name @MENUS_SINGLE_HILT6 + saberType SABER_SINGLE + saberModel "models/weapons2/saber_6/saber_6.glm" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor random +} + diff --git a/base/ext_data/sabers/single_7.sab b/base/ext_data/sabers/single_7.sab new file mode 100644 index 0000000..7af2207 --- /dev/null +++ b/base/ext_data/sabers/single_7.sab @@ -0,0 +1,13 @@ + +single_7 +{ + name @MENUS_SINGLE_HILT7 + saberType SABER_SINGLE + saberModel "models/weapons2/saber_7/saber_7.glm" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor random +} + diff --git a/base/ext_data/sabers/single_8.sab b/base/ext_data/sabers/single_8.sab new file mode 100644 index 0000000..532be7e --- /dev/null +++ b/base/ext_data/sabers/single_8.sab @@ -0,0 +1,13 @@ + +single_8 +{ + name @MENUS_SINGLE_HILT8 + saberType SABER_SINGLE + saberModel "models/weapons2/saber_8/saber_8.glm" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor random +} + diff --git a/base/ext_data/sabers/single_9.sab b/base/ext_data/sabers/single_9.sab new file mode 100644 index 0000000..32bdcff --- /dev/null +++ b/base/ext_data/sabers/single_9.sab @@ -0,0 +1,13 @@ + +single_9 +{ + name @MENUS_SINGLE_HILT9 + saberType SABER_SINGLE + saberModel "models/weapons2/saber_9/saber_9.glm" + soundOn "sound/weapons/saber/saberon.wav" + soundLoop "sound/weapons/saber/saberhum4.wav" + soundOff "sound/weapons/saber/saberoff.wav" + saberLength 40 + saberColor random +} + diff --git a/base/ext_data/sabers/sith_sword.sab b/base/ext_data/sabers/sith_sword.sab new file mode 100644 index 0000000..3336dfe --- /dev/null +++ b/base/ext_data/sabers/sith_sword.sab @@ -0,0 +1,11 @@ + +sith_sword +{ +//note: the SABER_SITH_SWORD type of saber draws no blade and does knockback + name "Glory of the Sith" + saberType SABER_SITH_SWORD + saberModel "models/weapons2/sith_scepter/sith_sword_w.glm" + saberLength 44 + notInMP 1 +} + diff --git a/base/ext_data/sabers/vssver.scc b/base/ext_data/sabers/vssver.scc new file mode 100644 index 0000000..b3650d7 Binary files /dev/null and b/base/ext_data/sabers/vssver.scc differ diff --git a/base/ext_data/siege/classes/bountyhunter.scl b/base/ext_data/siege/classes/bountyhunter.scl new file mode 100644 index 0000000..69dbd7e --- /dev/null +++ b/base/ext_data/siege/classes/bountyhunter.scl @@ -0,0 +1,26 @@ +//Siege class def file. + +ClassInfo +{ + name "Bounty Hunter" + //weapons WP_BLASTER_PISTOL|WP_BLASTER|WP_ROCKET_LAUNCHER|WP_THERMAL + weapons WP_BLASTER_PISTOL|WP_BLASTER|WP_REPEATER + classflags CFL_SINGLE_ROCKET|CFL_EXTRA_AMMO + forcepowers 0 + maxhealth 200 + starthealth 200 + maxarmor 0 + startarmor 0 + class_shader "gfx/mp/c_icon_infantry" + //model "boba_fett" //this is optional, if it's here it forces the model to this. + //skin "no_jetpack" //this is optional, if it's here it forces the skin to this. + //uishader "models/players/boba_fett/icon_default" + //holdables HI_SEEKER|HI_JETPACK + model "rodian" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/rodian/icon_default" + holdables HI_SEEKER + speed 0.85 +} + +description "@SIEGE_VAN_BOUNTY_HUNTER" diff --git a/base/ext_data/siege/classes/cultist.scl b/base/ext_data/siege/classes/cultist.scl new file mode 100644 index 0000000..435aaf3 --- /dev/null +++ b/base/ext_data/siege/classes/cultist.scl @@ -0,0 +1,18 @@ +//Siege class def file. + +ClassInfo +{ + name "Cultist" + weapons WP_BLASTER_PISTOL|WP_BLASTER|WP_THERMAL + forcepowers FP_LEVITATION,1|FP_PUSH,2|FP_PULL,2|FP_GRIP,1|FP_LIGHTNING,1|FP_DRAIN,2 + maxhealth 100 + maxarmor 100 + startarmor 0 + model "cultist" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/cultist/icon_default" + class_shader "gfx/mp/c_icon_infantry" + holdables HI_BINOCULARS +} + +description "@SIEGE_INF_CULTIST" diff --git a/base/ext_data/siege/classes/darkforceass.scl b/base/ext_data/siege/classes/darkforceass.scl new file mode 100644 index 0000000..a582ad0 --- /dev/null +++ b/base/ext_data/siege/classes/darkforceass.scl @@ -0,0 +1,20 @@ +//Siege class def file. + +ClassInfo +{ + name "Dark Force Assassin" + weapons WP_BLASTER_PISTOL|WP_DISRUPTOR + classflags CFL_EXTRA_AMMO + forcepowers FP_TELEPATHY,3|FP_SEE,1|FP_LEVITATION,3 + forcealignment dark + maxhealth 75 + maxarmor 0 + startarmor 0 + model "shadowtrooper" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/shadowtrooper/icon_default" + class_shader "gfx/mp/c_icon_vanguard" + speed 1.1 +} + +description "@SIEGE_VAN_DFORCE_ASSASSIN" diff --git a/base/ext_data/siege/classes/darkjediapprentice.scl b/base/ext_data/siege/classes/darkjediapprentice.scl new file mode 100644 index 0000000..036c274 --- /dev/null +++ b/base/ext_data/siege/classes/darkjediapprentice.scl @@ -0,0 +1,21 @@ +//Siege class def file. +//NOTE: light version used for Star Destroyer map + +ClassInfo +{ + name "Dark Jedi Apprentice" + weapons WP_SABER + saber1 single_9 + sabercolor 0 + saberstyle SS_FAST|SS_MEDIUM|SS_STRONG + forcepowers FP_SABER_OFFENSE,3|FP_SABER_DEFENSE,2|FP_LEVITATION,2|FP_PUSH,1|FP_PULL,1 + maxhealth 50 + maxarmor 0 + startarmor 0 + model "shadowtrooper" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/shadowtrooper/icon_default" + class_shader "gfx/mp/c_icon_jedi_general" +} + +description "@SIEGE_JEDI_DJEDI_APPRENTICE" diff --git a/base/ext_data/siege/classes/darkjedidemo.scl b/base/ext_data/siege/classes/darkjedidemo.scl new file mode 100644 index 0000000..f9644aa --- /dev/null +++ b/base/ext_data/siege/classes/darkjedidemo.scl @@ -0,0 +1,21 @@ +//Siege class def file. + +ClassInfo +{ + name "Dark Jedi Demolitionist" + weapons WP_SABER|WP_THERMAL|WP_TRIP_MINE + saber1 single_6 + sabercolor 0 + saberstyle SS_STRONG + forcepowers FP_SABER_OFFENSE,2|FP_SABER_DEFENSE,2|FP_SABERTHROW,1|FP_LEVITATION,2|FP_PUSH,1|FP_PULL,1|FP_SEE,1 + classflags CFL_EXTRA_AMMO + maxhealth 100 + maxarmor 0 + startarmor 0 + model "cultist" //this is optional, if it's here it forces the model to this. + skin "red" //this is optional, if it's here it forces the skin to this. + uishader "models/players/cultist/icon_red" + class_shader "gfx/mp/c_icon_demolitionist" +} + +description "@SIEGE_DEMO_DJEDI_DEMO" diff --git a/base/ext_data/siege/classes/darkjedidestroyer.scl b/base/ext_data/siege/classes/darkjedidestroyer.scl new file mode 100644 index 0000000..e24ef80 --- /dev/null +++ b/base/ext_data/siege/classes/darkjedidestroyer.scl @@ -0,0 +1,25 @@ +//Siege class def file. + +ClassInfo +{ + name "Dark Jedi Destroyer" +// weapons WP_MELEE + weapons WP_SABER + saber1 single_6 + sabercolor 0 + saberstyle SS_MEDIUM + classflags CFL_FASTFORCEREGEN + forcepowers FP_LEVITATION,3|FP_PUSH,2|FP_PULL,2|FP_GRIP,2|FP_DRAIN,2|FP_LIGHTNING,2 + forcealignment dark + maxhealth 100 + maxarmor 25 + startarmor 0 + speed 1.25 + model "reborn_twin" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/reborn_twin/icon_default" +// holdable HI_MEDPAC_BIG + class_shader "gfx/mp/c_icon_heavy_weapons" +} + +description "@SIEGE_HVY_DJEDI_DESTROYER" diff --git a/base/ext_data/siege/classes/darkjediduelist.scl b/base/ext_data/siege/classes/darkjediduelist.scl new file mode 100644 index 0000000..6554b3c --- /dev/null +++ b/base/ext_data/siege/classes/darkjediduelist.scl @@ -0,0 +1,24 @@ +//Siege class def file. + +ClassInfo +{ + name "Dark Jedi Duelist" + weapons WP_SABER + saber1 single_4 + sabercolor 0 + saber2 single_4 + saber2color 0 + saberstyle SS_DUAL + forcepowers FP_SABER_OFFENSE,3|FP_SABER_DEFENSE,3|FP_LEVITATION,2|FP_PUSH,2|FP_PULL,2 + forcealignment dark + maxhealth 100 + maxarmor 0 + startarmor 0 + speed 1.25 + model "alora2" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/alora2/icon_default" + class_shader "gfx/mp/c_icon_jedi_general" +} + +description "@SIEGE_JEDI_DJEDI_DUELIST" diff --git a/base/ext_data/siege/classes/darkjediforceuser.scl b/base/ext_data/siege/classes/darkjediforceuser.scl new file mode 100644 index 0000000..c9606b6 --- /dev/null +++ b/base/ext_data/siege/classes/darkjediforceuser.scl @@ -0,0 +1,21 @@ +//Siege class def file. + +ClassInfo +{ + name "Dark Jedi Force User" + weapons WP_MELEE + classflags CFL_FASTFORCEREGEN + forcepowers FP_LEVITATION,3|FP_SPEED,3|FP_PUSH,3|FP_PULL,3|FP_SEE,3|FP_LIGHTNING,3|FP_GRIP,3|FP_DRAIN,3 + forcealignment dark + maxhealth 100 + maxarmor 0 + startarmor 0 + speed 1.25 + model "reborn" //this is optional, if it's here it forces the model to this. + skin "forceuser" //this is optional, if it's here it forces the skin to this. + uishader "models/players/reborn/icon_red" + class_shader "gfx/mp/c_icon_jedi_general" +} + +description "Dark Jedi Force User: A master of use of the dark side of the Force, he has no use for weapons, not even a saber. +HEALTH 100, ARMOR 0, SPEED 100%, MELEE, JUMP 3, SPEED 3, PUSH 3, PULL 3, SIGHT 3, LIGHTNING 3, GRIP 3, DRAIN 3" diff --git a/base/ext_data/siege/classes/darkjediinterceptor.scl b/base/ext_data/siege/classes/darkjediinterceptor.scl new file mode 100644 index 0000000..a3de5cb --- /dev/null +++ b/base/ext_data/siege/classes/darkjediinterceptor.scl @@ -0,0 +1,21 @@ +//Siege class def file. + +ClassInfo +{ + name "Dark Jedi Interceptor" + weapons WP_SABER + saber1 single_6 + sabercolor 0 + saberstyle SS_FAST + forcepowers FP_SABER_OFFENSE,2|FP_SABER_DEFENSE,1|FP_LEVITATION,2|FP_SPEED,3|FP_TELEPATHY,2|FP_DRAIN,1|FP_PUSH,1|FP_PULL,1 + forcealignment dark + maxhealth 85 + maxarmor 0 + speed 1.25 + model "reborn" //this is optional, if it's here it forces the model to this. + skin "boss" //this is optional, if it's here it forces the skin to this. + uishader "models/players/reborn/icon_boss" + class_shader "gfx/mp/c_icon_vanguard" +} + +description "@SIEGE_VAN_DJEDI_INVADER" diff --git a/base/ext_data/siege/classes/darkjediinvader.scl b/base/ext_data/siege/classes/darkjediinvader.scl new file mode 100644 index 0000000..03a06dd --- /dev/null +++ b/base/ext_data/siege/classes/darkjediinvader.scl @@ -0,0 +1,22 @@ +//Siege class def file. + +ClassInfo +{ + name "Dark Jedi Invader" + weapons WP_SABER + saber1 single_6 + sabercolor 0 + saberstyle SS_MEDIUM|SS_STRONG + forcepowers FP_SABER_OFFENSE,3|FP_SABER_DEFENSE,3|FP_SABERTHROW,2|FP_LEVITATION,3|FP_TELEPATHY,2|FP_PUSH,2||FP_PULL,2 + forcealignment dark + maxhealth 50 + starthealth 50 + maxarmor 0 + speed 1.25 + model "reborn" //this is optional, if it's here it forces the model to this. + skin "boss" //this is optional, if it's here it forces the skin to this. + uishader "models/players/reborn/icon_boss" + class_shader "gfx/mp/c_icon_jedi_general" +} + +description "@SIEGE_VAN_DJEDI_INVADER" diff --git a/base/ext_data/siege/classes/darkjediknight.scl b/base/ext_data/siege/classes/darkjediknight.scl new file mode 100644 index 0000000..2cb4369 --- /dev/null +++ b/base/ext_data/siege/classes/darkjediknight.scl @@ -0,0 +1,21 @@ +//Siege class def file. + +ClassInfo +{ + name "Dark Jedi Knight" + weapons WP_SABER + saber1 single_9 + sabercolor 0 + saberstyle SS_FAST|SS_MEDIUM|SS_STRONG + forcepowers FP_SABER_OFFENSE,2|FP_SABER_DEFENSE,2|FP_SABERTHROW,2|FP_LEVITATION,2|FP_SPEED,2|FP_PUSH,2|FP_PULL,2|FP_SEE,2|FP_RAGE,2|FP_GRIP,2|FP_DRAIN,2|FP_LIGHTNING,2 + maxhealth 100 + maxarmor 0 + startarmor 0 + speed 1.25 + model "tavion_new" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/tavion_new/icon_default" + class_shader "gfx/mp/c_icon_jedi_general" +} + +description "@SIEGE_JEDI_DJEDI_KNIGHT" diff --git a/base/ext_data/siege/classes/darkjeditech.scl b/base/ext_data/siege/classes/darkjeditech.scl new file mode 100644 index 0000000..b1ef7e8 --- /dev/null +++ b/base/ext_data/siege/classes/darkjeditech.scl @@ -0,0 +1,23 @@ +//Siege class def file. + +ClassInfo +{ + name "Dark Jedi Tech" + weapons WP_SABER + saber1 single_4 + sabercolor 0 + saberstyle SS_MEDIUM|SS_STRONG + forcepowers FP_SABER_OFFENSE,2|FP_SABER_DEFENSE,2|FP_SABERTHROW,1|FP_LEVITATION,3|FP_PUSH,1|FP_PULL,1|FP_SEE,3|FP_TEAM_FORCE,3 + classflags CFL_STATVIEWER|CFL_EXTRA_AMMO + maxhealth 100 + maxarmor 0 + startarmor 0 + model "cultist" //this is optional, if it's here it forces the model to this. + skin "brown" //this is optional, if it's here it forces the skin to this. + uishader "models/players/cultist/icon_brown" + class_shader "gfx/mp/c_icon_support" +// holdables HI_HEALTHDISP|HI_AMMODISP + holdables HI_HEALTHDISP +} + +description "@SIEGE_SUPP_DJEDI_TECH" diff --git a/base/ext_data/siege/classes/darksidemarauder.scl b/base/ext_data/siege/classes/darksidemarauder.scl new file mode 100644 index 0000000..8bb8208 --- /dev/null +++ b/base/ext_data/siege/classes/darksidemarauder.scl @@ -0,0 +1,21 @@ +//Siege class def file. + +ClassInfo +{ + name "Dark Side Marauder" + weapons WP_SABER + saber1 dual_1 + sabercolor 0 + saberstyle SS_STAFF + forcepowers FP_SABER_OFFENSE,3|FP_SABER_DEFENSE,1|FP_SABERTHROW,2|FP_LEVITATION,2|FP_GRIP,3|FP_RAGE,3|FP_PUSH,2|FP_PULL,1|FP_LIGHTNING,1 + maxhealth 100 + maxarmor 0 + startarmor 0 + speed 1.25 + model "reborn_new" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/reborn_new/icon_default" + class_shader "gfx/mp/c_icon_jedi_general" +} + +description "@SIEGE_JEDI_DJEDI_MARAUDER" diff --git a/base/ext_data/siege/classes/darksidemauler.scl b/base/ext_data/siege/classes/darksidemauler.scl new file mode 100644 index 0000000..0993537 --- /dev/null +++ b/base/ext_data/siege/classes/darksidemauler.scl @@ -0,0 +1,20 @@ +//Siege class def file. + +ClassInfo +{ + name "Dark Side Mauler" + weapons WP_SABER + saber1 dual_1 + sabercolor 0 + saberstyle SS_STAFF + forcepowers FP_SABER_OFFENSE,3|FP_SABER_DEFENSE,2|FP_LEVITATION,2|FP_GRIP,2|FP_RAGE,3|FP_PUSH,2|FP_PULL,1 + maxhealth 100 + maxarmor 0 + speed 1.25 + model "reborn_new" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/reborn_new/icon_default" + class_shader "gfx/mp/c_icon_infantry" +} + +description "@SIEGE_INF_DJEDI_MAULER" diff --git a/base/ext_data/siege/classes/imperialdemo.scl b/base/ext_data/siege/classes/imperialdemo.scl new file mode 100644 index 0000000..4f1c53d --- /dev/null +++ b/base/ext_data/siege/classes/imperialdemo.scl @@ -0,0 +1,19 @@ +//Siege class def file. + +ClassInfo +{ + name "Imperial Demolitionist" + weapons WP_BLASTER|WP_THERMAL|WP_TRIP_MINE|WP_DET_PACK + classflags CFL_EXTRA_AMMO + maxhealth 100 + maxarmor 100 + startarmor 0 + model "rax_joris" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/rax_joris/icon_default" + class_shader "gfx/mp/c_icon_demolitionist" + holdables HI_MEDPAC +} + +description +"@SIEGE_DEMO_IMP_DEMO" diff --git a/base/ext_data/siege/classes/imperialltdemo.scl b/base/ext_data/siege/classes/imperialltdemo.scl new file mode 100644 index 0000000..f530b2b --- /dev/null +++ b/base/ext_data/siege/classes/imperialltdemo.scl @@ -0,0 +1,19 @@ +//Siege class def file. +//NOTE: light version used for Star Destroyer map + +ClassInfo +{ + name "Imperial Light Demolitionist" + weapons WP_BLASTER_PISTOL|WP_THERMAL|WP_TRIP_MINE|WP_DET_PACK +// classflags CFL_EXTRA_AMMO + maxhealth 30 + maxarmor 0 + startarmor 0 + model "imperial" //this is optional, if it's here it forces the model to this. + skin "officer" //this is optional, if it's here it forces the skin to this. + uishader "models/players/imperial/icon_officer" + class_shader "gfx/mp/c_icon_demolitionist" +} + +description +"@SIEGE_DEMO_IMP_LT_DEMO" diff --git a/base/ext_data/siege/classes/imperialltsniper.scl b/base/ext_data/siege/classes/imperialltsniper.scl new file mode 100644 index 0000000..726b022 --- /dev/null +++ b/base/ext_data/siege/classes/imperialltsniper.scl @@ -0,0 +1,19 @@ +//Siege class def file. +//NOTE: light version used for Star Destroyer map + +ClassInfo +{ + name "Imperial Light Sniper" + weapons WP_BLASTER_PISTOL|WP_DISRUPTOR + classflags CFL_EXTRA_AMMO + maxhealth 20 + maxarmor 0 + startarmor 0 + model "imperial" //this is optional, if it's here it forces the model to this. + skin "commander" //this is optional, if it's here it forces the skin to this. + uishader "models/players/imperial/icon_commander" + class_shader "gfx/mp/c_icon_vanguard" +} + +description +"@SIEGE_VAN_IMP_LT_SNIPER" diff --git a/base/ext_data/siege/classes/imperialsniper.scl b/base/ext_data/siege/classes/imperialsniper.scl new file mode 100644 index 0000000..ae6ded7 --- /dev/null +++ b/base/ext_data/siege/classes/imperialsniper.scl @@ -0,0 +1,21 @@ +//Siege class def file. + +ClassInfo +{ + name "Imperial Sniper" + weapons WP_BLASTER_PISTOL|WP_DISRUPTOR + forcepowers 0 + classflags CFL_EXTRA_AMMO + maxhealth 100 + maxarmor 50 + startarmor 0 + model "saboteur" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/saboteur/icon_default" + class_shader "gfx/mp/c_icon_vanguard" + holdables HI_MEDPAC|HI_SENTRY_GUN + speed 1.25 +} + +description +"@SIEGE_VAN_IMP_SNIPER" diff --git a/base/ext_data/siege/classes/implttech.scl b/base/ext_data/siege/classes/implttech.scl new file mode 100644 index 0000000..480fa89 --- /dev/null +++ b/base/ext_data/siege/classes/implttech.scl @@ -0,0 +1,19 @@ +//Siege class def file. +//NOTE: light version used for Star Destroyer map + +ClassInfo +{ + name "Imperial Light Tech" + weapons WP_BLASTER_PISTOL|WP_DEMP2 + classflags CFL_EXTRA_AMMO|CFL_STATVIEWER + maxhealth 25 + maxarmor 10 + startarmor 0 + model "imperial_worker" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/imperial_worker/icon_default" + class_shader "gfx/mp/c_icon_support" + holdables HI_HEALTHDISP|HI_AMMODISP +} + +description "@SIEGE_SUPP_IMP_LT_TECH" diff --git a/base/ext_data/siege/classes/imppilot.scl b/base/ext_data/siege/classes/imppilot.scl new file mode 100644 index 0000000..dfc2c75 --- /dev/null +++ b/base/ext_data/siege/classes/imppilot.scl @@ -0,0 +1,18 @@ +//Siege class def file. +//NOTE: light version used for Star Destroyer map + +ClassInfo +{ + name "Imperial Pilot" + weapons WP_BLASTER_PISTOL + maxhealth 25 + maxarmor 0 + startarmor 0 + model "stormpilot" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/stormpilot/icon_default" + class_shader "gfx/mp/c_icon_infantry" +} + +description +"@SIEGE_INF_IMP_PILOT" diff --git a/base/ext_data/siege/classes/impsupply.scl b/base/ext_data/siege/classes/impsupply.scl new file mode 100644 index 0000000..698a8b8 --- /dev/null +++ b/base/ext_data/siege/classes/impsupply.scl @@ -0,0 +1,20 @@ +//Siege class def file. + +ClassInfo +{ + name "Imperial Supply" + weapons WP_BLASTER_PISTOL|WP_BLASTER + forcepowers 0 + classflags CFL_STATVIEWER|CFL_EXTRA_AMMO + maxhealth 100 + maxarmor 100 + startarmor 0 + model "stormpilot" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/stormpilot/icon_default" + class_shader "gfx/mp/c_icon_support" + holdables HI_HEALTHDISP|HI_AMMODISP +} + +description +"@SIEGE_SUPP_IMP_SUPPLIER" diff --git a/base/ext_data/siege/classes/imptech.scl b/base/ext_data/siege/classes/imptech.scl new file mode 100644 index 0000000..2f5f820 --- /dev/null +++ b/base/ext_data/siege/classes/imptech.scl @@ -0,0 +1,18 @@ +//Siege class def file. + +ClassInfo +{ + name "Imperial Tech" + weapons WP_BLASTER_PISTOL|WP_DEMP2 + classflags CFL_EXTRA_AMMO|CFL_STATVIEWER + maxhealth 100 + maxarmor 100 + startarmor 0 + model "imperial_worker" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/imperial_worker/icon_default" + class_shader "gfx/mp/c_icon_support" + holdables HI_MEDPAC|HI_SENTRY_GUN|HI_HEALTHDISP|HI_AMMODISP +} + +description "@SIEGE_SUPP_IMP_TECH" diff --git a/base/ext_data/siege/classes/jediapprentice.scl b/base/ext_data/siege/classes/jediapprentice.scl new file mode 100644 index 0000000..d447637 --- /dev/null +++ b/base/ext_data/siege/classes/jediapprentice.scl @@ -0,0 +1,21 @@ +//Siege class def file. +//NOTE: light version used for Star Destroyer map + +ClassInfo +{ + name "Jedi Apprentice" + weapons WP_SABER + saber1 single_3 + sabercolor 4 + saberstyle SS_FAST|SS_MEDIUM|SS_STRONG + forcepowers FP_SABER_OFFENSE,3|FP_SABER_DEFENSE,2|FP_LEVITATION,2|FP_PUSH,1|FP_PULL,1 + maxhealth 50 + maxarmor 0 + startarmor 0 + model "jedi" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/jedi/icon_default" + class_shader "gfx/mp/c_icon_jedi_general" +} + +description "@SIEGE_JEDI_JEDI_APPRENTICE" diff --git a/base/ext_data/siege/classes/jedidemo.scl b/base/ext_data/siege/classes/jedidemo.scl new file mode 100644 index 0000000..3eb6018 --- /dev/null +++ b/base/ext_data/siege/classes/jedidemo.scl @@ -0,0 +1,21 @@ +//Siege class def file. + +ClassInfo +{ + name "Jedi Demolitionist" + weapons WP_SABER|WP_DET_PACK + saber1 single_7 + sabercolor 4 + saberstyle SS_MEDIUM + forcepowers FP_SABER_OFFENSE,2|FP_SABER_DEFENSE,2|FP_SABERTHROW,1|FP_LEVITATION,2|FP_PUSH,1|FP_PULL,1|FP_SEE,1|FP_ABSORB,1 + classflags CFL_EXTRA_AMMO + maxhealth 100 + maxarmor 0 + startarmor 0 + model "jedi" //this is optional, if it's here it forces the model to this. + skin "j2" //this is optional, if it's here it forces the skin to this. + uishader "models/players/jedi/icon_j2" + class_shader "gfx/mp/c_icon_demolitionist" +} + +description "@SIEGE_DEMO_JEDI_DEMO" diff --git a/base/ext_data/siege/classes/jediduelist.scl b/base/ext_data/siege/classes/jediduelist.scl new file mode 100644 index 0000000..0df31ee --- /dev/null +++ b/base/ext_data/siege/classes/jediduelist.scl @@ -0,0 +1,26 @@ +//Siege class def file. + +ClassInfo +{ + name "Jedi Duelist" + weapons WP_SABER + saber1 single_5 + sabercolor 5 + saber2 single_5 + saber2color 5 + saberstyle SS_DUAL + saberstyle SS_FAST|SS_MEDIUM|SS_STRONG + // hmm - this is getting further and further from the idea of the jedi-duelist, isn't it? + forcepowers FP_SABER_OFFENSE,3|FP_SABER_DEFENSE,1|FP_SABERTHROW,3|FP_LEVITATION,3|FP_TELEPATHY,2|FP_PROTECT,2|FP_ABSORB,2|FP_PUSH,3|FP_PULL,3 + forcealignment light + maxhealth 100 + maxarmor 0 + startarmor 0 + speed 1.25 + model "jedi_zf" //this is optional, if it's here it forces the model to this. + skin "siege" //this is optional, if it's here it forces the skin to this. + uishader "models/players/jedi_zf/icon_siege" + class_shader "gfx/mp/c_icon_jedi_general" +} + +description "@SIEGE_JEDI_JEDI_DUELIST" diff --git a/base/ext_data/siege/classes/jediforceuser.scl b/base/ext_data/siege/classes/jediforceuser.scl new file mode 100644 index 0000000..9ca3423 --- /dev/null +++ b/base/ext_data/siege/classes/jediforceuser.scl @@ -0,0 +1,21 @@ +//Siege class def file. + +ClassInfo +{ + name "Jedi Force User" + weapons 0 + classflags CFL_FASTFORCEREGEN + forcepowers FP_LEVITATION,3|FP_SPEED,3|FP_PUSH,3|FP_PULL,3|FP_SEE,3|FP_TELEPATHY,3|FP_PROTECT,3|FP_ABSORB,3|FP_HEAL,3 + forcealignment light + maxhealth 100 + maxarmor 100 + startarmor 0 + model "jedi_tf" //this is optional, if it's here it forces the model to this. + speed 1.25 + skin "siege" //this is optional, if it's here it forces the skin to this. + uishader "models/players/jedi_tf/icon_siege" + class_shader "gfx/mp/c_icon_jedi_general" +} + +description "Jedi Force User: A master of use of the light side of the force, this Jedi has no use for weapons, not even a saber. +HEALTH 100, ARMOR 100, SPEED 100%, MELEE, JUMP 3, SPEED 3, PUSH 3, PULL 3, SIGHT 3, MIND TRICK 3, PROTECT 3, ABSORB 3, HEAL 3" diff --git a/base/ext_data/siege/classes/jediguardian.scl b/base/ext_data/siege/classes/jediguardian.scl new file mode 100644 index 0000000..d647b37 --- /dev/null +++ b/base/ext_data/siege/classes/jediguardian.scl @@ -0,0 +1,21 @@ +//Siege class def file. + +ClassInfo +{ + name "Jedi Guardian" + weapons WP_SABER + saber1 dual_1 + sabercolor 3 + saberstyle SS_STAFF + forcepowers FP_SABER_OFFENSE,1|FP_SABER_DEFENSE,1|FP_SABERTHROW,2|FP_LEVITATION,2|FP_PUSH,2|FP_PULL,1|FP_SEE,1|FP_HEAL,1 + maxhealth 50 + starthealth 50 + maxarmor 0 + model "jedi_kdm" //this is optional, if it's here it forces the model to this. + speed 1.25 + skin "siege" //this is optional, if it's here it forces the skin to this. + uishader "models/players/jedi_kdm/icon_siege" + class_shader "gfx/mp/c_icon_jedi_general" +} + +description "@SIEGE_JEDI_JEDI_GUARDIAN" diff --git a/base/ext_data/siege/classes/jedihealer.scl b/base/ext_data/siege/classes/jedihealer.scl new file mode 100644 index 0000000..df3fa43 --- /dev/null +++ b/base/ext_data/siege/classes/jedihealer.scl @@ -0,0 +1,22 @@ +//Siege class def file. + +ClassInfo +{ + name "Jedi Healer" + weapons WP_SABER + saber1 single_7 + sabercolor 4 + saberstyle SS_FAST + classflags CFL_FASTFORCEREGEN + forcepowers FP_SABER_OFFENSE,1|FP_LEVITATION,3|FP_PUSH,1|FP_PULL,1|FP_TELEPATHY,3|FP_PROTECT,3|FP_ABSORB,3|FP_HEAL,3|FP_TEAM_HEAL,2 + forcealignment light + maxhealth 100 + maxarmor 0 + model "jedi_hf" //this is optional, if it's here it forces the model to this. + speed 1.25 + skin "siege" //this is optional, if it's here it forces the skin to this. + uishader "models/players/jedi_hf/icon_siege" + class_shader "gfx/mp/c_icon_support" +} + +description "@SIEGE_SUPP_JEDI_HEALER" diff --git a/base/ext_data/siege/classes/jedihunter.scl b/base/ext_data/siege/classes/jedihunter.scl new file mode 100644 index 0000000..d095868 --- /dev/null +++ b/base/ext_data/siege/classes/jedihunter.scl @@ -0,0 +1,19 @@ +//Siege class def file. + +ClassInfo +{ + name "Jedi Hunter" + weapons WP_BLASTER_PISTOL|WP_BLASTER|WP_FLECHETTE + forcepowers 0 + maxhealth 100 + maxarmor 100 + startarmor 0 + class_shader "gfx/mp/c_icon_infantry" + model "swamptrooper" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/swamptrooper/icon_default" + holdables HI_YSALIMIRI + speed 1.25 +} + +description "@SIEGE_INF_JEDI_HUNTER" diff --git a/base/ext_data/siege/classes/jediknight.scl b/base/ext_data/siege/classes/jediknight.scl new file mode 100644 index 0000000..481c6bc --- /dev/null +++ b/base/ext_data/siege/classes/jediknight.scl @@ -0,0 +1,21 @@ +//Siege class def file. + +ClassInfo +{ + name "Jedi Knight" + weapons WP_SABER + saber1 single_4 + sabercolor 4 + saberstyle SS_FAST|SS_MEDIUM|SS_STRONG + forcepowers FP_SABER_OFFENSE,2|FP_SABER_DEFENSE,2|FP_SABERTHROW,2|FP_LEVITATION,3|FP_SPEED,1|FP_PUSH,2|FP_PULL,2|FP_SEE,1|FP_ABSORB,1|FP_HEAL,1 + maxhealth 100 + maxarmor 0 + startarmor 0 + model "jedi_hm" //this is optional, if it's here it forces the model to this. + speed 1.25 + skin "siege" //this is optional, if it's here it forces the skin to this. + uishader "models/players/jedi_hm/icon_siege" + class_shader "gfx/mp/c_icon_heavy_weapons" +} + +description "@SIEGE_HVY_JEDI_KNIGHT" diff --git a/base/ext_data/siege/classes/jedilightsabermaster.scl b/base/ext_data/siege/classes/jedilightsabermaster.scl new file mode 100644 index 0000000..a762564 --- /dev/null +++ b/base/ext_data/siege/classes/jedilightsabermaster.scl @@ -0,0 +1,24 @@ +//Siege class def file. + +ClassInfo +{ + name "Jedi Lightsaber Master" + weapons WP_SABER + saber1 single_5 + sabercolor 5 + saber2 single_5 + saber2color 5 + saberstyle SS_DUAL + saberstyle SS_FAST|SS_MEDIUM|SS_STRONG + forcepowers FP_SABER_OFFENSE,3|FP_SABER_DEFENSE,3|FP_LEVITATION,2|FP_PUSH,2|FP_PULL,2|FP_ABSORB,1 + forcealignment light + maxhealth 100 + maxarmor 0 + speed 1.25 + model "jedi_zf" //this is optional, if it's here it forces the model to this. + skin "siege" //this is optional, if it's here it forces the skin to this. + uishader "models/players/jedi_zf/icon_siege" + class_shader "gfx/mp/c_icon_jedi_general" +} + +description "@SIEGE_JEDI_JEDI_DUELIST" diff --git a/base/ext_data/siege/classes/jediscout.scl b/base/ext_data/siege/classes/jediscout.scl new file mode 100644 index 0000000..d3f78f6 --- /dev/null +++ b/base/ext_data/siege/classes/jediscout.scl @@ -0,0 +1,21 @@ +//Siege class def file. + +ClassInfo +{ + name "Jedi Scout" + weapons WP_SABER + saber1 single_2 + sabercolor 2 + saberstyle SS_FAST + forcepowers FP_SABER_OFFENSE,1|FP_SABER_DEFENSE,2|FP_LEVITATION,2|FP_SPEED,3|FP_TELEPATHY,2|FP_ABSORB,1|FP_PUSH,1|FP_PULL,1 + forcealignment light + maxhealth 85 + maxarmor 0 + model "jedi_rm" //this is optional, if it's here it forces the model to this. + speed 1.25 + skin "siege" //this is optional, if it's here it forces the skin to this. + uishader "models/players/jedi_rm/icon_siege" + class_shader "gfx/mp/c_icon_vanguard" +} + +description "@SIEGE_VAN_JEDI_SCOUT" \ No newline at end of file diff --git a/base/ext_data/siege/classes/jeditech.scl b/base/ext_data/siege/classes/jeditech.scl new file mode 100644 index 0000000..a243447 --- /dev/null +++ b/base/ext_data/siege/classes/jeditech.scl @@ -0,0 +1,22 @@ +//Siege class def file. + +ClassInfo +{ + name "Jedi Tech" + weapons WP_SABER + saber1 single_2 + sabercolor 0 + saberstyle SS_FAST|SS_MEDIUM + forcepowers FP_SABER_OFFENSE,2|FP_SABER_DEFENSE,2|FP_SABERTHROW,1|FP_LEVITATION,2|FP_PUSH,1|FP_PULL,1|FP_SEE,2 + classflags CFL_STATVIEWER|CFL_EXTRA_AMMO + maxhealth 100 + maxarmor 0 + startarmor 0 + model "jedi" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/jedi/icon_default" + class_shader "gfx/mp/c_icon_support" + holdables HI_HEALTHDISP|HI_AMMODISP +} + +description "@SIEGE_JEDI_JEDI_TECH" diff --git a/base/ext_data/siege/classes/jediwarrior.scl b/base/ext_data/siege/classes/jediwarrior.scl new file mode 100644 index 0000000..c1930f5 --- /dev/null +++ b/base/ext_data/siege/classes/jediwarrior.scl @@ -0,0 +1,20 @@ +//Siege class def file. + +ClassInfo +{ + name "Jedi Warrior" + weapons WP_SABER + saber1 dual_1 + sabercolor 3 + saberstyle SS_STAFF + forcepowers FP_SABER_OFFENSE,2|FP_SABER_DEFENSE,3|FP_LEVITATION,2|FP_PUSH,2|FP_PULL,1|FP_PROTECT,3|FP_ABSORB,1|FP_HEAL,1 + maxhealth 100 + maxarmor 0 + model "jedi_kdm" //this is optional, if it's here it forces the model to this. + speed 1.25 + skin "siege" //this is optional, if it's here it forces the skin to this. + uishader "models/players/jedi_kdm/icon_siege" + class_shader "gfx/mp/c_icon_infantry" +} + +description "@SIEGE_INF_JEDI_WARRIOR" diff --git a/base/ext_data/siege/classes/kyle.scl b/base/ext_data/siege/classes/kyle.scl new file mode 100644 index 0000000..02f63bb --- /dev/null +++ b/base/ext_data/siege/classes/kyle.scl @@ -0,0 +1,18 @@ +//Siege class def file. + +ClassInfo +{ + name "Kyle" + weapons WP_BLASTER_PISTOL|WP_BLASTER|WP_THERMAL + forcepowers FP_LEVITATION,1|FP_PUSH,2|FP_PULL,2|FP_HEAL,1|FP_SEE,1|FP_PROTECT,2 + maxhealth 100 + maxarmor 100 + startarmor 0 + model "kyle" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/kyle/icon_default" + class_shader "gfx/mp/c_icon_infantry" + holdables HI_BINOCULARS +} + +description "@SIEGE_INF_LIGHT_FORCE_ADVENTURER" \ No newline at end of file diff --git a/base/ext_data/siege/classes/mercassault.scl b/base/ext_data/siege/classes/mercassault.scl new file mode 100644 index 0000000..384ad1e --- /dev/null +++ b/base/ext_data/siege/classes/mercassault.scl @@ -0,0 +1,21 @@ +//Siege class def file. + +ClassInfo +{ + name "Merc Assault Specialist" + weapons WP_BLASTER_PISTOL|WP_CONCUSSION +// classflags CFL_EXTRA_AMMO + classflags CFL_SPEED_75 + forcepowers 0 + maxhealth 100 + maxarmor 100 + startarmor 0 + model "trandoshan" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/trandoshan/icon_default" + class_shader "gfx/mp/c_icon_heavy_weapons" + speed 0.75 +} + +description "@SIEGE_HVY_MERC_ASSAULT" +" diff --git a/base/ext_data/siege/classes/mercdemo.scl b/base/ext_data/siege/classes/mercdemo.scl new file mode 100644 index 0000000..566b3c6 --- /dev/null +++ b/base/ext_data/siege/classes/mercdemo.scl @@ -0,0 +1,19 @@ +//Siege class def file. + +ClassInfo +{ + name "Merc Demolitionist" + weapons WP_MELEE|WP_BLASTER_PISTOL|WP_THERMAL|WP_TRIP_MINE|WP_DET_PACK + forcepowers 0 + classflags CFL_EXTRA_AMMO + maxhealth 100 + maxarmor 100 + startarmor 0 + model "gran" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/gran/icon_default" + holdables HI_MEDPAC + class_shader "gfx/mp/c_icon_demolitionist" +} + +description "@SIEGE_DEMO_MERC_DEMO" diff --git a/base/ext_data/siege/classes/mercenary.scl b/base/ext_data/siege/classes/mercenary.scl new file mode 100644 index 0000000..24855f9 --- /dev/null +++ b/base/ext_data/siege/classes/mercenary.scl @@ -0,0 +1,17 @@ +//Siege class def file. + +ClassInfo +{ + name "Mercenary" + weapons WP_BLASTER_PISTOL|WP_BLASTER|WP_REPEATER|WP_TRIP_MINE + forcepowers 0 + maxhealth 100 + startarmor 0 + model "human_merc" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/human_merc/icon_default" + holdables HI_SENTRY_GUN + class_shader "gfx/mp/c_icon_infantry" +} + +description "@SIEGE_INF_MERCENARY" diff --git a/base/ext_data/siege/classes/mercheavy.scl b/base/ext_data/siege/classes/mercheavy.scl new file mode 100644 index 0000000..fd30a82 --- /dev/null +++ b/base/ext_data/siege/classes/mercheavy.scl @@ -0,0 +1,19 @@ +//Siege class def file. + +ClassInfo +{ + name "Merc Heavy Weapons Specialist" + weapons WP_BLASTER_PISTOL|WP_BOWCASTER|WP_ROCKET_LAUNCHER + classflags CFL_SPEED_75 + forcepowers 0 + maxhealth 100 + maxarmor 100 + startarmor 0 + model "weequay" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/weequay/icon_default" + class_shader "gfx/mp/c_icon_heavy_weapons" + speed 0.75 +} + +description "@SIEGE_HVY_MERC_SPECIALIST" diff --git a/base/ext_data/siege/classes/mercsniper.scl b/base/ext_data/siege/classes/mercsniper.scl new file mode 100644 index 0000000..8ace6b2 --- /dev/null +++ b/base/ext_data/siege/classes/mercsniper.scl @@ -0,0 +1,24 @@ +//Siege class def file. + +ClassInfo +{ + name "Merc Sniper" + weapons WP_BLASTER_PISTOL|WP_DISRUPTOR + classflags CFL_EXTRA_AMMO + forcepowers 0 + maxhealth 50 + maxarmor 50 + starthealth 50 + startarmor 0 + //model "rodian" //this is optional, if it's here it forces the model to this. + //skin "default" //this is optional, if it's here it forces the skin to this. + //uishader "models/players/rodian/icon_default" + //holdables HI_CLOAK + model "boba_fett" //this is optional, if it's here it forces the model to this. + skin "no_jetpack" //this is optional, if it's here it forces the skin to this. + uishader "models/players/boba_fett/icon_default" + holdables HI_JETPACK + class_shader "gfx/mp/c_icon_vanguard" +} + +description "@SIEGE_VAN_MERC_SNIPER" diff --git a/base/ext_data/siege/classes/protector.scl b/base/ext_data/siege/classes/protector.scl new file mode 100644 index 0000000..beb509f --- /dev/null +++ b/base/ext_data/siege/classes/protector.scl @@ -0,0 +1,20 @@ +//Siege class def file. + +ClassInfo +{ + name "Protector" + weapons WP_BLASTER_PISTOL|WP_REPEATER|WP_THERMAL +// weapons WP_CONCUSSION|WP_NOGHRI + forcepowers FP_LEVITATION,2 + maxhealth 150 + maxarmor 0 + startarmor 0 + speed 1.25 + model "noghri" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/noghri/icon_default" + class_shader "gfx/mp/c_icon_infantry" + holdables HI_SENTRY_GUN|HI_CLOAK +} + +description "@SIEGE_INF_PROTECTOR" diff --git a/base/ext_data/siege/classes/rebelassault.scl b/base/ext_data/siege/classes/rebelassault.scl new file mode 100644 index 0000000..53acb29 --- /dev/null +++ b/base/ext_data/siege/classes/rebelassault.scl @@ -0,0 +1,25 @@ +//Siege class def file. + +ClassInfo +{ + name "Rebel Assault Specialist" +// weapons WP_BLASTER_PISTOL|WP_BLASTER|WP_REPEATER|WP_THERMAL +// weapons WP_BLASTER_PISTOL|WP_BLASTER|WP_FLECHETTE + weapons WP_BLASTER_PISTOL|WP_BLASTER|WP_REPEATER +// classflags CFL_EXTRA_AMMO + forcepowers 0 + maxhealth 200 + starthealth 200 + maxarmor 100 + startarmor 0 + model "rebel" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/rebel/icon_default" +// holdables HI_MEDPAC|HI_SEEKER + holdables HI_EWEB + speed 0.85 + class_shader "gfx/mp/c_icon_infantry" +} + +description +"@SIEGE_INF_REBEL_ASSAULT" diff --git a/base/ext_data/siege/classes/rebeldemo.scl b/base/ext_data/siege/classes/rebeldemo.scl new file mode 100644 index 0000000..a4b5433 --- /dev/null +++ b/base/ext_data/siege/classes/rebeldemo.scl @@ -0,0 +1,20 @@ +//Siege class def file. + +ClassInfo +{ + name "Rebel Demolitionist" + weapons WP_BLASTER_PISTOL|WP_THERMAL|WP_TRIP_MINE|WP_DET_PACK + forcepowers 0 + classflags CFL_EXTRA_AMMO + maxhealth 100 + maxarmor 100 + startarmor 0 + model "bespin_cop" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/bespin_cop/icon_default" + class_shader "gfx/mp/c_icon_demolitionist" + holdables HI_MEDPAC +} + +description +"@SIEGE_DEMO_REBEL_DEMO" diff --git a/base/ext_data/siege/classes/rebelhvyinfantry.scl b/base/ext_data/siege/classes/rebelhvyinfantry.scl new file mode 100644 index 0000000..c413c89 --- /dev/null +++ b/base/ext_data/siege/classes/rebelhvyinfantry.scl @@ -0,0 +1,18 @@ +//Siege class def file. +//NOTE: light version used for Star Destroyer map + +ClassInfo +{ + name "Rebel Heavy Infantry" + weapons WP_BLASTER_PISTOL|WP_BLASTER|WP_BOWCASTER + maxhealth 50 + maxarmor 0 + startarmor 0 + model "rebel" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/rebel/icon_default" + class_shader "gfx/mp/c_icon_heavy_weapons" +} + +description +"@SIEGE_HVY_REBEL_HVY_INFANTRY" diff --git a/base/ext_data/siege/classes/rebelinfantry.scl b/base/ext_data/siege/classes/rebelinfantry.scl new file mode 100644 index 0000000..9562db4 --- /dev/null +++ b/base/ext_data/siege/classes/rebelinfantry.scl @@ -0,0 +1,18 @@ +//Siege class def file. + +ClassInfo +{ + name "Rebel Infantry" + weapons WP_BLASTER_PISTOL|WP_BLASTER|WP_FLECHETTE|WP_TRIP_MINE|WP_REPEATER + maxhealth 100 + maxarmor 0 + startarmor 0 //need 0 + model "rebel" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/rebel/icon_default" + holdables HI_MEDPAC_BIG + class_shader "gfx/mp/c_icon_infantry" +} + +description +"@SIEGE_INF_REBEL_INFANTRY" diff --git a/base/ext_data/siege/classes/rebelltdemo.scl b/base/ext_data/siege/classes/rebelltdemo.scl new file mode 100644 index 0000000..8e84efb --- /dev/null +++ b/base/ext_data/siege/classes/rebelltdemo.scl @@ -0,0 +1,19 @@ +//Siege class def file. +//NOTE: light version used for Star Destroyer map + +ClassInfo +{ + name "Rebel Light Demolitionist" + weapons WP_BLASTER_PISTOL|WP_THERMAL|WP_TRIP_MINE|WP_DET_PACK + classflags CFL_EXTRA_AMMO + maxhealth 30 + maxarmor 0 + startarmor 0 + model "bespin_cop" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/bespin_cop/icon_default" + class_shader "gfx/mp/c_icon_demolitionist" +} + +description +"@SIEGE_DEMO_REBEL_LT_DEMO" diff --git a/base/ext_data/siege/classes/rebelltsniper.scl b/base/ext_data/siege/classes/rebelltsniper.scl new file mode 100644 index 0000000..1126331 --- /dev/null +++ b/base/ext_data/siege/classes/rebelltsniper.scl @@ -0,0 +1,19 @@ +//Siege class def file. +//NOTE: light version used for Star Destroyer map + +ClassInfo +{ + name "Rebel Light Sniper" + weapons WP_BLASTER_PISTOL|WP_DISRUPTOR + classflags CFL_EXTRA_AMMO + maxhealth 20 + maxarmor 0 + startarmor 0 + model "lando" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/lando/icon_default" + class_shader "gfx/mp/c_icon_vanguard" +} + +description +"@SIEGE_VAN_REBEL_LT_SNIPER" diff --git a/base/ext_data/siege/classes/rebellttech.scl b/base/ext_data/siege/classes/rebellttech.scl new file mode 100644 index 0000000..57d72f5 --- /dev/null +++ b/base/ext_data/siege/classes/rebellttech.scl @@ -0,0 +1,18 @@ +//Siege class def file. + +ClassInfo +{ + name "Rebel Light Tech" + weapons WP_BLASTER_PISTOL|WP_DEMP2 + classflags CFL_EXTRA_AMMO|CFL_STATVIEWER + maxhealth 25 + maxarmor 10 + startarmor 0 + model "jan" //this is optional, if it's here it forces the model to this. + skin "siege" //changed skin cause default has two torsos on //this is optional, if it's here it forces the skin to this. + uishader "models/players/jan/icon_default" + class_shader "gfx/mp/c_icon_support" + holdables HI_SHIELD|HI_HEALTHDISP|HI_AMMODISP +} + +description "@SIEGE_SUPP_REBEL_LT_TECH" diff --git a/base/ext_data/siege/classes/rebelpilot.scl b/base/ext_data/siege/classes/rebelpilot.scl new file mode 100644 index 0000000..ecf296b --- /dev/null +++ b/base/ext_data/siege/classes/rebelpilot.scl @@ -0,0 +1,17 @@ +//Siege class def file. +//NOTE: light version used for Star Destroyer map + +ClassInfo +{ + name "Rebel Pilot" + weapons WP_BLASTER_PISTOL + maxhealth 25 + maxarmor 0 + model "rebel_pilot" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/rebel_pilot/icon_default" + class_shader "gfx/mp/c_icon_infantry" +} + +description +"@SIEGE_INF_REB_PILOT" diff --git a/base/ext_data/siege/classes/rebelsniper.scl b/base/ext_data/siege/classes/rebelsniper.scl new file mode 100644 index 0000000..ff5f96a --- /dev/null +++ b/base/ext_data/siege/classes/rebelsniper.scl @@ -0,0 +1,21 @@ +//Siege class def file. + +ClassInfo +{ + name "Rebel Sniper" + weapons WP_BLASTER_PISTOL|WP_DISRUPTOR + forcepowers 0 + classflags CFL_EXTRA_AMMO + maxhealth 100 + maxarmor 0 + startarmor 0 + model "lando" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/lando/icon_default" + holdables HI_CLOAK + speed 1.25 + class_shader "gfx/mp/c_icon_vanguard" +} + +description +"@SIEGE_VAN_REBEL_SNIPER" diff --git a/base/ext_data/siege/classes/rebelsupply.scl b/base/ext_data/siege/classes/rebelsupply.scl new file mode 100644 index 0000000..965111b --- /dev/null +++ b/base/ext_data/siege/classes/rebelsupply.scl @@ -0,0 +1,19 @@ +//Siege class def file. + +ClassInfo +{ + name "Rebel Supply" + weapons WP_BLASTER_PISTOL|WP_BLASTER + classflags CFL_STATVIEWER|CFL_EXTRA_AMMO + maxhealth 100 + maxarmor 100 + startarmor 0 + model "jan" //this is optional, if it's here it forces the model to this. + skin "blue" //this is optional, if it's here it forces the skin to this. + uishader "models/players/jan/icon_blue" + holdables HI_HEALTHDISP|HI_AMMODISP + class_shader "gfx/mp/c_icon_support" +} + +description +"@SIEGE_SUPP_REBEL_SUPPLY" diff --git a/base/ext_data/siege/classes/rebeltech.scl b/base/ext_data/siege/classes/rebeltech.scl new file mode 100644 index 0000000..b1ab9ca --- /dev/null +++ b/base/ext_data/siege/classes/rebeltech.scl @@ -0,0 +1,18 @@ +//Siege class def file. + +ClassInfo +{ + name "Rebel Tech" + weapons WP_BLASTER_PISTOL|WP_DEMP2 + classflags CFL_EXTRA_AMMO|CFL_STATVIEWER + maxhealth 100 + maxarmor 100 + startarmor 0 + model "jan" //this is optional, if it's here it forces the model to this. + skin "siege" //changed skin cause default has two torsos on //this is optional, if it's here it forces the skin to this. + uishader "models/players/jan/icon_default" + class_shader "gfx/mp/c_icon_support" + holdables HI_SEEKER|HI_SHIELD|HI_HEALTHDISP|HI_AMMODISP +} + +description "@SIEGE_SUPP_REBEL_TECH" diff --git a/base/ext_data/siege/classes/rockettrooper.scl b/base/ext_data/siege/classes/rockettrooper.scl new file mode 100644 index 0000000..c174d8d --- /dev/null +++ b/base/ext_data/siege/classes/rockettrooper.scl @@ -0,0 +1,22 @@ +//Siege class def file. + +ClassInfo +{ + name "Rocket Trooper" + weapons WP_BLASTER_PISTOL|WP_ROCKET_LAUNCHER +// weapons WP_BLASTER_PISTOL|WP_REPEATER +// classflags CFL_EXTRA_AMMO + forcepowers 0 + maxhealth 100 + maxarmor 100 + startarmor 0 +// model "rockettrooper" //this is optional, if it's here it forces the model to this. + model "stormtrooper" //this is optional, if it's here it forces the model to this. + skin "officer" //this is optional, if it's here it forces the skin to this. + uishader "models/players/stormtrooper/icon_officer" + class_shader "gfx/mp/c_icon_heavy_weapons" + speed 0.75 +} + +description +"@SIEGE_VAN_ROCKETTROOPER" diff --git a/base/ext_data/siege/classes/smuggler.scl b/base/ext_data/siege/classes/smuggler.scl new file mode 100644 index 0000000..47f0981 --- /dev/null +++ b/base/ext_data/siege/classes/smuggler.scl @@ -0,0 +1,21 @@ +//Siege class def file. + +ClassInfo +{ + name "Smuggler" + weapons WP_BLASTER_PISTOL|WP_DEMP2 + forcepowers 0 + classflags CFL_STATVIEWER|CFL_EXTRA_AMMO + maxhealth 100 + maxarmor 0 + startarmor 0 + model "chiss" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/chiss/icon_default" + class_shader "gfx/mp/c_icon_support" + holdables HI_HEALTHDISP|HI_AMMODISP|HI_SHIELD|HI_MEDPAC_BIG|HI_SENTRY_GUN + speed 0.85 +} + +description +"@SIEGE_SUPP_SMUGGLER" diff --git a/base/ext_data/siege/classes/snowtrooper.scl b/base/ext_data/siege/classes/snowtrooper.scl new file mode 100644 index 0000000..3d2d2c7 --- /dev/null +++ b/base/ext_data/siege/classes/snowtrooper.scl @@ -0,0 +1,19 @@ +//Siege class def file. + +ClassInfo +{ + name "Imperial Snowtrooper" +// weapons WP_BLASTER_PISTOL|WP_BLASTER|WP_FLECHETTE|WP_THERMAL + weapons WP_BLASTER_PISTOL|WP_BLASTER|WP_REPEATER + maxhealth 100 + maxarmor 100 + startarmor 0 + model "snowtrooper" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/snowtrooper/icon_default" + class_shader "gfx/mp/c_icon_infantry" + holdables HI_EWEB +} + +description +"@SIEGE_INF_SNOWTROOPER" diff --git a/base/ext_data/siege/classes/stormtrooper.scl b/base/ext_data/siege/classes/stormtrooper.scl new file mode 100644 index 0000000..3e375c7 --- /dev/null +++ b/base/ext_data/siege/classes/stormtrooper.scl @@ -0,0 +1,18 @@ +//Siege class def file. +//NOTE: light version used for Star Destroyer map + +ClassInfo +{ + name "Imperial Stormtrooper" + weapons WP_BLASTER_PISTOL|WP_BLASTER|WP_FLECHETTE + maxhealth 50 + maxarmor 0 + startarmor 0 + model "stormtrooper" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/stormtrooper/icon_default" + class_shader "gfx/mp/c_icon_heavy_weapons" +} + +description +"@SIEGE_HVY_STORMTROOPER" diff --git a/base/ext_data/siege/classes/vssver.scc b/base/ext_data/siege/classes/vssver.scc new file mode 100644 index 0000000..9e4eb5c Binary files /dev/null and b/base/ext_data/siege/classes/vssver.scc differ diff --git a/base/ext_data/siege/classes/wookie.scl b/base/ext_data/siege/classes/wookie.scl new file mode 100644 index 0000000..a43432d --- /dev/null +++ b/base/ext_data/siege/classes/wookie.scl @@ -0,0 +1,22 @@ +//Siege class def file. + +ClassInfo +{ + name "Wookie" + weapons WP_MELEE|WP_BOWCASTER|WP_ROCKET_LAUNCHER|WP_CONCUSSION_RIFLE + //classflags CFL_HEAVYMELEE|CFL_SPEED_75 + // removing heavymelee for now because apparently it's WAY overpowered - it tears through walls far too quickly. Maybe some other way to fix later??? + classflags CFL_SPEED_75 + maxhealth 100 + starthealth 100 + maxarmor 0 + startarmor 0 + model "chewbacca" //this is optional, if it's here it forces the model to this. + skin "default" //this is optional, if it's here it forces the skin to this. + uishader "models/players/chewbacca/icon_default" + class_shader "gfx/mp/c_icon_heavy_weapons" + speed 0.75 +} + +description +"@SIEGE_HVY_REBEL_SPECIALIST" diff --git a/base/ext_data/siege/teams/Allies.team b/base/ext_data/siege/teams/Allies.team new file mode 100644 index 0000000..930324b --- /dev/null +++ b/base/ext_data/siege/teams/Allies.team @@ -0,0 +1,16 @@ +//Siege team definition file. + +name "New Alliance" +FriendlyShader "sprites/team_allies" //Name of shader to display above heads of teammates (to others on this team) + +Classes +{ + class1 "Rebel Driver" + class2 "Rebel Sniper" + class3 "Rebel Infantry" + class4 "Rebel Assault Specialist" + class5 "Wookie" + class6 "Rebel Demolitionist" + class7 "Kyle" + class8 "Luke" +} diff --git a/base/ext_data/siege/teams/DarkJedi.team b/base/ext_data/siege/teams/DarkJedi.team new file mode 100644 index 0000000..4f44420 --- /dev/null +++ b/base/ext_data/siege/teams/DarkJedi.team @@ -0,0 +1,16 @@ +//Siege team definition file. + +name "Dark Jedi" +FriendlyShader "sprites/team_darkjedi" //Name of shader to display above heads of teammates (to others on this team) + +Classes +{ + class1 "Dark Jedi Destroyer" + class2 "Dark Jedi Invader" + class3 "Dark Jedi Duelist" + class4 "Dark Jedi Knight" + class5 "Dark Side Marauder" + class6 "Dark Force Assassin" + class7 "Cultist" + class8 "Jedi Hunter" +} diff --git a/base/ext_data/siege/teams/Imperials.team b/base/ext_data/siege/teams/Imperials.team new file mode 100644 index 0000000..16e5303 --- /dev/null +++ b/base/ext_data/siege/teams/Imperials.team @@ -0,0 +1,16 @@ +//Siege team definition file. + +name "Imperial Remnant" +FriendlyShader "sprites/team_imperials" //Name of shader to display above heads of teammates (to others on this team) + +Classes +{ + class1 "Imperial Driver" + class2 "Imperial Sniper" + class3 "Imperial Stormtrooper" + class4 "Rocket Trooper" + class5 "Hazard Trooper" + class6 "Imperial Demolitionist" + class7 "Imperial Assassin" + class8 "Imperial Officer" +} diff --git a/base/ext_data/siege/teams/Jedi.team b/base/ext_data/siege/teams/Jedi.team new file mode 100644 index 0000000..a4347ef --- /dev/null +++ b/base/ext_data/siege/teams/Jedi.team @@ -0,0 +1,16 @@ +//Siege team definition file. + +name "Jedi" +FriendlyShader "sprites/team_jedi" //Name of shader to display above heads of teammates (to others on this team) + +Classes +{ + class1 "Jedi Healer" + class2 "Jedi Scout" + class3 "Jedi Duelist" + class4 "Jedi Force User" + class5 "Jedi Knight" + class6 "Jedi Guardian" + class7 "Kyle" + class8 "Protector" +} diff --git a/base/ext_data/siege/teams/Mercs.team b/base/ext_data/siege/teams/Mercs.team new file mode 100644 index 0000000..e2d950b --- /dev/null +++ b/base/ext_data/siege/teams/Mercs.team @@ -0,0 +1,16 @@ +//Siege team definition file. + +name "Mercenaries" +FriendlyShader "sprites/team_mercs" //Name of shader to display above heads of teammates (to others on this team) + +Classes +{ + class1 "Merc Driver" + class2 "Merc Sniper" + class3 "Mercenary" + class4 "Merc Assault Specialist" + class5 "Merc Heavy Weapons Specialist" + class6 "Merc Demolitionist" + class7 "Jedi Hunter" + class8 "Bounty Hunter" +} diff --git a/base/ext_data/siege/teams/Siege1_Imperial.team b/base/ext_data/siege/teams/Siege1_Imperial.team new file mode 100644 index 0000000..e6e2d06 --- /dev/null +++ b/base/ext_data/siege/teams/Siege1_Imperial.team @@ -0,0 +1,21 @@ +//Siege team definition file. + +name "Siege1_Imperials" +FriendlyShader "sprites/imperial_attack" //Name of shader to display above heads of teammates (to others on this team) + +Classes +{ +//Infantry + class1 "Imperial Snowtrooper" +//Heavy + class2 "Rocket Trooper" +//Demo + class3 "Imperial Demolitionist" +//Vanguard + class4 "Imperial Sniper" +//Support + class5 "Imperial Tech" +//Jedi + class6 "Dark Jedi Invader" +// class7 "Dark Side Marauder" +} diff --git a/base/ext_data/siege/teams/Siege1_Rebel.team b/base/ext_data/siege/teams/Siege1_Rebel.team new file mode 100644 index 0000000..d9167f4 --- /dev/null +++ b/base/ext_data/siege/teams/Siege1_Rebel.team @@ -0,0 +1,20 @@ +//Siege team definition file. + +name "Siege1_Rebels" +FriendlyShader "sprites/rebel_defend" //Name of shader to display above heads of teammates (to others on this team) + +Classes +{ +//Infantry + class1 "Rebel Infantry" +//Heavy + class2 "Wookie" +//Demo + class3 "Rebel Demolitionist" +//Vanguard + class4 "Rebel Sniper" +//Support + class5 "Rebel Tech" +//Jedi + class6 "Jedi Guardian" +} diff --git a/base/ext_data/siege/teams/Siege2_Merc.team b/base/ext_data/siege/teams/Siege2_Merc.team new file mode 100644 index 0000000..fc859ef --- /dev/null +++ b/base/ext_data/siege/teams/Siege2_Merc.team @@ -0,0 +1,22 @@ +//Siege team definition file. + +name "Siege2_Mercs" +FriendlyShader "sprites/imperial_defend" //Name of shader to display above heads of teammates (to others on this team) + +Classes +{ +//Infantry Class + class1 "Bounty Hunter" +// class1 "Mercenary" +//Heavy Class + class2 "Merc Assault Specialist" +// class2 "Merc Heavy Weapons Specialist" +//Demo Class + class3 "Merc Demolitionist" +//Vanguard Class + class4 "Merc Sniper" +//Support Class + class5 "Smuggler" +//Jedi Class + class6 "Dark Side Marauder" +} diff --git a/base/ext_data/siege/teams/Siege2_Rebel.team b/base/ext_data/siege/teams/Siege2_Rebel.team new file mode 100644 index 0000000..313b776 --- /dev/null +++ b/base/ext_data/siege/teams/Siege2_Rebel.team @@ -0,0 +1,20 @@ +//Siege team definition file. + +name "Siege2_Rebels" +FriendlyShader "sprites/rebel_attack" //Name of shader to display above heads of teammates (to others on this team) + +Classes +{ +//Infantry Class + class1 "Rebel Assault Specialist" +//Heavy Class + class2 "Wookie" +//Demo Class + class3 "Rebel Demolitionist" +//Vanguard Class + class4 "Rebel Sniper" +//Support Class + class5 "Rebel Tech" +//Jedi Class + class6 "Jedi Duelist" +} diff --git a/base/ext_data/siege/teams/Siege3_DarkJedi.team b/base/ext_data/siege/teams/Siege3_DarkJedi.team new file mode 100644 index 0000000..e34347a --- /dev/null +++ b/base/ext_data/siege/teams/Siege3_DarkJedi.team @@ -0,0 +1,20 @@ +//Siege team definition file. + +name "Siege3_DarkJedi" +FriendlyShader "sprites/imperial_defend" //Name of shader to display above heads of teammates (to others on this team) + +Classes +{ +//Infantry + class1 "Dark Side Mauler" +//Heavy + class2 "Dark Jedi Destroyer" +//Demo + class3 "Dark Jedi Demolitionist" +//Vanguard + class4 "Dark Jedi Interceptor" +//Support + class5 "Dark Jedi Tech" +//Jedi + class6 "Dark Jedi Duelist" +} diff --git a/base/ext_data/siege/teams/Siege3_Jedi.team b/base/ext_data/siege/teams/Siege3_Jedi.team new file mode 100644 index 0000000..afc33eb --- /dev/null +++ b/base/ext_data/siege/teams/Siege3_Jedi.team @@ -0,0 +1,20 @@ +//Siege team definition file. + +name "Siege3_Jedi" +FriendlyShader "sprites/rebel_attack" //Name of shader to display above heads of teammates (to others on this team) + +Classes +{ +//Infantry + class1 "Jedi Warrior" +//Heavy + class2 "Jedi Knight" +//Demo + class3 "Jedi Demolitionist" +//Vanguard + class4 "Jedi Scout" +//Support + class5 "Jedi Healer" +//Jedi + class6 "Jedi Lightsaber Master" +} diff --git a/base/ext_data/siege/teams/Siege4_Imperial.team b/base/ext_data/siege/teams/Siege4_Imperial.team new file mode 100644 index 0000000..af3fb1f --- /dev/null +++ b/base/ext_data/siege/teams/Siege4_Imperial.team @@ -0,0 +1,20 @@ +//Siege team definition file. + +name "Siege4_Imperials" +FriendlyShader "sprites/team_imperials" //Name of shader to display above heads of teammates (to others on this team) + +Classes +{ +//Infantry + class1 "Imperial Pilot" +//Heavy + class2 "Imperial Stormtrooper" +//Demo + class3 "Imperial Light Demolitionist" +//Vanguard + class4 "Imperial Light Sniper" +//Support + class5 "Imperial Light Tech" +//Jedi + class6 "Dark Jedi Apprentice" +} diff --git a/base/ext_data/siege/teams/Siege4_Rebel.team b/base/ext_data/siege/teams/Siege4_Rebel.team new file mode 100644 index 0000000..fd94ca2 --- /dev/null +++ b/base/ext_data/siege/teams/Siege4_Rebel.team @@ -0,0 +1,20 @@ +//Siege team definition file. + +name "Siege4_Rebels" +FriendlyShader "sprites/team_allies" //Name of shader to display above heads of teammates (to others on this team) + +Classes +{ +//Infantry + class1 "Rebel Pilot" +//Heavy + class2 "Rebel Heavy Infantry" +//Demo + class3 "Rebel Light Demolitionist" +//Vanguard + class4 "Rebel Light Sniper" +//Support + class5 "Rebel Light Tech" +//Jedi + class6 "Jedi Apprentice" +} diff --git a/base/ext_data/siege/teams/vssver.scc b/base/ext_data/siege/teams/vssver.scc new file mode 100644 index 0000000..cc9cf84 Binary files /dev/null and b/base/ext_data/siege/teams/vssver.scc differ diff --git a/base/ext_data/vehicles/YT-1300.veh b/base/ext_data/vehicles/YT-1300.veh new file mode 100644 index 0000000..54529f0 --- /dev/null +++ b/base/ext_data/vehicles/YT-1300.veh @@ -0,0 +1,157 @@ +YT-1300 +{ +name YT-1300 +type VH_FIGHTER +numHands 2 +hideRider 1 +killRiderOnDeath 1 +lookYaw 45 +length 1280 +width 1024 +height 323 +g2radius 1280 +centerOfGravity "-0.222 0 0" +speedMax 2100 +turboSpeed 4000 +turboDuration 6000 +turboRecharge 8000 +speedMin 0 +acceleration 20 +decelIdle 5 +accelIdle 5 +speedIdle 0 +//test: speed stays at whatever you last set it to... +throttleSticks 1 +strafePerc 0.1 +bankingSpeed 4 +rollLimit 85 +pitchLimit 85 +braking 20 +mouseYaw 0.004 +mousePitch 0.004 +turningSpeed 8 +turnWhenStopped 0 +traction 18 +friction 1.5 +speedDependantTurning 1 +maxSlope 0.65 +mass 8000 +//armor 4000 +//malfunctionArmorLevel 1000 +//health_front 1000 +//health_back 1000 +//health_right 1000 +//health_left 1000 +//shields 3000 +armor 5000 +malfunctionArmorLevel 1200 +//armor 8000 +//malfunctionArmorLevel 2000 +health_front 1800 +health_back 1800 +health_right 1800 +health_left 1800 +shields 2500 +toughness 95.0 +model YT-1300 +//skin generic +riderAnim BOTH_VS_IDLE +radarIcon "gfx/menus/radar/yt-1300" +dmgIndicFrame "gfx/menus/radar/circle_base_frame_reb" +dmgIndicShield "gfx/menus/radar/circle_base_shield" +dmgIndicBackground "gfx/menus/radar/circle_base" +icon_front "gfx/menus/radar/yt-1300_front" +icon_back "gfx/menus/radar/yt-1300_back" +icon_right "gfx/menus/radar/yt-1300_right" +icon_left "gfx/menus/radar/yt-1300_left" +//shieldShader "gfx/misc/shields_green" +shieldShader "gfx/misc/shields_blue" +soundOn "sound/vehicles/yt-1300/on.wav" +soundLoop "sound/vehicles/yt-1300/loop.wav" +soundOff "sound/vehicles/yt-1300/off.wav" +soundFlyBy "sound/vehicles/yt-1300/flyby.wav" +soundFlyBy2 "sound/vehicles/yt-1300/flyby2.wav" +soundEngineStart "sound/vehicles/yt-1300/enginestart.wav" +soundHyper "sound/vehicles/common/hyperstartreb.wav" +soundTurbo "sound/vehicles/yt-1300/flyby.wav" +exhaustFX "ships/yt_exhaust" +turboFX "ships/yt_exhaust_turbo" +impactFX "ships/scrape_sparks" +explodeFX "ships/ship_explosion2" +dmgFX "ships/heavydmg" +injureFX "ships/lightdmg" +noseFX "ships/YT_nose" +lwingFX "ships/YT_lwing" +rwingFX "ships/YT_rwing" +hoverHeight 80 +hoverStrength 10 +explosionRadius 1000 +explosionDamage 1800 +maxPassengers 8 + +landingHeight 300 + +weap1 conc_missile_straight +weap1Delay 500 +weap1AmmoMax 30 + +weapMuzzle5 conc_missile_straight +weapMuzzle6 conc_missile_straight + +//turret 1 +turret1Weap yt_turbolaser +turret1Delay 100 +turret1AmmoMax 240 +turret1AmmoRechargeMS 500 +turret1YawBone guntop_yaw +//NOTE: we're setting YAW on ROLL because NPC_SetBoneAngles makes assumptions about our bone orientation that aren't true in this case +turret1YawAxis 2 +turret1PitchBone guntop_pitch +//NOTE: we're setting PITCH on YAW because NPC_SetBoneAngles makes assumptions about our bone orientation that aren't true in this case +turret1PitchAxis 1 +//turret1ClampYawL +//turret1ClampYawR +turret1ClampPitchU -90 +turret1ClampPitchD 20 +turret1Muzzle1 3 +turret1Muzzle2 4 +turret1TurnSpeed 10 +turret1Delay 100 +turret1AmmoMax 120 +turret1AI 1 +turret1AILead 1 +turret1AIRange 15000 +turret1PassengerNum 1 +turret1GunnerViewTag "*turretview_t" + +//turret 2 +turret2Weap yt_turbolaser +turret2Delay 100 +turret2AmmoMax 240 +turret2AmmoRechargeMS 500 +turret2YawBone gunbot_yaw +turret2YawAxis 2 +turret2PitchBone gunbot_pitch +turret2PitchAxis 1 +//turret2ClampYawL +//turret2ClampYawR +turret2ClampPitchU -20 +turret2ClampPitchD 90 +turret2Muzzle1 1 +turret2Muzzle2 2 +turret2TurnSpeed 10 +turret2Delay 100 +turret2AmmoMax 120 +turret2AI 1 +turret2AILead 1 +turret2AIRange 15000 +turret2PassengerNum 2 +turret2GunnerViewTag "*turretview_b" + +cameraOverride 1 +cameraRange 1000 +cameraVertOffset 220 +cameraPitchOffset 0 +cameraFOV 90 +cameraAlpha 0 +} diff --git a/base/ext_data/vehicles/atst_vehicle.veh b/base/ext_data/vehicles/atst_vehicle.veh new file mode 100644 index 0000000..5a852fa --- /dev/null +++ b/base/ext_data/vehicles/atst_vehicle.veh @@ -0,0 +1,69 @@ +ATST_vehicle +{ +name ATST_vehicle +type VH_WALKER +numHands 2 +hideRider 1 +killRiderOnDeath 1 +lookYaw 45 +lookPitch 45 +length 80 +width 80 +height 272 +centerOfGravity "-0.222 0 0" +speedMax 350 +speedMin -80 +acceleration 8 +decelIdle 20 +strafePerc 0.0 +bankingSpeed 0.0 +rollLimit 2 +pitchLimit 0 +braking 10 +mouseYaw 0.003 +mousePitch 0.01 +turningSpeed 5 +turnWhenStopped 0 +traction 100 +friction 100 +maxSlope 0.7 +mass 400 +armor 1500 +toughness 75.0 +model atst +//This just doesn't work on levels with fog, so... leave it off +//skin alpha +radarIcon "gfx/menus/radar/atst" +explosionRadius 400 +explosionDamage 1000 +explodeFX "ships/ship_explosion2" +explosionDelay 2450 +soundOn "sound/chars/atst/atst_hatch_close.mp3" +soundOff "sound/chars/atst/atst_hatch_open.mp3" + +weap1 atst_laser +weap1Delay 250 +weap1AmmoMax 50 +weap1AmmoRechargeMS 500 + +weapMuzzle1 atst_laser +weapMuzzle2 atst_laser + +//weapMuzzle3 ??? + +weap2 atst_rocket +weap2Delay 1000 +weap2Aim 1 +weap2AmmoMax 20 + +weapMuzzle4 atst_rocket + +cameraOverride 1 +cameraRange 300 +cameraVertOffset 150 +//cameraPitchOffset 0 +cameraFOV 100 +//This just doesn't work on levels with fog, so... leave it off +//cameraAlpha 0.25 +cameraPitchDependantVertOffset 0 +} \ No newline at end of file diff --git a/base/ext_data/vehicles/lambdashuttle.veh b/base/ext_data/vehicles/lambdashuttle.veh new file mode 100644 index 0000000..212e688 --- /dev/null +++ b/base/ext_data/vehicles/lambdashuttle.veh @@ -0,0 +1,145 @@ +LambdaShuttle +{ +name LambdaShuttle +type VH_FIGHTER +numHands 2 +hideRider 1 +killRiderOnDeath 1 +lookYaw 45 +length 500 +width 640 +height 248 +g2radius 640 +centerOfGravity "-0.222 0 0" +speedMax 1800 +turboSpeed 0 +speedMin 0 +acceleration 10 +decelIdle 5 +accelIdle 5 +speedIdle 200 +//test: speed stays at whatever you last set it to... +throttleSticks 1 +strafePerc 0 +bankingSpeed 0.5 +rollLimit 25 +pitchLimit 40 +braking 10 +mouseYaw 0.001 +mousePitch 0.001 +turningSpeed 2 +turnWhenStopped 0 +speedDependantTurning 1 +traction 12 +friction 1.5 +maxSlope 0.65 +mass 2500 +armor 2700 +malfunctionArmorLevel 2000 +shields 1500 +toughness 80.0 +model LambdaShuttle +//skin "models/players/lambdashuttle/model_mark2.skin" +riderAnim BOTH_VS_IDLE +radarIcon "gfx/menus/radar/shuttle" +dmgIndicFrame "gfx/menus/radar/circle_base_frame_reb" +dmgIndicShield "gfx/menus/radar/circle_base_shield" +dmgIndicBackground "gfx/menus/radar/circle_base" +icon_front "gfx/menus/radar/LS_front" +icon_back "gfx/menus/radar/LS_back" +icon_right "gfx/menus/radar/LS_right" +icon_left "gfx/menus/radar/LS_left" +crosshairShader "gfx/menus/radar/LS_reticle" +//shieldShader "gfx/misc/shields_green" +shieldShader "gfx/misc/shields_blue" +soundOn "sound/vehicles/shuttle/on.wav" +soundTakeOff "sound/vehicles/shuttle/takeoff.wav" +soundEngineStart "sound/vehicles/shuttle/enginestart.wav" +soundLoop "sound/vehicles/shuttle/loop.wav" +soundLand "sound/vehicles/shuttle/land.wav" +soundOff "sound/vehicles/shuttle/off.wav" +soundFlyBy "sound/vehicles/shuttle/flyby.wav" +soundFlyBy2 "sound/vehicles/shuttle/flyby2.wav" +soundHyper "sound/vehicles/common/hyperstartreb.wav" +exhaustFX "ships/shuttle_exhaust" +impactFX "ships/scrape_sparks" +explodeFX "ships/LS_explosion" +//trailFX "ships/wingtrail" +dmgFX "ships/heavydmg" +injureFX "ships/lightdmg" +noseFX "ships/LS_nose" +lwingFX "ships/LS_lwing" +rwingFX "ships/LS_rwing" +hoverHeight 80 +hoverStrength 10 +explosionRadius 400 +explosionDamage 1000 +maxPassengers 4 + +landingHeight 300 + +weap1 rebel_laser +weap1Aim 1 +weap1Delay 500 +weap1AmmoMax 80 +//NOTE: these are *always* linked... permanently linked muzzles don't use a cumulative delay, just the one that's specified here. +weap1link 2 + +weap2 mine +weap2Delay 1000 +weap2AmmoMax 10 + +weap1AmmoRechargeMS 500 + +//FIXME: just use a double-blaster shot effect on these +weapMuzzle1 rebel_laser +weapMuzzle2 rebel_laser +weapMuzzle3 rebel_laser +weapMuzzle4 rebel_laser + +//FIXME: these turrets need to animate to point forward when the wings are open (down) +//weapMuzzle5 rebel_laser +//weapMuzzle6 rebel_laser +//weapMuzzle7 rebel_laser +//weapMuzzle8 rebel_laser + +weapMuzzle9 mine +weapMuzzle10 mine + +//turret 1 +//turret1Weap rebel_laser +//turret1Delay 250 +//turret1AmmoMax 40 +//turret1AmmoRechargeMS 500 +//turret1PitchBone r_turret_bone +//turret1PitchAxis 2 +//turret1ClampPitchU -80 +//turret1ClampPitchD 0 +//turret1Muzzle1 5 +//turret1Muzzle2 6 +//turret1TurnSpeed 10 +//turret1PassengerNum 1 +//turret1GunnerViewTag "*turretview_r" + +//turret 2 +//turret2Weap rebel_laser +//turret2Delay 250 +//turret2AmmoMax 40 +//turret2AmmoRechargeMS 500 +//turret2PitchBone l_turret_bone +//turret2PitchAxis 2 +//turret2ClampPitchU -80 +//turret2ClampPitchD 0 +//turret2Muzzle1 7 +//turret2Muzzle2 8 +//turret2TurnSpeed 10 +//turret2PassengerNum 2 +//turret2GunnerViewTag "*turretview_l" + +cameraOverride 1 +cameraRange 900 +cameraVertOffset 256 +cameraPitchOffset 0 +cameraFOV 100 +cameraAlpha 0 +} diff --git a/base/ext_data/vehicles/rancor_vehicle.veh b/base/ext_data/vehicles/rancor_vehicle.veh new file mode 100644 index 0000000..7a9abcd --- /dev/null +++ b/base/ext_data/vehicles/rancor_vehicle.veh @@ -0,0 +1,41 @@ +Rancor_vehicle +{ +name Rancor_vehicle +type VH_ANIMAL +numHands 2 +lookYaw 45 +lookPitch 45 +length 128 +width 32 +height 32 +centerOfGravity "-0.222 0 0" +speedMax 350 +speedMin -80 +acceleration 8 +decelIdle 20 +strafePerc 0.0 +bankingSpeed 0.0 +rollLimit 2 +pitchLimit 0 +braking 10 +mouseYaw 0.006 +turningSpeed 5 +turnWhenStopped 0 +traction 100 +friction 100 +maxSlope 0.65 +mass 200 +armor 200 +toughness 30.0 +model rancor +riderAnim BOTH_FORCEHEAL_START +radarIcon "gfx/menus/radar/rancor" +soundOn "sound/vehicles/rancor/on.mp3" + +cameraOverride 1 +cameraRange 150 +cameraVertOffset 0 +cameraPitchOffset -30 +cameraFOV 80 +cameraAlpha 0 +} \ No newline at end of file diff --git a/base/ext_data/vehicles/swoop.veh b/base/ext_data/vehicles/swoop.veh new file mode 100644 index 0000000..9ad42ff --- /dev/null +++ b/base/ext_data/vehicles/swoop.veh @@ -0,0 +1,86 @@ +Swoop +{ +name Swoop +type VH_SPEEDER +numHands 2 +lookYaw 45 +lookPitch 20 +length 128 +width 32 +height 32 +centerOfGravity "-0.222 0 0" +speedMax 900 +speedMin -150 +turboSpeed 1900 +turboDuration 2000 +turboRecharge 8000 +acceleration 20 +decelIdle 10 +strafePerc 0.5 +bankingSpeed 0.5 +rollLimit 45 +pitchLimit 30 +braking 10 +mouseYaw 0.0038 +turningSpeed 5 +turnWhenStopped 0 +traction 12 +friction 1.5 +maxSlope 0.75 +mass 200 +armor 2000 +toughness 80.0 +malfunctionArmorLevel 1000 +model swoop +skin black|blue|gold|green|purple|default|silver +riderAnim BOTH_VS_IDLE +radarIcon "gfx/menus/radar/swoop" + +soundOn "sound/vehicles/swoop/on.mp3" +soundOff "sound/vehicles/swoop/off.mp3" +soundLoop "sound/vehicles/swoop/loop.wav" +soundTakeOff "sound/vehicles/swoop/on.mp3" +soundEngineStart "sound/vehicles/swoop/on.mp3" +soundSpin "sound/vehicles/swoop/loop.wav" +soundTurbo "sound/vehicles/swoop/sb_revup.mp3" +soundFlyBy "sound/vehicles/swoop/flyby1.mp3" +soundFlyBy2 "sound/vehicles/swoop/flyby2.mp3" +soundShift "sound/vehicles/swoop/sb_shift1.mp3" +soundShift2 "sound/vehicles/swoop/sb_shift2.mp3" +soundShift3 "sound/vehicles/swoop/sb_shift3.mp3" +soundShift4 "sound/vehicles/swoop/sb_shift4.mp3" + +exhaustFX "ships/burner" +impactFX "ships/scrape_sparks" +turboStartFX "ships/swoop_turbo_start" +armorLowFX "volumetric/black_smoke" +armorGoneFX "ships/fire" +flammable 1 +explosionRadius 100 +explosionDamage 250 +explodeFX "ships/swoop_explosion" +explosionDelay 4500 +wakeFX "ships/vehicle_wake" +gravity 800 +waterProof 1 +bouyancy 1 +hoverHeight 30 +hoverStrength 35 + +cameraOverride 1 +cameraRange 125 +cameraVertOffset 0 +cameraPitchOffset 0 +cameraFOV 100 +cameraAlpha 0 + +weap1 swoop_laser +weap1Aim 1 + +weap1Delay 100 + +weap1AmmoMax 2000 +weap1AmmoRechargeMS 200 + +weapMuzzle1 swoop_laser +} diff --git a/base/ext_data/vehicles/swoop_cin.veh b/base/ext_data/vehicles/swoop_cin.veh new file mode 100644 index 0000000..9e5afb5 --- /dev/null +++ b/base/ext_data/vehicles/swoop_cin.veh @@ -0,0 +1,71 @@ +Swoop_cin +{ +name Swoop_cin +type VH_SPEEDER +numHands 2 +lookYaw 45 +lookPitch 20 +length 128 +width 32 +height 32 +centerOfGravity "-0.222 0 0" +speedMax 800 +speedMin -50 +turboSpeed 2000 +acceleration 20 +decelIdle 10 +strafePerc 0.5 +bankingSpeed 0.5 +rollLimit 45 +pitchLimit 80 +braking 10 +mouseYaw 0.0038 +turningSpeed 5 +turnWhenStopped 0 +traction 12 +friction 1.5 +maxSlope 0.65 +mass 200 +armor 2000 +toughness 80.0 +malfunctionArmorLevel 1000 +model swoop +riderAnim BOTH_VS_IDLE +radarIcon "gfx/menus/radar/swoop" + +soundOn "sound/vehicles/swoop/on.mp3" +soundLoop "sound/vehicles/swoop/loop.wav" +lExhaustTag "*lexhaust" +rExhaustTag "*rexhaust" +exhaustFX "ships/burner" +impactFX "ships/scrape_sparks" +flammable 1 +explosionRadius 200 +explosionDamage 500 +explodeFX "ships/swoop_explosion" +explosionDelay 4500 +wakeFX "ships/vehicle_wake" +gravity 800 +waterProof 1 +bouyancy 1 +//only difference in cinematic one: doesn't hover +//hoverHeight 30 +hoverHeight 0 +hoverStrength 35 + +cameraOverride 1 +cameraRange 125 +cameraVertOffset 0 +cameraPitchOffset 0 +cameraFOV 100 +cameraAlpha 0 + +weap1 swoop_laser + +weap1Delay 100 + +weap1AmmoMax 2000 +weap1AmmoRechargeMS 200 + +weapMuzzle1 swoop_laser +} diff --git a/base/ext_data/vehicles/swoop_mp.veh b/base/ext_data/vehicles/swoop_mp.veh new file mode 100644 index 0000000..564c57c --- /dev/null +++ b/base/ext_data/vehicles/swoop_mp.veh @@ -0,0 +1,71 @@ +swoop_mp +{ +name swoop_mp +type VH_SPEEDER +numHands 2 +lookYaw 45 +lookPitch 20 +length 128 +width 32 +height 32 +centerOfGravity "-0.222 0 0" +speedMax 700 +speedMin -200 +turboSpeed 1400 +turboDuration 4000 +turboRecharge 8000 +acceleration 20 +decelIdle 10 +strafePerc 0.5 +bankingSpeed 0.5 +rollLimit 45 +pitchLimit 80 +braking 10 +mouseYaw 0.0038 +turningSpeed 5 +turnWhenStopped 0 +traction 12 +friction 1.5 +maxSlope 0.65 +mass 200 +armor 80 +toughness 80.0 +malfunctionArmorLevel 20 +model swoop +radarIcon "gfx/menus/radar/swoop" + +riderAnim BOTH_VS_IDLE +soundOn "sound/vehicles/swoop/on.mp3" +soundLoop "sound/vehicles/swoop/loop.wav" +exhaustFX "ships/burner" +impactFX "ships/scrape_sparks" +turboFX "ships/jet" +turboStartFX "ships/swoop_turbo_start" +flammable 1 +explosionRadius 200 +explosionDamage 500 +explodeFX "ships/swoop_explosion" +explosionDelay 4500 +wakeFX "ships/vehicle_wake" +gravity 800 +waterProof 1 +bouyancy 1 +hoverHeight 30 +hoverStrength 35 + +cameraOverride 1 +cameraRange 125 +cameraVertOffset 0 +cameraPitchOffset 0 +cameraFOV 100 +cameraAlpha 0 + +weap1 swoop_laser + +weap1Delay 100 + +weap1AmmoMax 2000 +weap1AmmoRechargeMS 200 + +weapMuzzle1 swoop_laser +} diff --git a/base/ext_data/vehicles/swoop_mp2.veh b/base/ext_data/vehicles/swoop_mp2.veh new file mode 100644 index 0000000..39c6e62 --- /dev/null +++ b/base/ext_data/vehicles/swoop_mp2.veh @@ -0,0 +1,73 @@ +swoop_mp2 +{ +name swoop_mp2 +type VH_SPEEDER +numHands 2 +lookYaw 45 +lookPitch 20 +length 128 +width 32 +height 32 +centerOfGravity "-0.222 0 0" +speedMax 700 +speedMin -200 +turboSpeed 1400 +turboDuration 4000 +turboRecharge 8000 +acceleration 20 +decelIdle 10 +strafePerc 0.5 +bankingSpeed 0.5 +rollLimit 45 +pitchLimit 80 +braking 10 +mouseYaw 0.0038 +turningSpeed 5 +turnWhenStopped 0 +traction 12 +friction 1.5 +maxSlope 0.65 +mass 200 +armor 80 +toughness 80.0 +malfunctionArmorLevel 20 +model swoop +skin blue +radarIcon "gfx/menus/radar/swoop" + +riderAnim BOTH_VS_IDLE +soundOn "sound/vehicles/swoop/on.mp3" +soundLoop "sound/vehicles/swoop/loop.wav" +exhaustFX "ships/burner" +impactFX "ships/scrape_sparks" +turboFX "ships/jet" +turboStartFX "ships/swoop_turbo_start" +flammable 1 +explosionRadius 200 +explosionDamage 500 +explodeFX "ships/swoop_explosion" +explosionDelay 4500 +wakeFX "ships/vehicle_wake" +gravity 800 +waterProof 1 +bouyancy 1 +hoverHeight 30 +hoverStrength 35 + +cameraOverride 1 +cameraRange 125 +cameraVertOffset 0 +cameraPitchOffset 0 +cameraFOV 100 +cameraAlpha 0 + +weap1 swoop_laser + +weap1Delay 100 + +weap1AmmoMax 2000 +weap1AmmoRechargeMS 200 + +weapMuzzle1 swoop_laser +} + diff --git a/base/ext_data/vehicles/tauntaun.veh b/base/ext_data/vehicles/tauntaun.veh new file mode 100644 index 0000000..edee274 --- /dev/null +++ b/base/ext_data/vehicles/tauntaun.veh @@ -0,0 +1,55 @@ +Tauntaun +{ +name Tauntaun +type VH_ANIMAL +numHands 2 +lookYaw 45 +lookPitch 45 +length 128 +width 32 +height 32 +centerOfGravity "-0.222 0 0" + +speedMax 500 +speedMin -50 +turboSpeed 800 +turboDuration 3000 +turboRecharge 8000 +acceleration 10 +decelIdle 20 + + +strafePerc 0.0 +bankingSpeed 0.0 +rollLimit 2 +pitchLimit 0 +braking 10 +mouseYaw 0.006 +turningSpeed 5 +turnWhenStopped 0 +traction 100 +friction 100 +maxSlope 0.55 +mass 200 +armor 300 +toughness 30.0 +model tauntaun +riderAnim BOTH_VS_IDLE +radarIcon "gfx/menus/radar/tauntaun" + +cameraOverride 1 +cameraRange 125 +cameraVertOffset 0 +cameraPitchOffset 0 +cameraFOV 80 +cameraAlpha 0 + + +soundOn "sound/chars/tauntaun/misc/buck1.mp3" +soundOff "sound/chars/tauntaun/misc/buck2.mp3" +soundTurbo "sound/chars/tauntaun/misc/anger1.mp3" +soundShift1 "sound/chars/tauntaun/misc/anger3.mp3" +soundShift2 "sound/chars/tauntaun/misc/chatter1.mp3" +soundShift3 "sound/chars/tauntaun/misc/chatter3.mp3" +soundShift4 "sound/chars/tauntaun/misc/pant1.mp3" +} \ No newline at end of file diff --git a/base/ext_data/vehicles/template.veh b/base/ext_data/vehicles/template.veh new file mode 100644 index 0000000..13cc952 --- /dev/null +++ b/base/ext_data/vehicles/template.veh @@ -0,0 +1,121 @@ + +/* + char *name; //unique name of the vehicle + + //general data + vehicleType_t type; //what kind of vehicle + int numHands; //if 2 hands, no weapons, if 1 hand, can use 1-handed weapons, if 0 hands, can use 2-handed weapons + float lookPitch; //How far you can look up and down off the forward of the vehicle + float lookYaw; //How far you can look left and right off the forward of the vehicle + float length; //how long it is - used for body length traces when turning/moving? + float width; //how wide it is - used for body length traces when turning/moving? + float height; //how tall it is - used for body length traces when turning/moving? + vec3_t centerOfGravity;//offset from origin: {forward, right, up} as a modifier on that dimension (-1.0f is all the way back, 1.0f is all the way forward) + + //speed stats + float speedMax; //top speed + float turboSpeed; //turbo speed + float speedMin; //if < 0, can go in reverse + float speedIdle; //what speed it drifts to when no accel/decel input is given + float accelIdle; //if speedIdle > 0, how quickly it goes up to that speed + float acceleration; //when pressing on accelerator + float decelIdle; //when giving no input, how quickly it drops to speedIdle + float strafePerc; //multiplier on current speed for strafing. If 1.0f, you can strafe at the same speed as you're going forward, 0.5 is half, 0 is no strafing + + //handling stats + float bankingSpeed; //how quickly it pitches and rolls (not under player control) + float rollLimit; //how far it can roll to either side + float pitchLimit; //how far it can roll forward or backward + float braking; //when pressing on decelerator + float turningSpeed; //how quickly you can turn + qboolean turnWhenStopped;//whether or not you can turn when not moving + float traction; //how much your command input affects velocity + float friction; //how much velocity is cut on its own + float maxSlope; //the max slope that it can go up with control + + //durability stats + int mass; //for momentum and impact force (player mass is 10) + int armor; //total points of damage it can take + float toughness; //modifies incoming damage, 1.0 is normal, 0.5 is half, etc. Simulates being made of tougher materials/construction + + //visuals & sounds + char *model; //what model to use - if make it an NPC's primary model, don't need this? + char *skin; //what skin to use - if make it an NPC's primary model, don't need this? + int riderAnim; //what animation the rider uses + + char *soundOn; //sound to play when get on it + char *soundLoop; //sound to loop while riding it + char *soundOff; //sound to play when get off + char *exhaustFX; //exhaust effect, played from "*exhaust" bolt(s) + char *trailFX; //trail effect, played from "*trail" bolt(s) + char *impactFX; //impact effect, for when it bumps into something + char *explodeFX; //explosion effect, for when it blows up (should have the sound built into explosion effect) + + //other misc stats + int gravity; //normal is 800 + float hoverHeight; //if 0, it's a ground vehicle + float hoverStrength; //how hard it pushes off ground when less than hover height... causes "bounce", like shocks + qboolean waterProof; //can drive underwater if it has to + float bouyancy; //when in water, how high it floats (1 is neutral bouyancy) + int fuelMax; //how much fuel it can hold (capacity) + int fuelRate; //how quickly is uses up fuel + int visibility; //for sight alerts + int loudness; //for sound alerts + float explosionRadius;//range of explosion + int explosionDamage;//damage of explosion + + int maxPassengers; // The max number of passengers this vehicle may have (Default = 0). + qboolean hideRider; // rider (and passengers?) should not be drawn + qboolean killRiderOnDeath;//if rider is on vehicle when it dies, they should die + qboolean flammable; //whether or not the vehicle should catch on fire before it explodes + int explosionDelay; //how long the vehicle should be on fire/dying before it explodes + //camera stuff + qboolean cameraOverride; //whether or not to use all of the following 3rd person camera override values + float cameraRange; //how far back the camera should be - normal is 80 + float cameraVertOffset;//how high over the vehicle origin the camera should be - normal is 16 + float cameraHorzOffset;//how far to left/right (negative/positive) of of the vehicle origin the camera should be - normal is 0 + float cameraPitchOffset;//a modifier on the camera's pitch (up/down angle) to the vehicle - normal is 0 + float cameraFOV; //third person camera FOV, default is 80 + qboolean cameraAlpha; //fade out the vehicle if it's in the way of the crosshair + +{ +name tie-fighter +type VH_FIGHTER +numHands 2 +lookYaw 45 +length 128 +width 32 +height 32 +centerOfGravity "-0.222 0 0" +speedMax 1400 +turboSpeed 2000 +speedMin -100 +acceleration 20 +decelIdle 0 +strafePerc 0.0 +bankingSpeed 0.5 +rollLimit 45 +pitchLimit 80 +braking 20 +turningSpeed 5 +turnWhenStopped 0 +traction 12 +friction 0.5 +maxSlope 0.65 +mass 2000 +armor 800 +toughness 3.5 +model x-wing +riderAnim BOTH_VS_IDLE +soundOn "sound/ships/swoop/on.mp3" +soundLoop "sound/ships/swoop/loop.wav" +exhaustFX "ships/burner" +impactFX "ships/scrape_sparks" +explodeFX "ships/ship_explosion2" +hoverHeight 80 +hoverStrength 10 +explosionRadius 400 +explosionDamage 1000 +} + +*/ \ No newline at end of file diff --git a/base/ext_data/vehicles/tie-bomber.veh b/base/ext_data/vehicles/tie-bomber.veh new file mode 100644 index 0000000..aa13737 --- /dev/null +++ b/base/ext_data/vehicles/tie-bomber.veh @@ -0,0 +1,118 @@ +tie-bomber +{ +name tie-bomber +type VH_FIGHTER +numHands 2 +hideRider 1 +killRiderOnDeath 1 +lookYaw 45 +length 360 +width 400 +height 256 +g2radius 400 +centerOfGravity "-0.222 0 0" +speedMax 2000 +turboSpeed 3200 +turboDuration 3000 +turboRecharge 6000 +speedMin 0 +acceleration 20 +decelIdle 5 +accelIdle 10 +speedIdle 500 +//test: speed stays at whatever you last set it to... +throttleSticks 1 +strafePerc 0.05 +bankingSpeed 0.5 +rollLimit 40 +pitchLimit 60 +braking 15 +mouseYaw 0.0025 +mousePitch 0.0025 +turningSpeed 4.5 +turnWhenStopped 0 +traction 10 +friction 0.4 +speedDependantTurning 1 +maxSlope 0.65 +mass 800 +//armor 1600 +//malfunctionArmorLevel 600 +//health_front 500 +//health_back 300 +//health_right 400 +//health_left 400 +armor 1700 +malfunctionArmorLevel 600 +//armor 3000 +//malfunctionArmorLevel 1000 +health_front 400 +health_back 600 +health_right 600 +health_left 600 +shields 0 +toughness 85.0 +model tie_bomber +riderAnim BOTH_VS_IDLE +radarIcon "gfx/menus/radar/tieB" +dmgIndicFrame "gfx/menus/radar/circle_base_frame_imp" +dmgIndicShield "gfx/menus/radar/circle_base_shield" +dmgIndicBackground "gfx/menus/radar/circle_base" +icon_front "gfx/menus/radar/TB_front" +icon_back "gfx/menus/radar/TB_back" +icon_right "gfx/menus/radar/TB_right" +icon_left "gfx/menus/radar/TB_left" +crosshairShader "gfx/menus/radar/TB_reticle" +soundOn "sound/vehicles/tie-bomber/on.wav" +soundLoop "sound/vehicles/tie-bomber/loop.wav" +soundOff "sound/vehicles/tie-bomber/off.wav" +soundFlyBy "sound/vehicles/tie-bomber/flyby.wav" +soundFlyBy2 "sound/vehicles/tie-bomber/flyby2.wav" +soundTurbo "sound/vehicles/tie-bomber/turbo.wav" +soundHyper "sound/vehicles/common/hyperstartimp.wav" +exhaustFX "ships/tiebomber_exhaust" +turboFX "ships/tiebomber_exhaust_turbo" +impactFX "ships/scrape_sparks" +explodeFX "ships/TB_explosion" +//trailFX "ships/wingtrail" +dmgFX "ships/heavydmg" +injureFX "ships/lightdmg" +noseFX "ships/TB_nose" +lwingFX "ships/TB_lwing" +rwingFX "ships/TB_rwing" +flammable 1 +hoverHeight 80 +hoverStrength 10 +explosionRadius 400 +explosionDamage 1000 + +surfDestruction 1 + +landingHeight 300 + +weap1 imp_laser +weap1Delay 150 +weap1Aim 1 +weap1AmmoMax 20 +weap1AmmoRechargeMS 500 + +weap2 proton_torpedo +weap2Delay 800 +weap2Aim 1 +weap2AmmoMax 12 + + +weapMuzzle1 proton_torpedo +weapMuzzle2 imp_laser +weapMuzzle3 imp_laser + +//should *all* ships really be able to do this? +weap1Link 1 + +cameraOverride 1 +cameraRange 500 +cameraVertOffset 174 +cameraPitchOffset 0 +cameraFOV 100 +cameraAlpha 0 +} \ No newline at end of file diff --git a/base/ext_data/vehicles/tie-bomber2.veh b/base/ext_data/vehicles/tie-bomber2.veh new file mode 100644 index 0000000..fe2a897 --- /dev/null +++ b/base/ext_data/vehicles/tie-bomber2.veh @@ -0,0 +1,119 @@ +tie-bomber2 +{ +name tie-bomber2 +type VH_FIGHTER +numHands 2 +hideRider 1 +killRiderOnDeath 1 +lookYaw 45 +length 360 +width 400 +height 256 +g2radius 400 +centerOfGravity "-0.222 0 0" +speedMax 2000 +turboSpeed 3200 +turboDuration 2000 +turboRecharge 6000 +speedMin 0 +acceleration 20 +decelIdle 5 +accelIdle 10 +speedIdle 500 +//test: speed stays at whatever you last set it to... +throttleSticks 1 +strafePerc 0.05 +bankingSpeed 0.5 +rollLimit 40 +pitchLimit 60 +braking 15 +mouseYaw 0.0025 +mousePitch 0.0025 +turningSpeed 4.5 +turnWhenStopped 0 +traction 10 +friction 0.4 +speedDependantTurning 1 +maxSlope 0.65 +mass 800 +//armor 1600 +//malfunctionArmorLevel 600 +//health_front 500 +//health_back 300 +//health_right 400 +//health_left 400 +armor 1700 +malfunctionArmorLevel 600 +//armor 3000 +//malfunctionArmorLevel 1000 +health_front 400 +health_back 600 +health_right 600 +health_left 600 +shields 0 +toughness 85.0 +model tie_bomber +riderAnim BOTH_VS_IDLE +radarIcon "gfx/menus/radar/tieB" +dmgIndicFrame "gfx/menus/radar/circle_base_frame_imp" +dmgIndicShield "gfx/menus/radar/circle_base_shield" +dmgIndicBackground "gfx/menus/radar/circle_base" +icon_front "gfx/menus/radar/TB_front" +icon_back "gfx/menus/radar/TB_back" +icon_right "gfx/menus/radar/TB_right" +icon_left "gfx/menus/radar/TB_left" +crosshairShader "gfx/menus/radar/TB_reticle" +soundOn "sound/vehicles/tie-bomber/on.wav" +soundLoop "sound/vehicles/tie-bomber/loop.wav" +soundOff "sound/vehicles/tie-bomber/off.wav" +soundFlyBy "sound/vehicles/tie-bomber/flyby.wav" +soundFlyBy2 "sound/vehicles/tie-bomber/flyby2.wav" +soundHyper "sound/vehicles/common/hyperstartimp.wav" +soundTurbo "sound/vehicles/tie-bomber/turbo.wav" +exhaustFX "ships/tiebomber_exhaust" +turboFX "ships/tiebomber_exhaust_turbo" +impactFX "ships/scrape_sparks" +explodeFX "ships/TB_explosion" +//trailFX "ships/wingtrail" +dmgFX "ships/heavydmg" +injureFX "ships/lightdmg" +noseFX "ships/TB_nose" +lwingFX "ships/TB_lwing" +rwingFX "ships/TB_rwing" +flammable 1 +hoverHeight 80 +hoverStrength 10 +explosionRadius 400 +explosionDamage 1000 + +surfDestruction 1 + +landingHeight 300 + +weap1 imp_laser +weap2 bomb + +weap1Delay 150 +weap2Delay 800 + +weap1Aim 1 + +weap1AmmoMax 20 +weap2AmmoMax 64 + +weap1AmmoRechargeMS 500 + +weapMuzzle2 imp_laser +weapMuzzle3 imp_laser +weapMuzzle4 bomb + +//should *all* ships really be able to do this? +weap1Link 1 + +cameraOverride 1 +cameraRange 500 +cameraVertOffset 174 +cameraPitchOffset 30 +cameraFOV 100 +cameraAlpha 0 +} \ No newline at end of file diff --git a/base/ext_data/vehicles/tie-fighter.veh b/base/ext_data/vehicles/tie-fighter.veh new file mode 100644 index 0000000..570d944 --- /dev/null +++ b/base/ext_data/vehicles/tie-fighter.veh @@ -0,0 +1,112 @@ +tie-fighter +{ +name tie-fighter +type VH_FIGHTER +numHands 2 +hideRider 1 +killRiderOnDeath 1 +lookYaw 45 +length 240 +width 320 +height 320 +g2radius 320 +centerOfGravity "-0.222 0 0" +speedMax 2400 +turboSpeed 4000 +turboDuration 2000 +turboRecharge 6000 +speedMin 0 +acceleration 25 +decelIdle 12 +accelIdle 20 +speedIdle 1200 +//test: speed stays at whatever you last set it to... +throttleSticks 1 +strafePerc 0.1125 +bankingSpeed 0.5 +rollLimit 45 +pitchLimit 80 +//rollLimit -1 +//pitchLimit -1 +braking 30 +mouseYaw 0.003 +mousePitch 0.003 +turningSpeed 6 +turnWhenStopped 0 +traction 18 +friction 0.75 +speedDependantTurning 1 +maxSlope 0.65 +mass 500 +//armor 1000 +//malfunctionArmorLevel 500 +//health_front 300 +//health_back 200 +//health_right 250 +//health_left 250 +armor 750 +malfunctionArmorLevel 400 +//armor 1800 +//malfunctionArmorLevel 600 +health_front 200 +health_back 200 +health_right 400 +health_left 400 +toughness 75.0 +model tie_fighter +riderAnim BOTH_VS_IDLE +radarIcon "gfx/menus/radar/tieF" +dmgIndicFrame "gfx/menus/radar/circle_base_frame_imp" +dmgIndicShield "gfx/menus/radar/circle_base_shield" +dmgIndicBackground "gfx/menus/radar/circle_base" +icon_front "gfx/menus/radar/TF_front" +icon_back "gfx/menus/radar/TF_back" +icon_right "gfx/menus/radar/TF_right" +icon_left "gfx/menus/radar/TF_left" +crosshairShader "gfx/menus/radar/TF_reticle" +soundOn "sound/vehicles/tie/on.wav" +soundLoop "sound/vehicles/tie/loop.wav" +soundOff "sound/vehicles/tie/off.wav" +soundFlyBy "sound/vehicles/tie/flyby.wav" +soundFlyBy2 "sound/vehicles/tie/flyby2.wav" +soundHyper "sound/vehicles/common/hyperstartimp.wav" +soundTurbo "sound/vehicles/tie/flyby.wav" +exhaustFX "ships/tiefighter_exhaust" +turboFX "ships/tiefighter_exhaust_turbo" +impactFX "ships/scrape_sparks" +explodeFX "ships/TF_explosion" +//trailFX "ships/wingtrail" +dmgFX "ships/heavydmg" +injureFX "ships/lightdmg" +noseFX "ships/TF_nose" +lwingFX "ships/TF_lwing" +rwingFX "ships/TF_rwing" +flammable 1 +hoverHeight 80 +hoverStrength 10 +explosionRadius 400 +explosionDamage 1000 + +surfDestruction 1 + +landingHeight 300 + +weap1 imp_laser +weap1Delay 50 + +weap1AmmoMax 50 +weap1AmmoRechargeMS 250 + +weapMuzzle1 imp_laser +weapMuzzle2 imp_laser + +//should *all* ships really be able to do this? +weap1Link 1 + +cameraOverride 1 +cameraRange 500 +cameraVertOffset 20 +cameraPitchOffset 10 +cameraFOV 100 +cameraAlpha 0 +} \ No newline at end of file diff --git a/base/ext_data/vehicles/vssver.scc b/base/ext_data/vehicles/vssver.scc new file mode 100644 index 0000000..eb8f1a9 Binary files /dev/null and b/base/ext_data/vehicles/vssver.scc differ diff --git a/base/ext_data/vehicles/wampa_vehicle.veh b/base/ext_data/vehicles/wampa_vehicle.veh new file mode 100644 index 0000000..31f4d07 --- /dev/null +++ b/base/ext_data/vehicles/wampa_vehicle.veh @@ -0,0 +1,41 @@ +wampa_vehicle +{ +name wampa_vehicle +type VH_ANIMAL +numHands 2 +lookYaw 45 +lookPitch 45 +length 128 +width 32 +height 32 +centerOfGravity "-0.222 0 0" +speedMax 350 +speedMin -80 +acceleration 8 +decelIdle 20 +strafePerc 0.0 +bankingSpeed 0.0 +rollLimit 2 +pitchLimit 0 +braking 10 +mouseYaw 0.006 +turningSpeed 5 +turnWhenStopped 0 +traction 100 +friction 100 +maxSlope 0.65 +mass 200 +armor 200 +toughness 30.0 +model wampa +riderAnim BOTH_FORCEHEAL_START +radarIcon "gfx/menus/radar/wampa" +soundOn "sound/vehicles/wampa/on.mp3" + +cameraOverride 1 +cameraRange 150 +cameraVertOffset 0 +cameraPitchOffset -30 +cameraFOV 80 +cameraAlpha 0 +} \ No newline at end of file diff --git a/base/ext_data/vehicles/weapons/atst_laser.vwp b/base/ext_data/vehicles/weapons/atst_laser.vwp new file mode 100644 index 0000000..e3d2c79 --- /dev/null +++ b/base/ext_data/vehicles/weapons/atst_laser.vwp @@ -0,0 +1,18 @@ +atst_laser +{ +name atst_laser +projectile 1 +muzzleFX "atst/main_muzzleflash" +shotFX "atst/shot_red" +impactFX "atst/wall_impact" +g2MarkShader "gfx/damage/bodyburnmark1" +g2MarkSize 16 +speed 1300 +damage 75 +splashDamage 20 +splashRadius 50 +ammoPerShot 1 +width 8 +height 8 +lifetime 10000 +} diff --git a/base/ext_data/vehicles/weapons/atst_rocket.vwp b/base/ext_data/vehicles/weapons/atst_rocket.vwp new file mode 100644 index 0000000..2b7a4ef --- /dev/null +++ b/base/ext_data/vehicles/weapons/atst_rocket.vwp @@ -0,0 +1,24 @@ +atst_rocket +{ +name atst_rocket +projectile 1 +model "models/weapons2/merr_sonn/projectile.md3" +muzzleFX "atst/alt_muzzleflash" +shotFX "atst/side_alt_shot" +impactFX "atst/side_alt_explosion" +g2MarkShader "gfx/damage/bodybigburnmark1" +g2MarkSize 48 +loopSound "sound/weapons/rocket/missleloop.wav" +speed 1100 +homing 0 +lockOnTime 0 +damage 150 +splashDamage 150 +splashRadius 250 +ammoPerShot 1 +health 10 +width 10 +height 10 +lifetime 10000 +explodeOnExpire 1 +} diff --git a/base/ext_data/vehicles/weapons/bomb.vwp b/base/ext_data/vehicles/weapons/bomb.vwp new file mode 100644 index 0000000..4b7e39c --- /dev/null +++ b/base/ext_data/vehicles/weapons/bomb.vwp @@ -0,0 +1,18 @@ +bomb +{ +name bomb +projectile 1 +hasGravity 1 +muzzleFX "ships/bomb_launch" +shotFX "ships/bomb" +impactFX "ships/mine_impact" +g2MarkShader "gfx/damage/bodybigburnmark1" +g2MarkSize 100 +speed 50 +//damage 1000 +//splashDamage 100 +damage 1000 +splashDamage 300 +splashRadius 500 +ammoPerShot 1 +} diff --git a/base/ext_data/vehicles/weapons/conc_missile_straight.vwp b/base/ext_data/vehicles/weapons/conc_missile_straight.vwp new file mode 100644 index 0000000..672fa6e --- /dev/null +++ b/base/ext_data/vehicles/weapons/conc_missile_straight.vwp @@ -0,0 +1,25 @@ +conc_missile_straight +{ +name conc_missile_straight +projectile 1 +muzzleFX "ships/conc_muzzleflash" +shotFX "ships/reb_torpshot" +impactFX "ships/conc_impact" +g2MarkShader "gfx/damage/bodybigburnmark1" +g2MarkSize 72 +loopSound "sound/vehicles/weapons/conc_missile/loop.wav" +speed 10000 +homing 0 +lockOnTime 0 +//damage 300 +//splashDamage 200 +damage 500 +splashDamage 200 +splashRadius 200 +ammoPerShot 1 +health 10 +width 6 +height 6 +lifetime 10000 +explodeOnExpire 1 +} diff --git a/base/ext_data/vehicles/weapons/concussion_missile.vwp b/base/ext_data/vehicles/weapons/concussion_missile.vwp new file mode 100644 index 0000000..4b8fbc5 --- /dev/null +++ b/base/ext_data/vehicles/weapons/concussion_missile.vwp @@ -0,0 +1,28 @@ +concussion_missile +{ +name concussion_missile +projectile 1 +muzzleFX "ships/reb_torpmuzzleflash" +shotFX "ships/reb_torpshot" +impactFX "ships/conc_impact" +g2MarkShader "gfx/damage/bodybigburnmark1" +g2MarkSize 72 +loopSound "sound/vehicles/weapons/conc_missile/loop.wav" +speed 5000 +//homing 0.75 +//homingFOV -0.25 +homing 0.45 +homingFOV 0.2 +lockOnTime 2000 +//damage 300 +//splashDamage 200 +damage 500 +splashDamage 200 +splashRadius 200 +ammoPerShot 1 +health 10 +width 6 +height 6 +lifetime 30000 +explodeOnExpire 1 +} diff --git a/base/ext_data/vehicles/weapons/imp_laser.vwp b/base/ext_data/vehicles/weapons/imp_laser.vwp new file mode 100644 index 0000000..38d5ab7 --- /dev/null +++ b/base/ext_data/vehicles/weapons/imp_laser.vwp @@ -0,0 +1,18 @@ +imp_laser +{ +name imp_laser +projectile 1 +muzzleFX "ships/imp_blastermuzzleflash" +shotFX "ships/imp_blastershot" +impactFX "ships/imp_blasterimpact" +g2MarkShader "gfx/effects/scorch" +g2MarkSize 56 +//loopSound +speed 20000 +damage 100 +//damage 50 +splashDamage 50 +splashRadius 100 +ammoPerShot 1 +lifetime 2000 +} diff --git a/base/ext_data/vehicles/weapons/ion_blaster.vwp b/base/ext_data/vehicles/weapons/ion_blaster.vwp new file mode 100644 index 0000000..479eb01 --- /dev/null +++ b/base/ext_data/vehicles/weapons/ion_blaster.vwp @@ -0,0 +1,16 @@ +ion_blaster +{ +name ion_blaster +projectile 1 +ionWeapon 1 +muzzleFX "ships/ion_muzzleflash" +shotFX "ships/ion_blastershot" +impactFX "ships/ion_blasterimpact" +//loopSound +speed 20000 +//damage 40 +//splashDamage 50 +//splashRadius 80 +ammoPerShot 1 +lifetime 2000 +} diff --git a/base/ext_data/vehicles/weapons/mine.vwp b/base/ext_data/vehicles/weapons/mine.vwp new file mode 100644 index 0000000..049946b --- /dev/null +++ b/base/ext_data/vehicles/weapons/mine.vwp @@ -0,0 +1,23 @@ +mine +{ +name mine +projectile 1 +muzzleFX "ships/mine_launch" +shotFX "ships/mine" +impactFX "ships/mine_impact" +g2MarkShader "gfx/damage/bodybigburnmark1" +g2MarkSize 100 +loopSound "sound/vehicles/weapons/mine/loop.wav" +speed 0 +//damage 2000 +//splashDamage 500 +damage 2000 +splashDamage 500 +splashRadius 500 +ammoPerShot 1 +health 100 +width 12 +height 12 +lifetime 180000 +explodeOnExpire 1 +} diff --git a/base/ext_data/vehicles/weapons/proton_torpedo.vwp b/base/ext_data/vehicles/weapons/proton_torpedo.vwp new file mode 100644 index 0000000..0ede7ff --- /dev/null +++ b/base/ext_data/vehicles/weapons/proton_torpedo.vwp @@ -0,0 +1,28 @@ +proton_torpedo +{ +name proton_torpedo +projectile 1 +muzzleFX "ships/imp_torpmuzzleflash" +shotFX "ships/imp_torpshot" +impactFX "ships/proton_impact" +g2MarkShader "gfx/effects/scorch" +g2MarkSize 72 +loopSound "sound/vehicles/weapons/proton/loop.wav" +speed 4000 +//homing 0.5 +//homingFOV 0 +homing 0.25 +homingFOV 0.4 +lockOnTime 2400 +//damage 800 +//splashDamage 300 +damage 800 +splashDamage 300 +splashRadius 350 +ammoPerShot 1 +health 10 +width 6 +height 6 +lifetime 30000 +explodeOnExpire 1 +} diff --git a/base/ext_data/vehicles/weapons/rebel_laser.vwp b/base/ext_data/vehicles/weapons/rebel_laser.vwp new file mode 100644 index 0000000..20d0d78 --- /dev/null +++ b/base/ext_data/vehicles/weapons/rebel_laser.vwp @@ -0,0 +1,18 @@ +rebel_laser +{ +name rebel_laser +projectile 1 +muzzleFX "ships/reb_blastermuzzleflash" +shotFX "ships/reb_blastershot" +impactFX "ships/reb_blasterimpact" +g2MarkShader "gfx/effects/scorch" +g2MarkSize 52 +//loopSound +speed 20000 +damage 75 +//damage 40 +splashDamage 35 +splashRadius 80 +ammoPerShot 1 +lifetime 2000 +} diff --git a/base/ext_data/vehicles/weapons/swoop_laser.vwp b/base/ext_data/vehicles/weapons/swoop_laser.vwp new file mode 100644 index 0000000..9da2611 --- /dev/null +++ b/base/ext_data/vehicles/weapons/swoop_laser.vwp @@ -0,0 +1,14 @@ +swoop_laser +{ +name swoop_laser +projectile 1 +saberBlockable 1 +muzzleFX "ships/swoop_blastermuzzleflash" +shotFX "ships/swoop_blastershot" +impactFX "ships/swoop_blasterhit" +g2MarkShader "gfx/damage/bodyburnmark1" +g2MarkSize 16 +speed 2500 +damage 10 +ammoPerShot 1 +} diff --git a/base/ext_data/vehicles/weapons/swoop_rocket.vwp b/base/ext_data/vehicles/weapons/swoop_rocket.vwp new file mode 100644 index 0000000..ce7f226 --- /dev/null +++ b/base/ext_data/vehicles/weapons/swoop_rocket.vwp @@ -0,0 +1,23 @@ +swoop_rocket +{ +name swoop_rocket +projectile 1 +muzzleFX "ships/conc_muzzleflash" +shotFX "ships/reb_torpshot" +impactFX "ships/conc_impact" +g2MarkShader "gfx/damage/bodybigburnmark1" +g2MarkSize 48 +loopSound "sound/vehicles/weapons/conc_missile/loop.wav" +speed 10000 +homing 0 +lockOnTime 0 +damage 300 +splashDamage 200 +splashRadius 160 +ammoPerShot 1 +health 10 +width 6 +height 6 +lifetime 10000 +explodeOnExpire 1 +} diff --git a/base/ext_data/vehicles/weapons/template.vwp b/base/ext_data/vehicles/weapons/template.vwp new file mode 100644 index 0000000..a19d60e --- /dev/null +++ b/base/ext_data/vehicles/weapons/template.vwp @@ -0,0 +1,26 @@ +//name //(STRING)name of weapon, use same name in .veh file, use no spaces or special characters +//{ +//name //(STRING) Unique name of weapon, must be same as the name above +//projectile //(INT)0 = traceline, 1 = projectile (missile entity) +//hasGravity //(INT)0 = no grav, 1 = normal grav (on projectiles only) +//ionWeapon //(INT) 0 = not an ion weapon, 1 = disables ship shields and sends them out of control +//muzzleFX //(STRING)path to Muzzle Effect, starting from "effects" +//shotFX //(STRING)path to Shot Effect, starting from "effects" +//impactFX //(STRING)path to Impact Effect, starting from "effects" +//g2MarkShaderHandle //(STRING) name of shader to use for G2 marks made on other models when hit by this projectile +//g2MarkSize //(FLOAT) size (diameter) of the ghoul2 mark +//loopSound //(STRING)path to loopSound, starting from "base" +//speed //(FLOAT)speed of projectile/range of traceline +//homing //(FLOAT)0.0 = not homing, 0.5 = half vel to targ, half cur vel, 1.0 = all vel to targ +//homingFOV //(FLOAT, -1.0 to 1.0) default 0. Missile will lose lock on if DotProduct of missile direction and direction to target ever drops below this (-1 to 1, -1 = never lose target, 0 = lose if ship gets behind missile, 1 = pretty much will lose it's target right away) +//lockOnTime //(INT)0 = no lock time needed, else # of ms needed to lock on +//damage //(INT)damage done when traceline or projectile directly hits target +//splashDamage //(INT)damage done to ents in splashRadius of end of traceline or projectile origin on impact +//splashRadius //(FLOAT)radius that ent must be in to take splashDamage (linear fall-off) +//ammoPerShot //(INT)how much "ammo" each shot takes +//health //(INT)if non-zero, projectile can be shot, takes this much damage before being destroyed +//width //(FLOAT)width of traceline or bounding box of projecile (non-rotating!) +//height //(FLOAT)height of traceline or bounding box of projecile (non-rotating!) +//lifetime //(INT) after this many milliseconds, it will remove itself +//explodeOnExpire //(INT) if set to 1, it will explode when lifetime is up, not just remove itself +//} diff --git a/base/ext_data/vehicles/weapons/vssver.scc b/base/ext_data/vehicles/weapons/vssver.scc new file mode 100644 index 0000000..67407f1 Binary files /dev/null and b/base/ext_data/vehicles/weapons/vssver.scc differ diff --git a/base/ext_data/vehicles/weapons/yt_turbolaser.vwp b/base/ext_data/vehicles/weapons/yt_turbolaser.vwp new file mode 100644 index 0000000..bee6470 --- /dev/null +++ b/base/ext_data/vehicles/weapons/yt_turbolaser.vwp @@ -0,0 +1,19 @@ +yt_turbolaser +{ +name yt_turbolaser +projectile 1 +muzzleFX "ships/yt_turbomuzzleflash" +shotFX "ships/reb_blastershot" +impactFX "ships/reb_blasterimpact" +g2MarkShader "gfx/effects/scorch" +g2MarkSize 64 +//loopSound +speed 25000 +//damage 500 +//splashDamage 160 +damage 500 +splashDamage 160 +splashRadius 200 +ammoPerShot 1 +lifetime 2000 +} diff --git a/base/ext_data/vehicles/wildtauntaun.veh b/base/ext_data/vehicles/wildtauntaun.veh new file mode 100644 index 0000000..9dc13ef --- /dev/null +++ b/base/ext_data/vehicles/wildtauntaun.veh @@ -0,0 +1,55 @@ +WildTauntaun +{ +name WildTauntaun +type VH_ANIMAL +numHands 2 +lookYaw 45 +lookPitch 45 +length 128 +width 32 +height 32 +centerOfGravity "-0.222 0 0" +speedMax 500 +speedMin -50 +turboSpeed 800 +turboDuration 3000 +turboRecharge 8000 +acceleration 10 +decelIdle 20 + + +strafePerc 0.0 +bankingSpeed 0.0 +rollLimit 2 +pitchLimit 0 +braking 10 +mouseYaw 0.006 +turningSpeed 5 +turnWhenStopped 0 +traction 100 +friction 100 +maxSlope 0.55 +mass 200 +armor 300 +toughness 30.0 +model tauntaun +riderAnim BOTH_VT_IDLE +radarIcon "gfx/menus/radar/tauntaun" +skin "wild" + +cameraOverride 1 +cameraRange 125 +cameraVertOffset 0 +cameraPitchOffset 0 +cameraFOV 80 +cameraAlpha 0 + +soundOn "sound/chars/tauntaun/misc/buck1.mp3" +soundOff "sound/chars/tauntaun/misc/buck2.mp3" +soundTurbo "sound/chars/tauntaun/misc/anger1.mp3" +soundShift1 "sound/chars/tauntaun/misc/anger3.mp3" +soundShift2 "sound/chars/tauntaun/misc/chatter1.mp3" +soundShift3 "sound/chars/tauntaun/misc/chatter3.mp3" +soundShift4 "sound/chars/tauntaun/misc/pant1.mp3" + +} \ No newline at end of file diff --git a/base/ext_data/vehicles/x-wing.veh b/base/ext_data/vehicles/x-wing.veh new file mode 100644 index 0000000..0cd5244 --- /dev/null +++ b/base/ext_data/vehicles/x-wing.veh @@ -0,0 +1,125 @@ +X-Wing +{ +name X-Wing +type VH_FIGHTER +numHands 2 +hideRider 1 +killRiderOnDeath 1 +lookYaw 45 +length 460 +width 460 +height 128 +g2radius 460 +centerOfGravity "-0.222 0 0" +speedMax 2600 +turboSpeed 4000 +turboDuration 2000 +turboRecharge 6000 +speedMin 0 +acceleration 15 +decelIdle 8 +accelIdle 10 +speedIdle 800 +//test: speed stays at whatever you last set it to... +throttleSticks 1 +strafePerc 0.085 +bankingSpeed 0.5 +rollLimit 35 +pitchLimit 60 +braking 20 +mouseYaw 0.0022 +mousePitch 0.0022 +turningSpeed 4.2 +turnWhenStopped 0 +traction 12 +friction 0.4 +speedDependantTurning 1 +maxSlope 0.65 +mass 1000 +//armor 1000 +//malfunctionArmorLevel 666 +//health_front 300 +//health_back 200 +//health_right 250 +//health_left 250 +//shields 600 +armor 1200 +malfunctionArmorLevel 750 +//armor 2400 +//malfunctionArmorLevel 1200 +health_front 450 +health_back 350 +health_right 450 +health_left 450 +shields 500 +//ms per point of recharge +shieldRechargeMS 600 +toughness 90.0 +model x-wing +riderAnim BOTH_VS_IDLE +droidNPC "random" +radarIcon "gfx/menus/radar/XW" +dmgIndicFrame "gfx/menus/radar/circle_base_frame_reb" +dmgIndicShield "gfx/menus/radar/circle_base_shield" +dmgIndicBackground "gfx/menus/radar/circle_base" +icon_front "gfx/menus/radar/XW_front" +icon_back "gfx/menus/radar/XW_back" +icon_right "gfx/menus/radar/XW_right" +icon_left "gfx/menus/radar/XW_left" +crosshairShader "gfx/menus/radar/XW_reticle" +//shieldShader "gfx/misc/shields_green" +shieldShader "gfx/misc/shields_blue" +soundOn "sound/vehicles/x-wing/on.wav" +soundLoop "sound/vehicles/x-wing/loop.wav" +soundOff "sound/vehicles/x-wing/off.wav" +soundFlyBy "sound/vehicles/x-wing/flyby.wav" +soundFlyBy2 "sound/vehicles/x-wing/flyby2.wav" +soundHyper "sound/vehicles/common/hyperstartreb.wav" +soundTurbo "sound/vehicles/x-wing/xwingby.wav" +exhaustFX "ships/xwing_exhaust" +turboFX "ships/xwing_exhaust_turbo" +impactFX "ships/scrape_sparks" +explodeFX "ships/XW_explosion" +//trailFX "ships/wingtrail" +dmgFX "ships/heavydmg" +injureFX "ships/lightdmg" +noseFX "ships/XW_nose" +lwingFX "ships/XW_lwing" +rwingFX "ships/XW_rwing" +flammable 1 +hoverHeight 80 +hoverStrength 10 +explosionRadius 400 +explosionDamage 1000 + +landingHeight 300.0 + +surfDestruction 1 + +weap1 rebel_laser +weap1Delay 150 +weap1Aim 1 +weap1AmmoMax 40 +weap1AmmoRechargeMS 500 +weap1Link 1 + +weap2 concussion_missile +weap2Delay 2000 +weap2Aim 1 +weap2AmmoMax 8 +weap2Link 1 + +weapMuzzle1 rebel_laser +weapMuzzle2 rebel_laser +weapMuzzle3 rebel_laser +weapMuzzle4 rebel_laser +weapMuzzle5 concussion_missile +weapMuzzle6 concussion_missile + +cameraOverride 1 +cameraRange 500 +cameraVertOffset 110 +cameraPitchOffset 0 +cameraFOV 100 +cameraAlpha 0 +} \ No newline at end of file diff --git a/base/ext_data/vehicles/z-95.veh b/base/ext_data/vehicles/z-95.veh new file mode 100644 index 0000000..148af90 --- /dev/null +++ b/base/ext_data/vehicles/z-95.veh @@ -0,0 +1,129 @@ +//NOTE: this really acts more like an A-Wing right now, for variety's sake + +Z-95 +{ +name Z-95 +type VH_FIGHTER +numHands 2 +hideRider 1 +killRiderOnDeath 1 +lookYaw 45 +length 420 +width 460 +height 128 +g2radius 460 +centerOfGravity "-0.222 0 0" +//speedMax 2200 +//turboSpeed 4400 +speedMax 2400 +turboSpeed 4600 +turboDuration 3000 +turboRecharge 6000 +speedMin 0 +acceleration 26 +decelIdle 10 +accelIdle 15 +speedIdle 1000 +//test: speed stays at whatever you last set it to... +throttleSticks 1 +strafePerc 0.1 +bankingSpeed 0.5 +rollLimit 40 +pitchLimit 70 +braking 25 +//mouseYaw 0.0025 +//mousePitch 0.0025 +mouseYaw 0.00275 +mousePitch 0.00275 +//turningSpeed 5 +turningSpeed 5.25 +turnWhenStopped 0 +traction 14 +friction 0.5 +speedDependantTurning 1 +maxSlope 0.65 +mass 800 +//armor 1000 +//malfunctionArmorLevel 666 +//health_front 300 +//health_back 300 +//health_right 200 +//health_left 200 +//shields 300 +armor 900 +malfunctionArmorLevel 800 +//armor 2000 +//malfunctionArmorLevel 1300 +health_front 300 +health_back 300 +health_right 300 +health_left 300 +shields 450 +toughness 85.0 +model Z-95 +riderAnim BOTH_VS_IDLE +radarIcon "gfx/menus/radar/Z95" +dmgIndicFrame "gfx/menus/radar/circle_base_frame_reb" +dmgIndicShield "gfx/menus/radar/circle_base_shield" +dmgIndicBackground "gfx/menus/radar/circle_base" +icon_front "gfx/menus/radar/Z95_front" +icon_back "gfx/menus/radar/Z95_back" +icon_right "gfx/menus/radar/Z95_right" +icon_left "gfx/menus/radar/Z95_left" +crosshairShader "gfx/menus/radar/z95_reticle" +//shieldShader "gfx/misc/shields_green" +shieldShader "gfx/misc/shields_blue" +soundOn "sound/vehicles/z-95/on.wav" +soundLoop "sound/vehicles/z-95/loop.wav" +soundOff "sound/vehicles/z-95/off.wav" +soundFlyBy "sound/vehicles/z-95/flyby.wav" +soundFlyBy2 "sound/vehicles/z-95/flyby2.wav" +soundHyper "sound/vehicles/common/hyperstartreb.wav" +soundTurbo "sound/vehicles/z-95/flyby.wav" +exhaustFX "ships/z95_exhaust" +turboFX "ships/z95_exhaust_turbo" +impactFX "ships/scrape_sparks" +explodeFX "ships/Z95_explosion" +//trailFX "ships/wingtrail" +dmgFX "ships/heavydmg" +injureFX "ships/lightdmg" +noseFX "ships/Z95_nose" +lwingFX "ships/Z95_lwing" +rwingFX "ships/Z95_rwing" +flammable 1 +hoverHeight 80 +hoverStrength 10 +explosionRadius 400 +explosionDamage 1000 + +landingHeight 300.0 + +surfDestruction 1 + +weap1 rebel_laser +weap1Delay 100 +weap2 conc_missile_straight +weap2Delay 1000 + +weap1AmmoMax 30 +weap1AmmoRechargeMS 400 + +weap2AmmoMax 6 + +weap1Aim 1 +weap2Aim 1 + +weapMuzzle1 rebel_laser +weapMuzzle2 rebel_laser +weapMuzzle3 conc_missile_straight + +//should *all* ships really be able to do this? +weap1Link 1 + +cameraOverride 1 +cameraRange 500 +cameraVertOffset 110 +cameraPitchOffset 0 +cameraFOV 100 +cameraAlpha 0 +} \ No newline at end of file diff --git a/base/ext_data/vssver.scc b/base/ext_data/vssver.scc new file mode 100644 index 0000000..4d3d3e8 Binary files /dev/null and b/base/ext_data/vssver.scc differ diff --git a/base/ext_data/weapons.dat b/base/ext_data/weapons.dat new file mode 100644 index 0000000..4f8871e --- /dev/null +++ b/base/ext_data/weapons.dat @@ -0,0 +1,744 @@ +// EXTERNAL WEAPON & AMMO DATA +// +// NOTE!!!!!!!!! Weapontype must start the block of weapon data. +// NOTE!!!!!!!!! Ammo must start the block of ammo data. +// +// Weapontype - weapon data is associated with which weapon (must be first) +// WP_SABER, // player and NPC weapon +// WP_BLASTER_PISTOL, // player and NPC weapon +// WP_BLASTER, // player and NPC weapon +// WP_DISRUPTOR, // player and NPC weapon +// WP_BOWCASTER, // NPC weapon - player can pick this up, but never starts with them +// WP_REPEATER, // NPC weapon - player can pick this up, but never starts with them +// WP_DEMP2, // NPC weapon - player can pick this up, but never starts with them +// WP_FLECHETTE, // NPC weapon - player can pick this up, but never starts with them +// WP_ROCKET_LAUNCHER, // NPC weapon - player can pick this up, but never starts with them +// WP_THERMAL, // player and NPC weapon +// WP_TRIP_MINE, // NPC weapon - player can pick this up, but never starts with them +// WP_DET_PACK, // NPC weapon - player can pick this up, but never starts with them +// WP_CONCUSSION, // NPC weapon - player can pick this up, but never starts with them +//extras +// WP_STUN_BATON, // NPC weapon - player can pick this up, but never starts with them +// WP_MELEE, // player and NPC weapon - Any ol' melee attack +// These can never be gotten directly by the player +//NPC weapons +// WP_BRYAR_PISTOL, // NPC weapon - player can pick this up, but never starts with them +// WP_EMPLACED_GUN, +// WP_BOT_LASER, // Probe droid - Laser blast +// WP_TURRET, // turret guns +// WP_ATST_MAIN, +// WP_ATST_SIDE, +// WP_TIE_FIGHTER, +// WP_RAPID_FIRE_CONC, +// WP_JAWA, +// WP_TUSKEN_RIFLE, +// WP_TUSKEN_STAFF, +// WP_SCEPTER, +// WP_NOGHRI_STICK, +// +// Weaponclass - weapon name +// Weaponmodel - weapon model used in game +// weaponicon - interface image +// Ammotype - type of power weapon needs to fire +// 0 - No power +// 1 - Star Fleet power +// 2 - Alien Crystal power +// 3 - Phaser power +// Ammolowcount - amount when "Low ammo" warning appears on screen +// Flashcolor - color generate by weapon flash (R,G,B) +// Firingsound - sound file used when _idling_! +// altfiringsound - sound file used when alt-firing +// flashsound - sound file used by flash +// altflashsound - sound file used by an alt-fire flash +// stopsound - sound file used when a firing sound stops +// Firetime - amount of time between firings +// altfireTime - for alt fire +// Range - range of weapon +// energyPerShot - amount of energy used per shot +// altenergypershot- for alt fire +// barrelcount - number of barrels the model has (weaponname_b?.md3) +// missileModel - missile .md3 +// altmissileModel - alternate missile .md3 +// missileSound - played while flying +// altmissileSound - alternate missile launch sound +// missileLight - intensity of lightsource for missile - if 0.0 then none (float) +// altmissileLight - alternate missile light +// missileLightColor - color in three float style R, G, B (0.0 to 1.0) - NOTE - if you have a light, you MUST HAVE THESE +// altmissileLightColor - alternate color in three float style R, G, B (0.0 to 1.0) +// missileHitSound - played on impact +// altmissileHitSound - for alt fire +// missileFuncName - missile fly function +// altmissileFuncName - for alt fire +// +// FUNCTION NAMES +// borgfunc +// scavengerfunc +// altscavengerfunc +// stasisfunc +// grenadefunc +// altgrenadefunc +// tetrionfunc +// dreadnoughtfunc +// quantumfunc +// quantumaltfunc +// botrocketfunc +// forgeprojfunc +// forgeprojfunc2 +// forgepsychfunc +// parasiteacidfunc +// stasisattackfunc +// loaderlaserfunc +// botprojfunc + +// +// For AMMO Types +// ammoicon - STRING +// ammomax - INT + + +// WP_NULL +{ +WEAPONTYPE WP_NONE +} + +// WP_STUN_BATON +{ +weapontype WP_STUN_BATON +weaponclass weapon_stun_baton +weaponmodel models/weapons2/stun_baton/baton.md3 +weaponIcon gfx/hud/w_icon_stunbaton +firingsound sound/weapons/baton/idle.wav +firingforce fffx/weapons/baton/idle +barrelcount 3 +ammotype 1 +ammolowcount 5 +energypershot 0 +firetime 400 +range 8192 +altenergypershot 0 +altfiretime 400 +altrange 8192 +} + +// WP_SABER +{ +weapontype WP_SABER +weaponclass weapon_saber +weaponmodel models/weapons2/saber/saber_w.md3 +weaponIcon gfx/hud/w_icon_lightsaber +firingsound sound/weapons/saber/saberhum1.wav +ammotype 1 +ammolowcount 5 +energypershot 1 +firetime 100 +range 8192 +altenergypershot 3 +altfiretime 100 +altrange 8192 +missilemodel models/weapons2/saber/saber_w.md3 +} + + +// WP_BRYAR_PISTOL +{ +weapontype WP_BRYAR_PISTOL +weaponclass weapon_bryar_pistol +weaponmodel models/weapons2/briar_pistol/briar_pistol.md3 +weaponIcon gfx/hud/w_icon_briar +missileFuncName bryar_func +altmissileFuncName bryar_alt_func +ammotype 2 +ammolowcount 15 +energypershot 1 +firetime 400 +range 8192 +altenergypershot 1 +altfiretime 400 +altrange 8192 +muzzleEffect bryar/muzzle_flash +altmuzzleEffect bryar/altmuzzle_flash +altchargesound sound/weapons/bryar/altcharge.wav +altchargeforce fffx/weapons/bryar/altcharge +selectSound sound/weapons/bryar/select.wav +selectforce fffx/weapons/bryar/select +} + +// WP_BLASTER +{ +weapontype WP_BLASTER +weaponclass weapon_blaster +weaponmodel models/weapons2/blaster_r/blaster.md3 +weaponIcon gfx/hud/w_icon_blaster +ammotype 2 +ammolowcount 15 +energypershot 1 +firetime 350 +range 8192 +altenergypershot 2 +altfiretime 150 +altrange 8192 +missileFuncName blaster_func +altmissileFuncName blaster_alt_func +muzzleEffect blaster/muzzle_flash +altmuzzleEffect blaster/altmuzzle_flash +selectSound sound/weapons/blaster/select.wav +selectforce fffx/weapons/blaster/select +} + +// WP_DISRUPTOR +{ +weapontype WP_DISRUPTOR +weaponclass weapon_disruptor +weaponmodel models/weapons2/disruptor/disruptor.md3 +weaponIcon gfx/hud/w_icon_disruptor +ammotype 3 +ammolowcount 15 +energypershot 3 +barrelcount 1 +firetime 600 +range 8192 +altenergypershot 3 +altfiretime 1300 +altrange 8192 +muzzleEffect disruptor/muzzle_flash +altmuzzleEffect disruptor/altmuzzle_flash +selectSound sound/weapons/disruptor/select.wav +selectforce fffx/weapons/disruptor/select +altchargesound sound/weapons/disruptor/altCharge.wav +altchargeforce fffx/weapons/disruptor/altcharge +} + +// WP_BOWCASTER +{ +weapontype WP_BOWCASTER +weaponclass weapon_bowcaster +weaponmodel models/weapons2/bowcaster/bowcaster.md3 +weaponIcon gfx/hud/w_icon_bowcaster +altchargesound sound/weapons/bowcaster/altcharge.wav +altchargeforce fffx/weapons/bowcaster/altcharge +ammotype 3 +ammolowcount 15 +energypershot 5 +firetime 750 +range 8192 +altenergypershot 5 +altfiretime 400 +altrange 8192 +missileFuncName bowcaster_func +altmissileFuncName bowcaster_func +muzzleEffect bowcaster/muzzle_flash +altmuzzleEffect bowcaster/altmuzzle_flash +selectSound sound/weapons/bowcaster/select.wav +selectforce fffx/weapons/bowcaster/select +chargesound sound/weapons/bowcaster/altcharge.wav +chargeforce fffx/weapons/bowcaster/altcharge +} + +// WP_REPEATER +{ +weapontype WP_REPEATER +weaponclass weapon_repeater +weaponmodel models/weapons2/heavy_repeater/heavy_repeater.md3 +weaponIcon gfx/hud/w_icon_repeater +ammotype 4 +ammolowcount 25 +energypershot 1 +firetime 50 +range 8192 +altenergypershot 8 +altfiretime 800 +altrange 8192 +barrelcount 1 +missileFuncName repeater_func +altmissileFuncName repeater_alt_func +muzzleEffect repeater/muzzle_flash +altmuzzleEffect repeater/altmuzzle_flash +selectSound sound/weapons/repeater/select.wav +selectforce fffx/weapons/repeater/select +} + +// WP_DEMP2 +{ +weapontype WP_DEMP2 +weaponclass weapon_demp2 +weaponmodel models/weapons2/demp2/demp2.md3 +weaponIcon gfx/hud/w_icon_demp2 +ammotype 3 +ammolowcount 15 +energypershot 8 +firetime 450 +range 8192 +altenergypershot 10 +altfiretime 1200 +altrange 8192 +missileFuncName demp2_func +muzzleEffect demp2/muzzle_flash +altmissileFuncName demp2_alt_func +altmuzzleEffect demp2/altmuzzle_flash +selectSound sound/weapons/demp2/select.wav +selectforce fffx/weapons/demp2/select +altchargesound sound/weapons/demp2/altCharge.wav +altchargeforce fffx/weapons/demp2/altcharge +} + + +// WP_FLECHETTE +{ +weapontype WP_FLECHETTE +weaponclass weapon_flechette +weaponmodel models/weapons2/golan_arms/golan_arms.md3 +barrelcount 1 +ammotype 4 +ammolowcount 15 +firetime 550 +energypershot 8 +range 8192 +weaponIcon gfx/hud/w_icon_flechette +altenergypershot 8 +altfiretime 400 +altrange 8192 +missileFuncName flechette_func +missileModel models/weapons2/golan_arms/projectileMain.md3 +altmissileFuncName flechette_alt_func +muzzleEffect flechette/muzzle_flash +altmuzzleEffect flechette/altmuzzle_flash +altmissileModel models/weapons2/golan_arms/projectile.md3 +selectSound sound/weapons/flechette/select.wav +selectforce fffx/weapons/flechette/select +} + +// WP_ROCKET_LAUNCHER +{ +weapontype WP_ROCKET_LAUNCHER +weaponclass weapon_rocket_launcher +weaponmodel models/weapons2/merr_sonn/merr_sonn.md3 +ammotype 5 +ammolowcount 1 +firetime 600 +energypershot 1 +range 8192 +weaponIcon gfx/hud/w_icon_merrsonn +barrelcount 1 +altenergypershot 1 +altfiretime 1000 +altrange 8192 +missileLight 125 +missileLightColor 1.0 1.0 0.5 +altmissileLight 125 +altmissileLightColor 1.0 1.0 0.5 +missileFuncName rocket_func +altmissileFuncName rocket_alt_func +muzzleEffect rocket/muzzle_flash2 +altmuzzleEffect rocket/altmuzzle_flash +missileModel models/weapons2/merr_sonn/projectile.md3 +altmissileModel models/weapons2/merr_sonn/projectile.md3 +missilesound sound/weapons/rocket/missleloop.wav +altmissilesound sound/weapons/rocket/missleloop.wav +selectSound sound/weapons/rocket/select.wav +selectforce fffx/weapons/rocket/select +} + +// WP_CONCUSSION +{ +weapontype WP_CONCUSSION +weaponclass weapon_concussion_rifle +weaponmodel models/weapons2/concussion/c_rifle.md3 +weaponIcon gfx/hud/w_icon_c_rifle +ammotype 4 +ammolowcount 120 +energypershot 40 +firingsound sound/weapons/concussion/idle_lp.wav +firetime 800 +range 8192 +missileFuncName conc_func +muzzleEffect concussion/muzzle_flash +missileLight 125 +missileLightColor 0.75 0.25 1.0 +missilesound sound/weapons/concussion/missleloop.wav +altenergypershot 50 +altfiretime 1200 +altrange 8192 +barrelcount 1 +altmuzzleEffect concussion/altmuzzle_flash +selectSound sound/weapons/concussion/select.wav +selectforce fffx/weapons/concussion/select +} + +// WP_THERMAL +{ +weapontype WP_THERMAL +weaponclass weapon_thermal +weaponmodel models/weapons2/thermal/thermal.md3 +weaponIcon gfx/hud/w_icon_thermal +ammotype 7 +ammolowcount 1 +energypershot 1 +firetime 800 +range 8192 +altenergypershot 1 +altfiretime 400 +altrange 8192 +missileModel models/weapons2/thermal/thermal_proj.md3 +altmissileModel models/weapons2/thermal/thermal_proj.md3 +barrelcount 0 +chargesound sound/weapons/thermal/charge.wav +chargeforce fffx/weapons/thermal/charge +altchargesound sound/weapons/thermal/charge.wav +altchargeforce fffx/weapons/thermal/charge +selectSound sound/weapons/thermal/select.wav +selectforce fffx/weapons/thermal/select +muzzleEffect thermal/muzzle_flash +} + +// WP_TRIP_MINE +{ +weapontype WP_TRIP_MINE +weaponclass weapon_trip_mine +weaponmodel models/weapons2/laser_trap/laser_trap.md3 +weaponIcon gfx/hud/w_icon_tripmine +ammotype 8 +ammolowcount 1 +energypershot 1 +firetime 800 +range 8192 +altenergypershot 1 +altfiretime 400 +altrange 8192 +missileModel models/weapons2/laser_trap/laser_trap_w.glm +altmissileModel models/weapons2/laser_trap/laser_trap_w.glm +selectSound sound/weapons/detpack/select.wav +selectforce fffx/weapons/detpack/select +muzzleEffect tripmine/muzzle_flash + +} + +// WP_DET_PACK +{ +weapontype WP_DET_PACK +weaponclass weapon_det_pack +weaponmodel models/weapons2/detpack/det_pack.md3 +weaponIcon gfx/hud/w_icon_detpack +ammotype 9 +ammolowcount 1 +energypershot 1 +firetime 800 +range 8192 +altenergypershot 0 +altfiretime 400 +altrange 8192 +missileModel models/weapons2/detpack/det_pack_proj.glm +selectSound sound/weapons/detpack/select.wav +selectforce fffx/weapons/detpack/select +muzzleEffect detpack/muzzle_flash +} + +// WP_EMPLACED_GUN +{ +weapontype WP_EMPLACED_GUN +weaponclass weapon_emplaced_gun +weaponmodel models/weapons2/noweap/noweap.md3 + +altenergypershot 1 +altrange 8192 +missileFuncName emplaced_func +altmissileFuncName emplaced_func +ammotype 6 +ammolowcount 15 +energypershot 1 +firetime 150 +altfiretime 150 +range 8192 +muzzleEffect emplaced/muzzle_flash +muzzleEffect eweb/muzzle_flash +} + +// WP_BOT_LASER +{ +weapontype WP_BOT_LASER +weaponclass weapon_bryar_pistol +weaponmodel models/weapons2/noweap/noweap.md3 + +//flashsound sound/weapons/probe/fire.wav +//altflashsound sound/weapons/probe/alt_fire.wav +altenergypershot 0 +altrange 8192 +missileFuncName bryar_func +ammotype 1 +ammolowcount 15 +energypershot 2 +firetime 1600 +range 8192 +} + +// WP_MELEE +{ +weapontype WP_MELEE +weaponclass weapon_melee +weaponmodel models/weapons2/noweap/noweap.md3 +weaponIcon gfx/hud/w_icon_melee +ammotype 3 +ammolowcount 5 +energypershot 0 +firetime 1000 +range 1024 +} + +// WP_ATST_MAIN +{ +weapontype WP_ATST_MAIN +weaponclass weapon_atst_main +weaponmodel models/weapons2/noweap/noweap.md3 +weaponIcon gfx/hud/w_icon_atst +//flashsound sound/weapons/atst/ATSTfire1.wav +//altflashsound sound/weapons/atst/ATSTfire2.wav +altenergypershot 1 +altrange 8192 +missileFuncName atstmain_func +altmissileFuncName atstmain_func +ammotype 6 +ammolowcount 15 +energypershot 1 +firetime 200 +altfiretime 150 +range 8192 +muzzleEffect emplaced/muzzle_flash +} + +// WP_ATST_SIDE +{ +weapontype WP_ATST_SIDE +weaponclass weapon_atst_side +weaponmodel models/weapons2/noweap/noweap.md3 +weaponIcon gfx/hud/w_icon_atstside +altenergypershot 1 +altrange 8192 + +altmissileModel models/weapons2/merr_sonn/projectile.md3 + +missileFuncName atst_side_main_func +altmissileFuncName atst_side_alt_func +muzzleEffect emplaced/muzzle_flash +altmuzzleEffect emplaced/muzzle_flash + +ammotype 6 +ammolowcount 15 +energypershot 1 +firetime 400 +altfiretime 1000 +range 8192 +} + +// WP_TIE_FIGHTER +{ +weapontype WP_TIE_FIGHTER +weaponclass weapon_tie_fighter +weaponmodel models/weapons2/noweap/noweap.md3 +altenergypershot 1 +altrange 8192 +missileFuncName emplaced_func +altmissileFuncName emplaced_func +ammotype 6 +ammolowcount 15 +energypershot 1 +firetime 400 +altfiretime 400 +range 8192 +muzzleEffect emplaced/muzzle_flash +} + +// WP_RAPID_FIRE_CONC +{ +weapontype WP_RAPID_FIRE_CONC +weaponclass weapon_radid_concussion +weaponmodel models/weapons2/noweap/noweap.md3 +altenergypershot 1 +altrange 8192 +missileFuncName emplaced_func +altmissileFuncName repeater_alt_func +ammotype 6 +ammolowcount 15 +energypershot 1 +firetime 400 +altfiretime 1000 +range 8192 +muzzleEffect emplaced/muzzle_flash +} + +// WP_BLASTER_PISTOL +{ +weapontype WP_BLASTER_PISTOL +weaponclass weapon_blaster_pistol +weaponmodel models/weapons2/blaster_pistol/blaster_pistol.md3 +weaponIcon gfx/hud/w_icon_blaster_pistol +missileFuncName bryar_func +altmissileFuncName bryar_alt_func +ammotype 2 +ammolowcount 15 +energypershot 1 +firetime 400 +range 8192 +altenergypershot 1 +altfiretime 400 +altrange 8192 +muzzleEffect bryar/muzzle_flash +altmuzzleEffect bryar/altmuzzle_flash +altchargesound sound/weapons/bryar/altcharge.wav +selectSound sound/weapons/bryar/select.wav +selectforce fffx/weapons/bryar/select +} + +// WP_TURRET +{ +weapontype WP_TURRET +weaponclass weapon_turret +weaponmodel models/weapons2/noweap/noweap.md3 +altenergypershot 1 +altrange 8192 +missileFuncName turret_func +ammotype 6 +ammolowcount 15 +energypershot 1 +firetime 400 +altfiretime 400 +range 8192 +muzzleEffect turret/muzzle_flash +} + +// WP_JAWA +{ +weapontype WP_JAWA +weaponclass weapon_jawa +weaponmodel models/weapons2/jawa/jawa_gun.md3 +missileFuncName bryar_func +altmissileFuncName bryar_alt_func +ammotype 2 +ammolowcount 15 +energypershot 2 +firetime 400 +range 8192 +altenergypershot 2 +altfiretime 400 +altrange 8192 +muzzleEffect bryar/muzzle_flash +} + +// WP_TUSKEN_RIFLE +{ +weapontype WP_TUSKEN_RIFLE +weaponclass weapon_tusken_rifle +weaponmodel models/weapons2/tusken_rifle/tusken_rifle.md3 +ammotype 3 +ammolowcount 15 +firetime 1000 +energypershot 3 +firetime 600 +missileFuncName tusk_shot_func +missileLight 50 +missileLightColor 1.0 0.75 0.25 +muzzleEffect tusken/muzzle_flash +altenergypershot 3 +altfiretime 1000 +altmissileFuncName tusk_shot_func +altmissileLight 50 +altmissileLightColor 1.0 0.75 0.25 +altmuzzleEffect tusken/muzzle_flash +selectSound sound/weapons/disruptor/select.wav +selectforce fffx/weapons/disruptor/select +} + +// WP_TUSKEN_STAFF +{ +weapontype WP_TUSKEN_STAFF +weaponclass weapon_tusken_staff +weaponmodel models/weapons2/tusken_staff/tusken_staff.md3 +ammotype 3 +ammolowcount 5 +energypershot 0 +firetime 1000 +range 1024 +} + +//WP_SCEPTER +{ +weapontype WP_SCEPTER +weaponclass weapon_scepter +weaponmodel models/weapons2/sith_scepter/sith_scepter.md3 +ammotype 3 +ammolowcount 5 +energypershot 0 +firetime 1000 +range 1024 +} + +//WP_NOGHRI_STICK +{ +weapontype WP_NOGHRI_STICK +weaponclass weapon_noghri_stick +weaponmodel models/weapons2/noghri_stick/noghri_stick.md3 +ammotype 3 +ammolowcount 5 +energypershot 1 +firetime 600 +missileFuncName noghri_shot_func +muzzleEffect noghri_stick/muzzle_flash +} + +// AMMO_NONE +{ +AMMO AMMO_NONE +AMMOMAX 0 +} + +// AMMO_FORCE +{ +AMMO AMMO_FORCE +AMMOMAX 100 +} + +// AMMO_BLASTER +{ +AMMO AMMO_BLASTER +AMMOMAX 300 +} + +// AMMO_POWERCELL +{ +AMMO AMMO_POWERCELL +AMMOMAX 300 +} + +// AMMO_METAL_BOLTS +{ +AMMO AMMO_METAL_BOLTS +AMMOMAX 400 +} + +// AMMO_ROCKETS +{ +AMMO AMMO_ROCKETS +AMMOMAX 10 +} + +// AMMO_EMPLACED +{ +AMMO AMMO_EMPLACED +AMMOMAX 999 +} + +// AMMO_THERMAL +{ +AMMO AMMO_THERMAL +AMMOMAX 10 +} + +// AMMO_TRIPMINE +{ +AMMO AMMO_TRIPMINE +AMMOMAX 5 +} + +// AMMO_DETPACK +{ +AMMO AMMO_DETPACK +AMMOMAX 5 +} \ No newline at end of file diff --git a/base/high.cfg b/base/high.cfg new file mode 100644 index 0000000..8b25e32 --- /dev/null +++ b/base/high.cfg @@ -0,0 +1,18 @@ +set r_picmip 0 +set r_lodbias 0 +set r_detailtextures 1 +set r_dynamiclight 1 +set r_flares 1 +set r_subdivisions 4 +set r_lodcurveError 250 +set r_lodscale 10 +set cg_shadows 2 +set r_texturebitslm 32 +set r_texturebits 32 +set r_colorbits 32 +set r_depthbits 32 + +set r_surfaceSprites 1 +set r_weatherScale 1 + +set r_noportals 0 \ No newline at end of file diff --git a/base/low.cfg b/base/low.cfg new file mode 100644 index 0000000..fee2aaf --- /dev/null +++ b/base/low.cfg @@ -0,0 +1,22 @@ +set s_khz 11 +set cg_VariantSoundCap 2 + +set r_picmip 2 +set r_lodbias 2 +set r_detailtextures 0 +set r_dynamiclight 0 +set r_flares 0 +set r_subdivisions 20 +set r_lodcurveError 500 +set r_lodscale 4 +set cg_shadows 0 +set cg_marks 0 + +set r_texturebits 16 +set r_colorbits 16 +set r_depthbits 16 + +set r_surfaceSprites 0 +set r_weatherScale 0 + +set r_noportals 1 \ No newline at end of file diff --git a/base/med.cfg b/base/med.cfg new file mode 100644 index 0000000..ad92c05 --- /dev/null +++ b/base/med.cfg @@ -0,0 +1,18 @@ +set sys_lowmem 0 +set r_picmip 1 +set r_lodbias 1 +set r_detailtextures 1 +set r_dynamiclight 1 +set r_flares 1 +set r_subdivisions 12 +set r_lodcurveError 250 +set r_lodscale 6 +set cg_shadows 1 +set r_texturebits 0 +set r_colorbits 0 +set r_depthbits 0 + +set r_surfaceSprites 1 +set r_weatherScale 1 + +set r_noportals 0 diff --git a/base/mpdefault.cfg b/base/mpdefault.cfg new file mode 100644 index 0000000..cf7a60d --- /dev/null +++ b/base/mpdefault.cfg @@ -0,0 +1,141 @@ +// +// MP JEDI ACADEMY DEFAULT CONFIG +// + +unbindall + +// +// weapons +// +bind 1 "weapon 1" +bind 2 "weapon 2" +bind 3 "weapon 3" +bind 4 "weapon 4" +bind 5 "weapon 5" +bind 6 "weapon 6" +bind 7 "weapon 7" +bind 8 "weapon 8" +bind 9 "weapon 13" +bind 0 "weapon 9" +bind - "weapon 10" +bind = "weapon 0" + + +// +// CHARACTER CONTROLS +// + +bind CTRL +attack +bind ALT +altattack +bind SHIFT +speed +bind z +strafe +bind PGUP +lookup +bind PGDN +lookdown +bind END centerview +bind c +movedown +bind SPACE +moveup +bind ENTER +use +bind r +use + + +bind UPARROW +forward +bind DOWNARROW +back +bind LEFTARROW +left +bind RIGHTARROW +right +bind w +forward +bind a +moveleft +bind s +back +bind d +moveright +bind , +moveleft +bind . +moveright + +// +// FORCE POWERS +// + +bind F1 force_throw +bind F2 force_pull +bind F3 force_speed +bind F4 force_seeing +bind F5 force_heal +bind F6 force_protect +bind F7 force_absorb +bind F8 force_distract +bind F9 +force_grip +bind F10 +force_lightning +bind F11 force_rage +bind F12 +force_drain +bind \ force_forcepowerother +bind ] force_healother + + +bind f +useforce +bind e forcenext +bind q forceprev + +bind TAB +scores +bind INS scoresUp +bind DEL scoresDown +bind p "cg_thirdperson !" +bind l saberAttackCycle + +// +// QUICK KEYS +// + + +//multi only +bind KP_HOME use_field + +//bind KP_RIGHTARROW use_field +//bind KP_UPARROW use_field +//bind KP_DOWNARROW use_field +//bind KP_END use_field +//bind KP_PGDN use_field +//bind KP_INS use_field +//bind KP_DEL use_field +//bind KP_ENTER use_field +// + + +// +// MOUSE OPTIONS +// + +bind / +mlook + +// +// MOUSE BUTTONS +// + +bind MOUSE1 +attack +bind MOUSE2 +altattack +bind MOUSE3 saberAttackCycle +bind mwheelup weapprev +bind mwheeldown weapnext + +// +// CLIENT ENVIRONMENT COMMANDS +// + +bind ~ "toggleconsole" +bind ` "toggleconsole" + + +//yell to all +bind y messagemode +//team talk +bind t messagemode2 +//target +bind u messagemode3 +//attacker +bind i messagemode4 +//voicechat +bind v voicechat +//Automap toggle +bind m automap_toggle +//Objectives menu +bind o "ui_opensiegemenu ingame_objectives" + +// Saber Challenge +bind k engage_duel diff --git a/base/noMotion.cfg b/base/noMotion.cfg new file mode 100644 index 0000000..7662bac --- /dev/null +++ b/base/noMotion.cfg @@ -0,0 +1,5 @@ +cg_runpitch 0 +cg_runroll 0 +cg_bobup 0 +cg_bobpitch 0 +cg_bobroll 0 \ No newline at end of file diff --git a/base/productid.txt b/base/productid.txt new file mode 100644 index 0000000..9e1663b --- /dev/null +++ b/base/productid.txt @@ -0,0 +1 @@ +This file is copyright 2003 Raven Software, and may not be duplicated except during a licensed installation of the full commercial version of Star Wars: Jedi Academy \ No newline at end of file diff --git a/base/restoreMotion.cfg b/base/restoreMotion.cfg new file mode 100644 index 0000000..1805938 --- /dev/null +++ b/base/restoreMotion.cfg @@ -0,0 +1,5 @@ +reset cg_runpitch +reset cg_runroll +reset cg_bobup +reset cg_bobpitch +reset cg_bobroll \ No newline at end of file diff --git a/base/ui/character.menu b/base/ui/character.menu new file mode 100644 index 0000000..8f3768c --- /dev/null +++ b/base/ui/character.menu @@ -0,0 +1,898 @@ +//---------------------------------------------------------------------------------------------- +// CHARACTER CREATION MENU +// +// +// +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "characterMenu" + fullScreen 1 + rect 0 0 640 480 + visible 1 + focusColor 1 1 1 1 + descX 320 + descY 426 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + + onOpen + { + uiScript "getcharcvars" + uiScript "character" + hide heads + show torso + hide lower + } + + onESC + { + play "sound/interface/esc.wav" + close characterMenu + open newgameMenu + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 +// background "gfx/menus/main_background" + background "gfx/menus/charmenu" + forecolor 1 1 1 1 + visible 1 + decoration + } + + // The starwars logo on the top + /*itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 107 8 428 112 + background "gfx/menus/jediacademy" + forecolor 1 1 1 1 + visible 1 + decoration + }*/ + + + + itemDef + { + name left_frame + group lf_fr + style WINDOW_STYLE_SHADER + rect 0 -60 320 160 + background "gfx/menus/menu_boxes_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name right_frame + group rt_fr + style WINDOW_STYLE_SHADER + rect 320 -60 320 160 + background "gfx/menus/menu_boxes_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// CHARACTER MENU specific stuff +//---------------------------------------------------------------------------------------------- + // CREATION title + itemDef + { + name creation_title + group title + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_CHARACTER_CREATION + rect 100 54 440 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + itemDef + { + name character + group models + type ITEM_TYPE_MODEL +// rect 52 84 900 1000 + rect 355 84 300 340 + + model_g2anim "BOTH_WALK1" + asset_model "ui_char_model" + model_angle 180 + model_g2mins -10 -15 -10 + model_g2maxs 20 15 30 + model_rotation 50 + model_fovx 50 + model_fovy 50 + isCharacter 1 + visible 1 + decoration + + } + + itemDef + { + name background2 + group none + style WINDOW_STYLE_SHADER + rect 320 360 320 120 + background "gfx/menus/charmenu_bottom" + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// SPECIES BUTTON +//---------------------------------------------------------------------------------------------- + itemDef + { + name species + group none + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 30 88 140 24 + forecolor .549 .854 1 1 + text @MENUS_SPECIES + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + font 3 + textscale 1 + visible 1 + decoration + } + + itemDef + { + name speciesbut_glow + group none + style WINDOW_STYLE_SHADER + rect 176 92 150 16 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name speciesbut + group none + text " " + descText @MENUS_CHOOSE_SPECIES + type ITEM_TYPE_MULTI + style WINDOW_STYLE_EMPTY + rect 176 92 150 16 + font 2 + textscale .9 + textaligny -5 + textalign ITEM_ALIGN_LEFT + textstyle 1 + textalignx 0 + backcolor 0 0 0 0 + forecolor .615 .615 .956 1 + feeder 16 //FEEDER_PLAYER_SPECIES + cvar "ui_char_model" + cvarStrList feeder + + visible 1 + + mouseEnter + { + show speciesbut_glow + } + mouseExit + { + hide speciesbut_glow + } + action + { + play "sound/interface/button1.wav" + uiScript "characterchanged" + uiScript "resetcharacterlistboxes" + } + } + +//---------------------------------------------------------------------------------------------- +// COLOR TINT AREA +//---------------------------------------------------------------------------------------------- + itemDef + { + name color + group none + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 30 144 160 24 + forecolor .549 .854 1 1 + text @MENUS_COLOR + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + font 3 + textscale 1 + visible 1 + decoration + } + + itemDef + { + name colorbox + group tints + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + desctext @MENUS_CHANGE_PLAYER_TINT + elementwidth 32 + elementheight 32 + elementtype 1 //LISTBOX_IMAGE + feeder 20 //FEEDER_COLORCHOICES + horizontalscroll + border 1 + bordersize 1 + backcolor .66 .66 1 .25 + bordercolor .66 .66 1 1 + rect 30 168 292 48 + visible 1 + action + { + play "sound/interface/choose_color.wav" + } + } + +//---------------------------------------------------------------------------------------------- +// APPEARANCE TABS +//---------------------------------------------------------------------------------------------- + itemDef + { + name appear + group none + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 30 252 180 24 + forecolor .549 .854 1 1 + text @MENUS_APPEARANCE + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + font 3 + textscale 1 + visible 1 + decoration + } + + // HEAD BUTTON + itemDef + { + name headbut_glow + group none + style WINDOW_STYLE_SHADER + rect 30 280 90 16 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name headbut + group none + text @MENUS_HEAD + descText @MENUS_SELECT_HEAD + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 30 280 90 16 + font 2 + textscale .9 + textaligny -5 + textalign ITEM_ALIGN_LEFT + textstyle 1 + textalignx 0 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show headbut_glow + } + mouseExit + { + hide headbut_glow + } + action + { + play "sound/interface/button1.wav" + show heads + hide torso + hide lower + transition2 character 52 84 900 1000 20 25 + + setitemcolor legsbut forecolor 1 .682 0 1 + setitemcolor torsobut forecolor 1 .682 0 1 + setitemcolor headbut forecolor 1 1 1 1 + + } + } + + + // TORSO BUTTON + itemDef + { + name torsobut_glow + group none + style WINDOW_STYLE_SHADER + rect 126 280 90 16 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name torsobut + group none + text @MENUS_TORSO + descText @MENUS_SELECT_TORSO + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 126 280 90 16 + font 2 + textscale .9 + textaligny -5 + textalign ITEM_ALIGN_LEFT + textstyle 1 + textalignx 0 + backcolor 0 0 0 0 + forecolor 1 1 1 1 + visible 1 + + mouseEnter + { + show torsobut_glow + } + mouseExit + { + hide torsobut_glow + } + action + { + play "sound/interface/button1.wav" + show torso + hide heads + hide lower + transition2 character 355 84 300 340 20 25 + + setitemcolor legsbut forecolor 1 .682 0 1 + setitemcolor torsobut forecolor 1 1 1 1 + setitemcolor headbut forecolor 1 .682 0 1 + } + } + + // LEGS BUTTON + itemDef + { + name legsbut_glow + group none + style WINDOW_STYLE_SHADER + rect 224 280 90 16 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name legsbut + group none + text @MENUS_LEGS + descText @MENUS_SELECT_LEGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 224 280 90 16 + font 2 + textscale .9 + textaligny -5 + textalign ITEM_ALIGN_LEFT + textstyle 1 + textalignx 0 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show legsbut_glow + } + mouseExit + { + hide legsbut_glow + } + action + { + play "sound/interface/button1.wav" + show lower + hide heads + hide torso + transition2 character 355 84 300 340 20 25 + + setitemcolor legsbut forecolor 1 1 1 1 + setitemcolor torsobut forecolor 1 .682 0 1 + setitemcolor headbut forecolor 1 .682 0 1 + } + } + +//---------------------------------------------------------------------------------------------- +// APPEARANCE LISTBOXES +//---------------------------------------------------------------------------------------------- + itemDef + { + name headlistbox + group heads + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + descText @MENUS_SELECT_HEAD + elementwidth 72 + elementheight 72 + elementtype 1 //LISTBOX_IMAGE + feeder 17 //FEEDER_PLAYER_SKIN_HEAD + horizontalscroll + border 1 + bordersize 1 + backcolor .66 .66 1 .25 + bordercolor .66 .66 1 1 + forecolor -1 //use playercolor + rect 30 306 292 93 + visible 0 + action + { + play "sound/interface/choose_head.wav" + uiScript "char_skin" + } + } + + itemDef + { + name torsolistbox + group torso + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + descText @MENUS_SELECT_TORSO + elementwidth 72 + elementheight 72 + elementtype 1 //LISTBOX_IMAGE + feeder 18 //FEEDER_PLAYER_SKIN_TORSO + horizontalscroll + border 1 + bordersize 1 + backcolor .66 .66 1 .25 + bordercolor .66 .66 1 1 + forecolor -1 //use playercolor + rect 30 306 292 93 + visible 1 + action + { + play "sound/interface/choose_torso.wav" + uiScript "char_skin" + } + } + + itemDef + { + name lowerlistbox + group lower + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + descText @MENUS_SELECT_LEGS + elementwidth 72 + elementheight 72 + elementtype 1 //LISTBOX_IMAGE + feeder 19 //FEEDER_PLAYER_SKIN_LEGS + horizontalscroll + border 1 + bordersize 1 + backcolor .66 .66 1 .25 + bordercolor .66 .66 1 1 + forecolor -1 //use playercolor + rect 30 306 292 93 + visible 0 + action + { + play "sound/interface/choose_head.wav" + uiScript "char_skin" + } + } + +//---------------------------------------------------------------------------------------------- +// TOP MAIN MENU BUTTONS +//---------------------------------------------------------------------------------------------- + // Big button "NEW" + itemDef + { + name newbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 7 16 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name newgamebutton + group nbut + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 7 16 130 24 + text @MENUS_NEW + descText @MENUS_START_A_NEW_GAME + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 1 1 1 + visible 1 + + mouseEnter + { + show newbutton_glow + } + mouseExit + { + hide newbutton_glow + } + } + + // Big button "LOAD" + itemDef + { + name loadgamebutton_glow + group none + style WINDOW_STYLE_SHADER + rect 170 16 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name loadgamebutton + group lbut + text @MENUS_LOAD + descText @MENUS_LOAD_A_SAVED_GAME + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 16 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show loadgamebutton_glow + } + mouseExit + { + hide loadgamebutton_glow + } + action + { + play "sound/interface/button1.wav" + close all + open loadgameMenu + } + } + + // Big button "CONTROLS" + itemDef + { + name controlsbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 340 16 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name controlsbutton + group cbut + text @MENUS_CONTROLS + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 16 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show controlsbutton_glow + } + mouseExit + { + hide controlsbutton_glow + } + action + { + play "sound/interface/button1.wav" + close all + open controlsMenu + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 502 16 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name setupbutton + group sbut + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 502 16 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show setupbutton_glow + } + mouseExit + { + hide setupbutton_glow + } + action + { + play "sound/interface/button1.wav" + close all + open setupMenu + } + } + +//---------------------------------------------------------------------------------------------- +// LOWER MAIN MENU BUTTONS +//---------------------------------------------------------------------------------------------- + // BACK button in lower left corner + itemDef + { + name backbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 59 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name backbutton + group exit + text @MENUS_BACK + descText @MENUS_BACKUP_ONE_MENU + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 59 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show backbutton_glow + } + mouseExit + { + hide backbutton_glow + } + action + { + play "sound/interface/esc.wav" + close all ; + open newgameMenu + } + } + // EXIT button in lower left corner + itemDef + { + name exitgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 255 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name exitgamebutton + group exit + text @MENUS_EXIT + descText @MENUS_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 255 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show exitgamebutton_glow + } + mouseExit + { + hide exitgamebutton_glow + } + action + { + play "sound/weapons/saber/saberoff.mp3" + close all + open quitMenu + } + } + + itemDef + { + name next_glow + group mods + style WINDOW_STYLE_SHADER + rect 455 444 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name next + group none + text @MENUS_NEXT + descText @MENUS_NEXT_DESC + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 455 444 130 24 + font 3 + textscale 1 + textalignx 65 + textaligny -1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" + close all + uiScript "updatecharcvars" + setcvar saber_menu 0 + setcvar ui_saber_type single + open saberMenu + } + mouseEnter + { + show next_glow + } + mouseExit + { + hide next_glow + } + } + } +} \ No newline at end of file diff --git a/base/ui/controls.menu b/base/ui/controls.menu new file mode 100644 index 0000000..9f0e9ef --- /dev/null +++ b/base/ui/controls.menu @@ -0,0 +1,3121 @@ +//---------------------------------------------------------------------------------------------- +// +// CONTROLS MENU +// +// Player can change key bindings from main menu +// +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "controlsMenu" + fullScreen 1 + rect 0 0 640 480 + visible 1 + focusColor 1 1 1 1 + descX 320 + descY 426 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + uiScript loadControls + setitemcolor side_buttons forecolor 1 .682 0 1 + + // fade in movement controls + show movecontrols + setitemcolor movecontrols forecolor .615 .615 .956 0.0 + fadein movecontrols + + // don't show any others + hide attackcontrols + setitemcolor attackcontrols forecolor .615 .615 .956 0.0 + + hide weaponcontrols + setitemcolor weaponcontrols forecolor .615 .615 .956 0.0 + + hide forcecontrols + setitemcolor forcecontrols forecolor .615 .615 .956 0.0 + + hide quickcontrols + setitemcolor quickcontrols forecolor .615 .615 .956 0.0 + + hide joycontrols + setitemcolor joycontrols forecolor .615 .615 .956 0.0 + + hide othercontrols + setitemcolor othercontrols forecolor .615 .615 .956 0.0 + + show setup_background + + setitemcolor movementcontrolbutton forecolor 1 1 1 1 + + hide ffwarning + } + + onClose + { + uiScript saveControls + hide ffwarning + } + + onESC + { + play "sound/interface/esc.wav" + hide button_glow + close controlsMenu + open mainMenu + hide ffwarning + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 107 8 428 112 + background "gfx/menus/jediacademy" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name left_frame + group lf_fr + style WINDOW_STYLE_SHADER + rect 0 50 320 160 + background "gfx/menus/menu_boxes_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name right_frame + group rt_fr + style WINDOW_STYLE_SHADER + rect 320 50 320 160 + background "gfx/menus/menu_boxes_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// TOP MAIN MENU BUTTONS +//---------------------------------------------------------------------------------------------- + // Big button "NEW" + itemDef + { + name newgamebutton + group nbut + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 7 126 130 24 + text @MENUS_NEW + descText @MENUS_START_A_NEW_GAME + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 7 124 130 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open newgameMenu + } + } + + // Big button "LOAD" + itemDef + { + name loadgamebutton + group lbut + text @MENUS_LOAD + descText @MENUS_LOAD_A_SAVED_GAME + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 126 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 170 124 130 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open loadgameMenu + } + } + + // Big button "CONTROLS" + itemDef + { + name controlsbutton + group cbut + text @MENUS_CONTROLS + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 1 1 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 340 126 130 24 + } + mouseExit + { + hide button_glow + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton + group sbut + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 502 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 502 126 130 24 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open setupMenu ; + } + } + + +//---------------------------------------------------------------------------------------------- +// BOTTOM MAIN MENU BUTTONS +//---------------------------------------------------------------------------------------------- + // BACK button in lower left corner + itemDef + { + name backbutton + group exit + text @MENUS_BACK + descText @MENUS_BACKTOMAIN + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 59 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 59 444 130 24 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/esc.wav" + close all ; + open mainMenu + } + } + + // EXIT button in lower center + itemDef + { + name exitgamebutton_glow + group exit_glow + style WINDOW_STYLE_SHADER + rect 255 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name exitgamebutton + group exit + text @MENUS_EXIT + descText @MENUS_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 255 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 255 444 130 24 + } + mouseExit + { + hide button_glow + } + action + { + close all ; + open quitMenu + } + } + +//---------------------------------------------------------------------------------------------- +// SIDE BUTTONS +//---------------------------------------------------------------------------------------------- + // Configure Controls title + itemDef + { + name control_title + group title + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_CONFIGURE_CONTROLS + rect 100 164 440 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// GLOW ON SIDE BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name sidebutton_glow + group none + style WINDOW_STYLE_SHADER + rect 60 185 200 24 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// MOVEMENT button +//---------------------------------------------------------------------------------------------- + itemDef + { + name movementcontrolbutton + group side_buttons + text @MENUS_MOVEMENT + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 60 185 200 24 + font 3 + textscale 0.9 + textalignx 190 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_MOVEMENT_KEYS + + mouseEnter + { + show sidebutton_glow + setitemrect sidebutton_glow 40 184 220 26 + } + mouseExit + { + hide sidebutton_glow + } + action + { + play sound/interface/sub_select + show setup_background + + show movecontrols + fadein movecontrols + + hide attackcontrols + setitemcolor attackcontrols forecolor .615 .615 .956 0.0 + + hide weaponcontrols + setitemcolor weaponcontrols forecolor .615 .615 .956 0.0 + + hide forcecontrols + setitemcolor forcecontrols forecolor .615 .615 .956 0.0 + + hide quickcontrols + setitemcolor quickcontrols forecolor .615 .615 .956 0.0 + + hide joycontrols + setitemcolor joycontrols forecolor .615 .615 .956 0.0 + + hide othercontrols + setitemcolor othercontrols forecolor .615 .615 .956 0.0 + + setitemcolor side_buttons forecolor 1 .682 0 1 + setitemcolor movementcontrolbutton forecolor 1 1 1 1 + } + } + +//---------------------------------------------------------------------------------------------- +// INTERACTION button +//---------------------------------------------------------------------------------------------- + itemDef + { + name attackcontrolbutton + group side_buttons + text @MENUS_INTERACTION + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 209 170 24 + font 3 + textscale 0.9 + textalignx 170 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_INTERACTION_DESC + + mouseEnter + { + show sidebutton_glow + setitemrect sidebutton_glow 40 208 220 26 + } + mouseExit + { + hide sidebutton_glow + } + action + { + play sound/interface/sub_select + show setup_background + + hide movecontrols + setitemcolor movecontrols forecolor .615 .615 .956 0.0 + + show attackcontrols + fadein attackcontrols + + hide weaponcontrols + setitemcolor weaponcontrols forecolor .615 .615 .956 0.0 + + hide forcecontrols + setitemcolor forcecontrols forecolor .615 .615 .956 0.0 + + hide quickcontrols + setitemcolor quickcontrols forecolor .615 .615 .956 0.0 + + hide joycontrols + setitemcolor joycontrols forecolor .615 .615 .956 0.0 + + hide othercontrols + setitemcolor othercontrols forecolor .615 .615 .956 0.0 + + setitemcolor side_buttons forecolor 1 .682 0 1 + setitemcolor attackcontrolbutton forecolor 1 1 1 1 + } + } + + +//---------------------------------------------------------------------------------------------- +// WEAPONS button +//---------------------------------------------------------------------------------------------- + itemDef + { + name weaponscontrolbutton + group side_buttons + text @MENUS_WEAPONS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 233 170 24 + font 3 + textscale 0.9 + textalignx 170 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_WEAPON_CONTROLS + + mouseEnter + { + show sidebutton_glow + setitemrect sidebutton_glow 40 232 220 26 + } + mouseExit + { + hide sidebutton_glow + } + action + { + play sound/interface/sub_select + show setup_background + + hide movecontrols + setitemcolor movecontrols forecolor .615 .615 .956 0.0 + + hide attackcontrols + setitemcolor attackcontrols forecolor .615 .615 .956 0.0 + + show weaponcontrols + fadein weaponcontrols + + hide forcecontrols + setitemcolor forcecontrols forecolor .615 .615 .956 0.0 + + hide quickcontrols + setitemcolor quickcontrols forecolor .615 .615 .956 0.0 + + hide joycontrols + setitemcolor joycontrols forecolor .615 .615 .956 0.0 + + hide othercontrols + setitemcolor othercontrols forecolor .615 .615 .956 0.0 + + setitemcolor side_buttons forecolor 1 .682 0 1 + setitemcolor weaponscontrolbutton forecolor 1 1 1 1 + } + } + +//---------------------------------------------------------------------------------------------- +// FORCE POWERS button +//---------------------------------------------------------------------------------------------- + itemDef + { + name forcecontrolbutton + group side_buttons + text @MENUS_FORCE_POWERS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 257 170 24 + font 3 + textscale 0.9 + textalignx 170 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_FORCE_POWER + + mouseEnter + { + show sidebutton_glow + setitemrect sidebutton_glow 40 256 220 26 + } + mouseExit + { + hide sidebutton_glow + } + action + { + play sound/interface/sub_select + show setup_background + hide movecontrols + setitemcolor movecontrols forecolor .615 .615 .956 0.0 + + hide attackcontrols + setitemcolor attackcontrols forecolor .615 .615 .956 0.0 + + hide weaponcontrols + setitemcolor weaponcontrols forecolor .615 .615 .956 0.0 + + show forcecontrols + fadein forcecontrols + + hide quickcontrols + setitemcolor quickcontrols forecolor .615 .615 .956 0.0 + + hide joycontrols + setitemcolor joycontrols forecolor .615 .615 .956 0.0 + + hide othercontrols + setitemcolor othercontrols forecolor .615 .615 .956 0.0 + + setitemcolor side_buttons forecolor 1 .682 0 1 + setitemcolor forcecontrolbutton forecolor 1 1 1 1 + } + } + +//---------------------------------------------------------------------------------------------- +// QUICK KEYS button +//---------------------------------------------------------------------------------------------- + itemDef + { + name quickcontrolbutton + group side_buttons + text @MENUS_QUICK_KEYS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 281 170 24 + font 3 + textscale 0.9 + textalignx 170 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_QUICK_KEYS + + mouseEnter + { + show sidebutton_glow + setitemrect sidebutton_glow 40 280 220 26 + } + mouseExit + { + hide sidebutton_glow + } + action + { + play sound/interface/sub_select + show setup_background + + hide movecontrols + setitemcolor movecontrols forecolor .615 .615 .956 0.0 + + hide attackcontrols + setitemcolor attackcontrols forecolor .615 .615 .956 0.0 + + hide weaponcontrols + setitemcolor weaponcontrols forecolor .615 .615 .956 0.0 + + hide forcecontrols + setitemcolor forcecontrols forecolor .615 .615 .956 0.0 + + show quickcontrols + fadein quickcontrols + + hide joycontrols + setitemcolor joycontrols forecolor .615 .615 .956 0.0 + + hide othercontrols + setitemcolor othercontrols forecolor .615 .615 .956 0.0 + + setitemcolor side_buttons forecolor 1 .682 0 1 + setitemcolor quickcontrolbutton forecolor 1 1 1 1 + } + } + +//---------------------------------------------------------------------------------------------- +// MOUSE/JOYSTICK button +//---------------------------------------------------------------------------------------------- + itemDef + { + name mousejoystickcontrolbutton + group side_buttons + text @MENUS_MOUSE_JOYSTICK + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 305 170 24 + font 3 + textscale 0.9 + textalignx 170 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_MOUSE_AND_JOYSTICK + + mouseEnter + { + show sidebutton_glow + setitemrect sidebutton_glow 40 304 220 26 + } + mouseExit + { + hide sidebutton_glow + } + action + { + play sound/interface/sub_select + show setup_background + + hide movecontrols + setitemcolor movecontrols forecolor .615 .615 .956 0.0 + + hide attackcontrols + setitemcolor attackcontrols forecolor .615 .615 .956 0.0 + + hide weaponcontrols + setitemcolor weaponcontrols forecolor .615 .615 .956 0.0 + + hide forcecontrols + setitemcolor forcecontrols forecolor .615 .615 .956 0.0 + + hide quickcontrols + setitemcolor quickcontrols forecolor .615 .615 .956 0.0 + + show joycontrols + fadein joycontrols + + hide othercontrols + setitemcolor othercontrols forecolor .615 .615 .956 0.0 + + setitemcolor side_buttons forecolor 1 .682 0 1 + setitemcolor mousejoystickcontrolbutton forecolor 1 1 1 1 + } + } + +//---------------------------------------------------------------------------------------------- +// OTHER button +//---------------------------------------------------------------------------------------------- + itemDef + { + name othercontrolbutton + group side_buttons + text @MENUS_OTHER + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 329 170 24 + font 3 + textscale 0.9 + textalignx 170 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_ADDITIONAL + + mouseEnter + { + show sidebutton_glow + setitemrect sidebutton_glow 40 328 220 26 + } + mouseExit + { + hide sidebutton_glow + } + action + { + play sound/interface/sub_select + show setup_background + + hide movecontrols + setitemcolor movecontrols forecolor .615 .615 .956 0.0 + + hide attackcontrols + setitemcolor attackcontrols forecolor .615 .615 .956 0.0 + + hide weaponcontrols + setitemcolor weaponcontrols forecolor .615 .615 .956 0.0 + + hide forcecontrols + setitemcolor forcecontrols forecolor .615 .615 .956 0.0 + + hide quickcontrols + setitemcolor quickcontrols forecolor .615 .615 .956 0.0 + + hide joycontrols + setitemcolor joycontrols forecolor .615 .615 .956 0.0 + + show othercontrols + fadein othercontrols + + setitemcolor side_buttons forecolor 1 .682 0 1 + setitemcolor othercontrolbutton forecolor 1 1 1 1 + } + } + + itemDef + { + name setup_background + group none + style WINDOW_STYLE_FILLED + rect 260 185 340 225 + backcolor 0 0 .6 .5 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .6 1 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// MOVEMENT BINDING +//---------------------------------------------------------------------------------------------- + itemDef + { + name movement1 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_WALK_FORWARD + cvar "+forward" + rect 260 188 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_MOVES_PLAYER_FORWARD + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 188 340 20 + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name movement2 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_BACKPEDAL + cvar "+back" + rect 260 202 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_MOVES_PLAYER_BACKWARD + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 202 340 20 + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name movement3 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_TURN_LEFT + cvar "+left" + rect 260 216 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_ROTATES_PLAYER_LEFT + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 216 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name movement4 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_TURN_RIGHT + cvar "+right" + rect 260 230 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 0.0 + visible 0 + descText @MENUS_ROTATES_PLAYER_RIGHT + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 230 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name movement5 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_RUN_WALK + cvar "+speed" + rect 260 244 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 0.0 + visible 0 + descText @MENUS_IF_HELD_TOGGLES_BETWEEN + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 244 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name movement6 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_STEP_LEFT + cvar "+moveleft" + rect 260 258 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 0.0 + visible 0 + descText @MENUS_STEPS_PLAYER_TO_THE_LEFT + + action + { + play sound/interface/button1 + } + mouseenter + { + show button_glow + setitemrect button_glow 260 258 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name movement7 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_STEP_RIGHT + cvar "+moveright" + rect 260 272 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 0.0 + visible 0 + descText @MENUS_STEPS_PLAYER_TO_THE_RIGHT + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 272 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name movement8 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_SIDESTEP_TURN + cvar "+strafe" + rect 260 286 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 0.0 + visible 0 + descText @MENUS_HELD_ALLOWS_PLAYER_TO + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 286 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name movement12 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_UP_JUMP + cvar "+moveup" + rect 260 342 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 0.0 + visible 0 + descText @MENUS_MAKES_PLAYER_JUMP_IF + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 342 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name movement13 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_DOWN_CROUCH + cvar "+movedown" + rect 260 356 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 0.0 + visible 0 + descText @MENUS_MAKES_PLAYER_CROUCH_TO + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 356 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name movement11 + group movecontrols + text @MENUS_HOLD_USE_PLUS_STRAFE + font 4 + textscale 1 + rect 260 384 340 14 + textalign ITEM_ALIGN_CENTER + textalignx 170 + textaligny 0 + forecolor .79 .64 .22 .7 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// +// INTERACTION BINDING +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name attacklook1 + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_ATTACK + cvar "+attack" + rect 260 188 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_ATTACKS_WITH_READIED + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 186 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name attacklook2 + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_ALT_ATTACK + cvar "+altattack" + rect 260 202 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_ATTACKS_WITH_ALTERNATE + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 200 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name attacksaber + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_LIGHTSABER_STYLE + cvar "saberAttackCycle" + rect 260 216 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_CYCLES_BETWEEN_AVAILABLE + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 214 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name attacklook3 + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_USE + cvar "+use" + rect 260 244 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 0.0 + visible 0 + descText @MENUS_ACTIVATES_WORLD_DEVICES + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 242 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name attacklook4 + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_LOOK_UP + cvar "+lookup" + rect 260 300 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_TILTS_VIEW_UPWARDS + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 298 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + + itemDef + { + name attacklook5 + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_LOOK_DOWN + cvar "+lookdown" + rect 260 314 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_TILTS_VIEW_DOWNWARDS + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 312 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name attacklook + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_MOUSE_LOOK + cvar "+mlook" + rect 260 328 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 0.0 + visible 0 + descText @MENUS_IF_HELD_ALLOWS_PLAYER + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 326 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name attacklook + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_CENTERVIEW + cvar "centerview" + rect 260 342 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_RETURNS_VIEW_TO_HORIZONTAL + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 340 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + +//---------------------------------------------------------------------------------------------- +// WEAPON BINDING +//---------------------------------------------------------------------------------------------- + itemDef + { + name weapon1 + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_MELEE_LIGHTSABER + cvar "weapon 1" + rect 260 188 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_READIES_LIGHTSABER + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 186 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name weapon3 + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_PISTOL + cvar "weapon 2" + rect 260 202 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_READIES_THE_BLASTER_PISTOL + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 200 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_RIFLE + cvar "weapon 3" + rect 260 216 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_READIES_THE_E_11_BLASTER + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 214 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_DISRUPTOR_RIFLE + cvar "weapon 4" + rect 260 230 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_READIES_THE_TENLOSS_DXR_6 + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 228 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_BOWCASTER + cvar "weapon 5" + rect 260 244 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_READIES_THE_WOOKIEE_BOWCASTER + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 242 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_HEAVY_REPEATER + cvar "weapon 6" + rect 260 258 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_READIES_THE_IMPERIAL + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 256 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_DEMP_2 + cvar "weapon 7" + rect 260 272 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_READIES_THE_DEMP2_GUN + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 270 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_FLECHETTE + cvar "weapon 8" + rect 260 286 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_READIES_THE_GOLAN_ARMS + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 284 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_CONC_RIFLE_SETUP + cvar "weapon 13" + rect 260 300 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_READIES_THE_CONC_RIFLE + + mouseenter + { + show button_glow + setitemrect button_glow 260 298 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_MERR_SONN + cvar "weapon 9" + rect 260 314 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_READIES_THE_MERR_SONN + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 312 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_THROWABLE_WEAPONS + cvar "weapon 10" + rect 260 328 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_TOGGLES_BETWEEN_DETONATORS + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 326 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_NEXT_WEAPON + cvar "weapnext" + rect 260 342 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_SELECTS_THE_NEXT_WEAPON + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 340 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_PREVIOUS_WEAPON + cvar "weapprev" + rect 260 356 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_SELECTS_THE_PREVIOUS + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 354 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + +//---------------------------------------------------------------------------------------------- +// +// FORCE BINDING +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name force1 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_PUSH + cvar "force_throw" + rect 260 188 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_USES_FORCE_PUSH_ABILITY + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 186 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name force2 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_PULL + cvar "force_pull" + rect 260 202 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_USES_FORCE_PULL_ABILITY + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 200 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name force3 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_SPEED + cvar "force_speed" + rect 260 216 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_USES_FORCE_SPEED_ABILITY + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 214 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name force4 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_SENSE + cvar "force_sight" + rect 260 230 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_USES_FORCE_SENSE_ABILITY + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 228 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name force5 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_ABSORB + cvar "force_absorb" + rect 260 244 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_USES_FORCE_ABSORB_ABILITY + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 242 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name force6 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_HEAL + cvar "force_heal" + rect 260 258 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_USES_FORCE_HEAL_ABILITY + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 256 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name force7 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_MINDTRICK + cvar "force_distract" + rect 260 272 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_USES_JEDI_MIND_TRICK + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 270 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name force8 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_PROTECT + cvar "force_protect" + rect 260 286 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_USES_FORCE_PROTECT_ABILITY + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 284 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name force9 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_DRAIN + cvar "+force_drain" + rect 260 300 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_USES_DRAIN_FORCE_ABILITY + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 298 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name force10 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_GRIP + cvar "+force_grip" + rect 260 314 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_USES_FORCE_GRIP_ABILITY + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 312 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + + itemDef + { + name force11 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_LIGHTNING + cvar "+force_lightning" + rect 260 328 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_USES_FORCE_LIGHTNING + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 326 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name force12 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_DARK_RAGE + cvar "force_rage" + rect 260 342 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_USES_RAGE_FORCE_ABILITY + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 340 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name forcekeys + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_USE_FORCE_POWER + cvar "+useforce" + rect 260 356 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_USES_CURRENTLY_SELECTED + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 354 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name forcekeys + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_NEXT + cvar "forcenext" + rect 260 370 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_SELECTS_NEXT_AVAILABLE + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 368 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name forcekeys + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_PREVIOUS + cvar "forceprev" + rect 260 384 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_SELECTS_PREVIOUS_AVAILABLE + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 382 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + +//---------------------------------------------------------------------------------------------- +// +// QUICK KEY BINDING +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name quickkeys1 + group quickcontrols + type ITEM_TYPE_BIND + text @MENUS_DATAPAD + cvar "datapad" + rect 260 188 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_CHECK_DATAPAD_FOR_MISSION + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 186 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name quickkeys + group quickcontrols + type ITEM_TYPE_BIND + text @MENUS_SAVE_MENU + cvar "uimenu ingamesavemenu" + rect 260 216 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_BRINGS_UP_SAVE_GAME_MENU + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 214 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name quickkeys + group quickcontrols + type ITEM_TYPE_BIND + text @MENUS_LOAD_MENU + cvar "uimenu ingameloadmenu" + rect 260 230 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_BRINGS_UP_LOAD_GAME_MENU + + action + { + play sound/interface/button1 + } + mouseenter + { + show button_glow + setitemrect button_glow 260 228 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name quickkeys + group quickcontrols + type ITEM_TYPE_BIND + text @MENUS_INSTANT_SAVE + cvar "save quick" + rect 260 244 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_AUTOMATICALLY_SAVES_GAME + + action + { + play sound/interface/button1 + } + mouseenter + { + show button_glow + setitemrect button_glow 260 242 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name quickkeys + group quickcontrols + type ITEM_TYPE_BIND + text @MENUS_INSTANT_LOAD + cvar "load quick" + rect 260 258 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_AUTOMATICALLY_LOADS_GAME + + action + { + play sound/interface/button1 + } + mouseenter + { + show button_glow + setitemrect button_glow 260 256 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + + //---------------------------------------------------------------------------------------------- + // + // MOUSE/JOYSTICK KEY BINDING + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_YESNO + text @MENUS_INVERT_MOUSE + cvar "ui_mousePitch" + rect 260 202 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_TOGGLE_TO_TILT_VIEW_IN + + action { + uiScript update ui_mousePitch + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 200 340 20 + } + + mouseexit + { + hide button_glow + } + } + + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_YESNO + text @MENUS_SMOOTH_MOUSE + cvar "m_filter" + rect 260 216 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_WHEN_TURNED_ON_MOUSE + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 214 340 20 + } + + mouseexit + { + hide button_glow + } + } + + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_SLIDER + text @MENUS_SENSITIVITY + cvarfloat "sensitivity" 5 2 30 + rect 260 230 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_ADJUSTS_CHARACTER_REACTION + + action + { + play sound/interface/button1 + } + mouseenter + { + show button_glow + setitemrect button_glow 260 228 340 20 + } + mouseexit + { + hide button_glow + } + } + + + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_YESNO + text @MENUS_ENABLE_JOYSTICK + cvar "in_joystick" + rect 260 258 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_TURNED_ON_GAME_SEARCHES + action + { + play sound/interface/button1 + exec in_restart + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 256 340 20 + } + + mouseexit + { + hide button_glow + } + } + + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_YESNO + text @MENUS_X_AXIS_AS_BUTTONS + cvar "joy_xbutton" + rect 260 272 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_WHEN_OFF_HORIZONTAL + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 270 340 20 + } + + mouseexit + { + hide button_glow + } + } + + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_YESNO + text @MENUS_Y_AXIS_AS_BUTTONS + cvar "joy_ybutton" + rect 260 286 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_WHEN_OFF_VERTICAL_STICK + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 284 340 20 + } + + mouseexit + { + hide button_glow + } + } + + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_SLIDER + text @MENUS_JOYSTICK_THRESHOLD + cvarfloat "joy_threshold" .15 .05 .75 + rect 260 300 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_ADJUSTS_THE_SIZE_OF_THE + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 298 340 20 + } + mouseexit + { + hide button_glow + } + } + +// +// Not shown +// + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_YESNO + text @MENUS_FORCE_FEEDBACK + cvar "use_ff" + rect 260 328 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_WHEN_TURNED_ON_GAME + action + { + play sound/interface/button1 + uiScript update ff + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 326 340 20 + show ffwarning + } + + mouseexit + { + hide button_glow + hide ffwarning + } + } + + itemDef + { + name ffwarning + type ITEM_TYPE_TEXT + text @MENUS_APPLY_FORCE_FEEDBACK + text2 @MENUS_AND_RETURN_TO_THE_MAIN + rect 260 360 340 14 + textalign ITEM_ALIGN_CENTER + textalignx 170 + text2aligny 18 + font 4 + textscale 1 + // foreColor 1 .682 0 .8 + forecolor 1 0 0 1 + decoration + visible 0 + } + + + //---------------------------------------------------------------------------------------------- + // + // OTHER + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name other1 + group othercontrols + type ITEM_TYPE_YESNO + text @MENUS_ALWAYS_RUN + cvar "cl_run" + rect 260 188 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_WHEN_ON_PLAYER_ALWAYS + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 186 340 20 + } + + mouseexit + { + hide button_glow + } + } + + itemDef + { + name other2 + group othercontrols + type ITEM_TYPE_MULTI + text @MENUS_AUTO_SWITCH + cvar "cg_autoswitch" + cvarFloatList + { + @MENUS_DON_T_SWITCH 0 + @MENUS_BEST_SAFE_WEAPON 1 + @MENUS_ALWAYS_BEST_WEAPON 2 + } + rect 260 202 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_CHOOSE_WHETHER_TO_SWITCH + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 200 340 20 + } + + mouseexit + { + hide button_glow + } + + } + + itemDef + { + name other3 + group othercontrols + type ITEM_TYPE_BIND + text @MENUS_3RD_PERSON + cvar "cg_thirdperson !" + rect 260 230 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_CHANGES_VIEW_BETWEEN + action + { + play sound/interface/button1 + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 228 340 20 + show keybindstatus + } + mouseexit + { + hide button_glow + hide keybindstatus + } + } + + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + //---------------------------------------------------------------------------------------------- + // + // Text + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name keyBindStatus + group none + ownerdraw 250 // UI_KEYBINDSTATUS + text @MENUS_BLANK_1 + rect 375 425 0 0 + textStyle 0 + font 4 + textscale 1 + textalign ITEM_ALIGN_CENTER + forecolor 1 1 0 1 + visible 0 + decoration + } + + itemDef + { + name slider_message + group none + text @MENUS_MOVE_THE_SLIDER_TO_INCREASE + rect 375 425 0 0 + textStyle 0 + font 4 + textscale 1 + textalign ITEM_ALIGN_CENTER + visible 0 + decoration + } + + itemDef + { + name yesno_message + group none + text @MENUS_CLICK_ON_FIELD_TO_TOGGLE + rect 375 425 0 0 + textStyle 0 + font 4 + textscale 1 + textalign ITEM_ALIGN_CENTER + visible 0 + decoration + } + + itemDef + { + name multi_message + group none + text @MENUS_CLICK_ON_FIELD_TO_CHANGE + rect 375 425 0 0 + textStyle 0 + font 4 + textscale 1 + textalign ITEM_ALIGN_CENTER + visible 0 + decoration + } + + } +} diff --git a/base/ui/credits.menu b/base/ui/credits.menu new file mode 100644 index 0000000..6b27c2f --- /dev/null +++ b/base/ui/credits.menu @@ -0,0 +1,441 @@ +// CREDITS MENU +{ + menuDef + { + name "creditsMenu" + 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 75 // In miliseconds + descX 320 + descY 434 + descScale 1 + descColor .235 .882 .847 1 // Focus color for text and items + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + exec "music music/cairn_bay/impbasee_action" ; + setfocus newgamebutton ; + } + + onClose + { + exec "music music/cairn_bay/impbasee_explore" ; + } + + onESC + { + play "sound/interface/button1.wav" ; + 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 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 + // appearance_slot 1 + decoration + } + + itemDef + { + name newgamebutton + group toprow + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 115 115 130 24 + text @MENUS_NEW + descText @MENUS_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.wav" ; + 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 + // appearance_slot 1 + decoration + } + + itemDef + { + name loadgamebutton + group toprow + text @MENUS_LOAD + descText @MENUS_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.wav" ; + 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 + // appearance_slot 1 + decoration + } + + itemDef { + name controlsbutton + group toprow + text @MENUS_CONTROLS2 + descText @MENUS_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.64 0.65 1 1 + visible 1 + + mouseEnter + { + show controlsbutton_glow + } + mouseExit + { + hide controlsbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open controlsMenu ; + } + } + + // 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 + // appearance_slot 1 + decoration + } + + itemDef { + name setupbutton + group toprow + text @MENUS_SETUP + descText @MENUS_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.wav" ; + 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 + // + //---------------------------------------------------------------------------------------------- + // 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 + // appearance_slot 1 + decoration + } + + itemDef + { + name exitgamebutton + group othermain + text @MENUS_EXIT + descText @MENUS_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 + } + } + + //---------------------------------------------------------------------------------------------- + // + // CREDITS FIELDS + // + //---------------------------------------------------------------------------------------------- + // Credits title + itemDef + { + name credits_title + group none + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_CREDITS + rect 150 145 450 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -1 + forecolor 1 1 1 1 + visible 1 + // appearance_slot 2 + decoration + } + + + itemDef + { + name confirm + group none + text @MENUS_TO_BE_DETERMINED + font 2 + textscale 1 + textstyle 3 + rect 320 220 110 20 + textalign ITEM_ALIGN_CENTER + textalignx 0 + textaligny 0 + decoration + forecolor .433 .703 .722 1 + visible 1 + // appearance_slot 2 + } + + } +} + + + + + + + + + + + diff --git a/base/ui/datapadforcepowers.menu b/base/ui/datapadforcepowers.menu new file mode 100644 index 0000000..e6cdc30 --- /dev/null +++ b/base/ui/datapadforcepowers.menu @@ -0,0 +1,368 @@ +// Data Pad : Force Powers Screen +// +// defines from ui_shared.h +{ + + menuDef + { + name "datapadForcePowersMenu" + 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 320 + descY 444 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onESC + { + play "sound/interface/esc.wav" + uiScript closedatapad // Close menu + } + + onOpen + { + uiScript nextDataPadForcePower + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name background + group none + rect 0 0 640 480 + style WINDOW_STYLE_SHADER + background "gfx/menus/datapad" + forecolor 1 1 1 1 + visible 1 + decoration + } + + +//---------------------------------------------------------------------------------------------- +// MISSION TEXT +//---------------------------------------------------------------------------------------------- + itemDef + { + name forcepowers + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_OWNERDRAW + rect 50 40 95 40 + textscale .4 + forecolor .509 .609 .847 1 + visible 1 + ownerdraw 206 // UI_DATAPAD_FORCEPOWERS + } + + itemDef + { + name screen_title + type ITEM_TYPE_TEXT + rect 170 3 300 26 + text @MENUS_DATAPADTITLE + font 3 + forecolor .549 .854 1 1 + textscale 1.2 + textalign ITEM_ALIGN_CENTER + textalignx 150 + visible 1 + decoration + } + + itemDef + { + name prevpower_on + group none + style WINDOW_STYLE_SHADER + rect 245 382 32 26 + background "gfx/menus/dp_arrow_lon" // Frame + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name prevpower_off + group none + style WINDOW_STYLE_SHADER + rect 245 382 32 26 + background "gfx/menus/dp_arrow_l" // Frame + forecolor 1 1 1 1 + decoration + visible 1 + } + + itemDef + { + name prevpower + group none + descText @MENUS_DP_FORCE_PREV + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 245 382 32 26 + font 2 + textscale 1 + textalignx 48 + textalign ITEM_ALIGN_CENTER + visible 1 + + action + { + play "sound/interface/button1.wav" ; + uiScript prevDataPadForcePower + } + mouseEnter + { + hide prevpower_off + show prevpower_on + } + mouseExit + { + show prevpower_off + hide prevpower_on + } + } + + itemDef + { + name nextpower_on + group none + style WINDOW_STYLE_SHADER + rect 364 382 32 26 + background "gfx/menus/dp_arrow_ron" // Frame + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name nextpower_off + group none + style WINDOW_STYLE_SHADER + rect 364 382 32 26 + background "gfx/menus/dp_arrow_r" // Frame + forecolor 1 1 1 1 + decoration + visible 1 + } + + itemDef + { + name nextpower + group none + style WINDOW_STYLE_EMPTY + descText @MENUS_DP_FORCE_NEXT + type ITEM_TYPE_BUTTON + rect 364 382 32 26 + background "gfx/menus/dp_arrow_r" // Frame + font 2 + textscale 1 + textalignx 48 + textalign ITEM_ALIGN_CENTER + forecolor .509 .609 .847 1 + visible 1 + + action + { + play "sound/interface/button1.wav" ; + uiScript nextDataPadForcePower + } + mouseEnter + { + hide nextpower_off + show nextpower_on + } + mouseExit + { + show nextpower_off + hide nextpower_on + } + } + +//---------------------------------------------------------------------------------------------- +// LOWER BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name mission + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 20 420 120 25 + text @MENUS_DP_MISSION + descText @MENUS_AN_OVERVIEW_OF_MISSION + font 2 + textscale 1 + textalignx 60 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + visible 1 + mouseEnter + { + show button_glow + setitemrect button_glow 10 419 150 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open datapadMissionMenu + } + + } + + itemDef + { + name weapons + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 140 420 120 25 + text @MENUS_WEAPONS + descText @MENUS_VIEW_CURRENTLY_OWNED + font 2 + textscale 1 + textalignx 60 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + visible 1 + mouseEnter + { + show button_glow + setitemrect button_glow 130 419 150 30 + } + mouseExit + { + hide button_glow + } + + action + { + play "sound/interface/button1.wav" ; + close all ; + open datapadWeaponsMenu + } + } + + itemDef + { + name force + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 260 420 120 25 + text @MENUS_DP_FORCE + descText @MENUS_VIEW_CURRENT_FORCE_POWERS + font 2 + textscale 1 + textalignx 60 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + forecolor 1 1 1 1 + visible 1 + decoration + + } + + itemDef + { + name moves + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 380 420 120 25 + text @MENUS_MOVES + descText @MENUS_MOVES_DESC + font 2 + textscale 1 + textalignx 60 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 370 419 150 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open datapadMovesMenu + } + } + + itemDef + { + name exit + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 500 420 120 25 + text @MENUS_RESUME + descText @MENUS_RETURN_TO_GAME + font 2 + textscale 1 + textalignx 60 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 490 419 150 30 + } + mouseExit + { + hide button_glow + } + + action + { + play "sound/interface/button1.wav" ; + uiScript closedatapad // Close menu + } + } + + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name scan + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 640 + background "gfx/menus/scanlines" + forecolor 1 1 1 1 + visible 1 + decoration + } + } +} diff --git a/base/ui/datapadinventory.menu b/base/ui/datapadinventory.menu new file mode 100644 index 0000000..cd6989f --- /dev/null +++ b/base/ui/datapadinventory.menu @@ -0,0 +1,307 @@ +// Data Pad : Inventory Screen +// +// defines from ui_shared.h +{ + menuDef + { + name "datapadInventoryMenu" + 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 75 // In miliseconds + descX 320 + descY 441 + descScale 1 + descColor .96 .933 .40 1 // Focus color for text and items + descAlignment ITEM_ALIGN_CENTER + + onESC + { + uiScript closedatapad // Close menu + } + + onOpen + { + uiScript nextDataPadInventory + } + + //---------------------------------------------------------------------------------------------- + // + // MENU BACKGROUND + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name frame_pic + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "*white" + forecolor 0 0 0 1 + visible 1 + decoration + } + + //---------------------------------------------------------------------------------------------- + // + // MISSION TEXT + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name mission2 + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_OWNERDRAW + rect 50 40 95 40 + textscale .4 + forecolor .509 .609 .847 1 + visible 1 + ownerdraw 205 // UI_DATAPAD_INVENTORY + } + + itemDef + { + name screen_title + type ITEM_TYPE_TEXT + rect 170 8 300 26 + text @MENUS_DATAPADTITLE + font 3 + forecolor .509 .609 .847 1 + textscale 1.25 + textalign ITEM_ALIGN_CENTER + textalignx 150 + visible 1 + decoration + } + + //---------------------------------------------------------------------------------------------- + // + // LOWER MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name mission + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 22 417 100 25 + text @MENUS_DP_MISSION + descText @MENUS_AN_OVERVIEW_OF_MISSION + font 2 + textscale 1 + textalignx 50 + textalign ITEM_ALIGN_CENTER + forecolor .79 .64 .22 1 + visible 1 + + action + { + play "sound/interface/button1.wav" ; + close all ; + open datapadMissionMenu + } + } + + + itemDef + { + name weapons + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 142 417 100 25 + text @MENUS_WEAPONS + descText @MENUS_VIEW_CURRENTLY_OWNED + font 2 + textscale 1 + textalignx 50 + textalign ITEM_ALIGN_CENTER + forecolor .79 .64 .22 1 + visible 1 + + action + { + play "sound/interface/button1.wav" ; + close all ; + open datapadWeaponsMenu + } + } + + itemDef + { + name force + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 262 417 100 25 + text @MENUS_DP_FORCE + descText @MENUS_VIEW_CURRENT_FORCE_POWERS + font 2 + textscale 1 + textalignx 50 + textalign ITEM_ALIGN_CENTER + forecolor .79 .64 .22 1 + visible 1 + + action + { + play "sound/interface/button1.wav" ; + close all ; + open datapadForcePowersMenu + } + } + + itemDef + { + name inventory + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 382 417 100 0 + text @MENUS_INVENTORY + descText @MENUS_VIEW_CURRENT_INVENTORY + font 2 + textscale 1 + textalignx 50 + textalign ITEM_ALIGN_CENTER + forecolor .79 .64 .22 1 + visible 1 + } + + itemDef + { + name exit + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 502 417 95 25 + text @MENUS_RESUME + descText @MENUS_RETURN_TO_GAME + font 2 + textscale 1 + textalignx 50 + textalign ITEM_ALIGN_CENTER + forecolor .79 .64 .22 1 + visible 1 + + action + { + play "sound/interface/button1.wav" ; + uiScript closedatapad // Close menu + } + } + + itemDef + { + name previnv_on + group none + style WINDOW_STYLE_SHADER + rect 245 382 32 26 + background "gfx/menus/dp_arrow_lon" // Frame + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name previnv_off + group none + style WINDOW_STYLE_SHADER + rect 245 382 32 26 + background "gfx/menus/dp_arrow_l" // Frame + forecolor 1 1 1 1 + decoration + visible 1 + } + + itemDef + { + name previnv + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 245 382 32 26 + font 2 + textscale 1 + textalignx 48 + textalign ITEM_ALIGN_CENTER + forecolor .509 .609 .847 1 + visible 1 + + action + { + play "sound/interface/button1.wav" ; + uiScript prevDataPadInventory + } + mouseEnter + { + hide previnv_off + show previnv_on + } + mouseExit + { + show previnv_off + hide previnv_on + } + } + + itemDef + { + name nextinv_on + group none + style WINDOW_STYLE_SHADER + rect 364 382 32 26 + background "gfx/menus/dp_arrow_ron" // Frame + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name nextinv_off + group none + style WINDOW_STYLE_SHADER + rect 364 382 32 26 + background "gfx/menus/dp_arrow_r" // Frame + forecolor 1 1 1 1 + decoration + visible 1 + } + + itemDef + { + name nextinv + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 364 382 32 26 + font 2 + textscale 1 + textalignx 48 + textalign ITEM_ALIGN_CENTER + forecolor .509 .609 .847 1 + visible 1 + + action + { + play "sound/interface/button1.wav" ; + uiScript nextDataPadInventory + } + mouseEnter + { + hide nextinv_off + show nextinv_on + } + mouseExit + { + show nextinv_off + hide nextinv_on + } + } + } +} \ No newline at end of file diff --git a/base/ui/datapadmission.menu b/base/ui/datapadmission.menu new file mode 100644 index 0000000..858b883 --- /dev/null +++ b/base/ui/datapadmission.menu @@ -0,0 +1,258 @@ +//---------------------------------------------------------------------------------------------- +// Data Pad : Mission Objectives Screen +// +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "datapadMissionMenu" + 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 320 + descY 444 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + onESC + { + play "sound/interface/esc.wav" + uiScript closedatapad // Close menu + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name background + group none + rect 0 0 640 480 + style WINDOW_STYLE_SHADER + background "gfx/menus/datapad" + forecolor 1 1 1 1 + visible 1 + decoration + } + + +//---------------------------------------------------------------------------------------------- +// MISSION TEXT +//---------------------------------------------------------------------------------------------- + itemDef + { + name mission2 + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_OWNERDRAW + rect 50 40 0 0 //This is set in the code + textscale .4 + forecolor .509 .609 .847 1 + visible 1 + ownerdraw 203 // UI_DATAPAD_MISSION + } + + itemDef + { + name screen_title + type ITEM_TYPE_TEXT + rect 170 3 300 26 + text @MENUS_DATAPADTITLE + font 3 + forecolor .549 .854 1 1 + textscale 1.2 + textalign ITEM_ALIGN_CENTER + textalignx 150 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// LOWER BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name mission + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 20 420 120 25 + text @MENUS_DP_MISSION + descText @MENUS_AN_OVERVIEW_OF_MISSION + font 2 + textscale 1 + textalignx 60 + textalign ITEM_ALIGN_CENTER + forecolor 1 1 1 1 + visible 1 + decoration + + } + + itemDef + { + name weapons + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 140 420 120 25 + text @MENUS_WEAPONS + descText @MENUS_VIEW_CURRENTLY_OWNED + font 2 + textscale 1 + textalignx 60 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + visible 1 + mouseEnter + { + show button_glow + setitemrect button_glow 130 419 150 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open datapadWeaponsMenu + } + } + + itemDef + { + name force + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 260 420 120 25 + text @MENUS_DP_FORCE + descText @MENUS_VIEW_CURRENT_FORCE_POWERS + font 2 + textscale 1 + textalignx 60 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 250 419 150 30 + } + mouseExit + { + hide button_glow + } + + action + { + play "sound/interface/button1.wav" ; + close all ; + open datapadForcePowersMenu + } + } + + itemDef + { + name moves + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 380 420 120 25 + text @MENUS_MOVES + descText @MENUS_MOVES_DESC + font 2 + textscale 1 + textalignx 60 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 370 419 150 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open datapadMovesMenu + } + } + + itemDef + { + name exit + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 500 420 120 25 + text @MENUS_RESUME + descText @MENUS_RETURN_TO_GAME + font 2 + textscale 1 + textalignx 60 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 490 419 150 30 + } + mouseExit + { + hide button_glow + } + + action + { + play "sound/interface/button1.wav" ; + uiScript closedatapad // Close menu + } + } + + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name scan + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 640 + background "gfx/menus/scanlines" + forecolor 1 1 1 1 + visible 1 + decoration + } + } +} + + + + + + + + + diff --git a/base/ui/datapadmoves.menu b/base/ui/datapadmoves.menu new file mode 100644 index 0000000..294e080 --- /dev/null +++ b/base/ui/datapadmoves.menu @@ -0,0 +1,458 @@ +// Data Pad : Force Powers Screen +// +// defines from ui_shared.h +{ + + menuDef + { + name "datapadMovesMenu" + 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 320 + descY 444 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onESC + { + play "sound/interface/esc.wav" + uiScript closedatapad // Close menu + } + + onOpen + { + setcvar "ui_movesflag" 0 + setcvar "ui_move_title" 0 + uiScript setMoveCharacter + setcvar "ui_move_title" 2 + uiScript resetMovesDesc + uiScript setMovesListDefault + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name background + group none + rect 0 0 640 480 + style WINDOW_STYLE_SHADER + background "gfx/menus/datapad2" + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// MISSION TEXT +//---------------------------------------------------------------------------------------------- + itemDef + { + name screen_title + type ITEM_TYPE_TEXT + rect 170 3 300 26 + text @MENUS_DATAPADTITLE + font 3 + forecolor .549 .854 1 1 + textscale 1.2 + textalign ITEM_ALIGN_CENTER + textalignx 150 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// DATA +//---------------------------------------------------------------------------------------------- + itemDef + { + name move_titles_box + group none + style WINDOW_STYLE_FILLED + rect 25 47 255 23 + backcolor 0 0 .6 1 + visible 1 + decoration + } + itemDef + { + name move_titles_outline + group none + style WINDOW_STYLE_EMPTY + rect 24 68 255 30 + border 1 + bordersize 1 + bordercolor 0 0 .6 1 + visible 1 + decoration + } + + itemDef + { + name move_titles_title + type ITEM_TYPE_TEXT + rect 25 47 255 23 + text @MENUS_MOVE_TYPES + font 3 + forecolor .549 .854 1 1 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 125 + visible 1 + decoration + } + + itemDef + { + name move_titles + group none + text " " + descText @MENUS_CHOOSE_MOVE_DESC + type ITEM_TYPE_MULTI + style WINDOW_STYLE_EMPTY + rect 25 77 340 14 + font 2 + textscale .8 + textaligny -5 + textalign ITEM_ALIGN_LEFT + textstyle .8 + textalignx 0 + backcolor 0 0 0 0 + forecolor .615 .615 .956 1 + feeder 22 //FEEDER_MOVES_TITLES + cvar "ui_move_title" + cvarFloatList + { + "@MENUS_ACROBATICS" 0 + "@MENUS_SINGLE_FAST" 1 + "@MENUS_SINGLE_MEDIUM" 2 + "@MENUS_SINGLE_STRONG" 3 + "@MENUS_DUAL_SABERS" 4 + "@MENUS_SABER_STAFF" 5 + } + + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 0 73 320 24 + } + mouseExit + { + hide button_glow + } + action + { + uiScript resetMovesList + uiScript resetMovesDesc + play "sound/interface/button1.wav" + } + } + + itemDef + { + name moveslist_title_box + group none + style WINDOW_STYLE_FILLED + rect 26 110 253 23 + backcolor 0 0 .6 1 + visible 1 + decoration + } + + itemDef + { + name moveslist_title + type ITEM_TYPE_TEXT + rect 35 108 253 26 + text @MENUS_MOVES + font 3 + forecolor .549 .854 1 1 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 125 + visible 1 + decoration + } + + itemDef + { + name moveslist + group none + rect 25 130 253 250 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 120 + elementheight 16 + font 4 + textaligny 8 + textscale 1 + border 1 + bordersize 1 + bordercolor 0 0 .8 1 + forecolor .615 .615 .956 1 + backcolor 0 0 .5 .25 + outlinecolor .5 .5 .5 .5 + elementtype LISTBOX_TEXT + feeder 21 + desctext @MENUS_MOVE_DESC2 + notselectable + visible 1 + columns 1 2 55 225 + mouseEnter + { + setitemcolor moveslist bordercolor 1 1 1 1 + } + mouseExit + { + setitemcolor moveslist bordercolor 0 0 .8 1 + } + action + { + uiScript resetMovesDesc + } + + doubleclick + { + play sound/interface/button1.wav + uiScript resetMovesDesc + } + } + + itemDef + { + name character_box + group none + style WINDOW_STYLE_EMPTY + rect 285 38 330 360 + border 1 + bordersize 2 + bordercolor 0 0 .6 1 + visible 1 + decoration + } + + itemDef + { + name character + group models + type ITEM_TYPE_MODEL + rect 295 -30 300 340 + + model_g2anim "BOTH_ROLL_F" + isSaber 1 + isCharacter 1 + asset_model "ui_char_model" + model_angle 180 + model_g2mins -20 -15 -10 + model_g2maxs 20 15 45 + model_rotation 50 + model_fovx 50 + model_fovy 50 + visible 1 + decoration + + } + + itemDef + { + name item_desc + type ITEM_TYPE_TEXTSCROLL + rect 295 300 320 90 + text " " + cvar ui_move_desc + font 4 + forecolor .549 .854 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 6 + visible 1 + lineHeight 13 + + } + +//---------------------------------------------------------------------------------------------- +// LOWER BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name mission + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 20 420 120 25 + text @MENUS_DP_MISSION + descText @MENUS_AN_OVERVIEW_OF_MISSION + font 2 + textscale 1 + textalignx 60 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 10 419 150 30 + } + mouseExit + { + hide button_glow + } + + action + { + play "sound/interface/button1.wav" ; + close all ; + open datapadMissionMenu + } + } + + itemDef + { + name weapons + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 140 420 120 25 + text @MENUS_WEAPONS + descText @MENUS_VIEW_CURRENTLY_OWNED + font 2 + textscale 1 + textalignx 60 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + visible 1 + mouseEnter + { + show button_glow + setitemrect button_glow 130 419 150 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open datapadWeaponsMenu + } + } + + itemDef + { + name force + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 260 420 120 25 + text @MENUS_DP_FORCE + descText @MENUS_VIEW_CURRENT_FORCE_POWERS + font 2 + textscale 1 + textalignx 60 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 250 419 150 30 + } + mouseExit + { + hide button_glow + } + + action + { + play "sound/interface/button1.wav" ; + close all ; + open datapadForcePowersMenu + } + } + + itemDef + { + name moves + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 380 420 120 25 + text @MENUS_MOVES + descText @MENUS_MOVES_DESC + font 2 + textscale 1 + textalignx 60 + textalign ITEM_ALIGN_CENTER + forecolor 1 1 1 1 + visible 1 + decoration + + } + + itemDef + { + name exit + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 500 420 120 25 + text @MENUS_RESUME + descText @MENUS_RETURN_TO_GAME + font 2 + textscale 1 + textalignx 60 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 490 419 150 30 + } + mouseExit + { + hide button_glow + } + + action + { + play "sound/interface/button1.wav" ; + uiScript closedatapad // Close menu + } + } + + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name scan + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 640 + background "gfx/menus/scanlines" + forecolor 1 1 1 1 + visible 1 + decoration + } + } +} diff --git a/base/ui/datapadweapons.menu b/base/ui/datapadweapons.menu new file mode 100644 index 0000000..7011849 --- /dev/null +++ b/base/ui/datapadweapons.menu @@ -0,0 +1,411 @@ +//---------------------------------------------------------------------------------------------- +// Data Pad : Weapons Screen +// +//---------------------------------------------------------------------------------------------- +{ + + menuDef + { + name "datapadWeaponsMenu" + 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 320 + descY 444 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onESC + { + play "sound/interface/esc.wav" + uiScript closedatapad // Close menu + } + + onOpen + { + uiScript nextDataPadWeapon + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name background + group none + rect 0 0 640 480 + style WINDOW_STYLE_SHADER + background "gfx/menus/datapad" + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// MISSION TEXT +//---------------------------------------------------------------------------------------------- + itemDef + { + name weapons + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_OWNERDRAW + rect 50 150 95 40 + textscale .8 + forecolor .509 .609 .847 1 + visible 1 + ownerdraw 204 // UI_DATAPAD_WEAPONS + } + + itemDef + { + name screen_title + type ITEM_TYPE_TEXT + rect 170 3 300 26 + text @MENUS_DATAPADTITLE + font 3 + forecolor .549 .854 1 1 + textscale 1.2 + textalign ITEM_ALIGN_CENTER + textalignx 150 + visible 1 + decoration + } + + itemDef + { + name weapon1 + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + forecolor 1 1 1 1 + visible 0 + decoration + } + + // Weapon Line 1 + itemDef + { + name weapon1_line1 + group none + text @MENUS_THIS_IS_LINE_1 + font 2 + textscale 1 + textstyle 3 + rect 320 220 110 20 + textalign ITEM_ALIGN_LEFT + textalignx 30 + textaligny 100 + decoration + forecolor .433 .703 .722 1 + visible 0 + } + + + itemDef + { + name prevweapon_on + group none + style WINDOW_STYLE_SHADER + rect 245 382 32 26 + background "gfx/menus/dp_arrow_lon" // Frame + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name prevweapon_off + group none + style WINDOW_STYLE_SHADER + rect 245 382 32 26 + background "gfx/menus/dp_arrow_l" // Frame + forecolor 1 1 1 1 + decoration + visible 1 + } + + itemDef + { + name prevweapon + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + desctext @MENUS_DP_WEAPON_PREV + rect 245 382 32 26 + font 2 + textscale 1 + textalignx 48 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + visible 1 + + action + { + play "sound/interface/button1.wav" ; + uiScript prevDataPadWeapon + } + + mouseEnter + { + hide prevweapon_off + show prevweapon_on + } + + mouseExit + { + show prevweapon_off + hide prevweapon_on + } + } + + itemDef + { + name nextweapon_on + group none + style WINDOW_STYLE_SHADER + rect 364 382 32 26 + background "gfx/menus/dp_arrow_ron" // Frame + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name nextweapon_off + group none + style WINDOW_STYLE_SHADER + rect 364 382 32 26 + background "gfx/menus/dp_arrow_r" // Frame + forecolor 1 1 1 1 + decoration + visible 1 + } + + itemDef + { + name nextweapon + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 364 382 32 26 + font 2 + desctext @MENUS_DP_WEAPON_NEXT + textscale 1 + textalignx 48 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + visible 1 + + action + { + play "sound/interface/button1.wav" ; + uiScript nextDataPadWeapon + } + + mouseEnter + { + hide nextweapon_off + show nextweapon_on + } + + mouseExit + { + show nextweapon_off + hide nextweapon_on + } + } + +//---------------------------------------------------------------------------------------------- +// LOWER BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name mission + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 20 420 120 25 + text @MENUS_DP_MISSION + descText @MENUS_AN_OVERVIEW_OF_MISSION + font 2 + textscale 1 + textalignx 60 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + visible 1 + mouseEnter + { + show button_glow + setitemrect button_glow 10 419 150 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open datapadMissionMenu + } + + } + + itemDef + { + name weapons + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 140 420 120 25 + text @MENUS_WEAPONS + descText @MENUS_VIEW_CURRENTLY_OWNED + font 2 + textscale 1 + textalignx 60 + textalign ITEM_ALIGN_CENTER + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name force + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 260 420 120 25 + text @MENUS_DP_FORCE + descText @MENUS_VIEW_CURRENT_FORCE_POWERS + font 2 + textscale 1 + textalignx 60 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 250 419 150 30 + } + mouseExit + { + hide button_glow + } + + action + { + play "sound/interface/button1.wav" ; + close all ; + open datapadForcePowersMenu + } + } + + itemDef + { + name moves + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 380 420 120 25 + text @MENUS_MOVES + descText @MENUS_MOVES_DESC + font 2 + textscale 1 + textalignx 60 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 370 419 150 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open datapadMovesMenu + } + } + + itemDef + { + name exit + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 500 420 120 25 + text @MENUS_RESUME + descText @MENUS_RETURN_TO_GAME + font 2 + textscale 1 + textalignx 60 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 490 419 150 30 + } + mouseExit + { + hide button_glow + } + + action + { + play "sound/interface/button1.wav" ; + uiScript closedatapad // Close menu + } + } + + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name scan + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 640 + background "gfx/menus/scanlines" + forecolor 1 1 1 1 + visible 1 + decoration + } + } +} + + + + + + + + + + diff --git a/base/ui/demo_ForceSelect.menu b/base/ui/demo_ForceSelect.menu new file mode 100644 index 0000000..e45f03e --- /dev/null +++ b/base/ui/demo_ForceSelect.menu @@ -0,0 +1,2490 @@ +//---------------------------------------------------------------------------------------------- +// +// Force Select Menu +// +// The player is allowed to allocate one point to any of the given force powers +// +// +// Be sure not to change the names of the fields that end with +// _hexpic +// _fbutton +// _level1desc +// _level2desc +// _level3desc +// +// Also don't change +// allocate_text +// allocated_text +// +// +// The uiScript initallocforcepower sets the rank background for a force power +// +// The uiScript showforceleveldesc show the appropriate level description for that force power. +// +// The uiScript affectforcepowerlevel upgrades a force power rank. It +// also greys out or ungreys the icons. +// +//---------------------------------------------------------------------------------------------- +{ + + menuDef + { + name "demo_ForceSelect" + fullScreen 1 + rect 0 0 640 480 + visible 1 + focusColor 1 1 1 1 + descX 320 + descY 424 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + descTextStyle 2 + fadeClamp 1.0 // sets the fadeup alpha + fadeCycle 25 // how often fade happens in milliseconds + fadeAmount 0.05 // amount to adjust alpha per cycle + onOpen + { + stopVoice + + uiScript "demosetforcelevels" + + // Update force power pics to current force power levels + + + // Light powers + uiScript "initallocforcepower" "absorb" + uiScript "initallocforcepower" "heal" + uiScript "initallocforcepower" "mindtrick" + uiScript "initallocforcepower" "protect" + + // Core powers + uiScript "initallocforcepower" "jump" + uiScript "initallocforcepower" "pull" + uiScript "initallocforcepower" "push" + uiScript "initallocforcepower" "sense" + uiScript "initallocforcepower" "speed" + uiScript "initallocforcepower" "sabdef" + uiScript "initallocforcepower" "saboff" + uiScript "initallocforcepower" "sabthrow" + + // Dark powers + uiScript "initallocforcepower" "drain" + uiScript "initallocforcepower" "grip" + uiScript "initallocforcepower" "lightning" + uiScript "initallocforcepower" "rage" + + } + + onClose + { + uiScript recordforcelevels + } + + + onESC + { + play "sound/interface/menuroam.wav" + } + + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/forcemenu_back" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// TEXT - Allocate Force power point +//---------------------------------------------------------------------------------------------- + // Allocate force point + itemDef + { + name allocate_text + type ITEM_TYPE_TEXT + rect 0 5 640 18 + text @MENUS_ALLOCATE_FP + font 2 + forecolor 1 1 1 1 + textscale .80 + textalign ITEM_ALIGN_CENTER + textalignx 320 + visible 1 + decoration + } + + // Force point allocated + itemDef + { + name allocated_text + type ITEM_TYPE_TEXT + rect 0 5 640 18 + text @MENUS_ALLOCATED_FP + font 2 + forecolor 1 1 1 1 + textscale .80 + textalign ITEM_ALIGN_CENTER + textalignx 320 + visible 0 + decoration + } + + // Core Power message + itemDef + { + name allocated_text_core + type ITEM_TYPE_TEXT + rect 0 5 640 18 + text @MENUS_COREPOWER_DESC + font 2 + forecolor 1 1 1 1 + textscale .80 + textalign ITEM_ALIGN_CENTER + textalignx 320 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// So these will precache +//---------------------------------------------------------------------------------------------- + itemDef + { + name precache + group none + style WINDOW_STYLE_SHADER + rect 76 41 70 49 + background "gfx/menus/hex_pattern_1" + forecolor .65 .65 .65 1 + visible 0 + decoration + } + itemDef + { + name precache + group none + style WINDOW_STYLE_SHADER + rect 76 41 70 49 + background "gfx/menus/hex_pattern_2" + forecolor .65 .65 .65 1 + visible 0 + decoration + } + itemDef + { + name precache + group none + style WINDOW_STYLE_SHADER + rect 76 41 70 49 + background "gfx/menus/hex_pattern_3" + forecolor .65 .65 .65 1 + visible 0 + decoration + } + itemDef + { + name precache + group none + style WINDOW_STYLE_SHADER + rect 76 41 70 49 + background "gfx/menus/hex_pattern_1_gold" + forecolor .65 .65 .65 1 + visible 0 + decoration + } + itemDef + { + name precache + group none + style WINDOW_STYLE_SHADER + rect 76 41 70 49 + background "gfx/menus/hex_pattern_2_gold" + forecolor .65 .65 .65 1 + visible 0 + decoration + } + itemDef + { + name precache + group none + style WINDOW_STYLE_SHADER + rect 76 41 70 49 + background "gfx/menus/hex_pattern_3_gold" + forecolor .65 .65 .65 1 + visible 0 + decoration + } + + +//---------------------------------------------------------------------------------------------- +// DEALLOCATION BUTTON - this button is hidden until a power is chosen then this +// becomes active so the power can be deallocated +//---------------------------------------------------------------------------------------------- + itemDef + { + name deallocate_fbutton + group none + type ITEM_TYPE_BUTTON + rect 0 0 0 0 + forecolor 1 1 1 1 + visible 0 + // Decrement force power + action + { + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + + uiScript "decrementcurrentforcepower" + + hide deallocate_fbutton + + show force_button + show force_icon + show force_desc + +// setfocus absorb_fbutton + + } + } + +//---------------------------------------------------------------------------------------------- +// ABSORB BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive) + itemDef + { + name absorb_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 76 41 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name absorb_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 33 30 64 64 + background "gfx/mp/NEW_f_icon_lt_absorb" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name absorb_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 33 41 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_ADDFP + // Show force power description + mouseEnter + { + setitemcolor absorb_iconpic forecolor 1 1 1 1 + setitemcolor absorb_hexpic forecolor 1 1 1 1 + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + } + + // Because this gets focus when the menu first opens. + onFocus + { + setitemcolor absorb_iconpic forecolor 1 1 1 1 + setitemcolor absorb_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "absorb" + + setitembackground force_icon "gfx/mp/NEW_f_icon_lt_absorb" + setitemtext force_desc @SP_INGAME_FORCE_ABSORB_DESC + } + + // Increment force power + action + { // hide descriptions and let affectforcepowerlevel determine the corect one + hide leveltext + uiScript "affectforcepowerlevel" "absorb" + hide force_button + + setitemrect deallocate_fbutton 33 41 115 46 + show deallocate_fbutton + + setitemcolor absorb_iconpic forecolor 1 1 1 1 + setitemcolor absorb_hexpic forecolor 1 1 1 1 + } + } + +//---------------------------------------------------------------------------------------------- +// HEAL BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive) + itemDef + { + name heal_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 76 95 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name heal_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 33 85 64 64 + background "gfx/mp/NEW_f_icon_lt_heal" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name heal_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 33 95 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_ADDFP + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor heal_iconpic forecolor 1 1 1 1 + setitemcolor heal_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "heal" + + setitembackground force_icon "gfx/mp/NEW_f_icon_lt_heal" + setitemtext force_desc @SP_INGAME_FORCE_HEAL_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor heal_iconpic forecolor .65 .65 .65 1 + setitemcolor heal_hexpic forecolor .65 .65 .65 1 + } + + // Increment force power + action + { // hide descriptions and let affectforcepowerlevel determine the corect one + hide leveltext + uiScript "affectforcepowerlevel" "heal" + hide force_button + + setitemrect deallocate_fbutton 33 95 115 46 + show deallocate_fbutton + + setitemcolor heal_iconpic forecolor 1 1 1 1 + setitemcolor heal_hexpic forecolor 1 1 1 1 + } + } + +//---------------------------------------------------------------------------------------------- +// MINDTRICK BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive) + itemDef + { + name mindtrick_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 76 149 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name mindtrick_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 33 141 64 64 + background "gfx/mp/NEW_f_icon_lt_mind_trick" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name mindtrick_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 33 149 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_ADDFP + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor mindtrick_iconpic forecolor 1 1 1 1 + setitemcolor mindtrick_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "mindtrick" + + setitembackground force_icon "gfx/mp/NEW_f_icon_lt_mind_trick" + setitemtext force_desc @SP_INGAME_FORCE_MIND_TRICK_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor mindtrick_iconpic forecolor .65 .65 .65 1 + setitemcolor mindtrick_hexpic forecolor .65 .65 .65 1 + } + + // Increment force power + action + { // hide descriptions and let affectforcepowerlevel determine the corect one + hide leveltext + uiScript "affectforcepowerlevel" "mindtrick" + + hide force_button + + setitemrect deallocate_fbutton 33 149 115 46 + show deallocate_fbutton + + setitemcolor mindtrick_iconpic forecolor 1 1 1 1 + setitemcolor mindtrick_hexpic forecolor 1 1 1 1 + } + } + +//---------------------------------------------------------------------------------------------- +// PROTECT BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive) + itemDef + { + name protect_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 76 205 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name protect_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 33 196 64 64 + background "gfx/mp/NEW_f_icon_lt_protect" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name protect_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 33 205 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_ADDFP + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor protect_iconpic forecolor 1 1 1 1 + setitemcolor protect_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "protect" + + setitembackground force_icon "gfx/mp/NEW_f_icon_lt_protect" + setitemtext force_desc @SP_INGAME_FORCE_PROTECT_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor protect_iconpic forecolor .65 .65 .65 1 + setitemcolor protect_hexpic forecolor .65 .65 .65 1 + } + + // Increment force power + action + { // hide descriptions and let affectforcepowerlevel determine the corect one + hide leveltext + uiScript "affectforcepowerlevel" "protect" + + hide force_button + + setitemrect deallocate_fbutton 33 205 115 46 + show deallocate_fbutton + + setitemcolor protect_iconpic forecolor 1 1 1 1 + setitemcolor protect_hexpic forecolor 1 1 1 1 + } + } + +//---------------------------------------------------------------------------------------------- +// JUMP BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive) + itemDef + { + name jump_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 225 41 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name jump_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 184 30 64 64 + background "gfx/mp/NEW_f_icon_jump" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name jump_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 184 41 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_COREPOWER_DESC + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor jump_iconpic forecolor 1 1 1 1 + setitemcolor jump_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "jump" + + setitembackground force_icon "gfx/mp/NEW_f_icon_jump" + setitemtext force_desc @SP_INGAME_FORCE_JUMP_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor jump_iconpic forecolor .65 .65 .65 1 + setitemcolor jump_hexpic forecolor .65 .65 .65 1 + + } + } + +//---------------------------------------------------------------------------------------------- +// PULL BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive) + itemDef + { + name pull_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 225 95 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name pull_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 184 85 64 64 + background "gfx/mp/NEW_f_icon_pull" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name pull_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 184 95 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_COREPOWER_DESC + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor pull_iconpic forecolor 1 1 1 1 + setitemcolor pull_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "pull" + + setitembackground force_icon "gfx/mp/NEW_f_icon_pull" + setitemtext force_desc @SP_INGAME_FORCE_PULL_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor pull_iconpic forecolor .65 .65 .65 1 + setitemcolor pull_hexpic forecolor .65 .65 .65 1 + } + } + +//---------------------------------------------------------------------------------------------- +// PUSH BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive) + itemDef + { + name push_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 225 149 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name push_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 184 141 64 64 + background "gfx/mp/NEW_f_icon_push" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name push_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 184 149 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_COREPOWER_DESC + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor push_iconpic forecolor 1 1 1 1 + setitemcolor push_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "push" + + setitembackground force_icon "gfx/mp/NEW_f_icon_push" + setitemtext force_desc @SP_INGAME_FORCE_PUSH_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor push_iconpic forecolor .65 .65 .65 1 + setitemcolor push_hexpic forecolor .65 .65 .65 1 + } + } + +//---------------------------------------------------------------------------------------------- +// SENSE BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive) + itemDef + { + name sense_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 225 205 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name sense_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 184 196 64 64 + background "gfx/mp/NEW_f_icon_sight" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name sense_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 184 205 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_COREPOWER_DESC + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor sense_iconpic forecolor 1 1 1 1 + setitemcolor sense_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "sense" + + setitembackground force_icon "gfx/mp/NEW_f_icon_sight" + setitemtext force_desc @SP_INGAME_FORCE_SENSE_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor sense_iconpic forecolor .65 .65 .65 1 + setitemcolor sense_hexpic forecolor .65 .65 .65 1 + } + } + +//---------------------------------------------------------------------------------------------- +// SPEED BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive) + itemDef + { + name speed_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 380 41 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name speed_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 336 30 64 64 + background "gfx/mp/NEW_f_icon_speed" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name speed_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 336 41 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_COREPOWER_DESC + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor speed_iconpic forecolor 1 1 1 1 + setitemcolor speed_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "speed" + + setitembackground force_icon "gfx/mp/NEW_f_icon_speed" + setitemtext force_desc @SP_INGAME_FORCE_SPEED_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor speed_iconpic forecolor .65 .65 .65 1 + setitemcolor speed_hexpic forecolor .65 .65 .65 1 + } + } + +//---------------------------------------------------------------------------------------------- +// SABER DEFENSIVE BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive + itemDef + { + name sabdef_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 380 95 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name sabdef_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 336 85 64 64 + background "gfx/mp/NEW_f_icon_saber_defend" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name sabdef_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 336 95 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_COREPOWER_DESC + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor sabdef_iconpic forecolor 1 1 1 1 + setitemcolor sabdef_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "sabdef" + + setitembackground force_icon "gfx/mp/NEW_f_icon_saber_defend" + setitemtext force_desc @SP_INGAME_FORCE_SABER_DEFENSE_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor sabdef_iconpic forecolor .65 .65 .65 1 + setitemcolor sabdef_hexpic forecolor .65 .65 .65 1 + } + } + +//---------------------------------------------------------------------------------------------- +// SABER OFFENSIVE BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive + itemDef + { + name saboff_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 380 149 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name saboff_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 336 141 64 64 + background "gfx/mp/NEW_f_icon_saber_attack" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name saboff_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 336 149 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_COREPOWER_DESC + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor saboff_iconpic forecolor 1 1 1 1 + setitemcolor saboff_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "saboff" + + setitembackground force_icon "gfx/mp/NEW_f_icon_saber_attack" + setitemtext force_desc @SP_INGAME_FORCE_SABER_OFFENSE_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor saboff_iconpic forecolor .65 .65 .65 1 + setitemcolor saboff_hexpic forecolor .65 .65 .65 1 + } + } + +//---------------------------------------------------------------------------------------------- +// SABER THROW BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive + itemDef + { + name sabthrow_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 380 205 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .5 .5 .5 1 + visible 1 + decoration + } + + itemDef + { + name sabthrow_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 336 196 64 64 + background "gfx/mp/NEW_f_icon_saber_throw" + forecolor .5 .5 .5 1 + visible 1 + decoration + } + + itemDef + { + name sabthrow_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 336 205 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_COREPOWER_DESC + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor sabthrow_iconpic forecolor 1 1 1 1 + setitemcolor sabthrow_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "sabthrow" + + setitembackground force_icon "gfx/mp/NEW_f_icon_saber_throw" + setitemtext force_desc @SP_INGAME_FORCE_SABER_THROW_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor sabthrow_iconpic forecolor .5 .5 .5 1 + setitemcolor sabthrow_hexpic forecolor .5 .5 .5 1 + } + } + +//---------------------------------------------------------------------------------------------- +// DRAIN BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive + itemDef + { + name drain_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 527 41 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .5 .5 .5 1 + visible 1 + decoration + } + + itemDef + { + name drain_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 484 30 64 64 + background "gfx/mp/NEW_f_icon_dk_drain" + forecolor .5 .5 .5 1 + visible 1 + decoration + } + + itemDef + { + name drain_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 484 41 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_ADDFP + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor drain_iconpic forecolor 1 1 1 1 + setitemcolor drain_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "drain" + + setitembackground force_icon "gfx/mp/NEW_f_icon_dk_drain" + setitemtext force_desc @SP_INGAME_FORCE_DRAIN_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor drain_iconpic forecolor .5 .5 .5 1 + setitemcolor drain_hexpic forecolor .5 .5 .5 1 + } + + // Increment force power + action + { // hide descriptions and let affectforcepowerlevel determine the corect one + hide leveltext + uiScript "affectforcepowerlevel" "drain" + + hide force_button + + setitemrect deallocate_fbutton 484 41 115 46 + show deallocate_fbutton + + setitemcolor drain_iconpic forecolor 1 1 1 1 + setitemcolor drain_hexpic forecolor 1 1 1 1 + } + } + +//---------------------------------------------------------------------------------------------- +// GRIP BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive + itemDef + { + name grip_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 527 95 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name grip_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 484 85 64 64 + background "gfx/mp/NEW_f_icon_dk_grip" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name grip_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 484 95 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_ADDFP + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor grip_iconpic forecolor 1 1 1 1 + setitemcolor grip_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "grip" + + setitembackground force_icon "gfx/mp/NEW_f_icon_dk_grip" + setitemtext force_desc @SP_INGAME_FORCE_GRIP_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor grip_iconpic forecolor .65 .65 .65 1 + setitemcolor grip_hexpic forecolor .65 .65 .65 1 + } + + // Increment force power + action + { // hide descriptions and let affectforcepowerlevel determine the corect one + hide leveltext + uiScript "affectforcepowerlevel" "grip" + + hide force_button + + setitemrect deallocate_fbutton 484 95 115 46 + show deallocate_fbutton + + setitemcolor grip_iconpic forecolor 1 1 1 1 + setitemcolor grip_hexpic forecolor 1 1 1 1 + } + } + +//---------------------------------------------------------------------------------------------- +// LIGHTNING BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive + itemDef + { + name lightning_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 527 149 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name lightning_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 484 141 64 64 + background "gfx/mp/NEW_f_icon_dk_l1" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name lightning_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 484 149 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_ADDFP + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor lightning_iconpic forecolor 1 1 1 1 + setitemcolor lightning_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "lightning" + + setitembackground force_icon "gfx/mp/NEW_f_icon_dk_l1" + setitemtext force_desc @SP_INGAME_FORCE_LIGHTNING_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor lightning_iconpic forecolor .65 .65 .65 1 + setitemcolor lightning_hexpic forecolor .65 .65 .65 1 + } + + // Increment force power + action + { // hide descriptions and let affectforcepowerlevel determine the corect one + hide leveltext + uiScript "affectforcepowerlevel" "lightning" + + hide force_button + + setitemrect deallocate_fbutton 484 149 115 46 + show deallocate_fbutton + + setitemcolor lightning_iconpic forecolor 1 1 1 1 + setitemcolor lightning_hexpic forecolor 1 1 1 1 + } + } + +//---------------------------------------------------------------------------------------------- +// RAGE BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive + itemDef + { + name rage_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 527 205 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name rage_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 484 196 64 64 + background "gfx/mp/NEW_f_icon_dk_rage" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name rage_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 484 205 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_ADDFP + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor rage_iconpic forecolor 1 1 1 1 + setitemcolor rage_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "rage" + + setitembackground force_icon "gfx/mp/NEW_f_icon_dk_rage" + setitemtext force_desc @SP_INGAME_FORCE_RAGE_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor rage_iconpic forecolor .65 .65 .65 1 + setitemcolor rage_hexpic forecolor .65 .65 .65 1 + } + + // Increment/decrement force power + action + { // hide descriptions and let affectforcepowerlevel determine the corect one + hide leveltext + uiScript "affectforcepowerlevel" "rage" + + hide force_button + + setitemrect deallocate_fbutton 484 205 115 46 + show deallocate_fbutton + + setitemcolor rage_iconpic forecolor 1 1 1 1 + setitemcolor rage_hexpic forecolor 1 1 1 1 + + } + } +//---------------------------------------------------------------------------------------------- +// BIG FORCE ICON AND FORCE DESCRIPTION +//---------------------------------------------------------------------------------------------- + + itemDef + { + name force_icon + group bigicons + style WINDOW_STYLE_SHADER + rect 30 265 128 128 + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name force_desc + rect 157 264 460 100 + font 4 + type ITEM_TYPE_TEXTSCROLL + text "This is the text" + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + lineHeight 14 + decoration + } + +//---------------------------------------------------------------------------------------------- +// ABSORB LEVEL DESCRIPTION +//---------------------------------------------------------------------------------------------- + // Level 1 description + itemDef + { + name absorb_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_ABSORB_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + // Level 2 description + itemDef + { + name absorb_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_ABSORB_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + // Level 3 description + itemDef + { + name absorb_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_ABSORB_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// HEAL DESCRIPTION +//---------------------------------------------------------------------------------------------- + itemDef + { + name heal_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_HEAL_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name heal_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_HEAL_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name heal_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_HEAL_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// MIND TRICK DESCRIPTION +//---------------------------------------------------------------------------------------------- + itemDef + { + name mindtrick_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_MIND_TRICK_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name mindtrick_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_MIND_TRICK_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name mindtrick_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_MIND_TRICK_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// PROTECT DESCRIPTION +//---------------------------------------------------------------------------------------------- + itemDef + { + name protect_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_PROTECT_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name protect_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_PROTECT_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name protect_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_PROTECT_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// +// JUMP DESCRIPTION +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name jump_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_JUMP_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name jump_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_JUMP_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name jump_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_JUMP_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// PULL DESCRIPTION +//---------------------------------------------------------------------------------------------- + itemDef + { + name pull_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_PULL_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name pull_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_PULL_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name pull_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_PULL_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// PUSH DESCRIPTION +//---------------------------------------------------------------------------------------------- + itemDef + { + name push_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_PUSH_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name push_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_PUSH_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name push_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_PUSH_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// SENSE DESCRIPTION +//---------------------------------------------------------------------------------------------- + + itemDef + { + name big_sense + group bigicons + style WINDOW_STYLE_SHADER + rect 30 265 128 128 + background "gfx/mp/NEW_f_icon_sight" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name sense_text + group mainpowertext + rect 157 264 460 120 + text @SP_INGAME_FORCE_SENSE_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + decoration + } + + itemDef + { + name sense_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SENSE_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name sense_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SENSE_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name sense_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SENSE_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// SPEED DESCRIPTION +//---------------------------------------------------------------------------------------------- + itemDef + { + name speed_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SPEED_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name speed_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SPEED_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name speed_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SPEED_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// SABER DEFENSE DESCRIPTION +//---------------------------------------------------------------------------------------------- + itemDef + { + name sabdef_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SABER_DEFENSE_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name sabdef_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SABER_DEFENSE_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name sabdef_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SABER_DEFENSE_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// SABER OFFENSE DESCRIPTION +//---------------------------------------------------------------------------------------------- + itemDef + { + name saboff_text + group mainpowertext + rect 157 264 460 120 + text @SP_INGAME_FORCE_SABER_OFFENSE_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + decoration + } + + itemDef + { + name saboff_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SABER_OFFENSE_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name saboff_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SABER_OFFENSE_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name saboff_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SABER_OFFENSE_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// SABER THROW DESCRIPTION +//---------------------------------------------------------------------------------------------- + itemDef + { + name sabthrow_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SABER_THROW_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name sabthrow_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SABER_THROW_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name sabthrow_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SABER_THROW_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// DRAIN DESCRIPTION +//---------------------------------------------------------------------------------------------- + itemDef + { + name drain_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_DRAIN_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name drain_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_DRAIN_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name drain_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_DRAIN_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// GRIP DESCRIPTION +//---------------------------------------------------------------------------------------------- + itemDef + { + name grip_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_GRIP_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name grip_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_GRIP_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name grip_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_GRIP_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// LIGHTNING DESCRIPTION +//---------------------------------------------------------------------------------------------- + itemDef + { + name lightning_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_LIGHTNING_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name lightning_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_LIGHTNING_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name lightning_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_LIGHTNING_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// RAGE DESCRIPTION +//---------------------------------------------------------------------------------------------- + itemDef + { + name rage_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_RAGE_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name rage_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_RAGE_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name rage_level3desc + group leveltext + rect 157 384 460 40 + text @SP_INGAME_FORCE_RAGE_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + +//---------------------------------------------------------------------------------------------- +// BOTTOM ROW OF BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name backbut + type ITEM_TYPE_BUTTON + rect 30 447 140 24 + text @MENUS_HELP + font 2 + forecolor 1 .682 0 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + desctext @MENUS_HELP_DESC1 + visible 1 + mouseEnter + { + } + mouseExit + { + } + + // If we're backing up then we have to reset levels to what they were + action + { + play "sound/interface/menuroam.wav" + open ingameForceHelp + } + } + + + // do not change the name of this because it's made active/inactive in code + itemDef + { + name weaponbutton + type ITEM_TYPE_BUTTON + rect 336 447 140 24 + text @MENUS_WEAPONS + font 2 + forecolor 1 .682 0 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + desctext @MENUS_CHOOSEWEAPONS + visible 1 + mouseEnter + { + } + mouseExit + { + } + action + { + play "sound/interface/menuroam.wav" + close all + open demo_WpnSelect + } + } + +//---------------------------------------------------------------------------------------------- +// +// SCANLINES +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name scan + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 640 + background "gfx/menus/scanlines" + forecolor 1 1 1 1 + visible 1 + decoration + } + + } +} + + + + + + + + + + diff --git a/base/ui/demo_GotoTier.menu b/base/ui/demo_GotoTier.menu new file mode 100644 index 0000000..3861b26 --- /dev/null +++ b/base/ui/demo_GotoTier.menu @@ -0,0 +1,190 @@ +//---------------------------------------------------------------------------------------------- +// Mission Select Menu +// +//---------------------------------------------------------------------------------------------- +{ + + menuDef + { + name "demo_GotoTier" + fullScreen 1 + rect 0 0 640 480 + visible 1 + focusColor 1 1 1 1 + descX 320 + descY 426 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + disablecolor .5 .5 .5 1 + fadeClamp 1.0 // sets the fadeup alpha + fadeCycle 20 // how often fade happens in milliseconds + fadeAmount 0.1 // amount to adjust alpha per cycle + onOpen + { + fadein background + playVoice "sound/chars/storyinfo/1.mp3" + } + onESC + { + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/mission_back" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name eyecandy1 + group none + style WINDOW_STYLE_SHADER + rect 17 309 357 153 + background "gfx/menus/mission_bottomleft_grid" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name botlf + group none + style WINDOW_STYLE_SHADER + rect 0 300 80 180 + background "gfx/menus/mission_bottom_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// MODELS FOR V-O +//---------------------------------------------------------------------------------------------- + itemDef + { + name luke + group storyheads + type ITEM_TYPE_MODEL + rect 415 285 149 149 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/luke/model_menu.skin" + asset_model "models/players/luke/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// +// BUTTONS +// +//---------------------------------------------------------------------------------------------- + +//---------------------------------------------------------------------------------------------- +//Sound is automatic +//---------------------------------------------------------------------------------------------- + +//---------------------------------------------------------------------------------------------- +//coming from Yavin2 +//---------------------------------------------------------------------------------------------- + itemDef + { + name story1 + type ITEM_TYPE_BUTTON + rect 550 440 172 24 + text @MENUS_OKAY + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + mouseEnter + { + } + mouseExit + { + } + action + { + close all + open demo_MissionSelect + } + } + + itemDef + { + name story1text + type ITEM_TYPE_TEXTSCROLL + rect 44 313 304 145 + text @TIER1_1 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + lineHeight 18 + visible 1 + autowrapped + } + + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 107 48 428 112 + background "gfx/menus/jediacademy" + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// SCANLINES OVER WHOLE MENU +//---------------------------------------------------------------------------------------------- + + itemDef + { + name scan + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 640 + background "gfx/menus/scanlines" + forecolor 1 1 1 1 + visible 1 + decoration + } + } +} + + + + + + + + + + + diff --git a/base/ui/demo_MissionSelect.menu b/base/ui/demo_MissionSelect.menu new file mode 100644 index 0000000..4872c96 --- /dev/null +++ b/base/ui/demo_MissionSelect.menu @@ -0,0 +1,955 @@ +//------------------------------------------------------------------------------------------------ +// Mission Select 1 Menu +// +// Select missions from the 1st tier. +// +//------------------------------------------------------------------------------------------------ +{ + menuDef + { + name "demo_MissionSelect" + fullScreen 1 + rect 0 0 640 480 + visible 1 + focusColor 1 1 1 1 + descX 200 + descY 444 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + disablecolor .5 .5 .5 1 + fadeClamp 1.0 // sets the fadeup alpha + fadeCycle 25 // how often fade happens in milliseconds + fadeAmount 0.05 // amount to adjust alpha per cycle + onOpen + { + show mission_button + stopVoice + } + onESC + { + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/mission_back" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name eyecandy1 + group none + style WINDOW_STYLE_SHADER + rect 17 309 357 153 + background "gfx/menus/mission_bottomleft_grid" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name botlf + group none + style WINDOW_STYLE_SHADER + rect 0 300 80 180 + background "gfx/menus/mission_bottom_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name starfield + group none + style WINDOW_STYLE_FILLED + rect 20 20 600 256 + background "gfx/menus/star_field" + backcolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name stars_close + group none + style WINDOW_STYLE_FILLED + rect 20 20 600 256 + background "gfx/menus/star_field_zoom" + backcolor 1 1 1 0 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// BIG PLANET GRAPHICS +//---------------------------------------------------------------------------------------------- + itemDef + { + name tatooine + group none + style WINDOW_STYLE_FILLED + rect 320 148 0 0 + background "gfx/menus/planets/tatooine" + backcolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name chandrila + group none + style WINDOW_STYLE_FILLED + rect 320 148 0 0 + background "gfx/menus/planets/chandrila" + backcolor 1 1 1 1 + visible 1 + decoration + } + + +//---------------------------------------------------------------------------------------------- +// GALAXY MAP +//---------------------------------------------------------------------------------------------- + itemDef + { + name galaxy + group none + style WINDOW_STYLE_FILLED + rect 64 20 512 256 + background "gfx/menus/mission_galaxy" + backcolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name map_title + type ITEM_TYPE_TEXT + rect 40 14 600 18 + text @MENUS_GALACTIC_MAP + font 2 + forecolor .549 .854 1 1 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 300 + textaligny -1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// TIER 1 LOCATION MARKERS ON GALAXY MAP +//---------------------------------------------------------------------------------------------- + itemDef + { + name loc_but01_off + group location_marker_off + style WINDOW_STYLE_SHADER + rect 239 188 32 32 + background "gfx/menus/mission_loc_but_off" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "tiers_complete" + disablecvar + { + "t1_sour" + } + cvarSubString + } + + itemDef + { + name loc_but01_on + group location_marker_on + style WINDOW_STYLE_SHADER + rect 239 188 32 32 + background "gfx/menus/mission_loc_but_on" + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "tiers_complete" + disablecvar + { + "t1_sour" + } + cvarSubString + } + + itemDef + { + name loc_but02_off + group location_marker + style WINDOW_STYLE_SHADER + rect 270 109 20 20 + background "gfx/menus/mission_loc_but_off" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "tiers_complete" + disablecvar + { + "t3_rift" + } + cvarSubString + } + + itemDef + { + name loc_but02_on + group location_marker + style WINDOW_STYLE_SHADER + rect 270 109 20 20 + background "gfx/menus/mission_loc_but_on" + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "tiers_complete" + disablecvar + { + "t3_rift" + } + cvarSubString + } + + itemDef + { + name planet_name + type ITEM_TYPE_TEXT + rect 52 316 288 24 + font 2 + forecolor .549 .854 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + autowrapped + decoration + } + +//---------------------------------------------------------------------------------------------- +// TIER 1 MISSION BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name map_title + type ITEM_TYPE_TEXT + rect 10 305 400 20 + text @MENUS_MISSIONS + font 2 + forecolor .549 .854 1 1 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 200 + textaligny -1 + visible 1 + } + + itemDef + { + name miss1 + group mission_button + type ITEM_TYPE_BUTTON + rect 52 330 224 20 + text @MENUS_T1_SOUR_TITLE + desctext @MENUS_CLICK_BRIEFING + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + cvartest "tiers_complete" + disablecvar + { + "t1_sour" + } + cvarSubString + + mouseEnter + { + hide loc_but01_off + show loc_but01_on + + show planet_name + setitemtext planet_name @MENUS_TATOOINE + setitemrect planet_name 150 230 120 26 + + show button_glow + setitemrect button_glow 20 328 380 22 + + } + + mouseExit + { + hide loc_but01_on + show loc_but01_off + + hide planet_name + hide button_glow + } + + action + { + play "sound/weapons/force/protect.wav" + + fadeout starfield + fadeout galaxy + + fadein stars_close + + transition2 loc_but01_off 255 204 0 0 20 25 + transition2 loc_but02_off 270 109 0 0 20 25 + + transition2 planet_name 270 250 256 20 20 15 + + transition2 tatooine 192 20 256 256 10 15 + + hide mission_button + hide location_marker_on + + show backbut + show accbut1 + + show briefing_background + show briefing_text + setitemtext briefing_text @BRIEFINGS_T1_SOUR + + hide button_glow + hide map_title + } + } + + itemDef + { + name FAKE_miss0 + group mission_button + type ITEM_TYPE_BUTTON + rect 52 353 224 20 + text @MENUS_T1_FATAL_TITLE + desctext @MENUS_CLICK_BRIEFING + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + cvartest "tiers_complete" + enablecvar + { + "fake" + } + + + mouseEnter + { + hide loc_but02_off + show loc_but02_on + + show planet_name + setitemtext planet_name @MENUS_BAKURA + setitemrect planet_name 150 230 120 26 + + show button_glow + setitemrect button_glow 20 351 380 22 + } + + mouseExit + { + hide loc_but02_on + show loc_but02_off + + hide planet_name + hide button_glow + } + } + + itemDef + { + name NA_button1 + group na_button1 + type ITEM_TYPE_BUTTON + rect 52 353 224 20 + desctext @OBJECTIVES_DEMO_NOT_AVAILABLE + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + + mouseEnter + { + + } + + mouseExit + { + + } + } + + + itemDef + { + name FAKE_miss1 + group mission_button + type ITEM_TYPE_BUTTON + rect 52 376 224 20 + text @MENUS_T1_RAIL_TITLE + desctext @MENUS_CLICK_BRIEFING + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + cvartest "tiers_complete" + enablecvar + { + "fake" + } + + + mouseEnter + { + hide loc_but02_off + show loc_but02_on + + show planet_name + setitemtext planet_name @MENUS_CORELLIA + setitemrect planet_name 150 230 120 26 + + show button_glow + setitemrect button_glow 20 351 380 22 + } + + mouseExit + { + hide loc_but02_on + show loc_but02_off + + hide planet_name + hide button_glow + } + } + + itemDef + { + name NA_button2 + group na_button2 + type ITEM_TYPE_BUTTON + rect 52 376 224 20 + desctext @OBJECTIVES_DEMO_NOT_AVAILABLE + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + + mouseEnter + { + + } + + mouseExit + { + + } + } + + itemDef + { + name miss2 + group mission_button + type ITEM_TYPE_BUTTON + rect 52 399 224 20 + text @MENUS_T3_RIFT_TITLE + desctext @MENUS_CLICK_BRIEFING + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + cvartest "tiers_complete" + disablecvar + { + "t3_rift" + } + cvarSubString + mouseEnter + { + hide loc_but02_off + show loc_but02_on + + show planet_name + setitemtext planet_name @MENUS_CHANDRILA + setitemrect planet_name 150 90 120 26 + + show button_glow + setitemrect button_glow 20 397 380 22 + } + mouseExit + { + hide loc_but02_on + show loc_but02_off + + hide planet_name + hide button_glow + } + action + { + play "sound/weapons/force/protect.wav" + + fadeout starfield + fadeout galaxy + + fadein stars_close + + transition2 loc_but01_off 280 119 0 0 20 25 + transition2 loc_but02_off 395 137 0 0 20 25 + transition2 loc_but03_off 181 163 0 0 20 25 + transition2 loc_but04_off 305 114 0 0 20 25 + transition2 loc_but05_off 389 79 0 0 20 25 + + hide loc_but01_on + hide loc_but02_on + + transition2 chandrila 192 20 256 256 10 15 + + transition2 planet_name 270 250 256 256 20 15 + + hide mission_button + + show backbut + show accbut2 + + show briefing_background + show briefing_text + setitemtext briefing_text @BRIEFINGS_T3_RIFT + + hide map_title + hide button_glow + + } + } + + itemDef + { + name miss4 + group mission_button + type ITEM_TYPE_BUTTON + rect 52 422 224 20 + text @MENUS_T3_BYSS_TITLE + desctext @MENUS_CLICK_BRIEFING + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + cvartest "tiers_complete" + enablecvar + { + "fake" + } + mouseEnter + { + hide loc_but04_off + show loc_but04_on + + show planet_name + setitemtext planet_name @MENUS_BYSS + setitemrect planet_name 240 40 120 26 + + show button_glow + setitemrect button_glow 20 397 380 22 + } + mouseExit + { + hide loc_but04_on + show loc_but04_off + hide planet_name + hide button_glow + } + } + + itemDef + { + name NA_button1 + group na_button1 + type ITEM_TYPE_BUTTON + rect 52 422 224 20 + desctext @OBJECTIVES_DEMO_NOT_AVAILABLE + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + + mouseEnter + { + + } + + mouseExit + { + + } + } + + +//---------------------------------------------------------------------------------------------- +// MISSION BRIEF TEXT +//---------------------------------------------------------------------------------------------- + itemDef + { + name briefing_background + group none + style WINDOW_STYLE_FILLED + rect 42 314 320 114 + backcolor 0 0 .35 .7 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .8 1 + visible 0 + decoration + } + + itemDef + { + name briefing_text + type ITEM_TYPE_TEXTSCROLL + rect 42 314 320 114 + text @BRIEFINGS_T1_SOUR + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + lineHeight 18 + visible 0 + autowrapped + } + +//---------------------------------------------------------------------------------------------- +// GENERAL BACK BUTTON - if you don't want this mission +//---------------------------------------------------------------------------------------------- + itemDef + { + name backbut + type ITEM_TYPE_BUTTON + rect 52 430 172 24 + text @MENUS_BACK_CAPS + desctext @MENUS_DIFF_MISSION + font 2 + forecolor 1 .682 0 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + mouseEnter + { + show button_glow + setitemrect button_glow 15 430 200 20 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/esc.wav" + fadein starfield + fadein galaxy + fadeout stars_close + + transition2 loc_but01_off 239 188 32 32 20 25 + transition2 loc_but02_off 270 109 32 32 20 25 + + hide backbut + + hide planet_name + + hide accbuttons + + hide briefing_text + hide tatooine + hide chandrila + hide briefing_background + + hide button_glow + show mission_button + show map_title + } + } + +//---------------------------------------------------------------------------------------------- +// ACCEPT BUTTONS - IF YOU CHOOSE A PARTICULAR MISSION +//---------------------------------------------------------------------------------------------- + itemDef + { + name accbut1 + group accbuttons + type ITEM_TYPE_BUTTON + rect 268 430 172 24 + text @MENUS_ACCEPT + desctext @MENUS_ACCEPT_MISSION + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + mouseEnter + { + show button_glow + setitemrect button_glow 200 430 200 20 + } + mouseExit + { + hide button_glow + } + + action + { + hide backbut + hide briefing_text + show kyle + show nextscreen_button + show accept1text + playVoice "sound/chars/kyle/07kyk001.mp3" + hide accbuttons + setfocus nextscreen_button + setcvar tier_mapname "maptransition t1_sour" + setcvar ui_demo_level "t1_sour" + hide button_glow + hide briefing_background + } + } + + itemDef + { + name accbut2 + group accbuttons + type ITEM_TYPE_BUTTON + rect 268 430 172 24 + text @MENUS_ACCEPT + desctext @MENUS_ACCEPT_MISSION + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + mouseEnter + { + show button_glow + setitemrect button_glow 200 430 200 20 + } + mouseExit + { + hide button_glow + } + action + { + hide backbut + hide briefing_text + show kyle + show nextscreen_button + show accept2text + playVoice "sound/chars/kyle/demo_rift_intro.mp3" + hide accbuttons + setfocus nextscreen_button + setcvar tier_mapname "maptransition t3_rift" + setcvar ui_demo_level "t3_rift" + hide button_glow + hide briefing_background + } + } + + +//---------------------------------------------------------------------------------------------- +// MODELS FOR V-O +//---------------------------------------------------------------------------------------------- + itemDef + { + name luke + group models + type ITEM_TYPE_MODEL + rect 415 285 149 149 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/luke/model_menu.skin" + asset_model "models/players/luke/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 0 + decoration + } + + itemDef + { + name kyle + group models + type ITEM_TYPE_MODEL + rect 415 288 145 145 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/kyle/model_menu.skin" + asset_model "models/players/kyle/model.glm" + model_angle 180 + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// BRIEFING SUBTITLES +//---------------------------------------------------------------------------------------------- + itemDef + { + name accept1text + type ITEM_TYPE_TEXTSCROLL + rect 30 316 320 130 + text @T1_SOUR_07KYK001 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + lineHeight 18 + visible 0 + autowrapped + } + + itemDef + { + name accept2text + type ITEM_TYPE_TEXT + rect 30 316 320 130 + text @OBJECTIVES_DEMO_RIFT_INTRO + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + autowrapped + } + + +//---------------------------------------------------------------------------------------------- +// NEXT BUTTONS - to go to next screen +//---------------------------------------------------------------------------------------------- + itemDef + { + name nextscreen_button + type ITEM_TYPE_BUTTON + rect 530 440 172 24 + text @MENUS_NEXT + desctext @MENUS_ADVANCE_NEXT + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + + mouseEnter + { + } + mouseExit + { + } + action + { + play "sound/interface/menuroam.wav" + close all + open demo_ForceSelect + } + } + +//---------------------------------------------------------------------------------------------- +// SCANLINES OVER WHOLE MENU +//---------------------------------------------------------------------------------------------- + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name scan + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 640 + background "gfx/menus/scanlines" + forecolor 1 1 1 1 + visible 1 + decoration + } + + } +} + + + + + + + + + + + diff --git a/base/ui/demo_WpnSelect.menu b/base/ui/demo_WpnSelect.menu new file mode 100644 index 0000000..566f28d --- /dev/null +++ b/base/ui/demo_WpnSelect.menu @@ -0,0 +1,1471 @@ +//---------------------------------------------------------------------------------------------- +// +// Weapon Select Menu +// +// The player is allowed to choose from a list of weapons. The weapons in the list are +// based on the value in tier_storyinfo +// +// Weapon index values +// SABER - 1 +// BLASTER PISTOL - 2 +// BLASTER - 3 +// DISRUPTOR - 4 +// BOWCASTER - 5 +// REPEATER - 6 +// DEMP - 7 +// FLECHETTE - 8 +// ROCKET LAUNCHER - 9 +// THERMAL DET. - 10 +// TRIP MINE - 11 +// DET PACK - 12 +// CONCUSSION - 13 +// +// Ammo index values amounts to give +// SABER - FORCE - 1 - 100 +// BLASTER PISTOL - BLASTER - 2 - 300 +// BLASTER - BLASTER - 2 - 300 +// DISRUPTOR - POWER CELL - 3 - 300 +// BOWCASTER - POWER CELL - 3 - 300 +// REPEATER - METAL BOLTS - 4 - 400 +// DEMP - POWER CELL - 3 - 300 +// FLECHETTE - METAL BOLTS - 4 - 400 +// ROCKET LAUNCHER - ROCKETS - 5 - 10 +// THERMAL DET. - THERMAL - 7 - 10 +// TRIP MINE - TRIP MINE - 8 - 5 +// DET. PACK - DETPACK - 9 - 5 +// CONCUSSION - METAL BOLTS - 4 - 400 +// +//---------------------------------------------------------------------------------------------- +{ + + menuDef + { + name "demo_WpnSelect" + fullScreen 1 + rect 0 0 640 480 + visible 1 + focusColor 1 1 1 1 + descX 320 + descY 424 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + fadeClamp 1.0 // sets the fadeup alpha + fadeCycle 25 // how often fade happens in milliseconds + fadeAmount 0.05 // amount to adjust alpha per cycle + + onOpen + { + uiScript "initweaponselect" // Perform screen init + uiScript "clearweapons" // Get rid of any weapons + uiScript "clearinventory" // Get rid of any inventory + uiScript "giveweapon" "1" // Give saber + uiScript "giveweapon" "2" // Give blaster + uiScript "equipweapon" "1" // start with saber + + } + + + onESC + { + play "sound/interface/menuroam.wav" + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/weaponmenu_back" + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// TEXT - Choose weapons/Weapons chosen. +//---------------------------------------------------------------------------------------------- + itemDef + { + name choose_weapons_text + type ITEM_TYPE_TEXT + rect 0 15 640 18 + text @MENUS_CHOOSEWEAPONS + font 2 + forecolor 1 1 1 1 + textscale .80 + textalign ITEM_ALIGN_CENTER + textalignx 320 + visible 1 + decoration + } + + itemDef + { + name weapons_chosen_text + type ITEM_TYPE_TEXT + rect 0 20 640 18 + text @MENUS_WEAPONSCHOSEN + font 2 + forecolor .308 .980 .277 1 + textscale .80 + textalign ITEM_ALIGN_CENTER + textalignx 320 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// INSTRUCTIONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name setup_background + group inst_stuff + style WINDOW_STYLE_FILLED + rect 40 195 455 145 + backcolor 0 0 .35 .9 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .8 1 + visible 0 + decoration + } + + itemDef + { + name instruction_title + group inst_stuff + type ITEM_TYPE_TEXT + rect 50 195 470 18 + text @MENUS_INSTRUCTIONS + font 2 + forecolor .549 .854 1 1 + textscale .8 + textalign ITEM_ALIGN_CENTER + textalignx 230 + visible 0 + decoration + } + + itemDef + { + name instruction_text + group inst_stuff + type ITEM_TYPE_TEXTSCROLL + rect 45 220 475 130 + text @MENUS_WEAPON_SELECTION_HELP + font 4 + forecolor 1 1 1 1 + textscale 1.0 + textalign ITEM_ALIGN_LEFT + visible 0 + decoration autowrapped + textaligny 0 + lineHeight 13 + + } + + itemDef + { + name inst_done_button + group inst_stuff + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 495 255 130 64 + text @MENUS_DONE_CAPS + descText @MENUS_HELP_DESC + font 3 + textscale 1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor .79 .64 .22 1 + visible 0 + + mouseEnter + { + show button_glow + setitemrect button_glow 490 255 140 25 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + hide button_glow + hide inst_stuff + + show weapon_button + } + } + + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + +//---------------------------------------------------------------------------------------------- +// SABER BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + itemDef + { + name saber_hex_background + group normal_icon + style WINDOW_STYLE_SHADER + rect 28 40 88 120 + background "gfx/menus/hex_pattern_gray" + forecolor 0 1 1 1 + visible 1 + decoration + } + + itemDef + { + name saber_icon + group normal_icon + style WINDOW_STYLE_SHADER + rect 24 30 80 80 + background "gfx/hud/w_icon_lightsaber_na" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name saber_icon_lit + group normal_icon + style WINDOW_STYLE_SHADER + rect 24 30 80 80 + background "gfx/hud/w_icon_lightsaber" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name saber_button + group weapon_button + type ITEM_TYPE_BUTTON + rect 28 40 79 64 + forecolor 1 1 1 1 + visible 1 + mouseEnter + { + hide saber_icon + show saber_icon_lit + + // Show big icon + show weapon_icon + setitembackground weapon_icon "gfx/hud/w_icon_lightsaber_na" + + // Show weapon description + show weapon_desc + setitemtext weapon_desc @SP_INGAME_SABER_DESC + } + mouseExit + { + show saber_icon + hide saber_icon_lit + } + action + { + } + } + +//---------------------------------------------------------------------------------------------- +// BLASTER PISTOL BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + itemDef + { + name bpistol_hex_background + group normal_icon + style WINDOW_STYLE_SHADER + rect 28 109 88 120 + background "gfx/menus/hex_pattern_gray" + forecolor 0 1 1 1 + visible 1 + decoration + } + + itemDef + { + name bpistol_icon + group normal_icon + style WINDOW_STYLE_SHADER + rect 24 96 80 80 + background "gfx/hud/w_icon_blaster_pistol_na" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name bpistol_icon_lit + group normal_icon + style WINDOW_STYLE_SHADER + rect 24 96 80 80 + background "gfx/hud/w_icon_blaster_pistol" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name bpistol_button + group weapon_button + type ITEM_TYPE_BUTTON + rect 28 109 79 64 + forecolor 1 1 1 1 +// desctext @MENU_CLICKDESCRIPTION + visible 1 + mouseEnter + { + hide bpistol_icon + show bpistol_icon_lit + + // Show big icon + show weapon_icon + setitembackground weapon_icon "gfx/hud/w_icon_blaster_pistol_na" + + // Show weapon description + show weapon_desc + setitemtext weapon_desc @SP_INGAME_NEW_BLASTER_PISTOL_DESC + } + mouseExit + { + show bpistol_icon + hide bpistol_icon_lit + } + action + { + } + } + +//---------------------------------------------------------------------------------------------- +// BLASTER RIFLE BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + itemDef + { + name brifle_hex_background + group normal_icon + style WINDOW_STYLE_SHADER + rect 136 40 88 120 + background "gfx/menus/hex_pattern_gray" + forecolor 0 .5 0 1 + visible 1 + decoration + } + + itemDef + { + name brifle_icon + group normal_icon + style WINDOW_STYLE_SHADER + rect 134 31 80 80 + background "gfx/hud/w_icon_blaster_na" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name brifle_icon_lit + group normal_icon + style WINDOW_STYLE_SHADER + rect 134 31 80 80 + background "gfx/hud/w_icon_blaster" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name brifle_button + group weapon_button + type ITEM_TYPE_BUTTON + rect 137 40 79 64 + forecolor 1 1 1 1 + desctext @MENUS_CLICKSELECT + visible 1 + mouseEnter + { + hide brifle_icon + show brifle_icon_lit + + // Show big icon + show weapon_icon + setitembackground weapon_icon "gfx/hud/w_icon_blaster_na" + + // Show weapon description + show weapon_desc + setitemtext weapon_desc @SP_INGAME_BLASTER_RIFLE_DESC + } + mouseExit + { + show brifle_icon + hide brifle_icon_lit + } + + action + { // Add this weapon from player selection (weapon index, ammo index, ammo amount, menu item with graphic) + uiScript "addweaponselection" "3" "2" "300" "brifle_icon" "brifle_icon_lit" "brifle_hex_background" "sound/weapons/blaster/select.wav" + } + } + +//---------------------------------------------------------------------------------------------- +// DISRUPTOR RIFLE BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + itemDef + { + name disruptor_hex_background + group normal_icon + style WINDOW_STYLE_SHADER + rect 136 109 88 120 + background "gfx/menus/hex_pattern_gray" + forecolor 0 .5 0 1 + visible 1 + decoration + } + + itemDef + { + name disruptor_icon + group normal_icon + style WINDOW_STYLE_SHADER + rect 134 99 80 80 + background "gfx/hud/w_icon_disruptor_na" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name disruptor_icon_lit + group normal_icon + style WINDOW_STYLE_SHADER + rect 134 99 80 80 + background "gfx/hud/w_icon_disruptor" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name disruptor_button + group weapon_button + type ITEM_TYPE_BUTTON + rect 137 109 79 64 + forecolor 1 1 1 1 + desctext @MENUS_CLICKSELECT + visible 1 + mouseEnter + { + hide disruptor_icon + show disruptor_icon_lit + + // Show big icon + show weapon_icon + setitembackground weapon_icon "gfx/hud/w_icon_disruptor_na" + + // Show weapon description + show weapon_desc + setitemtext weapon_desc @SP_INGAME_DISRUPTOR_RIFLE_DESC + } + mouseExit + { + show disruptor_icon + hide disruptor_icon_lit + } + action + { // Add this weapon from player selection (weapon index, ammo index, ammo amount, menu item with graphic) + uiScript "addweaponselection" "4" "3" "300" "disruptor_icon" "disruptor_icon_lit" "disruptor_hex_background" "sound/weapons/disruptor/select.wav" + } + } + +//---------------------------------------------------------------------------------------------- +// BOWCASTER BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + itemDef + { + name bowcaster_hex_background + group normal_icon + style WINDOW_STYLE_SHADER + rect 222 40 88 120 + background "gfx/menus/hex_pattern_gray" + forecolor 0 .5 0 1 + visible 1 + decoration + } + + itemDef + { + name bowcaster_icon + group normal_icon + style WINDOW_STYLE_SHADER + rect 222 31 80 80 + background "gfx/hud/w_icon_bowcaster_na" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name bowcaster_icon_lit + group normal_icon + style WINDOW_STYLE_SHADER + rect 222 31 80 80 + background "gfx/hud/w_icon_bowcaster" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name bowcaster_button + group weapon_button + type ITEM_TYPE_BUTTON + rect 224 40 79 64 + forecolor 1 1 1 1 + desctext @MENUS_CLICKSELECT + visible 1 + mouseEnter + { + hide bowcaster_icon + show bowcaster_icon_lit + + // Show big icon + show weapon_icon + setitembackground weapon_icon "gfx/hud/w_icon_bowcaster_na" + + // Show weapon description + show weapon_desc + setitemtext weapon_desc @SP_INGAME_BOWCASTER_DESC + } + mouseExit + { + show bowcaster_icon + hide bowcaster_icon_lit + } + action + { // Add this weapon from player selection (weapon index, ammo index, ammo amount, menu item with graphic) + uiScript "addweaponselection" "5" "3" "300" "bowcaster_icon" "bowcaster_icon_lit" "bowcaster_hex_background" "sound/weapons/bowcaster/select.wav" + } + } + +//---------------------------------------------------------------------------------------------- +// DEMP BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + itemDef + { + name demp_hex_background + group normal_icon + style WINDOW_STYLE_SHADER + rect 222 109 88 120 + background "gfx/menus/hex_pattern_gray" + forecolor 0 .5 0 1 + visible 1 + decoration + } + + itemDef + { + name demp_icon + group normal_icon + style WINDOW_STYLE_SHADER + rect 222 99 80 80 + background "gfx/hud/w_icon_demp2_na" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name demp_icon_lit + group normal_icon + style WINDOW_STYLE_SHADER + rect 222 99 80 80 + background "gfx/hud/w_icon_demp2" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name demp_button + group weapon_button + type ITEM_TYPE_BUTTON + rect 225 109 79 64 + forecolor 1 1 1 1 + desctext @MENUS_CLICKSELECT + visible 1 + mouseEnter + { + hide demp_icon + show demp_icon_lit + + // Show big icon + show weapon_icon + setitembackground weapon_icon "gfx/hud/w_icon_demp2_na" + + // Show weapon description + show weapon_desc + setitemtext weapon_desc @SP_INGAME_DEMP2_DESC + } + mouseExit + { + show demp_icon + hide demp_icon_lit + } + action + { // Add this weapon from player selection (weapon index, ammo index, ammo amount, menu item with graphic) + uiScript "addweaponselection" "7" "3" "300" "demp_icon" "demp_icon_lit" "demp_hex_background" "sound/weapons/demp2/select.wav" + } + } + +//---------------------------------------------------------------------------------------------- +// REPEATER BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + itemDef + { + name repeater_hex_background + group normal_icon + style WINDOW_STYLE_SHADER + rect 311 40 88 120 + background "gfx/menus/hex_pattern_gray" + forecolor 0 .5 0 1 + visible 1 + decoration + cvartest "ui_demo_level" + showcvar + { + "t3_rift"; + } + } + + itemDef + { + name repeater_icon + group normal_icon + style WINDOW_STYLE_SHADER + rect 309 35 80 80 + background "gfx/hud/w_icon_repeater_na" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "ui_demo_level" + showcvar + { + "t3_rift"; + } + } + + itemDef + { + name repeater_icon_lit + group normal_icon + style WINDOW_STYLE_SHADER + rect 309 35 80 80 + background "gfx/hud/w_icon_repeater" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name repeater_button + group weapon_button + type ITEM_TYPE_BUTTON + rect 312 40 79 64 + forecolor 1 1 1 1 + desctext @MENUS_CLICKSELECT + visible 1 + cvartest "ui_demo_level" + showcvar + { + "t3_rift"; + } + mouseEnter + { + hide repeater_icon + show repeater_icon_lit + + // Show big icon + show weapon_icon + setitembackground weapon_icon "gfx/hud/w_icon_repeater_na" + + // Show weapon description + show weapon_desc + setitemtext weapon_desc @SP_INGAME_HEAVYREPEATER_DESC + } + mouseExit + { + show repeater_icon + hide repeater_icon_lit + } + action + { // Add this weapon from player selection (weapon index, ammo index, ammo amount, menu item with graphic) + uiScript "addweaponselection" "6" "4" "400" "repeater_icon" "repeater_icon_lit" "repeater_hex_background" "sound/weapons/repeater/select.wav" + } + } + +//---------------------------------------------------------------------------------------------- +// FLECHETTE BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + itemDef + { + name flechette_hex_background + group normal_icon + style WINDOW_STYLE_SHADER + rect 311 109 88 120 + background "gfx/menus/hex_pattern_gray" + forecolor 0 .5 0 1 + visible 1 + decoration + cvartest "ui_demo_level" + showcvar + { + "t3_rift"; + } + } + + itemDef + { + name flechette_icon + group normal_icon + style WINDOW_STYLE_SHADER + rect 309 100 80 80 + background "gfx/hud/w_icon_flechette_na" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "ui_demo_level" + showcvar + { + "t3_rift"; + } + } + + itemDef + { + name flechette_icon_lit + group normal_icon + style WINDOW_STYLE_SHADER + rect 309 100 80 80 + background "gfx/hud/w_icon_flechette" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name flechette_button + group weapon_button + type ITEM_TYPE_BUTTON + rect 312 109 79 64 + forecolor 1 1 1 1 + desctext @MENUS_CLICKSELECT + visible 1 + cvartest "ui_demo_level" + showcvar + { + "t3_rift"; + } + mouseEnter + { + hide flechette_icon + show flechette_icon_lit + + // Show big icon + show weapon_icon + setitembackground weapon_icon "gfx/hud/w_icon_flechette_na" + + // Show weapon description + show weapon_desc + setitemtext weapon_desc @SP_INGAME_FLECHETTE_DESC + } + mouseExit + { + show flechette_icon + hide flechette_icon_lit + } + action + { // Add this weapon from player selection (weapon index, ammo index, ammo amount, menu item with graphic) + uiScript "addweaponselection" "8" "4" "400" "flechette_icon" "flechette_icon_lit" "flechette_hex_background" "sound/weapons/flechette/select.wav" + } + } + + + +//---------------------------------------------------------------------------------------------- +// THERMAL DETONATOR BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + itemDef + { + name thermal_hex_background + group normal_icon + style WINDOW_STYLE_SHADER + rect 506 40 60 120 + background "gfx/menus/hex_pattern_gray" + forecolor 0 0 .5 1 + visible 1 + decoration + } + + itemDef + { + name thermal_icon + group normal_icon + style WINDOW_STYLE_SHADER + rect 494 32 80 80 + background "gfx/hud/w_icon_thermal_na" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name thermal_icon_lit + group normal_icon + style WINDOW_STYLE_SHADER + rect 494 32 80 80 + background "gfx/hud/w_icon_thermal" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name thermal_button + group weapon_button + type ITEM_TYPE_BUTTON + rect 507 40 52 64 + forecolor 1 1 1 1 + desctext @MENUS_CLICKSELECT + visible 1 + mouseEnter + { + hide thermal_icon + show thermal_icon_lit + + // Show big icon + show weapon_icon + setitembackground weapon_icon "gfx/hud/w_icon_thermal_na" + + // Show weapon description + show weapon_desc + setitemtext weapon_desc @SP_INGAME_THERMAL_DETONATOR_DESC + } + mouseExit + { + show thermal_icon + hide thermal_icon_lit + } + action + { // Add/remove this weapon from player selection (weapon #, menu item with graphic) + uiScript "addthrowweaponselection" "10" "7" "10" "thermal_icon" "thermal_icon_lit" "thermal_hex_background" "sound/weapons/thermal/select.wav" + } + } + +//---------------------------------------------------------------------------------------------- +// DETPACK BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + itemDef + { + name detpack_hex_background + group normal_icon + style WINDOW_STYLE_SHADER + rect 564 40 60 120 + background "gfx/menus/hex_pattern_gray" + forecolor 0 0 .5 1 + visible 1 + decoration + } + + itemDef + { + name detpack_icon + group normal_icon + style WINDOW_STYLE_SHADER + rect 553 36 80 80 + background "gfx/hud/w_icon_detpack_na" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name detpack_icon_lit + group normal_icon + style WINDOW_STYLE_SHADER + rect 553 36 80 80 + background "gfx/hud/w_icon_detpack" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name detpack_button + group weapon_button + type ITEM_TYPE_BUTTON + rect 565 40 52 64 + forecolor 1 1 1 1 + desctext @MENUS_CLICKSELECT + visible 1 + mouseEnter + { + hide detpack_icon + show detpack_icon_lit + + // Show big icon + show weapon_icon + setitembackground weapon_icon "gfx/hud/w_icon_detpack_na" + + // Show weapon description + show weapon_desc + setitemtext weapon_desc @SP_INGAME_DET_PACK_DESC + } + mouseExit + { + show detpack_icon + hide detpack_icon_lit + } + action + { // Add/remove this weapon from player selection (weapon #, menu item with graphic) + uiScript "addthrowweaponselection" "12" "9" "5" "detpack_icon" "detpack_icon_lit" "detpack_hex_background" "sound/weapons/detpack/select.wav" + } + } + +//---------------------------------------------------------------------------------------------- +// TRIP MINE BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + itemDef + { + name tripmine_hex_background + group normal_icon + style WINDOW_STYLE_SHADER + rect 538 109 60 120 + background "gfx/menus/hex_pattern_gray" + forecolor 0 0 .5 1 + visible 1 + decoration + } + + itemDef + { + name tripmine_icon + group normal_icon + style WINDOW_STYLE_SHADER + rect 526 100 80 80 + background "gfx/hud/w_icon_tripmine_na" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name tripmine_icon_lit + group normal_icon + style WINDOW_STYLE_SHADER + rect 526 100 80 80 + background "gfx/hud/w_icon_tripmine" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name tripmine_button + group weapon_button + type ITEM_TYPE_BUTTON + rect 539 109 52 64 + forecolor 1 1 1 1 + desctext @MENUS_CLICKSELECT + visible 1 + mouseEnter + { + hide tripmine_icon + show tripmine_icon_lit + + // Show big icon + show weapon_icon + setitembackground weapon_icon "gfx/hud/w_icon_tripmine_na" + + // Show weapon description + show weapon_desc + setitemtext weapon_desc @SP_INGAME_TRIP_MINE_DESC + } + mouseExit + { + show tripmine_icon + hide tripmine_icon_lit + } + action + { // Add/remove this weapon from player selection (weapon #, menu item with graphic) + uiScript "addthrowweaponselection" "11" "8" "5" "tripmine_icon" "tripmine_icon_lit" "tripmine_hex_background" "sound/weapons/detpack/select.wav" + } + } + +//---------------------------------------------------------------------------------------------- +// CHOSEN WEAPONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name chosensaber_hex_background + style WINDOW_STYLE_SHADER + rect 65 358 70 107 + background "gfx/menus/hex_pattern_gray" + forecolor 0 1 1 1 + visible 1 + decoration + } + + itemDef + { + name chosen_sabericon + group chosenicons + style WINDOW_STYLE_SHADER + rect 67 358 60 60 + background "gfx/hud/w_icon_lightsaber_na" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name chosenblaster_hex_background + style WINDOW_STYLE_SHADER + rect 152 358 70 107 + background "gfx/menus/hex_pattern_gray" + forecolor 0 1 1 1 + visible 1 + decoration + } + + itemDef + { + name chosen_blastericon + group chosenicons + style WINDOW_STYLE_SHADER + rect 154 358 60 60 + background "gfx/hud/w_icon_blaster_pistol_na" + forecolor 1 1 1 1 + visible 1 + decoration + } + + + itemDef + { + name chosenweapon1_hex_background + style WINDOW_STYLE_SHADER + rect 280 358 70 107 + background "gfx/menus/hex_pattern_gray" + forecolor 0 1 0 1 + visible 1 + decoration + } + + itemDef + { + name chosenweapon1_icon + group chosenicons + style WINDOW_STYLE_SHADER + rect 282 358 60 60 + background "gfx/hud/w_icon_blaster_pistol_na" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name chosenweapon1_button + type ITEM_TYPE_BUTTON + rect 282 358 52 64 + forecolor 0 1 0 1 + visible 0 + desctext @MENUS_CLICKREMOVE + mouseEnter + { + uiScript highlightweaponselection "1" + } + mouseExit + { + uiScript normalweaponselection "1" + } + action + { + uiScript "removeweaponselection" "1" + } + } + + itemDef + { + name chosenweapon2_hex_background + style WINDOW_STYLE_SHADER + rect 367 358 70 107 + background "gfx/menus/hex_pattern_gray" + forecolor 0 1 0 1 + visible 1 + decoration + } + + itemDef + { + name chosenweapon2_icon + group chosenicons + style WINDOW_STYLE_SHADER + rect 369 358 60 60 + background "gfx/hud/w_icon_blaster_pistol_na" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name chosenweapon2_button + type ITEM_TYPE_BUTTON + rect 369 358 52 64 + forecolor 1 1 1 1 + visible 0 + desctext @MENUS_CLICKREMOVE + mouseEnter + { + uiScript highlightweaponselection "2" + } + mouseExit + { + uiScript normalweaponselection "2" + } + action + { + uiScript "removeweaponselection" "2" + } + } + + itemDef + { + name chosenthrowweapon_hex_background + style WINDOW_STYLE_SHADER + rect 500 358 70 107 + background "gfx/menus/hex_pattern_gray" + forecolor 0 0 1 1 + visible 1 + decoration + } + + itemDef + { + name chosenthrowweapon_icon + group chosenicons + style WINDOW_STYLE_SHADER + rect 500 358 60 60 + background "gfx/hud/w_icon_blaster_pistol_na" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name chosenthrowweapon_button + type ITEM_TYPE_BUTTON + rect 500 358 52 64 + forecolor 1 1 1 1 + visible 0 + desctext @MENUS_CLICKREMOVE + mouseEnter + { + uiScript highlightthrowselection + } + mouseExit + { + uiScript normalthrowselection + } + action + { + uiScript "removethrowweaponselection" + } + } + + + +//---------------------------------------------------------------------------------------------- +// BIG WEAPON ICON +//---------------------------------------------------------------------------------------------- + itemDef + { + name weapon_icon + group bigicons + style WINDOW_STYLE_SHADER + rect 20 200 128 128 + forecolor 1 1 1 1 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// WEAPON DESCRIPTION TEXT +//---------------------------------------------------------------------------------------------- + itemDef + { + name weapon_desc + group none + type ITEM_TYPE_TEXTSCROLL + rect 130 187 490 175 + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + lineHeight 16 + visible 0 + autowrapped + decoration + } + +//---------------------------------------------------------------------------------------------- +// BOTTOM ROW OF BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name backbut + type ITEM_TYPE_BUTTON + rect 30 447 140 24 + text @MENUS_HELP + font 2 + forecolor 1 .682 0 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + desctext @MENUS_HELP_DESC1 + visible 1 + mouseEnter + { + } + mouseExit + { + } + // If we're backing up then we have to reset levels to what they were + action + { + play "sound/interface/menuroam.wav" + + open ingameWpnSelectHelp + } + } + + + // Don't change the name of this, code looks for this name to turn it on and off + itemDef + { + name beginmission + type ITEM_TYPE_BUTTON + rect 400 447 220 24 + text @MENUS_BEGIN_MISSION + font 2 + forecolor 1 .682 0 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + desctext @MENUS_BEGIN_MISSION_DESC + visible 1 + cvartest "weapon_menu" + hidecvar + { + "1" ; "2" ; "3" + } + mouseEnter + { + } + mouseExit + { + } + action + { + play "sound/interface/menuroam.wav" + uiScript recordweapons + exec "vstr tier_mapname" + } + } + + // Don't change the name of this, code looks for this name to turn it on and off + // This is a big hack so that from Academy2 it will only bring up the weapon select menu + // and then go right to HOTH2. + itemDef + { + name beginmission + type ITEM_TYPE_BUTTON + rect 400 447 220 24 + text @MENUS_BEGIN_MISSION + font 2 + forecolor 1 .682 0 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + desctext @MENUS_BEGIN_MISSION_DESC + visible 1 + cvartest "weapon_menu" + showcvar + { + "1" + } + mouseEnter + { + } + mouseExit + { + } + action + { + play "sound/interface/menuroam.wav" + uiScript recordweapons + exec "maptransition hoth2" + } + } + + // Don't change the name of this, code looks for this name to turn it on and off + // This is a big hack so that from Academy4 it will only bring up the weapon select menu + // and then go right to VJUN1. + itemDef + { + name beginmission + type ITEM_TYPE_BUTTON + rect 400 447 220 24 + text @MENUS_BEGIN_MISSION + font 2 + forecolor 1 .682 0 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + desctext @MENUS_BEGIN_MISSION_DESC + visible 1 + cvartest "weapon_menu" + showcvar + { + "2" + } + mouseEnter + { + } + mouseExit + { + } + action + { + play "sound/interface/menuroam.wav" + uiScript recordweapons + exec "maptransition vjun1" + } + } + + // Don't change the name of this, code looks for this name to turn it on and off + // This is a big hack so that from Academy6 it will only bring up the weapon select menu + // and then go right to TASPIN1. + itemDef + { + name beginmission + type ITEM_TYPE_BUTTON + rect 400 447 220 24 + text @MENUS_BEGIN_MISSION + font 2 + forecolor 1 .682 0 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + desctext @MENUS_BEGIN_MISSION_DESC + visible 1 + cvartest "weapon_menu" + showcvar + { + "3" + } + mouseEnter + { + } + mouseExit + { + } + action + { + play "sound/interface/menuroam.wav" + uiScript recordweapons + exec "maptransition taspir1" + } + } + +//---------------------------------------------------------------------------------------------- +// +// SCANLINES +// +//---------------------------------------------------------------------------------------------- + + itemDef + { + name scan + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 640 + background "gfx/menus/scanlines" + forecolor 1 1 1 1 + visible 1 + decoration + } + + } +} + + + + + + + + + + diff --git a/base/ui/demo_ingame.txt b/base/ui/demo_ingame.txt new file mode 100644 index 0000000..74dd7d0 --- /dev/null +++ b/base/ui/demo_ingame.txt @@ -0,0 +1,34 @@ +// menu defs +// +{ + loadMenu { "ui/ingame.menu" } + loadMenu { "ui/ingamesave.menu" } + loadMenu { "ui/ingameload.menu" } + loadMenu { "ui/ingamecontrols.menu" } + loadMenu { "ui/ingamesetup.menu" } + loadMenu { "ui/ingamequit.menu" } + loadMenu { "ui/demo_MissionSelect.menu" } + loadMenu { "ui/demo_ingameMissionSelect.menu" } + loadMenu { "ui/ingameGotoTier.menu" } + loadMenu { "ui/demo_ForceSelect.menu" } + loadMenu { "ui/demo_WpnSelect.menu" } + loadMenu { "ui/ingameForceStatus.menu" } + loadMenu { "ui/ingameForceHelp.menu" } + loadMenu { "ui/ingameWpnSelectHelp.menu" } + + loadMenu { "ui/datapadforcepowers.menu" } + loadMenu { "ui/datapadmission.menu" } + loadMenu { "ui/datapadweapons.menu" } + loadMenu { "ui/datapadmoves.menu" } + + loadMenu { "ui/error.menu" } + loadMenu { "ui/ingamevid_warning.menu" } + loadMenu { "ui/videodriver.menu" } + loadMenu { "ui/saber.menu" } + loadMenu { "ui/saberstyle.menu" } + + loadMenu { "ui/missionfailed.menu" } + loadMenu { "ui/loadscreen.menu" } + + loadMenu { "ui/demo_sellscreen1.menu" } +} diff --git a/base/ui/demo_ingameMissionSelect.menu b/base/ui/demo_ingameMissionSelect.menu new file mode 100644 index 0000000..75e3fab --- /dev/null +++ b/base/ui/demo_ingameMissionSelect.menu @@ -0,0 +1,847 @@ +//---------------------------------------------------------------------------------------------- +// Mission Select Menu +// +// +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "ingameMissionSelect" + fullScreen 1 + rect 0 0 640 480 + visible 1 + focusColor 1 1 1 1 + descX 320 + descY 426 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + disablecolor .5 .5 .5 1 + fadeClamp 1.0 // sets the fadeup alpha + fadeCycle 20 // how often fade happens in milliseconds + fadeAmount 0.1 // amount to adjust alpha per cycle + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/mission_back" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name eyecandy1 + group none + style WINDOW_STYLE_SHADER + rect 17 309 357 153 + background "gfx/menus/mission_bottomleft_grid" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name botlf + group none + style WINDOW_STYLE_SHADER + rect 0 300 80 180 + background "gfx/menus/mission_bottom_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name complete + type ITEM_TYPE_TEXT + rect 170 16 300 32 + text @MENUS_MISSION_COMPLETE + font 2 + forecolor .549 .854 1 1 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 150 + textaligny -1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// Killed, Secrets +//---------------------------------------------------------------------------------------------- + itemDef + { + name killed + group stats + rect 0 52 320 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_ENEMIESKILLED + cvar "ui_stats_enemieskilled" + font 2 + forecolor .549 .854 1 1 + textscale .8 + textalign ITEM_ALIGN_CENTER + textalignx 160 + textaligny -1 + visible 1 + decoration + } + + itemDef + { + name secretsfound + group stats + rect 320 52 320 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_SECRETAREAS + cvar "ui_stats_secretsfound" + font 2 + forecolor .549 .854 1 1 + textscale .8 + textalign ITEM_ALIGN_CENTER + textalignx 160 + textaligny -1 + visible 1 + decoration + cvartest "ui_stats_secretsfound" + hidecvar + { + "0" + } + } + + // Lines above and below lightsaber info + itemDef + { + name border + group none + type ITEM_TYPE_TEXT + rect 70 80 500 2 + forecolor 1 1 1 1 + border 1 + bordercolor .403 .584 .741 1 + visible 1 + decoration + } + + itemDef + { + name border + group none + type ITEM_TYPE_TEXT + rect 70 165 500 2 + forecolor 1 1 1 1 + border 1 + bordercolor .403 .584 .741 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// Saber use data +//---------------------------------------------------------------------------------------------- + itemDef + { + name saberuse + type ITEM_TYPE_TEXT + rect 0 87 640 32 + text @SP_INGAME_LIGHTSABERUSE + font 2 + forecolor .549 .854 1 1 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 320 + textaligny -1 + visible 1 + decoration + } + + itemDef + { + name saber_thrown + rect 20 115 200 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_THROWN + cvar "ui_stats_thrown" + font 2 + forecolor .549 .854 1 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny -1 + visible 1 + decoration + } + + itemDef + { + name saber_blocks + rect 20 140 200 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_BLOCKS + cvar "ui_stats_blocks" + font 2 + forecolor .549 .854 1 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny -1 + visible 1 + decoration + } + + itemDef + { + name leg_attacks + rect 220 115 200 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_LEGATTACKS + cvar "ui_stats_legattacks" + font 2 + forecolor .549 .854 1 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny -1 + visible 1 + decoration + } + + itemDef + { + name arm_attacks + rect 220 140 200 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_ARMATTACKS + cvar "ui_stats_armattacks" + font 2 + forecolor .549 .854 1 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny -1 + visible 1 + decoration + } + + itemDef + { + name body_attacks + rect 420 115 300 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_BODYATTACKS + cvar "ui_stats_bodyattacks" + font 2 + forecolor .549 .854 1 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny -1 + visible 1 + decoration + } + + + itemDef + { + name forceuse + type ITEM_TYPE_TEXT + rect 250 173 150 32 + text @SP_INGAME_FORCEUSE + font 2 + forecolor .549 .854 1 1 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 75 + textaligny -1 + visible 1 + decoration + } + + +//---------------------------------------------------------------------------------------------- +// Lower 1st column of force stats (light side powers) +//---------------------------------------------------------------------------------------------- + itemDef + { + name absorb + rect -20 195 150 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_ABSORB + cvar "ui_stats_absorb" + font 2 + forecolor 0 0 1 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name heal + rect -20 215 160 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_HEAL + cvar "ui_stats_heal" + font 2 + forecolor 0 0 1 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name mindtrick + rect -20 235 160 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_MINDTRICK + cvar "ui_stats_mindtrick" + font 2 + forecolor 0 0 1 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name protection + rect -20 255 160 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_PROTECTION + cvar "ui_stats_protect" + font 2 + forecolor 0 0 1 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// Lower 2nd column of force stats (neutral powers) +//---------------------------------------------------------------------------------------------- + itemDef + { + name jump + rect 130 195 160 32 + type ITEM_TYPE_EDITFIELD + text @MENUS_FORCE_JUMP + cvar "ui_stats_jump" + font 2 + forecolor .631 .631 .815 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name pull + rect 130 215 160 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_PULL + cvar "ui_stats_pull" + font 2 + forecolor .631 .631 .815 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name push + rect 130 235 160 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_PUSH + cvar "ui_stats_push" + font 2 + forecolor .631 .631 .815 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name sense + rect 130 255 160 32 + type ITEM_TYPE_EDITFIELD + text @MENUS_FORCE_SENSE + cvar "ui_stats_sense" + font 2 + forecolor .631 .631 .815 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// Lower 3rd column of force stats (neutral powers) +//---------------------------------------------------------------------------------------------- + itemDef + { + name speed + rect 280 195 150 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_SPEED + cvar "ui_stats_speed" + font 2 + forecolor .631 .631 .815 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name defense + rect 280 215 300 32 + type ITEM_TYPE_EDITFIELD + text @MENUS_DEFENSE + cvar "ui_stats_defense" + font 2 + forecolor .631 .631 .815 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny -1 + visible 1 + decoration + } + + itemDef + { + name offense + rect 280 235 300 32 + type ITEM_TYPE_EDITFIELD + text @MENUS_OFFENSE + cvar "ui_stats_offense" + font 2 + forecolor .631 .631 .815 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny -1 + visible 1 + decoration + } + + itemDef + { + name throw + rect 280 255 300 32 + type ITEM_TYPE_EDITFIELD + text @MENUS_THROW + cvar "ui_stats_throw" + font 2 + forecolor .631 .631 .815 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny -1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// Lower 4th column of force stats (dark powers) +//---------------------------------------------------------------------------------------------- + itemDef + { + name grip + rect 430 195 150 32 + type ITEM_TYPE_EDITFIELD + text @MENUS_FORCE_DRAIN + cvar "ui_stats_drain" + font 2 + forecolor 1 0 0 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name grip + rect 430 215 150 32 + type ITEM_TYPE_EDITFIELD + text @MENUS_FORCE_GRIP + cvar "ui_stats_grip" + font 2 + forecolor 1 0 0 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name lightning + rect 430 235 150 32 + type ITEM_TYPE_EDITFIELD + text @MENUS_FORCE_LIGHTNING + cvar "ui_stats_lightning" + font 2 + forecolor 1 0 0 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name rage + rect 430 255 150 32 + type ITEM_TYPE_EDITFIELD + text @MENUS_RAGE + cvar "ui_stats_rage" + font 2 + forecolor 1 0 0 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// MODELS FOR V-O +//---------------------------------------------------------------------------------------------- + +//---------------------------------------------------------------------------------------------- +// +// THESE HEADS APPEAR WHEN YOU SUCCESSFULLY COMPLETE A TIER LEVEL. +// +// THE SOUNDS ARE IN sounds/tiervictory AND ARE THE NAME OF THE LEVEL. +// IT IS HARDCODED TO LOOK FOR AND PLAY A SOUND MATCHING THE MAP NAME IN THIS DIR. +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name luke + group models + type ITEM_TYPE_MODEL + rect 415 285 149 149 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/luke/model_menu.skin" + asset_model "models/players/luke/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 1 + decoration + cvartest "storyhead" + showcvar + { + "luke" + "t1_surprise" + "t1_sour" + "t3_hevil" + "t1_test" + "t1_rail" + } + } + +//t1_rail has conversation; luke, kyle, luke, kyle, luke. + + itemDef + { + name kyle + group models + type ITEM_TYPE_MODEL + rect 415 288 145 145 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/kyle/model_menu.skin" + asset_model "models/players/kyle/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 1 + decoration + cvartest "storyhead" + showcvar + { + "t1_fatal" + "t1_danger" + "t2_rogue" + "t2_dpred" + "t2_rancor" + "t2_trip" + "t3_rift" + "t3_byss" + "t3_stamp" + "t3_bounty" + "kyle" + } + } + + +//---------------------------------------------------------------------------------------------- +// SUBTITLES FOR TIER VICTORY MESSAGES. +//---------------------------------------------------------------------------------------------- + +//---------------------------------------------------------------------------------------------- +// 1ST TIER +//---------------------------------------------------------------------------------------------- + + itemDef + { + name vic_text_t1_sour + group victorytext + type ITEM_TYPE_TEXT + rect 44 313 304 145 + text @TIERVICTORY_T1_SOUR + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + visible 1 + autowrapped + decoration + cvartest "storyhead" + showcvar + { + "t1_sour" + } + } + + + +//---------------------------------------------------------------------------------------------- +// 3RD TIER +//---------------------------------------------------------------------------------------------- + itemDef + { + name vic_text_t2_rift + group victorytext + type ITEM_TYPE_TEXT + rect 44 313 304 145 + text @TIERVICTORY_T2_TRIP + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + visible 1 + autowrapped + decoration + cvartest "storyhead" + showcvar + { + "t3_rift" + } + } + + + +//---------------------------------------------------------------------------------------------- +// BUTTONS +// +// AFTER THE VICTORY MESSAGE ABOVE, YOU GET A STORY MESSAGE BEFORE CHOOSING NEXT MISSION. +//---------------------------------------------------------------------------------------------- + +//---------------------------------------------------------------------------------------------- +//TIER ONE - INITIATE TIER +//---------------------------------------------------------------------------------------------- + + +//---------------------------------------------------------------------------------------------- +//THIS IS THE DEMO!!!! +//SO THERE IS NO STORY INFO. +//---------------------------------------------------------------------------------------------- + itemDef + { + name victory2 + type ITEM_TYPE_BUTTON + rect 394 440 200 24 + text @MENUS_CONTINUE + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 200 + textaligny -1 + visible 1 + cvartest "tier_storyinfo" + showcvar + { + "0" "1" + } + mouseEnter + { + } + mouseExit + { + } + action + { + hide victory2 + hide victorytext + hide models + close all + open demo_MissionSelect + } + } + + + itemDef + { + name victory2 + type ITEM_TYPE_BUTTON + rect 394 440 200 24 + text @MENUS_CONTINUE + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 200 + textaligny -1 + visible 1 + cvartest "tier_storyinfo" + showcvar + { + "2" + } + mouseEnter + { + } + mouseExit + { + } + action + { + hide victory2 + hide victorytext + stopVoice + hide models + close all + open demo_sellscreen1 + + } + } + + itemDef + { + name kyle2 + group models2 + type ITEM_TYPE_MODEL + rect 415 285 149 149 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/kyle/model_menu.skin" + asset_model "models/players/kyle/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 0 + decoration + } + + + +//---------------------------------------------------------------------------------------------- +// +// SCANLINES OVER WHOLE MENU +// +//---------------------------------------------------------------------------------------------- + + itemDef + { + name static + group none + style WINDOW_STYLE_SHADER + rect 396 314 175 120 + background "gfx/menus/static" + backcolor 1 0 0 .2 + forecolor 1 0 0 .2 + visible 0 + decoration + cvartest "storyhead" + showcvar + { + "t2_trip" + } + } + + itemDef + { + name scan + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 640 + background "gfx/menus/scanlines" + forecolor 1 1 1 1 + visible 1 + decoration + } + + } +} diff --git a/base/ui/demo_menus.txt b/base/ui/demo_menus.txt new file mode 100644 index 0000000..f7b3dad --- /dev/null +++ b/base/ui/demo_menus.txt @@ -0,0 +1,28 @@ +// menu defs +// +{ + loadMenu { "ui/main.menu" } + loadMenu { "ui/newgame.menu" } + loadMenu { "ui/newgame_first.menu" } + loadMenu { "ui/character.menu" } + loadMenu { "ui/demo_saber.menu" } + loadMenu { "ui/loadgame.menu" } + loadMenu { "ui/controls.menu" } + loadMenu { "ui/setup.menu" } + loadMenu { "ui/quit.menu" } + + loadMenu { "ui/error.menu" } + loadMenu { "ui/vid_warning.menu" } + loadMenu { "ui/videodriver.menu" } + loadMenu { "ui/demo_GotoTier.menu" } + loadMenu { "ui/demo_MissionSelect.menu" } + loadMenu { "ui/demo_ForceSelect.menu" } + loadMenu { "ui/ingameForcehelp.menu" } + loadMenu { "ui/demo_WpnSelect.menu" } + loadMenu { "ui/ingameWpnSelectHelp.menu" } + + loadMenu { "ui/demo_sellscreen1.menu" } + loadMenu { "ui/loadscreen.menu" } + + +} diff --git a/base/ui/demo_saber.menu b/base/ui/demo_saber.menu new file mode 100644 index 0000000..76fd90d --- /dev/null +++ b/base/ui/demo_saber.menu @@ -0,0 +1,1512 @@ +//---------------------------------------------------------------------------------------------- +// +// SABER CREATION MENU - called from main menu at the the start of a new game, +// and also when player is allowed to upgrade the fighting style and choose a new saber +// +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "saberMenu" + 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 320 + descY 426 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + setcvar "playersave" "(NULL)" + setcvar "tiers_complete" "(NULL)" + uiScript "resetsabercvardefaults" + uiScript "getsabercvars" + uiScript "updatefightingstylechoices" + uiScript "saber_hilt" + uiScript "saber_color" + uiScript "saber2_hilt" + uiScript "saber2_color" + setitemcolor typebut_single forecolor .65 .65 1 1 + setitemcolor typebut_dual forecolor .65 .65 1 1 + setitemcolor typebut_staff forecolor .65 .65 1 1 + } + + onESC + { + play "sound/interface/esc.wav" + uiScript "updatesabercvars" + uiScript closesabermenu + } + + + //---------------------------------------------------------------------------------------------- + // + // MENU BACKGROUND + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/sabermenu_back" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name box1 + group none + style WINDOW_STYLE_SHADER + rect 4 66 219 165 + background "gfx/menus/sabermenu_box" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name box2top + group none + style WINDOW_STYLE_SHADER + rect 212 66 219 60 + background "gfx/menus/sabermenu_box_top" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name box2middle + group none + style WINDOW_STYLE_SHADER + rect 212 126 219 0 + background "gfx/menus/sabermenu_box_middle" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name box2bottom + group none + style WINDOW_STYLE_SHADER + rect 212 126 219 60 + background "gfx/menus/sabermenu_box_bottom" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name box3top + group none + style WINDOW_STYLE_SHADER + rect 418 66 219 60 + background "gfx/menus/sabermenu_box_top" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name box3middle + group none + style WINDOW_STYLE_SHADER + rect 418 126 219 0 + background "gfx/menus/sabermenu_box_middle" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name box3bottom + group none + style WINDOW_STYLE_SHADER + rect 418 126 219 60 + background "gfx/menus/sabermenu_box_bottom" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name styleboxleft + group none + style WINDOW_STYLE_SHADER + rect 227 183 198 40 + background "gfx/menus/sabermenu_stylebox_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name styleboxright + group none + style WINDOW_STYLE_SHADER + rect 425 183 198 40 + background "gfx/menus/sabermenu_stylebox_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// TOP MAIN MENU BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + // Big button "NEW" + itemDef + { + name newgamebutton + group nbut + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 7 16 130 24 + text @MENUS_NEW + descText @MENUS_START_A_NEW_GAME + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 1 1 1 + visible 1 + + cvarTest saber_menu + showCvar { "0" } + + mouseEnter + { + show button_glow + setitemrect button_glow 0 14 200 30 + } + mouseExit + { + hide button_glow + } + } + + // Big button "LOAD" + itemDef + { + name loadgamebutton + group lbut + text @MENUS_LOAD + descText @MENUS_LOAD_A_SAVED_GAME + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 16 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 130 14 200 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" + uiScript "updatesabercvars" + close all + open loadgameMenu + } + } + + // Big button "CONTROLS" + itemDef + { + name controlsbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 340 16 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name controlsbutton + group cbut + text @MENUS_CONTROLS + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 16 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 310 14 200 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" + uiScript "updatesabercvars" + close all + open controlsMenu + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 502 16 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name setupbutton + group sbut + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 502 16 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 472 14 200 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" + uiScript "updatesabercvars" + close all + open setupMenu + } + } + + + itemDef + { + name left_frame + group lf_fr + style WINDOW_STYLE_SHADER + rect 0 -60 320 160 + background "gfx/menus/menu_boxes_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name right_frame + group rt_fr + style WINDOW_STYLE_SHADER + rect 320 -60 320 160 + background "gfx/menus/menu_boxes_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// SABER MENU specific stuff +//---------------------------------------------------------------------------------------------- + itemDef + { + name title_glow + group none + style WINDOW_STYLE_SHADER + rect 100 48 440 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 1 + decoration + } + + // CREATION title + itemDef + { + name creation_title + group title + style WINDOW_STYLE_EMPTY + text @MENUS_LIGHTSABER_CREATION + rect 100 50 440 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -1 + forecolor .549 .854 1 1 + + visible 1 + decoration + } + + +//---------------------------------------------------------------------------------------------- +// SABER TYPE BUTTONS (standard, dual, two handed) +//---------------------------------------------------------------------------------------------- + itemDef + { + name typebut + group none + text @MENUS_SABER_TYPE + descText @MENUS_SABER_TYPE_DESC + style WINDOW_STYLE_EMPTY + rect 32 96 160 24 + font 3 + textscale 1 + textstyle 1 + textalignx 0 + textaligny 0 + textalign ITEM_ALIGN_LEFT + backcolor 0 0 0 0 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + itemDef + { + name typebut_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + + itemDef + { + name typebut_single + group none + text @MENUS_SINGLESABER + descText @MENUS_SINGLESABER_DESC + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 32 132 160 16 + font 4 + textscale 1 + textstyle 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny 0 + forecolor 1 1 1 1 + visible 1 + + mouseEnter + { + show typebut_glow + setitemrect typebut_glow 5 130 210 20 + } + mouseExit + { + hide typebut_glow + } + action + { + play "sound/interface/choose_saber.wav" + setcvar ui_saber_type "single" + uiScript "saber_type" + setcvar ui_saber "single_1" + setcvar ui_saber2 "" + uiScript "saber_hilt" + uiScript "saber_color" + uiScript "saber2_hilt" + uiScript "saber2_color" + setitemcolor typebut_single forecolor 1 1 1 1 + setitemcolor typebut_dual forecolor .65 .65 1 1 + setitemcolor typebut_staff forecolor .65 .65 1 1 + transition2 box2middle 212 126 219 0 20 5 + transition2 box2bottom 212 126 219 60 20 5 + transition2 box3middle 418 126 219 0 20 5 + transition2 box3bottom 418 126 219 60 20 5 + transition2 styleboxleft 227 183 198 40 20 5 + transition2 styleboxright 425 183 198 40 20 5 + transition2 saber 12 -80 615 615 20 10 + uiScript "updatefightingstylechoices" + } + } + + itemDef + { + name typebut_dual + group none + text @MENUS_DUALSABERS + descText @MENUS_DUALSABERS_DESC + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 32 152 160 16 + font 4 + textscale 1 + textstyle 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny 0 + forecolor 1 1 1 1 + visible 1 + + mouseEnter + { + show typebut_glow + setitemrect typebut_glow 5 150 210 20 + } + mouseExit + { + hide typebut_glow + } + action + { + play "sound/interface/choose_saber.wav" + setcvar ui_saber_type "dual" + uiScript "saber_type" + setcvar ui_saber "single_1" + setcvar ui_saber2 "single_1" + uiScript "saber_hilt" + uiScript "saber_color" + uiScript "saber2_hilt" + uiScript "saber2_color" + setitemcolor typebut_single forecolor .65 .65 1 1 + setitemcolor typebut_dual forecolor 1 1 1 1 + setitemcolor typebut_staff forecolor .65 .65 1 1 + transition2 box2middle 212 126 219 44 20 5 + transition2 box2bottom 212 170 219 60 20 5 + transition2 box3middle 418 126 219 44 20 5 + transition2 box3bottom 418 170 219 60 20 5 + transition2 styleboxleft 425 183 0 40 20 5 + transition2 styleboxright 425 183 0 40 20 5 + transition2 saber 12 -130 615 615 20 5 + uiScript "updatefightingstylechoices" + } + } + + itemDef + { + name typebut_staff + group none + text @MENUS_SABERSTAFF + descText @MENUS_SABERSTAFF_DESC + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 32 172 160 16 + font 4 + textscale 1 + textstyle 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny 0 + forecolor 1 1 1 1 + visible 1 + + mouseEnter + { + show typebut_glow + setitemrect typebut_glow 5 170 210 20 + } + mouseExit + { + hide typebut_glow + } + action + { + play "sound/interface/choose_saber.wav" + setcvar ui_saber_type "staff" + uiScript "saber_type" + setcvar ui_saber "dual_1" + setcvar ui_saber2 "" + uiScript "saber_hilt" + uiScript "saber_color" + uiScript "saber2_hilt" + uiScript "saber2_color" + setitemcolor typebut_single forecolor .65 .65 1 1 + setitemcolor typebut_dual forecolor .65 .65 1 1 + setitemcolor typebut_staff forecolor 1 1 1 1 + transition2 box2middle 212 126 219 0 20 5 + transition2 box2bottom 212 126 219 60 20 5 + transition2 box3middle 418 126 219 0 20 5 + transition2 box3bottom 418 126 219 60 20 5 + transition2 styleboxleft 425 183 0 40 20 5 + transition2 styleboxright 425 183 0 40 20 5 + transition2 saber 12 -80 615 615 20 10 + uiScript "updatefightingstylechoices" + } + } + +//---------------------------------------------------------------------------------------------- +//HILTS +//---------------------------------------------------------------------------------------------- + itemDef + { + name hilttype + group none + text @MENUS_SABER_HILTS + descText @MENUS_SABER_HILTS_DESC + style WINDOW_STYLE_EMPTY + rect 240 96 160 24 + font 3 + textscale 1 + textstyle 1 + textalignx 0 + textaligny 0 + textalign ITEM_ALIGN_LEFT + backcolor 0 0 0 0 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + // HILT BUTTON 1 - SINGLE or DUAL + itemDef + { + name hiltbut_glow + group none + style WINDOW_STYLE_SHADER + rect 210 130 210 20 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name hiltbut + group none + text @MENUS_HILT1 + descText @MENUS_HILT1_DESC + type ITEM_TYPE_MULTI + style WINDOW_STYLE_EMPTY + rect 240 132 160 16 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textstyle 1 + textalignx 0 + textaligny 0 + forecolor .65 .65 1 1 + + cvarTest ui_saber_type + hideCvar { "staff" } + + cvar "ui_saber" + //FIXME: read these from sabers.cfg + *.sab? + cvarStrList + { + @MENUS_SINGLE_HILT1 "single_1" + @MENUS_SINGLE_HILT2 "single_2" + @MENUS_SINGLE_HILT3 "single_3" + @MENUS_SINGLE_HILT4 "single_4" + @MENUS_SINGLE_HILT5 "single_5" + @MENUS_SINGLE_HILT6 "single_6" + @MENUS_SINGLE_HILT7 "single_7" + @MENUS_SINGLE_HILT8 "single_8" + @MENUS_SINGLE_HILT9 "single_9" + } + + visible 1 + + mouseEnter + { + show hiltbut_glow + } + mouseExit + { + hide hiltbut_glow + } + action + { + play "sound/interface/choose_hilt.wav" + uiScript "saber_hilt" + } + } + + // HILT BUTTON 1 - STAVES + itemDef + { + name hiltbut_staves + group none + text @MENUS_HILT1 + descText @MENUS_HILT1_DESC + type ITEM_TYPE_MULTI + style WINDOW_STYLE_EMPTY + rect 240 132 160 16 + font 4 + textscale 1 + textstyle 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny 0 + forecolor .65 .65 1 1 + + cvarTest ui_saber_type + hideCvar { "single"; "dual" } + + cvar "ui_saber" + //FIXME: read these from sabers.cfg + *.sab? + cvarStrList + { + @MENUS_STAFF_HILT1 "dual_1" + @MENUS_STAFF_HILT2 "dual_2" + @MENUS_STAFF_HILT3 "dual_3" + @MENUS_STAFF_HILT4 "dual_4" + @MENUS_STAFF_HILT5 "dual_5" + } + visible 1 + mouseEnter + { + show hiltbut_glow + } + mouseExit + { + hide hiltbut_glow + } + action + { + play "sound/interface/choose_hilt.wav" + uiScript "saber_hilt" + } + } + + // HILT BUTTON 2 - DUAL + itemDef + { + name hiltbut2_glow + group none + style WINDOW_STYLE_SHADER + rect 210 150 210 20 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + decoration + } + + itemDef + { + name hiltbut2 + group none + text @MENUS_HILT2 + descText @MENUS_HILT2_DESC + type ITEM_TYPE_MULTI + style WINDOW_STYLE_EMPTY + rect 240 152 160 16 + font 4 + textscale 1 + textstyle 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny 0 + forecolor .65 .65 1 1 + + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + + cvar "ui_saber2" + //FIXME: read these from sabers.cfg + *.sab? + cvarStrList + { + @MENUS_SINGLE_HILT1 "single_1" + @MENUS_SINGLE_HILT2 "single_2" + @MENUS_SINGLE_HILT3 "single_3" + @MENUS_SINGLE_HILT4 "single_4" + @MENUS_SINGLE_HILT5 "single_5" + @MENUS_SINGLE_HILT6 "single_6" + @MENUS_SINGLE_HILT7 "single_7" + @MENUS_SINGLE_HILT8 "single_8" + @MENUS_SINGLE_HILT9 "single_9" + } + visible 1 + mouseEnter + { + show hiltbut2_glow + } + mouseExit + { + hide hiltbut2_glow + } + action + { + play "sound/interface/choose_hilt.wav" + uiScript "saber2_hilt" + } + } + +//---------------------------------------------------------------------------------------------- +//BLADE COLORS +//---------------------------------------------------------------------------------------------- + itemDef + { + name bladecolor_title + group none + text @MENUS_BLADE_COLOR + descText @MENUS_BLADE_COLOR_DESC + style WINDOW_STYLE_EMPTY + rect 446 96 160 24 + font 3 + textscale 1 + textstyle 1 + textalignx 0 + textaligny 0 + textalign ITEM_ALIGN_LEFT + backcolor 0 0 0 0 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + // COLOR 1 BUTTON + /*itemDef + { + name colorbut_glow + group none + style WINDOW_STYLE_SHADER + rect 446 136 160 16 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name colorbut + group none + text @MENUS_COLOR1 + descText @MENUS_COLOR1_DESC + type ITEM_TYPE_MULTI + style WINDOW_STYLE_EMPTY + rect 446 136 160 16 + font 2 + textscale .8 + textstyle 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -4 + forecolor 1 1 1 1 + visible 1 + + cvar "ui_saber_color" + cvarStrList + { + "red" "red" + "orange" "orange" + "yellow" "yellow" + "green" "green" + "blue" "blue" + "purple" "purple" + } + + mouseEnter + { + show colorbut_glow + } + mouseExit + { + hide colorbut_glow + } + action + { + play "sound/interface/choose_blade.wav" + uiScript "saber_color" + } + }*/ + + itemDef + { + name blueicon + group sabericons + descText @MENUS_COLOR1_DESC + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 446 124 24 24 + background "gfx/menus/saber_icon_blue" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + mouseEnter + { + setitemcolor blueicon forecolor 1 1 1 1 + setitemcolor blueicon bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor blueicon forecolor .75 .75 .75 1 + setitemcolor blueicon bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + //uiScript "saber_color" + setcvar "ui_saber_color" "blue" + } + } + + itemDef + { + name greenicon + group sabericons + descText @MENUS_COLOR1_DESC + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 480 124 24 24 + background "gfx/menus/saber_icon_green" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + mouseEnter + { + setitemcolor greenicon forecolor 1 1 1 1 + setitemcolor greenicon bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor greenicon forecolor .75 .75 .75 1 + setitemcolor greenicon bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + //uiScript "saber_color" + setcvar "ui_saber_color" "green" + } + } + + itemDef + { + name orangeicon + group sabericons + descText @MENUS_COLOR1_DESC + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 514 124 24 24 + background "gfx/menus/saber_icon_orange" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + mouseEnter + { + setitemcolor orangeicon forecolor 1 1 1 1 + setitemcolor orangeicon bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor orangeicon forecolor .75 .75 .75 1 + setitemcolor orangeicon bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + //uiScript "saber_color" + setcvar "ui_saber_color" "orange" + } + } + + itemDef + { + name purpleicon + group sabericons + descText @MENUS_COLOR1_DESC + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 548 124 24 24 + background "gfx/menus/saber_icon_purple" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + mouseEnter + { + setitemcolor purpleicon forecolor 1 1 1 1 + setitemcolor purpleicon bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor purpleicon forecolor .75 .75 .75 1 + setitemcolor purpleicon bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + //uiScript "saber_color" + setcvar "ui_saber_color" "purple" + } + } + + itemDef + { + name yellowicon + group sabericons + descText @MENUS_COLOR1_DESC + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 582 124 24 24 + background "gfx/menus/saber_icon_yellow" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + mouseEnter + { + setitemcolor yellowicon forecolor 1 1 1 1 + setitemcolor yellowicon bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor yellowicon forecolor .75 .75 .75 1 + setitemcolor yellowicon bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + //uiScript "saber_color" + setcvar "ui_saber_color" "yellow" + } + } + +// COLOR 2 BUTTON + itemDef + { + name colorbut2 + group none + text @MENUS_COLOR2 + descText @MENUS_COLOR2_DESC + //type ITEM_TYPE_MULTI + style WINDOW_STYLE_EMPTY + rect 446 152 160 16 + font 2 + textscale .8 + textstyle 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -4 + forecolor .79 .64 .22 1 + visible 1 + decoration + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + + /*cvar "ui_saber2_color" + cvarStrList + { + "red" "red" + "orange" "orange" + "yellow" "yellow" + "green" "green" + "blue" "blue" + "purple" "purple" + } + + mouseEnter + { + show colorbut2_glow + } + mouseExit + { + hide colorbut2_glow + } + action + { + play "sound/interface/choose_blade.wav" + uiScript "saber2_color" + }*/ + } + + itemDef + { + name blueicon2 + group sabericons2 + descText @MENUS_COLOR2_DESC + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 446 170 24 24 + background "gfx/menus/saber_icon_blue" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + mouseEnter + { + setitemcolor blueicon2 forecolor 1 1 1 1 + setitemcolor blueicon2 bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor blueicon2 forecolor .75 .75 .75 1 + setitemcolor blueicon2 bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + //uiScript "saber_color" + setcvar "ui_saber2_color" "blue" + } + } + + itemDef + { + name greenicon2 + group sabericons2 + descText @MENUS_COLOR2_DESC + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 480 170 24 24 + background "gfx/menus/saber_icon_green" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + mouseEnter + { + setitemcolor greenicon2 forecolor 1 1 1 1 + setitemcolor greenicon2 bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor greenicon2 forecolor .75 .75 .75 1 + setitemcolor greenicon2 bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + //uiScript "saber_color" + setcvar "ui_saber2_color" "green" + } + } + + itemDef + { + name orangeicon2 + group sabericons2 + style WINDOW_STYLE_SHADER + descText @MENUS_COLOR2_DESC + type ITEM_TYPE_BUTTON + rect 514 170 24 24 + background "gfx/menus/saber_icon_orange" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + mouseEnter + { + setitemcolor orangeicon2 forecolor 1 1 1 1 + setitemcolor orangeicon2 bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor orangeicon2 forecolor .75 .75 .75 1 + setitemcolor orangeicon2 bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + //uiScript "saber_color" + setcvar "ui_saber2_color" "orange" + } + } + + itemDef + { + name purpleicon2 + group sabericons2 + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + descText @MENUS_COLOR2_DESC + rect 548 170 24 24 + background "gfx/menus/saber_icon_purple" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + mouseEnter + { + setitemcolor purpleicon2 forecolor 1 1 1 1 + setitemcolor purpleicon2 bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor purpleicon2 forecolor .75 .75 .75 1 + setitemcolor purpleicon2 bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + //uiScript "saber_color" + setcvar "ui_saber2_color" "purple" + } + } + + itemDef + { + name yellowicon2 + group sabericons2 + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 582 170 24 24 + descText @MENUS_COLOR2_DESC + background "gfx/menus/saber_icon_yellow" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + mouseEnter + { + setitemcolor yellowicon2 forecolor 1 1 1 1 + setitemcolor yellowicon2 bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor yellowicon2 forecolor .75 .75 .75 1 + setitemcolor yellowicon2 bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + //uiScript "saber_color" + setcvar "ui_saber2_color" "yellow" + } + } + +//---------------------------------------------------------------------------------------------- +// SABER COMBAT STYLES +//---------------------------------------------------------------------------------------------- + itemDef + { + name fightingstylebutton0 + group stylebuttons + text @MENUS_SABERSTYLE + descText @MENUS_FIGHTINGSTYLE + type ITEM_TYPE_MULTI + style WINDOW_STYLE_EMPTY + rect 240 190 380 24 + font 3 + textscale 1 + textalign ITEM_ALIGN_LEFT + textstyle 1 + textalignx 0 + textaligny 0 + forecolor .65 .65 1 1 + cvarTest ui_saber_type + showCvar { "single" } + + cvar "ui_newfightingstyle" + cvarStrList + { + @MENUS_COMBATSTYLEFAST "0" + @MENUS_COMBATSTYLEMEDIUM "1" + @MENUS_COMBATSTYLEHEAVY "2" + } + + visible 1 + + } + + itemDef + { + name fightingstyle_glow + group none + style WINDOW_STYLE_SHADER + rect 240 190 380 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + +//---------------------------------------------------------------------------------------------- +//SABER MODELS +//---------------------------------------------------------------------------------------------- + //FIRST SABER + itemDef + { + name saber + group models + type ITEM_TYPE_MODEL + //rect 12 -130 615 615 + rect 12 -80 615 615 + asset_model "models/weapons2/saber_1/saber_1.glm" + isSaber 1 + model_angle 180 + model_rotation 20 + model_g2mins 0 0 0 + model_g2maxs 20 20 20 + model_fovx 75 + model_fovy 75 + visible 1 + decoration + } + + //SECOND SABER + itemDef + { + name saber2 + group models + type ITEM_TYPE_MODEL + rect 12 -50 615 615 + asset_model "models/weapons2/saber_1/saber_1.glm" + isSaber2 1 + model_angle 180 + model_rotation 20 + model_g2mins 0 0 0 + model_g2maxs 20 20 20 + model_fovx 75 + model_fovy 75 + visible 1 + + cvarTest ui_saber_type + hideCvar { "single" "staff" } + + decoration + } + +//---------------------------------------------------------------------------------------------- +// OTHER MAIN MENU BUTTONS +//---------------------------------------------------------------------------------------------- + // BACK button in lower left corner + itemDef + { + name backbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 59 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name backbutton + group exit + + text @MENUS_BACK + descText @MENUS_BACKUP_ONE_MENU + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 59 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + cvarTest saber_menu + showCvar { "0" } + + mouseEnter + { + show backbutton_glow + } + mouseExit + { + hide backbutton_glow + } + action + { + play "sound/interface/esc.wav" + close all ; + open characterMenu + } + } + // EXIT button in lower left corner + itemDef + { + name exitgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 255 444 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name exitgamebutton + group exit + text @MENUS_EXIT + descText @MENUS_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 255 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + cvarTest saber_menu + showCvar { "0" } + + mouseEnter + { + show exitgamebutton_glow + } + mouseExit + { + hide exitgamebutton_glow + } + action + { + play "sound/weapons/saber/saberoff.mp3" + uiScript "updatesabercvars" + close all + open quitMenu + } + } + + //BEGIN GAME BUTTON + itemDef + { + name begingamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 455 444 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name newgame_begin + group none + text @MENUS_BEGIN_GAME + descText @MENUS_START_JEDI_KNIGHT_III + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 455 444 130 24 + font 3 + textscale 1 + textalignx 65 + textaligny -1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + forecolor 1 .682 0 1 + visible 1 + + cvarTest saber_menu + showCvar { "0" } + + action + { + uiScript "updatesabercvars" + uiScript "updatefightingstyle" + open demo_GotoTier + } + mouseEnter + { + show begingamebutton_glow + } + mouseExit + { + hide begingamebutton_glow + } + } + } +} diff --git a/base/ui/demo_sellscreen1.menu b/base/ui/demo_sellscreen1.menu new file mode 100644 index 0000000..0cc12e5 --- /dev/null +++ b/base/ui/demo_sellscreen1.menu @@ -0,0 +1,98 @@ +//---------------------------------------------------------------------------------------------- +// SELL SCREEN +// +// HEY BUY THIS GAME DUDE +// +//---------------------------------------------------------------------------------------------- +{ + + menuDef + { + name "demo_sellscreen1" + fullScreen 1 + rect 0 0 640 480 + visible 1 + focusColor 1 1 1 1 + + onOpen + { + setfocus next_button + } + + onEsc + { + play "sound/interface/button1.wav" + uiScript Quit + } + + + itemDef + { + name screen1 + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "menu/sellscreen1" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name screen2 + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "menu/sellscreen2" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name next_button + type ITEM_TYPE_BUTTON + rect 0 0 640 480 + forecolor 1 1 1 1 + + action + { + play "sound/interface/transition" + hide screen1 + show screen2 + show quit_button + } + } + + itemDef + { + name quit_button + type ITEM_TYPE_BUTTON + rect 0 0 640 480 + forecolor 1 1 1 1 + visible 0 + + action + { + play "sound/interface/button1" + uiScript Quit + } + } + + + } + +} + + + + + + + + + + + diff --git a/base/ui/error.menu b/base/ui/error.menu new file mode 100644 index 0000000..6b95c05 --- /dev/null +++ b/base/ui/error.menu @@ -0,0 +1,128 @@ +//-------------------------------------------------------------- +// +// ERROR MENU +// +// Displays error messages +// +//-------------------------------------------------------------- +{ + menuDef + { + name "error_popmenu" + visible 0 + fullscreen 0 + rect 158 80 320 320 + focusColor 1 1 1 1 + style WINDOW_STYLE_FILLED + border 1 + popup + outOfBoundsClick + + onClose + { + uiScript clearError + } + + onOpen + { + } + + onESC + { + close error_popmenu ; + open mainMenu + } + + itemDef + { + name window + rect 10 15 300 320 + style WINDOW_STYLE_FILLED + backcolor .015 .015 .229 1 + forecolor 0 0 0 1 + border 1 + bordercolor .988 .984 .121 1 + bordersize 5 + visible 1 + decoration + } + + itemDef + { + name errorinfo + rect 0 50 320 20 + text @MENUS_ERROR + textalign ITEM_ALIGN_CENTER + textstyle 6 + textscale 1 + textalignx 160 + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name errorinfo + rect 60 80 200 270 + type ITEM_TYPE_TEXT + style WINDOW_STYLE_FILLED + textstyle 3 + autowrapped + cvar "com_errorMessage" + textalign ITEM_ALIGN_CENTER + textalignx 90 + textscale 1 + forecolor 1 1 1 1 + visible 1 + decoration + } + +//-------------------------------------------------------------------------------- +// BUTTON +//-------------------------------------------------------------------------------- + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 118 295 85 26 + background "gfx/menus/menu_buttonback" forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name exit + group grpControlbutton + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 138 295 45 26 + text @MENUS_OKAY + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 22 + forecolor 1 .682 0 1 + visible 1 + + action + { + play "sound/misc/nomenu.wav" + close error_popmenu + open mainMenu + } + + mouseEnter + { + show button_glow + } + mouseExit + { + hide button_glow + } + } + } +} + + diff --git a/base/ui/hud.menu b/base/ui/hud.menu new file mode 100644 index 0000000..7ebc74e --- /dev/null +++ b/base/ui/hud.menu @@ -0,0 +1,1069 @@ +// In Game HUD +// +// defines from ui_shared.h + +assetGlobalDef +{ + bigFont "fonts/reallybigfont" 20 // font + small2Font "arialnb" 14 +} + +{ + menuDef + { + name "mainhud" + fullScreen 0 // MENU_FALSE + 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 320 + descY 434 + descColor .96 .933 .40 1 // Focus color for text and items + } + + // LEFT SIDE HUD - contains the armor and health + // + menuDef + { + name "lefthud" + fullScreen 0 // MENU_FALSE + rect 0 368 112 112 // Size and position of the menu + visible 1 // Visible on open + + // Metal Frame + itemDef + { + name "frame" + forecolor 1 1 1 1 + background "gfx/hud/hudleft" + rect 0 0 112 112 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, char size, char height + } + + + // Health tics + itemDef + { + name health_tic1 + background "gfx/hud/health_tic_1" + forecolor 1 1 1 1 + rect 20 24 28 28 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, graphic size, graphic height + } + + itemDef + { + name health_tic2 + background "gfx/hud/health_tic_2" + forecolor 1 1 1 1 + rect 38 33 28 28 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, graphic size, graphic height + } + + itemDef + { + name health_tic3 + background "gfx/hud/health_tic_3" + forecolor 1 1 1 1 + rect 52 47 28 28 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, graphic size, graphic height + } + + itemDef + { + name health_tic4 + background "gfx/hud/health_tic_4" + forecolor 1 1 1 1 + rect 60 65 28 28 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, graphic size, graphic height + } + + // Armor tics + itemDef + { + name armor_tic1 + background "gfx/hud/armor_tic_1" + forecolor 1 1 1 1 + rect 9 -6 56 56 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, graphic size, graphic height + } + + itemDef + { + name armor_tic2 + background "gfx/hud/armor_tic_2" + forecolor 1 1 1 1 + rect 34 3 56 56 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, graphic size, graphic height + } + + itemDef + { + name armor_tic3 + background "gfx/hud/armor_tic_3" + forecolor 1 1 1 1 + rect 54 24 56 56 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, graphic size, graphic height + } + + itemDef + { + name armor_tic4 + background "gfx/hud/armor_tic_4" + forecolor 1 1 1 1 + rect 63 48 56 56 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, graphic size, graphic height + } + + // Scan line +// itemDef +// { +// name scanline +// group none +// background "gfx/hud/hudleft_scanline" +// forecolor 1 1 1 1 +// rect 23 8 80 80 // (these positions are relative to the initial position of the menu) +// // X pos, Y pos, char size, char height +// visible 1 +// } + + // Numeric counter for armor + itemDef + { + name armoramount + group none + forecolor 0.0 .613 .097 1 + rect 85 98 6 12 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, char size, char height + visible 1 + } + + // Numeric counter for health + itemDef + { + name healthamount + group none + forecolor .835 .015 .015 1 + rect 59 98 6 12 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, char size, char height + } + + // Vehicle HUD (Swoop bike) + itemDef + { + name vehicleHUD + group none + rect 0 -145 60 120 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, char size, char height + } + + // Vehicle HUD (Swoop bike) + itemDef + { + name vehicleHUDbackground + group none + rect 20 -135 30 90 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, char size, char height + } + + // Vehicle HUD (Swoop bike) + itemDef + { + name vehicleHUDhealthbar + group none + rect 20 15 30 74 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, char size, char height + } + + } + + // RIGHT SIDE HUD - contains force and ammo amounts + // + menuDef + { + name "righthud" + fullScreen 0 // MENU_FALSE + rect 640 368 -112 112 // Size and position of the menu + visible 1 // Visible on open + focusColor 1 1 1 1 // Focus color for text and items + appearanceIncrement 75 // In miliseconds + descX 320 + descY 434 + descColor .96 .933 .40 1 // Focus color for text and items + + // Scan line +// itemDef +// { +// name scanline +// group none +// background "gfx/hud/hudleft_scanline" +// forecolor 1 1 1 1 +// rect -23 8 -80 80 // (these positions are relative to the initial position of the menu) +// // X pos, Y pos, char size, char height +// } + + // Metal Frame + itemDef + { + name "frame" + forecolor 1 1 1 1 + background "gfx/hud/hudleft" + rect 0 0 -112 112 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, char size, char height + } + + + // Ammo tics + itemDef + { + name ammo_tic1 + background "gfx/hud/ammo_tic_1" + forecolor 1 1 1 1 + rect -48 25 28 28 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, graphic size, graphic height + } + + itemDef + { + name ammo_tic2 + background "gfx/hud/ammo_tic_2" + forecolor 1 1 1 1 + rect -66 33 28 28 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, graphic size, graphic height + } + + itemDef + { + name ammo_tic3 + background "gfx/hud/ammo_tic_3" + forecolor 1 1 1 1 + rect -80 47 28 28 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, graphic size, graphic height + } + + itemDef + { + name ammo_tic4 + background "gfx/hud/ammo_tic_4" + forecolor 1 1 1 1 + rect -88 65 28 28 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, graphic size, graphic height + } + + // Force tics + itemDef + { + name force_tic1 + background "gfx/hud/force_tic_1" + forecolor 1 1 1 1 + rect -65 -5 56 56 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, graphic size, graphic height + } + + itemDef + { + name force_tic2 + background "gfx/hud/force_tic_2" + forecolor 1 1 1 1 + rect -89 4 56 56 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, graphic size, graphic height + } + + itemDef + { + name force_tic3 + background "gfx/hud/force_tic_3" + forecolor 1 1 1 1 + rect -109 24 56 56 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, graphic size, graphic height + } + + itemDef + { + name force_tic4 + background "gfx/hud/force_tic_4" + forecolor 1 1 1 1 + rect -119 48 56 56 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, graphic size, graphic height + } + + + // Numeric counter for force + itemDef + { + name forceamount + group none + rect -109 98 6 12 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, char size, char height + forecolor .359 .524 .722 1 + } + + // Numeric counter for ammo + itemDef + { + name ammoamount + group none + rect -83 98 6 12 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, char size, char height + forecolor 1.0 .658 .062 1 + } + + // When ammo is infinite (used in MP) + itemDef + { + name ammoinfinite + group none + rect -75 87 6 12 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, char size, char height + forecolor 1.0 .658 .062 1 + } + + + // Saber style graphics + itemDef + { + name saberstyle_strong + background "gfx/hud/saber_strong" + forecolor 1 1 1 1 + rect -49 24 26 26 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, char size, char height + } + + itemDef + { + name saberstyle_medium + background "gfx/hud/saber_med" + forecolor 1 1 1 1 + rect -70 43 26 26 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, char size, char height + } + + itemDef + { + name saberstyle_fast + background "gfx/hud/saber_fast" + forecolor 1 1 1 1 + rect -85 69 24 24 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, char size, char height + } + + // Tells current score of game + itemDef + { + name score_line + forecolor 1 1 1 1 + rect -150 92 6 12 // (these positions are relative to the initial position of the menu) + // X pos, Y pos, char size, char height + } + + } + + menuDef + { + name "weaponselecthud" + fullScreen 0 // MENU_FALSE + rect 30 410 0 0 // Size and position of the menu + visible 1 // Visible on open + focusColor 1 1 1 1 // Focus color for text and items + } + + menuDef + { + name "forceselecthud" + fullScreen 0 // MENU_FALSE + rect 30 410 0 0 // Size and position of the menu + visible 1 // Visible on open + focusColor 1 1 1 1 // Focus color for text and items + } + + menuDef + { + name "inventoryselecthud" + fullScreen 0 // MENU_FALSE + rect 30 410 0 0 // Size and position of the menu + visible 1 // Visible on open + focusColor 1 1 1 1 // Focus color for text and items + } + + + // Used as background for the Weapon, Force Powers, and Inventory HUDs + menuDef + { + name "iconbackground" + fullScreen 0 // MENU_FALSE + rect 90 440 460 60 // Size and position of the menu + visible 1 // Visible on open + focusColor 1 1 1 1 // Focus color for text and items + } + + ////////////////////////////////////////// + // Taun Taun + ////////////////////////////////////////// + menuDef + { + name "tauntaunhud" + rect 70 400 640 80 + focusColor 1 1 1 1 + + ////////////////////////////////////////// + // Vehicle Speed meter + ////////////////////////////////////////// + itemDef + { + name "speedbackground" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_grid2" + rect 215 55 115 16 + } + + itemDef + { + name "speed_tic1" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_turbo_tick" + rect 216 55 14 16 + } + + itemDef + { + name "speed_tic2" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_turbo_tick" + rect 228 55 14 16 + } + + itemDef + { + name "speed_tic3" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_turbo_tick" + rect 240 55 14 16 + } + + itemDef + { + name "speed_tic4" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_turbo_tick" + rect 252 55 14 16 + } + + itemDef + { + name "speed_tic5" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_turbo_tick" + rect 264 55 14 16 + } + } + + ////////////////////////////////////////// + // ATST Specific + ////////////////////////////////////////// + menuDef + { + name "atsthud" + fullScreen 0 // MENU_FALSE + rect 0 368 112 112 // Size and position of the menu + + ////////////////////////////////////////// + // Vehicle Speed meter + ////////////////////////////////////////// + itemDef + { + name "background" + forecolor 1 1 1 1 + background "gfx/menus/radar/circle_base" + rect 5 10 100 100 + } + + itemDef + { + name "outer_frame" + forecolor 1 1 1 1 + background "gfx/menus/radar/circle_base_frame" + rect 5 10 100 100 + } + + itemDef + { + name "left_pic" + forecolor 1 1 1 1 + background "gfx/menus/radar/atst_dam" + rect 10 20 90 80 + } + } + + menuDef + { + name "swoopvehiclehud" + rect 0 400 640 80 + focusColor 1 1 1 1 + + itemDef + { + name "leftframe" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_frame" + rect 200 30 16 64 + } + + itemDef + { + name "rightframe" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_frame" + rect 436 30 -16 64 + } + + ////////////////////////////////////////// + // Vehicle Shield meter + ////////////////////////////////////////// + itemDef + { + name "shieldbackground" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_grid" + rect 190 32 256 16 + } + + itemDef + { + name "shield_tic1" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_health_tick" + rect 203 32 31 16 + } + + itemDef + { + name "shield_tic2" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_health_tick" + rect 221 32 31 16 + } + + itemDef + { + name "shield_tic3" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_health_tick" + rect 239 32 31 16 + } + + itemDef + { + name "shield_tic4" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_health_tick" + rect 257 32 31 16 + } + + itemDef + { + name "shield_tic5" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_health_tick" + rect 275 32 31 16 + } + + itemDef + { + name "shield_tic6" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_health_tick" + rect 293 32 31 16 + } + + itemDef + { + name "shield_tic7" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_health_tick" + rect 311 32 31 16 + } + + itemDef + { + name "shield_tic8" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_health_tick" + rect 329 32 31 16 + } + + itemDef + { + name "shield_tic9" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_health_tick" + rect 347 32 31 16 + } + + itemDef + { + name "shield_tic10" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_health_tick" + rect 365 32 31 16 + } + + itemDef + { + name "shield_tic11" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_health_tick" + rect 383 32 31 16 + } + + itemDef + { + name "shield_tic12" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_health_tick" + rect 401 32 31 16 + } + + + ////////////////////////////////////////// + // Vehicle Linked Weapons Indicator + ////////////////////////////////////////// + itemDef + { + name "weaponslinked" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_grid2" + rect 426 56 3 14 + } + + ////////////////////////////////////////// + // Vehicle Turbo Recharge meter + ////////////////////////////////////////// + itemDef + { + name "turborecharge" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_grid2" + rect 207 70 3 -14 + } + + ////////////////////////////////////////// + // Vehicle Speed meter + ////////////////////////////////////////// + itemDef + { + name "speedbackground" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_grid2" + rect 215 55 115 16 + } + + itemDef + { + name "speed_tic1" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_turbo_tick" + rect 216 55 14 16 + } + + itemDef + { + name "speed_tic2" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_turbo_tick" + rect 228 55 14 16 + } + + itemDef + { + name "speed_tic3" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_turbo_tick" + rect 240 55 14 16 + } + + itemDef + { + name "speed_tic4" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_turbo_tick" + rect 252 55 14 16 + } + + itemDef + { + name "speed_tic5" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_turbo_tick" + rect 264 55 14 16 + } + + ////////////////////////////////////////// + // Vehicle Armor meter + ////////////////////////////////////////// + itemDef + { + name "armorbackground" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_grid2" + rect 286 55 115 16 + } + + itemDef + { + name "armor_tic1" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_armor_tick" + rect 287 55 14 16 + } + + itemDef + { + name "armor_tic2" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_armor_tick" + rect 299 55 14 16 + } + + itemDef + { + name "armor_tic3" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_armor_tick" + rect 311 55 14 16 + } + + itemDef + { + name "armor_tic4" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_armor_tick" + rect 323 55 14 16 + } + + itemDef + { + name "armor_tic5" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_armor_tick" + rect 335 55 14 16 + } + + ////////////////////////////////////////// + // Vehicle Ammo meter (normal) + ////////////////////////////////////////// + itemDef + { + name "ammobackground" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_grid2" + rect 357 55 115 16 + } + + itemDef + { + name "ammo_tic1" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_ammo_tick" + rect 358 55 14 16 + } + + itemDef + { + name "ammo_tic2" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_ammo_tick" + rect 370 55 14 16 + } + + itemDef + { + name "ammo_tic3" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_ammo_tick" + rect 382 55 14 16 + } + + itemDef + { + name "ammo_tic4" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_ammo_tick" + rect 394 55 14 16 + } + + itemDef + { + name "ammo_tic5" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_ammo_tick" + rect 406 55 14 16 + } + + ////////////////////////////////////////// + // Vehicle Ammo Upper meter (for vehicles with two type of ammo) + ////////////////////////////////////////// + itemDef + { + name "ammoupperbackground" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_grid2" + rect 357 55 115 10 + } + + itemDef + { + name "ammoupper_tic1" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_ammo_tick" + rect 358 55 14 10 + } + + itemDef + { + name "ammoupper_tic2" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_ammo_tick" + rect 370 55 14 10 + } + + itemDef + { + name "ammoupper_tic3" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_ammo_tick" + rect 382 55 14 10 + } + + itemDef + { + name "ammoupper_tic4" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_ammo_tick" + rect 394 55 14 10 + } + + itemDef + { + name "ammoupper_tic5" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_ammo_tick" + rect 406 55 14 10 + } + + ////////////////////////////////////////// + // Vehicle Ammo Lower meter (for vehicles with two type of ammo) + ////////////////////////////////////////// + itemDef + { + name "ammolowerbackground" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_grid2" + rect 357 67 115 10 + } + + itemDef + { + name "ammolower_tic1" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_ammo_tick" + rect 358 67 14 10 + } + + itemDef + { + name "ammolower_tic2" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_ammo_tick" + rect 370 67 14 10 + } + + itemDef + { + name "ammolower_tic3" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_ammo_tick" + rect 382 67 14 10 + } + + itemDef + { + name "ammolower_tic4" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_ammo_tick" + rect 394 67 14 10 + } + + itemDef + { + name "ammolower_tic5" + forecolor 1 1 1 1 + background "gfx/hud/vehicle_ammo_tick" + rect 406 67 14 10 + } + } + + menuDef + { + name "mp_timer" + rect 560 160 60 30 + focusColor 1 1 1 1 + + itemDef + { + name "frame" + forecolor 1 1 1 1 + background "gfx/mp/count" + rect 0 15 80 40 + } + + itemDef + { + name "deathtimer" + forecolor 0 .6 0 1 + rect 15 22 64 32 + } + + itemDef + { + name "timer" + forecolor 0 .6 0 1 + rect 15 22 64 32 + } + } + + menuDef + { + name "vehicledamagehud" + fullScreen 0 // MENU_FALSE + rect 0 368 112 112 // Size and position of the menu + visible 1 // Visible on open + + itemDef + { + name "background" + forecolor 1 1 1 1 + background "gfx/menus/radar/circle_base" + rect 5 10 100 100 + } + + itemDef + { + name "outer_frame" + forecolor 1 1 1 1 + background "gfx/menus/radar/circle_base_frame" + rect 5 10 100 100 + } + + itemDef + { + name "shields" + forecolor 1 1 1 1 + background "gfx/menus/radar/circle_base_shield" + rect 5 10 100 100 + } + + itemDef + { + name "vehicle_front" + forecolor 1 1 1 1 + // background is determined by vehicle + background "gfx/menus/radar/circle_base_shield" + rect 5 10 100 100 + } + + itemDef + { + name "vehicle_back" + forecolor 1 1 1 1 + // background is determined by vehicle + background "gfx/menus/radar/circle_base_shield" + rect 5 10 100 100 + } + + itemDef + { + name "vehicle_left" + forecolor 1 1 1 1 + // background is determined by vehicle + background "gfx/menus/radar/circle_base_shield" + rect 5 10 100 100 + } + + itemDef + { + name "vehicle_right" + forecolor 1 1 1 1 + // background is determined by vehicle + background "gfx/menus/radar/circle_base_shield" + rect 5 10 100 100 + } + } + + menuDef + { + name "enemyvehicledamagehud" + fullScreen 0 // MENU_FALSE + rect 530 368 112 112 // Size and position of the menu + visible 1 // Visible on open + + itemDef + { + name "background" + forecolor 1 1 1 1 + background "gfx/menus/radar/circle_base" + rect 5 10 100 100 + } + + itemDef + { + name "outer_frame" + forecolor 1 1 1 1 + background "gfx/menus/radar/circle_base_frame" + rect 5 10 100 100 + } + + itemDef + { + name "shields" + forecolor 1 1 1 1 + background "gfx/menus/radar/circle_base_shield" + rect 5 10 100 100 + } + + itemDef + { + name "vehicle_front" + forecolor 1 1 1 1 + // background is determined by vehicle + background "gfx/menus/radar/circle_base_shield" + rect 5 10 100 100 + } + + itemDef + { + name "vehicle_back" + forecolor 1 1 1 1 + // background is determined by vehicle + background "gfx/menus/radar/circle_base_shield" + rect 5 10 100 100 + } + + itemDef + { + name "vehicle_left" + forecolor 1 1 1 1 + // background is determined by vehicle + background "gfx/menus/radar/circle_base_shield" + rect 5 10 100 100 + } + + itemDef + { + name "vehicle_right" + forecolor 1 1 1 1 + // background is determined by vehicle + background "gfx/menus/radar/circle_base_shield" + rect 5 10 100 100 + } + } +} \ No newline at end of file diff --git a/base/ui/ingame.menu b/base/ui/ingame.menu new file mode 100644 index 0000000..812cdac --- /dev/null +++ b/base/ui/ingame.menu @@ -0,0 +1,473 @@ +//---------------------------------------------------------------------------------------------- +// INGAME MAIN MENU +// +// Ingame main menu +// +//---------------------------------------------------------------------------------------------- +{ + assetGlobalDef + { + smallFont "aurabesh" 18 + mediumFont "ergoec" 18 + bigFont "anewhope" 20 + smallFont "arialnb" 18 + + cursor "cursor" + itemFocusSound "sound/interface/menuroam.wav" + itemFocusForce "fffx/interface/menuroam" + + forceChosenSound "sound/effects/hologram_on" + forceUnchosenSound "sound/effects/hologram_off" + + datapadmoveRollSound "sound/player/roll1" + datapadmoveJumpSound "sound/weapons/force/jump" + + datapadmoveSaberSound1 "sound/weapons/saber/saberhup1" + datapadmoveSaberSound2 "sound/weapons/saber/saberhup2" + datapadmoveSaberSound3 "sound/weapons/saber/saberhup3" + datapadmoveSaberSound4 "sound/weapons/saber/saberhup4" + datapadmoveSaberSound5 "sound/weapons/saber/saberhup5" + datapadmoveSaberSound6 "sound/weapons/saber/saberhup6" + + fadeClamp 1.0 // sets the fadeup alpha + fadeCycle 1 // how often fade happens in milliseconds + fadeAmount 0.1 // amount to adjust alpha per cycle + shadowColor 0.1 0.1 0.1 0.0 // shadow color + focuscolor 0 0 1 1 + precacheSound + { + "sound/interface/choose_color.wav" + "sound/interface/choose_head.wav" + "sound/interface/choose_torso.wav" + "sound/interface/choose_saber.wav" + "sound/interface/choose_hilt.wav" + "sound/interface/choose_blade.wav" + "sound/interface/transition.wav" + "sound/interface/esc.wav" + "sound/interface/sub_select.wav" + } + } + + + menuDef + { + name "ingameMainMenu" + 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 320 + descY 426 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + setfocus resume ; + } + + onESC + { + play "sound/interface/esc.wav" + uiScript closeingame // Close menu + } + + //---------------------------------------------------------------------------------------------- + // + // MENU BACKGROUND + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 107 8 428 112 + background "gfx/menus/jediacademy" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name left_frame + group lf_fr + style WINDOW_STYLE_SHADER + rect 0 50 320 160 + background "gfx/menus/menu_boxes_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name right_frame + group rt_fr + style WINDOW_STYLE_SHADER + rect 320 50 320 160 + background "gfx/menus/menu_boxes_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + + //---------------------------------------------------------------------------------------------- + // + // TOP MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + + + // Big button "SAVE" + itemDef + { + name savegamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 7 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name savegamebutton + group nbut + text @MENUS_SAVE + descText @MENUS_SAVE_CURRENT_GAME + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 7 126 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show savegamebutton_glow + } + mouseExit + { + hide savegamebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open ingamesaveMenu + } + } + + + // Big button "LOAD" + itemDef + { + name loadgamebutton_glow + group none + style WINDOW_STYLE_SHADER + rect 170 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name loadgamebutton + group lbut + text @MENUS_LOAD + descText @MENUS_LOAD_A_SAVED_GAME + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 126 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show loadgamebutton_glow + } + mouseExit + { + hide loadgamebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open ingameloadMenu + } + } + + // Big button "CONTROLS" + itemDef + { + name controlsbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 340 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name controlsbutton + group cbut + text @MENUS_CONTROLS + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show controlsbutton_glow + } + mouseExit + { + hide controlsbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open ingamecontrolsMenu ; + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 502 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name setupbutton + group sbut + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 502 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show setupbutton_glow + } + mouseExit + { + hide setupbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open ingamesetupMenu ; + } + } + + //---------------------------------------------------------------------------------------------- + // + // OTHER MAIN MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + // EXIT button in lower left corner + itemDef + { + name exitgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 255 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name exitgamebutton + group exit + text @MENUS_EXIT + descText @MENUS_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 255 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show exitgamebutton_glow + } + mouseExit + { + hide exitgamebutton_glow + } + action + { + play "sound/weapons/saber/saberoff.mp3"; + close all ; + open ingamequitMenu + } + } + + // RESUME button in the lower right corner + itemDef + { + name resumebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 455 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 455 444 130 24 + text @MENUS_RESUME + descText @MENUS_RESUME_CURRENT_GAME + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + mouseEnter + { + show resumebutton_glow + } + mouseExit + { + hide resumebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + uiScript closeingame // Close menu + } + } + + + } +} + + + + + + + + + + + diff --git a/base/ui/ingame.txt b/base/ui/ingame.txt new file mode 100644 index 0000000..e143dec --- /dev/null +++ b/base/ui/ingame.txt @@ -0,0 +1,32 @@ +// menu defs +// +{ + loadMenu { "ui/ingame.menu" } + loadMenu { "ui/ingamesave.menu" } + loadMenu { "ui/ingameload.menu" } + loadMenu { "ui/ingamecontrols.menu" } + loadMenu { "ui/ingamesetup.menu" } + loadMenu { "ui/ingamequit.menu" } + loadMenu { "ui/ingameMissionSelect.menu" } + loadMenu { "ui/ingameGotoTier.menu" } + loadMenu { "ui/ingameForceSelect.menu" } + loadMenu { "ui/ingameWpnSelect.menu" } + loadMenu { "ui/ingameForceStatus.menu" } + loadMenu { "ui/ingameForceHelp.menu" } + loadMenu { "ui/ingameWpnSelectHelp.menu" } + + loadMenu { "ui/datapadforcepowers.menu" } + loadMenu { "ui/datapadmission.menu" } + loadMenu { "ui/datapadweapons.menu" } + loadMenu { "ui/datapadmoves.menu" } + + loadMenu { "ui/error.menu" } + loadMenu { "ui/ingamevid_warning.menu" } + loadMenu { "ui/videodriver.menu" } + loadMenu { "ui/saber.menu" } + loadMenu { "ui/saberstyle.menu" } + + loadMenu { "ui/missionfailed.menu" } + loadMenu { "ui/loadscreen.menu" } + +} diff --git a/base/ui/ingameForceHelp.menu b/base/ui/ingameForceHelp.menu new file mode 100644 index 0000000..f72b1ce --- /dev/null +++ b/base/ui/ingameForceHelp.menu @@ -0,0 +1,127 @@ +//-------------------------------------------------------------- +// +// ERROR MENU +// +// Displays error messages +// +//-------------------------------------------------------------- +{ + menuDef + { + name "ingameForceHelp" + visible 0 + fullscreen 0 + rect 140 70 350 375 + focusColor 1 1 1 1 + style WINDOW_STYLE_FILLED + border 1 + popup + outOfBoundsClick + descX 240 + descY 425 + descScale 1 + descColor 1 .682 0 .8 + + itemDef + { + name window + rect 0 0 350 375 + style WINDOW_STYLE_FILLED + backcolor .015 .015 .229 1 + forecolor 0 0 0 1 + border 1 + bordercolor .388 .396 .925 1 + bordersize 5 + visible 1 + decoration + } + + itemDef + { + name instruction_title + group inst_stuff + type ITEM_TYPE_TEXT + rect 0 25 350 18 + text @MENUS_HELP + font 2 + forecolor .549 .854 1 1 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 175 + visible 1 + decoration + } + + itemDef + { + name instruction_text + group inst_stuff + type ITEM_TYPE_TEXTSCROLL + rect 25 80 300 250 + text @MENUS_FORCE_UPGRADE_HELP + font 4 + forecolor 1 1 1 1 + textscale 1.0 + textalign ITEM_ALIGN_LEFT + visible 1 + decoration autowrapped + textaligny 0 + lineHeight 13 + + } + + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + +//-------------------------------------------------------------------------------- +// BUTTON +//-------------------------------------------------------------------------------- + itemDef + { + name inst_done_button + group inst_stuff + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 0 315 350 18 + text @MENUS_OKAY + descText @MENUS_HELP_DESC + font 3 + textscale 1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 175 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 230 384 170 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/misc/nomenu.wav" + close ingameForceHelp +// open ingameForceSelect + } + } + + + } +} + + diff --git a/base/ui/ingameForceSelect.menu b/base/ui/ingameForceSelect.menu new file mode 100644 index 0000000..f4f1a46 --- /dev/null +++ b/base/ui/ingameForceSelect.menu @@ -0,0 +1,2571 @@ +//---------------------------------------------------------------------------------------------- +// +// Force Select Menu +// +// The player is allowed to allocate one point to any of the given force powers +// +// +// Be sure not to change the names of the fields that end with +// _hexpic +// _fbutton +// _level1desc +// _level2desc +// _level3desc +// +// Also don't change +// allocate_text +// allocated_text +// +// +// The uiScript initallocforcepower sets the rank background for a force power +// +// The uiScript showforceleveldesc show the appropriate level description for that force power. +// +// The uiScript affectforcepowerlevel upgrades a force power rank. It +// also greys out or ungreys the icons. +// +//---------------------------------------------------------------------------------------------- +{ + + menuDef + { + name "ingameForceSelect" + fullScreen 1 + rect 0 0 640 480 + visible 1 + focusColor 1 1 1 1 + descX 320 + descY 424 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + descTextStyle 2 + fadeClamp 1.0 // sets the fadeup alpha + fadeCycle 25 // how often fade happens in milliseconds + fadeAmount 0.05 // amount to adjust alpha per cycle + onOpen + { + stopVoice + + // Update force power pics to current force power levels + + // Light powers + uiScript "initallocforcepower" "absorb" + uiScript "initallocforcepower" "heal" + uiScript "initallocforcepower" "mindtrick" + uiScript "initallocforcepower" "protect" + + // Core powers + uiScript "initallocforcepower" "jump" + uiScript "initallocforcepower" "pull" + uiScript "initallocforcepower" "push" + uiScript "initallocforcepower" "sense" + uiScript "initallocforcepower" "speed" + uiScript "initallocforcepower" "sabdef" + uiScript "initallocforcepower" "saboff" + uiScript "initallocforcepower" "sabthrow" + + // Dark powers + uiScript "initallocforcepower" "drain" + uiScript "initallocforcepower" "grip" + uiScript "initallocforcepower" "lightning" + uiScript "initallocforcepower" "rage" + + uiScript "forcehelpactive" + + } + onESC + { + play "sound/interface/menuroam.wav" + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/forcemenu_back" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// TEXT - Allocate Force power point +//---------------------------------------------------------------------------------------------- + // Allocate force point + itemDef + { + name allocate_text + type ITEM_TYPE_TEXT + rect 0 5 640 18 + text @MENUS_ALLOCATE_FP + font 2 + forecolor 1 1 1 1 + textscale .80 + textalign ITEM_ALIGN_CENTER + textalignx 320 + visible 1 + decoration + } + + // Force point allocated + itemDef + { + name allocated_text + type ITEM_TYPE_TEXT + rect 0 5 640 18 + text @MENUS_ALLOCATED_FP + font 2 + forecolor 1 1 1 1 + textscale .80 + textalign ITEM_ALIGN_CENTER + textalignx 320 + visible 0 + decoration + } + + // Core Power message + itemDef + { + name allocated_text_core + type ITEM_TYPE_TEXT + rect 0 5 640 18 + text @MENUS_COREPOWER_DESC + font 2 + forecolor 1 1 1 1 + textscale .80 + textalign ITEM_ALIGN_CENTER + textalignx 320 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// So these will precache +//---------------------------------------------------------------------------------------------- + itemDef + { + name precache + group none + style WINDOW_STYLE_SHADER + rect 76 41 70 49 + background "gfx/menus/hex_pattern_1" + forecolor .65 .65 .65 1 + visible 0 + decoration + } + itemDef + { + name precache + group none + style WINDOW_STYLE_SHADER + rect 76 41 70 49 + background "gfx/menus/hex_pattern_2" + forecolor .65 .65 .65 1 + visible 0 + decoration + } + itemDef + { + name precache + group none + style WINDOW_STYLE_SHADER + rect 76 41 70 49 + background "gfx/menus/hex_pattern_3" + forecolor .65 .65 .65 1 + visible 0 + decoration + } + itemDef + { + name precache + group none + style WINDOW_STYLE_SHADER + rect 76 41 70 49 + background "gfx/menus/hex_pattern_1_gold" + forecolor .65 .65 .65 1 + visible 0 + decoration + } + itemDef + { + name precache + group none + style WINDOW_STYLE_SHADER + rect 76 41 70 49 + background "gfx/menus/hex_pattern_2_gold" + forecolor .65 .65 .65 1 + visible 0 + decoration + } + itemDef + { + name precache + group none + style WINDOW_STYLE_SHADER + rect 76 41 70 49 + background "gfx/menus/hex_pattern_3_gold" + forecolor .65 .65 .65 1 + visible 0 + decoration + } + + +//---------------------------------------------------------------------------------------------- +// DEALLOCATION BUTTON - this button is hidden until a power is chosen then this +// becomes active so the power can be deallocated +//---------------------------------------------------------------------------------------------- + itemDef + { + name deallocate_fbutton + group none + type ITEM_TYPE_BUTTON + rect 0 0 0 0 + forecolor 1 1 1 1 + visible 0 + // Decrement force power + action + { + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + + uiScript "decrementcurrentforcepower" + + hide deallocate_fbutton + + show force_button + show force_icon + show force_desc + +// setfocus absorb_fbutton + + } + } + +//---------------------------------------------------------------------------------------------- +// ABSORB BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive) + itemDef + { + name absorb_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 76 41 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name absorb_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 33 30 64 64 + background "gfx/mp/NEW_f_icon_lt_absorb" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name absorb_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 33 41 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_ADDFP + // Show force power description + mouseEnter + { + setitemcolor absorb_iconpic forecolor 1 1 1 1 + setitemcolor absorb_hexpic forecolor 1 1 1 1 + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + } + + // Because this gets focus when the menu first opens. + onFocus + { + setitemcolor absorb_iconpic forecolor 1 1 1 1 + setitemcolor absorb_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "absorb" + + setitembackground force_icon "gfx/mp/NEW_f_icon_lt_absorb" + setitemtext force_desc @SP_INGAME_FORCE_ABSORB_DESC + } + + // Increment force power + action + { // hide descriptions and let affectforcepowerlevel determine the corect one + hide leveltext + uiScript "affectforcepowerlevel" "absorb" + hide force_button + + setitemrect deallocate_fbutton 33 41 115 46 + show deallocate_fbutton + + setitemcolor absorb_iconpic forecolor 1 1 1 1 + setitemcolor absorb_hexpic forecolor 1 1 1 1 + } + } + +//---------------------------------------------------------------------------------------------- +// HEAL BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive) + itemDef + { + name heal_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 76 95 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name heal_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 33 85 64 64 + background "gfx/mp/NEW_f_icon_lt_heal" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name heal_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 33 95 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_ADDFP + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor heal_iconpic forecolor 1 1 1 1 + setitemcolor heal_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "heal" + + setitembackground force_icon "gfx/mp/NEW_f_icon_lt_heal" + setitemtext force_desc @SP_INGAME_FORCE_HEAL_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor heal_iconpic forecolor .65 .65 .65 1 + setitemcolor heal_hexpic forecolor .65 .65 .65 1 + } + + // Increment force power + action + { // hide descriptions and let affectforcepowerlevel determine the corect one + hide leveltext + uiScript "affectforcepowerlevel" "heal" + hide force_button + + setitemrect deallocate_fbutton 33 95 115 46 + show deallocate_fbutton + + setitemcolor heal_iconpic forecolor 1 1 1 1 + setitemcolor heal_hexpic forecolor 1 1 1 1 + } + } + +//---------------------------------------------------------------------------------------------- +// MINDTRICK BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive) + itemDef + { + name mindtrick_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 76 149 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name mindtrick_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 33 141 64 64 + background "gfx/mp/NEW_f_icon_lt_mind_trick" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name mindtrick_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 33 149 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_ADDFP + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor mindtrick_iconpic forecolor 1 1 1 1 + setitemcolor mindtrick_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "mindtrick" + + setitembackground force_icon "gfx/mp/NEW_f_icon_lt_mind_trick" + setitemtext force_desc @SP_INGAME_FORCE_MIND_TRICK_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor mindtrick_iconpic forecolor .65 .65 .65 1 + setitemcolor mindtrick_hexpic forecolor .65 .65 .65 1 + } + + // Increment force power + action + { // hide descriptions and let affectforcepowerlevel determine the corect one + hide leveltext + uiScript "affectforcepowerlevel" "mindtrick" + + hide force_button + + setitemrect deallocate_fbutton 33 149 115 46 + show deallocate_fbutton + + setitemcolor mindtrick_iconpic forecolor 1 1 1 1 + setitemcolor mindtrick_hexpic forecolor 1 1 1 1 + } + } + +//---------------------------------------------------------------------------------------------- +// PROTECT BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive) + itemDef + { + name protect_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 76 205 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name protect_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 33 196 64 64 + background "gfx/mp/NEW_f_icon_lt_protect" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name protect_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 33 205 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_ADDFP + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor protect_iconpic forecolor 1 1 1 1 + setitemcolor protect_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "protect" + + setitembackground force_icon "gfx/mp/NEW_f_icon_lt_protect" + setitemtext force_desc @SP_INGAME_FORCE_PROTECT_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor protect_iconpic forecolor .65 .65 .65 1 + setitemcolor protect_hexpic forecolor .65 .65 .65 1 + } + + // Increment force power + action + { // hide descriptions and let affectforcepowerlevel determine the corect one + hide leveltext + uiScript "affectforcepowerlevel" "protect" + + hide force_button + + setitemrect deallocate_fbutton 33 205 115 46 + show deallocate_fbutton + + setitemcolor protect_iconpic forecolor 1 1 1 1 + setitemcolor protect_hexpic forecolor 1 1 1 1 + } + } + +//---------------------------------------------------------------------------------------------- +// JUMP BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive) + itemDef + { + name jump_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 225 41 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name jump_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 184 30 64 64 + background "gfx/mp/NEW_f_icon_jump" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name jump_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 184 41 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_COREPOWER_DESC + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor jump_iconpic forecolor 1 1 1 1 + setitemcolor jump_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "jump" + + setitembackground force_icon "gfx/mp/NEW_f_icon_jump" + setitemtext force_desc @SP_INGAME_FORCE_JUMP_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor jump_iconpic forecolor .65 .65 .65 1 + setitemcolor jump_hexpic forecolor .65 .65 .65 1 + + } + } + +//---------------------------------------------------------------------------------------------- +// PULL BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive) + itemDef + { + name pull_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 225 95 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name pull_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 184 85 64 64 + background "gfx/mp/NEW_f_icon_pull" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name pull_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 184 95 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_COREPOWER_DESC + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor pull_iconpic forecolor 1 1 1 1 + setitemcolor pull_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "pull" + + setitembackground force_icon "gfx/mp/NEW_f_icon_pull" + setitemtext force_desc @SP_INGAME_FORCE_PULL_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor pull_iconpic forecolor .65 .65 .65 1 + setitemcolor pull_hexpic forecolor .65 .65 .65 1 + } + } + +//---------------------------------------------------------------------------------------------- +// PUSH BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive) + itemDef + { + name push_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 225 149 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name push_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 184 141 64 64 + background "gfx/mp/NEW_f_icon_push" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name push_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 184 149 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_COREPOWER_DESC + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor push_iconpic forecolor 1 1 1 1 + setitemcolor push_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "push" + + setitembackground force_icon "gfx/mp/NEW_f_icon_push" + setitemtext force_desc @SP_INGAME_FORCE_PUSH_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor push_iconpic forecolor .65 .65 .65 1 + setitemcolor push_hexpic forecolor .65 .65 .65 1 + } + } + +//---------------------------------------------------------------------------------------------- +// SENSE BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive) + itemDef + { + name sense_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 225 205 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name sense_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 184 196 64 64 + background "gfx/mp/NEW_f_icon_sight" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name sense_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 184 205 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_COREPOWER_DESC + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor sense_iconpic forecolor 1 1 1 1 + setitemcolor sense_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "sense" + + setitembackground force_icon "gfx/mp/NEW_f_icon_sight" + setitemtext force_desc @SP_INGAME_FORCE_SENSE_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor sense_iconpic forecolor .65 .65 .65 1 + setitemcolor sense_hexpic forecolor .65 .65 .65 1 + } + } + +//---------------------------------------------------------------------------------------------- +// SPEED BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive) + itemDef + { + name speed_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 380 41 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name speed_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 336 30 64 64 + background "gfx/mp/NEW_f_icon_speed" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name speed_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 336 41 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_COREPOWER_DESC + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor speed_iconpic forecolor 1 1 1 1 + setitemcolor speed_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "speed" + + setitembackground force_icon "gfx/mp/NEW_f_icon_speed" + setitemtext force_desc @SP_INGAME_FORCE_SPEED_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor speed_iconpic forecolor .65 .65 .65 1 + setitemcolor speed_hexpic forecolor .65 .65 .65 1 + } + } + +//---------------------------------------------------------------------------------------------- +// SABER DEFENSIVE BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive + itemDef + { + name sabdef_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 380 95 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name sabdef_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 336 85 64 64 + background "gfx/mp/NEW_f_icon_saber_defend" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name sabdef_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 336 95 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_COREPOWER_DESC + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor sabdef_iconpic forecolor 1 1 1 1 + setitemcolor sabdef_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "sabdef" + + setitembackground force_icon "gfx/mp/NEW_f_icon_saber_defend" + setitemtext force_desc @SP_INGAME_FORCE_SABER_DEFENSE_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor sabdef_iconpic forecolor .65 .65 .65 1 + setitemcolor sabdef_hexpic forecolor .65 .65 .65 1 + } + } + +//---------------------------------------------------------------------------------------------- +// SABER OFFENSIVE BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive + itemDef + { + name saboff_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 380 149 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name saboff_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 336 141 64 64 + background "gfx/mp/NEW_f_icon_saber_attack" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name saboff_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 336 149 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_COREPOWER_DESC + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor saboff_iconpic forecolor 1 1 1 1 + setitemcolor saboff_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "saboff" + + setitembackground force_icon "gfx/mp/NEW_f_icon_saber_attack" + setitemtext force_desc @SP_INGAME_FORCE_SABER_OFFENSE_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor saboff_iconpic forecolor .65 .65 .65 1 + setitemcolor saboff_hexpic forecolor .65 .65 .65 1 + } + } + +//---------------------------------------------------------------------------------------------- +// SABER THROW BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive + itemDef + { + name sabthrow_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 380 205 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .5 .5 .5 1 + visible 1 + decoration + } + + itemDef + { + name sabthrow_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 336 196 64 64 + background "gfx/mp/NEW_f_icon_saber_throw" + forecolor .5 .5 .5 1 + visible 1 + decoration + } + + itemDef + { + name sabthrow_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 336 205 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_COREPOWER_DESC + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor sabthrow_iconpic forecolor 1 1 1 1 + setitemcolor sabthrow_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "sabthrow" + + setitembackground force_icon "gfx/mp/NEW_f_icon_saber_throw" + setitemtext force_desc @SP_INGAME_FORCE_SABER_THROW_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor sabthrow_iconpic forecolor .5 .5 .5 1 + setitemcolor sabthrow_hexpic forecolor .5 .5 .5 1 + } + } + +//---------------------------------------------------------------------------------------------- +// DRAIN BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive + itemDef + { + name drain_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 527 41 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .5 .5 .5 1 + visible 1 + decoration + } + + itemDef + { + name drain_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 484 30 64 64 + background "gfx/mp/NEW_f_icon_dk_drain" + forecolor .5 .5 .5 1 + visible 1 + decoration + } + + itemDef + { + name drain_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 484 41 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_ADDFP + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor drain_iconpic forecolor 1 1 1 1 + setitemcolor drain_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "drain" + + setitembackground force_icon "gfx/mp/NEW_f_icon_dk_drain" + setitemtext force_desc @SP_INGAME_FORCE_DRAIN_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor drain_iconpic forecolor .5 .5 .5 1 + setitemcolor drain_hexpic forecolor .5 .5 .5 1 + } + + // Increment force power + action + { // hide descriptions and let affectforcepowerlevel determine the corect one + hide leveltext + uiScript "affectforcepowerlevel" "drain" + + hide force_button + + setitemrect deallocate_fbutton 484 41 115 46 + show deallocate_fbutton + + setitemcolor drain_iconpic forecolor 1 1 1 1 + setitemcolor drain_hexpic forecolor 1 1 1 1 + } + } + +//---------------------------------------------------------------------------------------------- +// GRIP BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive + itemDef + { + name grip_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 527 95 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name grip_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 484 85 64 64 + background "gfx/mp/NEW_f_icon_dk_grip" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name grip_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 484 95 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_ADDFP + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor grip_iconpic forecolor 1 1 1 1 + setitemcolor grip_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "grip" + + setitembackground force_icon "gfx/mp/NEW_f_icon_dk_grip" + setitemtext force_desc @SP_INGAME_FORCE_GRIP_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor grip_iconpic forecolor .65 .65 .65 1 + setitemcolor grip_hexpic forecolor .65 .65 .65 1 + } + + // Increment force power + action + { // hide descriptions and let affectforcepowerlevel determine the corect one + hide leveltext + uiScript "affectforcepowerlevel" "grip" + + hide force_button + + setitemrect deallocate_fbutton 484 95 115 46 + show deallocate_fbutton + + setitemcolor grip_iconpic forecolor 1 1 1 1 + setitemcolor grip_hexpic forecolor 1 1 1 1 + } + } + +//---------------------------------------------------------------------------------------------- +// LIGHTNING BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive + itemDef + { + name lightning_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 527 149 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name lightning_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 484 141 64 64 + background "gfx/mp/NEW_f_icon_dk_l1" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name lightning_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 484 149 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_ADDFP + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor lightning_iconpic forecolor 1 1 1 1 + setitemcolor lightning_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "lightning" + + setitembackground force_icon "gfx/mp/NEW_f_icon_dk_l1" + setitemtext force_desc @SP_INGAME_FORCE_LIGHTNING_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor lightning_iconpic forecolor .65 .65 .65 1 + setitemcolor lightning_hexpic forecolor .65 .65 .65 1 + } + + // Increment force power + action + { // hide descriptions and let affectforcepowerlevel determine the corect one + hide leveltext + uiScript "affectforcepowerlevel" "lightning" + + hide force_button + + setitemrect deallocate_fbutton 484 149 115 46 + show deallocate_fbutton + + setitemcolor lightning_iconpic forecolor 1 1 1 1 + setitemcolor lightning_hexpic forecolor 1 1 1 1 + } + } + +//---------------------------------------------------------------------------------------------- +// RAGE BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive + itemDef + { + name rage_hexpic + group hexpic + style WINDOW_STYLE_SHADER + rect 527 205 70 49 + background "gfx/menus/hex_pattern_0" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name rage_iconpic + group iconpic + style WINDOW_STYLE_SHADER + rect 484 196 64 64 + background "gfx/mp/NEW_f_icon_dk_rage" + forecolor .65 .65 .65 1 + visible 1 + decoration + } + + itemDef + { + name rage_fbutton + group force_button + type ITEM_TYPE_BUTTON + rect 484 205 115 46 + forecolor 1 1 1 1 + visible 1 + desctext @MENUS_ADDFP + // Show force power description + mouseEnter + { // Because on opening, absorb is given focus + setitemcolor absorb_iconpic forecolor .65 .65 .65 1 + setitemcolor absorb_hexpic forecolor .65 .65 .65 1 + + setitemcolor rage_iconpic forecolor 1 1 1 1 + setitemcolor rage_hexpic forecolor 1 1 1 1 + + // Hide all force level descrptions and have script determine the level of this one + hide leveltext + uiScript "showforceleveldesc" "rage" + + setitembackground force_icon "gfx/mp/NEW_f_icon_dk_rage" + setitemtext force_desc @SP_INGAME_FORCE_RAGE_DESC + + show force_icon + show force_desc + } + mouseExit + { + setitemcolor rage_iconpic forecolor .65 .65 .65 1 + setitemcolor rage_hexpic forecolor .65 .65 .65 1 + } + + // Increment/decrement force power + action + { // hide descriptions and let affectforcepowerlevel determine the corect one + hide leveltext + uiScript "affectforcepowerlevel" "rage" + + hide force_button + + setitemrect deallocate_fbutton 484 205 115 46 + show deallocate_fbutton + + setitemcolor rage_iconpic forecolor 1 1 1 1 + setitemcolor rage_hexpic forecolor 1 1 1 1 + + } + } +//---------------------------------------------------------------------------------------------- +// BIG FORCE ICON AND FORCE DESCRIPTION +//---------------------------------------------------------------------------------------------- + + itemDef + { + name force_icon + group bigicons + style WINDOW_STYLE_SHADER + rect 30 265 128 128 + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name force_desc + rect 157 264 460 100 + font 4 + type ITEM_TYPE_TEXTSCROLL + text "This is the text" + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + lineHeight 14 + decoration + } + +//---------------------------------------------------------------------------------------------- +// ABSORB LEVEL DESCRIPTION +//---------------------------------------------------------------------------------------------- + // Level 1 description + itemDef + { + name absorb_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_ABSORB_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + // Level 2 description + itemDef + { + name absorb_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_ABSORB_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + // Level 3 description + itemDef + { + name absorb_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_ABSORB_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// HEAL DESCRIPTION +//---------------------------------------------------------------------------------------------- + itemDef + { + name heal_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_HEAL_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name heal_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_HEAL_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name heal_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_HEAL_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// MIND TRICK DESCRIPTION +//---------------------------------------------------------------------------------------------- + itemDef + { + name mindtrick_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_MIND_TRICK_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name mindtrick_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_MIND_TRICK_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name mindtrick_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_MIND_TRICK_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// PROTECT DESCRIPTION +//---------------------------------------------------------------------------------------------- + itemDef + { + name protect_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_PROTECT_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name protect_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_PROTECT_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name protect_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_PROTECT_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// +// JUMP DESCRIPTION +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name jump_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_JUMP_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name jump_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_JUMP_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name jump_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_JUMP_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// PULL DESCRIPTION +//---------------------------------------------------------------------------------------------- + itemDef + { + name pull_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_PULL_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name pull_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_PULL_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name pull_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_PULL_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// PUSH DESCRIPTION +//---------------------------------------------------------------------------------------------- + itemDef + { + name push_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_PUSH_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name push_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_PUSH_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name push_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_PUSH_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// SENSE DESCRIPTION +//---------------------------------------------------------------------------------------------- + + itemDef + { + name big_sense + group bigicons + style WINDOW_STYLE_SHADER + rect 30 265 128 128 + background "gfx/mp/NEW_f_icon_sight" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name sense_text + group mainpowertext + rect 157 264 460 120 + text @SP_INGAME_FORCE_SENSE_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + decoration + } + + itemDef + { + name sense_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SENSE_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name sense_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SENSE_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name sense_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SENSE_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// SPEED DESCRIPTION +//---------------------------------------------------------------------------------------------- + itemDef + { + name speed_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SPEED_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name speed_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SPEED_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name speed_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SPEED_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// SABER DEFENSE DESCRIPTION +//---------------------------------------------------------------------------------------------- + itemDef + { + name sabdef_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SABER_DEFENSE_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name sabdef_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SABER_DEFENSE_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name sabdef_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SABER_DEFENSE_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// SABER OFFENSE DESCRIPTION +//---------------------------------------------------------------------------------------------- + itemDef + { + name saboff_text + group mainpowertext + rect 157 264 460 120 + text @SP_INGAME_FORCE_SABER_OFFENSE_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + decoration + } + + itemDef + { + name saboff_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SABER_OFFENSE_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name saboff_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SABER_OFFENSE_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name saboff_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SABER_OFFENSE_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// SABER THROW DESCRIPTION +//---------------------------------------------------------------------------------------------- + itemDef + { + name sabthrow_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SABER_THROW_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name sabthrow_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SABER_THROW_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name sabthrow_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_SABER_THROW_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// DRAIN DESCRIPTION +//---------------------------------------------------------------------------------------------- + itemDef + { + name drain_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_DRAIN_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name drain_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_DRAIN_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name drain_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_DRAIN_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// GRIP DESCRIPTION +//---------------------------------------------------------------------------------------------- + itemDef + { + name grip_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_GRIP_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name grip_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_GRIP_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name grip_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_GRIP_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// LIGHTNING DESCRIPTION +//---------------------------------------------------------------------------------------------- + itemDef + { + name lightning_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_LIGHTNING_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name lightning_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_LIGHTNING_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name lightning_level3desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_LIGHTNING_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + +//---------------------------------------------------------------------------------------------- +// RAGE DESCRIPTION +//---------------------------------------------------------------------------------------------- + itemDef + { + name rage_level1desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_RAGE_LVL1_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name rage_level2desc + group leveltext + rect 157 364 460 60 + text @SP_INGAME_FORCE_RAGE_LVL2_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + itemDef + { + name rage_level3desc + group leveltext + rect 157 384 460 40 + text @SP_INGAME_FORCE_RAGE_LVL3_DESC + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 0 + autowrapped + type ITEM_TYPE_TEXTSCROLL + lineHeight 13 + } + + +//---------------------------------------------------------------------------------------------- +// BOTTOM ROW OF BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name backbut + type ITEM_TYPE_BUTTON + rect 30 447 140 24 + text @MENUS_HELP + font 2 + forecolor 1 .682 0 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + desctext @MENUS_HELP_DESC1 + visible 1 + mouseEnter + { + } + mouseExit + { + } + + // If we're backing up then we have to reset levels to what they were + action + { + play "sound/interface/menuroam.wav" + open ingameForceHelp + } + } + +/* Commented out until I can get the screens all linked up + itemDef + { + name backbut + type ITEM_TYPE_BUTTON + rect 30 447 140 24 + text "BACK" + font 2 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + desctext "Choose a different mission." + visible 1 + mouseEnter + { + } + mouseExit + { + } + + // If we're backing up then we have to reset levels to what they were + action + { + uiScript "resetforcelevels" + play "sound/interface/menuroam.wav" + close all + open ingameMissionSelect1 + } + } +*/ + +/* Commented out until I can get the screens all linked up + itemDef + { + name forcebut + type ITEM_TYPE_BUTTON + rect 183 447 0 0 + text "Force Powers" + font 2 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + visible 1 + mouseEnter + { + } + mouseExit + { + } + action + { + play "sound/interface/menuroam.wav" + close all + } + } +*/ + + // do not change the name of this because it's made active/inactive in code + itemDef + { + name weaponbutton + type ITEM_TYPE_BUTTON + rect 336 447 140 24 + text @MENUS_WEAPONS + font 2 + forecolor 1 .682 0 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + desctext @MENUS_CHOOSEWEAPONS + visible 1 + mouseEnter + { + } + mouseExit + { + } + action + { + play "sound/interface/menuroam.wav" + close all + open ingameWpnSelect + } + } + +/* Commented out until I can get the screens all linked up + itemDef + { + name nextbut + type ITEM_TYPE_BUTTON + rect 489 447 120 24 + text "Begin" + font 2 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + desctext "Start mission." + visible 1 + mouseEnter + { + } + mouseExit + { + } + action + { + play "sound/interface/menuroam.wav" + close all + open ingameWpnSelect + } + } +*/ + +//---------------------------------------------------------------------------------------------- +// +// SCANLINES +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name scan + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 640 + background "gfx/menus/scanlines" + forecolor 1 1 1 1 + visible 1 + decoration + } + + } +} + + + + + + + + + + diff --git a/base/ui/ingameForceStatus.menu b/base/ui/ingameForceStatus.menu new file mode 100644 index 0000000..14ede30 --- /dev/null +++ b/base/ui/ingameForceStatus.menu @@ -0,0 +1,654 @@ +//---------------------------------------------------------------------------------------------- +// Force Status Menu +// +// The screen where after calculating the amount of light side force powers you allocated, +// Luke or Kyle will congratulate or warn you, depending on which way you're going. +// +// 90 % - 100 : very light +// 60 % - 89 : semi-light +// 41 % - 59 : neutral +// 11 % - 40 : semi-dark +// 0% - 10 : very dark +// +//---------------------------------------------------------------------------------------------- +{ + + menuDef + { + name "ingameForceStatus" + fullScreen 1 + rect 0 0 640 480 + visible 1 + focusColor 1 1 1 1 + descX 320 + descY 424 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + disablecolor .5 .5 .5 1 + fadeClamp 1.0 // sets the fadeup alpha + fadeCycle 25 // how often fade happens in milliseconds + fadeAmount 0.05 // amount to adjust alpha per cycle + onOpen + { + // Compare light/dark force powers allocated + uiScript "calcforcestatus" + + uiScript "initallocforcepower" "absorb" + uiScript "initallocforcepower" "heal" + uiScript "initallocforcepower" "mindtrick" + uiScript "initallocforcepower" "protect" + + uiScript "initallocforcepower" "drain" + uiScript "initallocforcepower" "grip" + uiScript "initallocforcepower" "lightning" + uiScript "initallocforcepower" "rage" + + } + onESC + { + } + + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/mission_back" + forecolor 1 1 1 1 + visible 1 + decoration + } + + // Allocate force point + itemDef + { + name allocate_text + type ITEM_TYPE_TEXT + rect 0 30 640 18 + text @MENUS_CUR_FORCE_ALLOC + font 2 + forecolor .549 .854 1 1 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 320 + visible 1 + decoration + } + + +//---------------------------------------------------------------------------------------------- +// Light Force Icons +//---------------------------------------------------------------------------------------------- + //---------------------------------- + // Absorb Icon + //---------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive) + itemDef + { + name absorb_hexpic + group lighthexes + style WINDOW_STYLE_SHADER + rect 96 91 70 49 + background "gfx/menus/hex_pattern_0" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name absorb_iconpic + style WINDOW_STYLE_SHADER + rect 53 80 64 64 + background "gfx/mp/NEW_f_icon_lt_absorb" + forecolor 1 1 1 1 + visible 1 + decoration + } + + //---------------------------------- + // Heal Icon + //---------------------------------- + itemDef + { + name heal_hexpic + group lighthexes + style WINDOW_STYLE_SHADER + rect 236 91 70 49 + background "gfx/menus/hex_pattern_0" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name heal_iconpic + style WINDOW_STYLE_SHADER + rect 193 80 64 64 + background "gfx/mp/NEW_f_icon_lt_heal" + forecolor 1 1 1 1 + visible 1 + decoration + } + + //---------------------------------- + // Mindtrick Icon + //---------------------------------- + itemDef + { + name mindtrick_hexpic + group lighthexes + style WINDOW_STYLE_SHADER + rect 376 91 70 49 + background "gfx/menus/hex_pattern_0" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name mindtrick_iconpic + style WINDOW_STYLE_SHADER + rect 333 80 64 64 + background "gfx/mp/NEW_f_icon_lt_mind_trick" + forecolor 1 1 1 1 + visible 1 + decoration + } + + //---------------------------------- + // Protect Icon + //---------------------------------- + itemDef + { + name protect_hexpic + group lighthexes + style WINDOW_STYLE_SHADER + rect 516 91 70 49 + background "gfx/menus/hex_pattern_0" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name protect_iconpic + style WINDOW_STYLE_SHADER + rect 473 80 64 64 + background "gfx/mp/NEW_f_icon_lt_protect" + forecolor 1 1 1 1 + visible 1 + decoration + } + + +//---------------------------------------------------------------------------------------------- +// Dark Force Icons +//---------------------------------------------------------------------------------------------- + + //---------------------------------- + // Drain Icon + //---------------------------------- + // The hex powerlevel graphic (this has to print first because it's additive + itemDef + { + name drain_hexpic + group darkhexes + style WINDOW_STYLE_SHADER + rect 96 191 70 49 + background "gfx/menus/hex_pattern_0" + forecolor 1 .7 .7 1 + visible 1 + decoration + } + + itemDef + { + name drain_iconpic + style WINDOW_STYLE_SHADER + rect 53 182 64 64 + background "gfx/mp/NEW_f_icon_dk_drain" + forecolor 1 1 1 1 + visible 1 + decoration + } + + + //---------------------------------- + // Grip Icon + //---------------------------------- + itemDef + { + name grip_hexpic + group darkhexes + style WINDOW_STYLE_SHADER + rect 236 191 70 49 + background "gfx/menus/hex_pattern_0" + forecolor 1 .7 .7 1 + visible 1 + decoration + } + + itemDef + { + name grip_iconpic + style WINDOW_STYLE_SHADER + rect 193 182 64 64 + background "gfx/mp/NEW_f_icon_dk_grip" + forecolor 1 1 1 1 + visible 1 + decoration + } + + //---------------------------------- + // Lighting Icon + //---------------------------------- + itemDef + { + name lightning_hexpic + group darkhexes + style WINDOW_STYLE_SHADER + rect 376 191 70 49 + background "gfx/menus/hex_pattern_0" + forecolor 1 .7 .7 1 + visible 1 + decoration + } + + itemDef + { + name lightning_iconpic + style WINDOW_STYLE_SHADER + rect 333 182 64 64 + background "gfx/mp/NEW_f_icon_dk_l1" + forecolor 1 1 1 1 + visible 1 + decoration + } + + //---------------------------------- + // Rage Icon + //---------------------------------- + itemDef + { + name rage_hexpic + group darkhexes + style WINDOW_STYLE_SHADER + rect 516 191 70 49 + background "gfx/menus/hex_pattern_0" + forecolor 1 .7 .7 1 + visible 1 + decoration + } + + itemDef + { + name rage_iconpic + style WINDOW_STYLE_SHADER + rect 473 182 64 64 + background "gfx/mp/NEW_f_icon_dk_rage" + forecolor .75 .75 .75 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// MODELS FOR V-O +//---------------------------------------------------------------------------------------------- + itemDef + { + name luke_face + group models + type ITEM_TYPE_MODEL + rect 415 285 149 149 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/luke/model_menu.skin" + asset_model "models/players/luke/model.glm" + model_angle 180 + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 1 + decoration + cvarTest ui_forcestatus + showCvar { "vll"; "sll"; "ntl"; "sdl"; "vdl" } + + } + + itemDef + { + name kyle_face + group models + type ITEM_TYPE_MODEL + rect 415 288 145 145 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/kyle/model_menu.skin" + asset_model "models/players/kyle/model.glm" + model_angle 180 + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 1 + cvarTest ui_forcestatus + showCvar { "vlk"; "slk"; "ntk"; "sdk"; "vdk" } + + decoration + } + +//---------------------------------------------------- +// LUKE SUBTITLES +//---------------------------------------------------- + itemDef + { + name luke_very_light + type ITEM_TYPE_TEXT + rect 52 316 288 124 + text @MISC_MLUK_03 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + autowrapped + cvarTest ui_forcestatus + showCvar { "vll" } + } + + itemDef + { + name luke_semi_light + type ITEM_TYPE_TEXT + rect 52 316 288 124 + text @MISC_MLUK_04 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + autowrapped + cvarTest ui_forcestatus + showCvar { "sll" } + } + + itemDef + { + name luke_neutral + type ITEM_TYPE_TEXT + rect 52 316 288 124 + text @MISC_MLUK_05 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + autowrapped + cvarTest ui_forcestatus + showCvar { "ntl" } + } + + itemDef + { + name luke_semi_dark + type ITEM_TYPE_TEXT + rect 52 316 288 124 + text @MISC_MLUK_01 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + autowrapped + cvarTest ui_forcestatus + showCvar { "sdl" } + } + + itemDef + { + name luke_very_dark + type ITEM_TYPE_TEXT + rect 52 316 288 124 + text @MISC_MLUK_02 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + autowrapped + cvarTest ui_forcestatus + showCvar { "vdl" } + } + + +//---------------------------------------------------- +// KYLE SUBTITLES +//---------------------------------------------------- + itemDef + { + name kyle_very_light + type ITEM_TYPE_TEXT + rect 52 316 288 124 + text @MISC_MKYK_05 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + autowrapped + cvarTest ui_forcestatus + showCvar { "vlk" } + } + + itemDef + { + name kyle_semi_light + type ITEM_TYPE_TEXT + rect 52 316 288 124 + text @MISC_MKYK_04 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + autowrapped + cvarTest ui_forcestatus + showCvar { "slk" } + } + + itemDef + { + name kyle_neutral + type ITEM_TYPE_TEXT + rect 52 316 288 124 + text @MISC_MKYK_03 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + autowrapped + cvarTest ui_forcestatus + showCvar { "ntk" } + } + + itemDef + { + name kyle_semi_dark + type ITEM_TYPE_TEXT + rect 52 316 288 124 + text @MISC_MKYK_01 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + autowrapped + cvarTest ui_forcestatus + showCvar { "sdk" } + } + + itemDef + { + name kyle_very_dark + type ITEM_TYPE_TEXT + rect 52 316 288 124 + text @MISC_MKYK_02 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + autowrapped + cvarTest ui_forcestatus + showCvar { "vdk" } + } + +//----------------------------------------- +// Go to Academy (taken from ingameMissionSelect) +//---------------------------------------- + itemDef + { + name story5_continue + type ITEM_TYPE_BUTTON + rect 430 440 100 24 + text @MENUS_CONTINUE + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny -1 + visible 1 + cvartest "tier_storyinfo" + showCvar { "5"; "6" } + mouseEnter + { + } + mouseExit + { + } + action + { + close all + uiScript startmap academy2 + } + } + + itemDef + { + name story11_continue + type ITEM_TYPE_BUTTON + rect 430 440 100 24 + text @MENUS_CONTINUE + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny -1 + visible 1 + cvartest "tier_storyinfo" + showCvar { "11"; "12" } + mouseEnter + { + } + mouseExit + { + } + action + { + close all + uiScript startmap academy4 + } + } + + itemDef + { + name story17_continue + type ITEM_TYPE_BUTTON + rect 430 440 100 24 + text @MENUS_CONTINUE + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny -1 + visible 1 + cvartest "tier_storyinfo" + showCvar { "17"; "18" } + mouseEnter + { + } + mouseExit + { + } + action + { + close all + uiScript startmap academy6 + } + } + +//---------------------------------------------------------------------------------------------- +// SCANLINES OVER WHOLE MENU +//---------------------------------------------------------------------------------------------- + itemDef + { + name scan + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 640 + background "gfx/menus/scanlines" + forecolor 1 1 1 1 + visible 1 + decoration + } + + } +} + + + + + + + + + + + diff --git a/base/ui/ingameGotoTier.menu b/base/ui/ingameGotoTier.menu new file mode 100644 index 0000000..2999755 --- /dev/null +++ b/base/ui/ingameGotoTier.menu @@ -0,0 +1,854 @@ +//---------------------------------------------------------------------------------------------- +// Mission Select Menu +// +//---------------------------------------------------------------------------------------------- +{ + + menuDef + { + name "ingameGotoTier" + fullScreen 1 + rect 0 0 640 480 + visible 1 + focusColor 1 1 1 1 + descX 320 + descY 426 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + disablecolor .5 .5 .5 1 + fadeClamp 1.0 // sets the fadeup alpha + fadeCycle 20 // how often fade happens in milliseconds + fadeAmount 0.1 // amount to adjust alpha per cycle + onOpen + { + uiScript loadmissionselectmenu tier_storyinfo + fadein background + } + onESC + { + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/mission_back" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name eyecandy1 + group none + style WINDOW_STYLE_SHADER + rect 17 309 357 153 + background "gfx/menus/mission_bottomleft_grid" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name botlf + group none + style WINDOW_STYLE_SHADER + rect 0 300 80 180 + background "gfx/menus/mission_bottom_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + + itemDef + { + name complete + type ITEM_TYPE_TEXT + rect 170 16 300 32 + text @MENUS_MISSION_COMPLETE + font 2 + forecolor .549 .854 1 1 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 150 + textaligny -1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// Killed, Secrets +//---------------------------------------------------------------------------------------------- + itemDef + { + name killed + group stats + rect 0 52 320 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_ENEMIESKILLED + cvar "ui_stats_enemieskilled" + font 2 + forecolor .549 .854 1 1 + textscale .8 + textalign ITEM_ALIGN_CENTER + textalignx 160 + textaligny -1 + visible 1 + decoration + } + + itemDef + { + name secretsfound + group stats + rect 320 52 320 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_SECRETAREAS + cvar "ui_stats_secretsfound" + font 2 + forecolor .549 .854 1 1 + textscale .8 + textalign ITEM_ALIGN_CENTER + textalignx 160 + textaligny -1 + visible 1 + decoration + cvartest "ui_stats_secretsfound" + hidecvar + { + "0" + } + } + +// Lines above and below lightsaber info + itemDef + { + name border + group none + type ITEM_TYPE_TEXT + rect 70 80 500 2 + forecolor 1 1 1 1 + border 1 + bordercolor .403 .584 .741 1 + visible 1 + decoration + } + + itemDef + { + name border + group none + type ITEM_TYPE_TEXT + rect 70 165 500 2 + forecolor 1 1 1 1 + border 1 + bordercolor .403 .584 .741 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// Saber use data +//---------------------------------------------------------------------------------------------- + itemDef + { + name saberuse + type ITEM_TYPE_TEXT + rect 0 87 640 32 + text @SP_INGAME_LIGHTSABERUSE + font 2 + forecolor .549 .854 1 1 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 320 + textaligny -1 + visible 1 + decoration + } + + itemDef + { + name saber_thrown + rect 20 115 200 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_THROWN + cvar "ui_stats_thrown" + font 2 + forecolor .549 .854 1 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny -1 + visible 1 + decoration + } + + itemDef + { + name saber_blocks + rect 20 140 200 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_BLOCKS + cvar "ui_stats_blocks" + font 2 + forecolor .549 .854 1 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny -1 + visible 1 + decoration + } + + itemDef + { + name leg_attacks + rect 220 115 200 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_LEGATTACKS + cvar "ui_stats_legattacks" + font 2 + forecolor .549 .854 1 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny -1 + visible 1 + decoration + } + + itemDef + { + name arm_attacks + rect 220 140 200 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_ARMATTACKS + cvar "ui_stats_armattacks" + font 2 + forecolor .549 .854 1 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny -1 + visible 1 + decoration + } + + itemDef + { + name body_attacks + rect 420 115 300 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_BODYATTACKS + cvar "ui_stats_bodyattacks" + font 2 + forecolor .549 .854 1 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny -1 + visible 1 + decoration + } + + + itemDef + { + name forceuse + type ITEM_TYPE_TEXT + rect 250 173 150 32 + text @SP_INGAME_FORCEUSE + font 2 + forecolor .549 .854 1 1 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 75 + textaligny -1 + visible 1 + decoration + } + + +//---------------------------------------------------------------------------------------------- +// Lower 1st column of force stats (light side powers) +//---------------------------------------------------------------------------------------------- + itemDef + { + name absorb + rect -20 195 150 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_ABSORB + cvar "ui_stats_absorb" + font 2 + forecolor 0 0 1 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name heal + rect -20 215 160 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_HEAL + cvar "ui_stats_heal" + font 2 + forecolor 0 0 1 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name mindtrick + rect -20 235 160 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_MINDTRICK + cvar "ui_stats_mindtrick" + font 2 + forecolor 0 0 1 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name protection + rect -20 255 160 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_PROTECTION + cvar "ui_stats_protect" + font 2 + forecolor 0 0 1 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// Lower 2nd column of force stats (neutral powers) +//---------------------------------------------------------------------------------------------- + itemDef + { + name jump + rect 130 195 160 32 + type ITEM_TYPE_EDITFIELD + text @MENUS_FORCE_JUMP + cvar "ui_stats_jump" + font 2 + forecolor .631 .631 .815 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name pull + rect 130 215 160 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_PULL + cvar "ui_stats_pull" + font 2 + forecolor .631 .631 .815 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name push + rect 130 235 160 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_PUSH + cvar "ui_stats_push" + font 2 + forecolor .631 .631 .815 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name sense + rect 130 255 160 32 + type ITEM_TYPE_EDITFIELD + text @MENUS_FORCE_SENSE + cvar "ui_stats_sense" + font 2 + forecolor .631 .631 .815 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// Lower 3rd column of force stats (neutral powers) +//---------------------------------------------------------------------------------------------- + itemDef + { + name speed + rect 280 195 150 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_SPEED + cvar "ui_stats_speed" + font 2 + forecolor .631 .631 .815 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name defense + rect 280 215 300 32 + type ITEM_TYPE_EDITFIELD + text @MENUS_DEFENSE + cvar "ui_stats_defense" + font 2 + forecolor .631 .631 .815 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny -1 + visible 1 + decoration + } + + itemDef + { + name offense + rect 280 235 300 32 + type ITEM_TYPE_EDITFIELD + text @MENUS_OFFENSE + cvar "ui_stats_offense" + font 2 + forecolor .631 .631 .815 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny -1 + visible 1 + decoration + } + + itemDef + { + name throw + rect 280 255 300 32 + type ITEM_TYPE_EDITFIELD + text @MENUS_THROW + cvar "ui_stats_throw" + font 2 + forecolor .631 .631 .815 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny -1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// Lower 4th column of force stats (dark powers) +//---------------------------------------------------------------------------------------------- + itemDef + { + name grip + rect 430 195 150 32 + type ITEM_TYPE_EDITFIELD + text @MENUS_FORCE_DRAIN + cvar "ui_stats_drain" + font 2 + forecolor 1 0 0 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name grip + rect 430 215 150 32 + type ITEM_TYPE_EDITFIELD + text @MENUS_FORCE_GRIP + cvar "ui_stats_grip" + font 2 + forecolor 1 0 0 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name lightning + rect 430 235 150 32 + type ITEM_TYPE_EDITFIELD + text @MENUS_FORCE_LIGHTNING + cvar "ui_stats_lightning" + font 2 + forecolor 1 0 0 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name rage + rect 430 255 150 32 + type ITEM_TYPE_EDITFIELD + text @MENUS_RAGE + cvar "ui_stats_rage" + font 2 + forecolor 1 0 0 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// MODELS FOR V-O +//---------------------------------------------------------------------------------------------- + itemDef + { + name luke + group storyheads + type ITEM_TYPE_MODEL + rect 415 285 149 149 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/luke/model_menu.skin" + asset_model "models/players/luke/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 1 + decoration + cvartest "storyhead" + showcvar + { + "luke" + "yavin2" + } + } + + itemDef + { + name kyle + group storyheads + type ITEM_TYPE_MODEL + rect 415 288 145 145 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/kyle/model_menu.skin" + asset_model "models/players/kyle/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 1 + decoration + cvartest "storyhead" + showcvar + { + "kyle" + } + } + + itemDef + { + name protocol + group storyheads + type ITEM_TYPE_MODEL + rect 426 317 116 116 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/protocol/model_menu.skin" + asset_model "models/players/protocol/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 17 + model_g2maxs 60 20 50 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 1 + decoration + cvartest "storyhead" + showcvar + { + "protocol" + "academy3" + } + } + +//---------------------------------------------------------------------------------------------- +// +// BUTTONS +// +//---------------------------------------------------------------------------------------------- + +//---------------------------------------------------------------------------------------------- +//Sound is automatic +//---------------------------------------------------------------------------------------------- + +//---------------------------------------------------------------------------------------------- +//coming from Yavin2 +//---------------------------------------------------------------------------------------------- + itemDef + { + name story1 + type ITEM_TYPE_BUTTON + rect 550 440 172 24 + text @MENUS_OKAY + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + cvartest "tier_storyinfo" + showcvar + { + "1" + } + mouseEnter + { + } + mouseExit + { + } + action + { + close all + open ingameMissionSelect1 + } + } + + itemDef + { + name story1text + type ITEM_TYPE_TEXTSCROLL + rect 44 313 304 145 + text @TIER1_1 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + lineHeight 18 + visible 1 + autowrapped + cvartest "tier_storyinfo" + showcvar + { + "1" + } + } + + +//---------------------------------------------------------------------------------------------- +//coming from Hoth3 +//---------------------------------------------------------------------------------------------- + itemDef + { + name story6 + type ITEM_TYPE_BUTTON + rect 550 440 172 24 + text @MENUS_OKAY + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + cvartest "tier_storyinfo" + showcvar + { + "7" + } + mouseEnter + { + } + mouseExit + { + } + action + { + close all + open ingameMissionSelect2 + } + } + + itemDef + { + name story2text + type ITEM_TYPE_TEXTSCROLL + rect 44 313 304 145 + text @TIER2_7 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + lineHeight 18 + visible 1 + autowrapped + cvartest "tier_storyinfo" + showcvar + { + "7" + } + } + +//---------------------------------------------------------------------------------------------- +//coming from Vjun3 +//---------------------------------------------------------------------------------------------- + itemDef + { + name story11 + type ITEM_TYPE_BUTTON + rect 550 440 172 24 + text @MENUS_OKAY + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + cvartest "tier_storyinfo" + showcvar + { + "13" + } + mouseEnter + { + } + mouseExit + { + } + action + { + close all + open ingameMissionSelect3 + } + } + + itemDef + { + name story3text + type ITEM_TYPE_TEXTSCROLL + rect 44 313 304 145 + text @TIER3_13 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + lineHeight 18 + visible 1 + autowrapped + cvartest "tier_storyinfo" + showcvar + { + "13" + } + } + +//---------------------------------------------------------------------------------------------- +// SCANLINES OVER WHOLE MENU +//---------------------------------------------------------------------------------------------- + + itemDef + { + name scan + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 640 + background "gfx/menus/scanlines" + forecolor 1 1 1 1 + visible 1 + decoration + } + } +} + + + + + + + + + + + diff --git a/base/ui/ingameMissionSelect.menu b/base/ui/ingameMissionSelect.menu new file mode 100644 index 0000000..8b25677 --- /dev/null +++ b/base/ui/ingameMissionSelect.menu @@ -0,0 +1,2849 @@ +//---------------------------------------------------------------------------------------------- +// Mission Select Menu +// +// +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "ingameMissionSelect" + fullScreen 1 + rect 0 0 640 480 + visible 1 + focusColor 1 1 1 1 + descX 320 + descY 426 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + disablecolor .5 .5 .5 1 + fadeClamp 1.0 // sets the fadeup alpha + fadeCycle 20 // how often fade happens in milliseconds + fadeAmount 0.1 // amount to adjust alpha per cycle + onOpen + { + uiScript loadmissionselectmenu tier_storyinfo + } + onESC + { + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/mission_back" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name eyecandy1 + group none + style WINDOW_STYLE_SHADER + rect 17 309 357 153 + background "gfx/menus/mission_bottomleft_grid" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name botlf + group none + style WINDOW_STYLE_SHADER + rect 0 300 80 180 + background "gfx/menus/mission_bottom_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name complete + type ITEM_TYPE_TEXT + rect 170 16 300 32 + text @MENUS_MISSION_COMPLETE + font 2 + forecolor .549 .854 1 1 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 150 + textaligny -1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// Killed, Secrets +//---------------------------------------------------------------------------------------------- + itemDef + { + name killed + group stats + rect 0 52 320 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_ENEMIESKILLED + cvar "ui_stats_enemieskilled" + font 2 + forecolor .549 .854 1 1 + textscale .8 + textalign ITEM_ALIGN_CENTER + textalignx 160 + textaligny -1 + visible 1 + decoration + } + + itemDef + { + name secretsfound + group stats + rect 320 52 320 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_SECRETAREAS + cvar "ui_stats_secretsfound" + font 2 + forecolor .549 .854 1 1 + textscale .8 + textalign ITEM_ALIGN_CENTER + textalignx 160 + textaligny -1 + visible 1 + decoration + cvartest "ui_stats_secretsfound" + hidecvar + { + "0" + } + } + + // Lines above and below lightsaber info + itemDef + { + name border + group none + type ITEM_TYPE_TEXT + rect 70 80 500 2 + forecolor 1 1 1 1 + border 1 + bordercolor .403 .584 .741 1 + visible 1 + decoration + } + + itemDef + { + name border + group none + type ITEM_TYPE_TEXT + rect 70 165 500 2 + forecolor 1 1 1 1 + border 1 + bordercolor .403 .584 .741 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// Saber use data +//---------------------------------------------------------------------------------------------- + itemDef + { + name saberuse + type ITEM_TYPE_TEXT + rect 0 87 640 32 + text @SP_INGAME_LIGHTSABERUSE + font 2 + forecolor .549 .854 1 1 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 320 + textaligny -1 + visible 1 + decoration + } + + itemDef + { + name saber_thrown + rect 20 115 200 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_THROWN + cvar "ui_stats_thrown" + font 2 + forecolor .549 .854 1 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny -1 + visible 1 + decoration + } + + itemDef + { + name saber_blocks + rect 20 140 200 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_BLOCKS + cvar "ui_stats_blocks" + font 2 + forecolor .549 .854 1 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny -1 + visible 1 + decoration + } + + itemDef + { + name leg_attacks + rect 220 115 200 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_LEGATTACKS + cvar "ui_stats_legattacks" + font 2 + forecolor .549 .854 1 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny -1 + visible 1 + decoration + } + + itemDef + { + name arm_attacks + rect 220 140 200 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_ARMATTACKS + cvar "ui_stats_armattacks" + font 2 + forecolor .549 .854 1 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny -1 + visible 1 + decoration + } + + itemDef + { + name body_attacks + rect 420 115 300 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_BODYATTACKS + cvar "ui_stats_bodyattacks" + font 2 + forecolor .549 .854 1 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny -1 + visible 1 + decoration + } + + + itemDef + { + name forceuse + type ITEM_TYPE_TEXT + rect 250 173 150 32 + text @SP_INGAME_FORCEUSE + font 2 + forecolor .549 .854 1 1 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 75 + textaligny -1 + visible 1 + decoration + } + + +//---------------------------------------------------------------------------------------------- +// Lower 1st column of force stats (light side powers) +//---------------------------------------------------------------------------------------------- + itemDef + { + name absorb + rect -20 195 150 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_ABSORB + cvar "ui_stats_absorb" + font 2 + forecolor 0 0 1 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name heal + rect -20 215 160 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_HEAL + cvar "ui_stats_heal" + font 2 + forecolor 0 0 1 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name mindtrick + rect -20 235 160 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_MINDTRICK + cvar "ui_stats_mindtrick" + font 2 + forecolor 0 0 1 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name protection + rect -20 255 160 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_PROTECTION + cvar "ui_stats_protect" + font 2 + forecolor 0 0 1 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// Lower 2nd column of force stats (neutral powers) +//---------------------------------------------------------------------------------------------- + itemDef + { + name jump + rect 130 195 160 32 + type ITEM_TYPE_EDITFIELD + text @MENUS_FORCE_JUMP + cvar "ui_stats_jump" + font 2 + forecolor .631 .631 .815 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name pull + rect 130 215 160 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_PULL + cvar "ui_stats_pull" + font 2 + forecolor .631 .631 .815 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name push + rect 130 235 160 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_PUSH + cvar "ui_stats_push" + font 2 + forecolor .631 .631 .815 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name sense + rect 130 255 160 32 + type ITEM_TYPE_EDITFIELD + text @MENUS_FORCE_SENSE + cvar "ui_stats_sense" + font 2 + forecolor .631 .631 .815 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// Lower 3rd column of force stats (neutral powers) +//---------------------------------------------------------------------------------------------- + itemDef + { + name speed + rect 280 195 150 32 + type ITEM_TYPE_EDITFIELD + text @SP_INGAME_SPEED + cvar "ui_stats_speed" + font 2 + forecolor .631 .631 .815 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name defense + rect 280 215 300 32 + type ITEM_TYPE_EDITFIELD + text @MENUS_DEFENSE + cvar "ui_stats_defense" + font 2 + forecolor .631 .631 .815 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny -1 + visible 1 + decoration + } + + itemDef + { + name offense + rect 280 235 300 32 + type ITEM_TYPE_EDITFIELD + text @MENUS_OFFENSE + cvar "ui_stats_offense" + font 2 + forecolor .631 .631 .815 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny -1 + visible 1 + decoration + } + + itemDef + { + name throw + rect 280 255 300 32 + type ITEM_TYPE_EDITFIELD + text @MENUS_THROW + cvar "ui_stats_throw" + font 2 + forecolor .631 .631 .815 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny -1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// Lower 4th column of force stats (dark powers) +//---------------------------------------------------------------------------------------------- + itemDef + { + name grip + rect 430 195 150 32 + type ITEM_TYPE_EDITFIELD + text @MENUS_FORCE_DRAIN + cvar "ui_stats_drain" + font 2 + forecolor 1 0 0 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name grip + rect 430 215 150 32 + type ITEM_TYPE_EDITFIELD + text @MENUS_FORCE_GRIP + cvar "ui_stats_grip" + font 2 + forecolor 1 0 0 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name lightning + rect 430 235 150 32 + type ITEM_TYPE_EDITFIELD + text @MENUS_FORCE_LIGHTNING + cvar "ui_stats_lightning" + font 2 + forecolor 1 0 0 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + + itemDef + { + name rage + rect 430 255 150 32 + type ITEM_TYPE_EDITFIELD + text @MENUS_RAGE + cvar "ui_stats_rage" + font 2 + forecolor 1 0 0 1 + textscale .8 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny 0 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// MODELS FOR V-O +//---------------------------------------------------------------------------------------------- + +//---------------------------------------------------------------------------------------------- +// +// THESE HEADS APPEAR WHEN YOU SUCCESSFULLY COMPLETE A TIER LEVEL. +// +// THE SOUNDS ARE IN sounds/tiervictory AND ARE THE NAME OF THE LEVEL. +// IT IS HARDCODED TO LOOK FOR AND PLAY A SOUND MATCHING THE MAP NAME IN THIS DIR. +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name luke + group models + type ITEM_TYPE_MODEL + rect 415 285 149 149 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/luke/model_menu.skin" + asset_model "models/players/luke/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 1 + decoration + cvartest "storyhead" + showcvar + { + "luke" + "t1_surprise" + "t1_sour" + "t3_hevil" + "t1_test" + "t1_rail" + } + } + +//t1_rail has conversation; luke, kyle, luke, kyle, luke. + + itemDef + { + name kyle + group models + type ITEM_TYPE_MODEL + rect 415 288 145 145 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/kyle/model_menu.skin" + asset_model "models/players/kyle/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 1 + decoration + cvartest "storyhead" + showcvar + { + "t1_fatal" + "t1_danger" + "t2_rogue" + "t2_dpred" + "t2_rancor" + "t2_trip" + "t3_rift" + "t3_byss" + "t3_stamp" + "t3_bounty" + "kyle" + } + } + + itemDef + { + name prot + group models + type ITEM_TYPE_MODEL + rect 426 317 116 116 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/protocol/model_menu.skin" + asset_model "models/players/protocol/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 17 + model_g2maxs 60 20 50 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 1 + decoration + cvartest "storyhead" + showcvar + { + "prot" + } + } + + itemDef + { + name wedge + group models + type ITEM_TYPE_MODEL + rect 426 317 116 116 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/rebel_pilot/model_default.skin" + asset_model "models/players/rebel_pilot/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 18 + model_g2maxs 60 20 50 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 1 + decoration + cvartest "storyhead" + showcvar + { + "t2_wedge" + "wedge" + } + } +//---------------------------------------------------------------------------------------------- +// SUBTITLES FOR TIER VICTORY MESSAGES. +//---------------------------------------------------------------------------------------------- + +//---------------------------------------------------------------------------------------------- +// 1ST TIER +//---------------------------------------------------------------------------------------------- + itemDef + { + name vic_text_t1_test + group victorytext + type ITEM_TYPE_TEXT + rect 44 313 304 145 + text @TIERVICTORY_T1_SURPRISE + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + visible 1 + autowrapped + decoration + cvartest "storyhead" + showcvar + { + "t1_test" + } + } + + itemDef + { + name vic_text_t1_sour + group victorytext + type ITEM_TYPE_TEXT + rect 44 313 304 145 + text @TIERVICTORY_T1_SOUR + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + visible 1 + autowrapped + decoration + cvartest "storyhead" + showcvar + { + "t1_sour" + } + } + + itemDef + { + name vic_text_t1_surprise + group victorytext + type ITEM_TYPE_TEXT + rect 44 313 304 145 + text @TIERVICTORY_T1_SURPRISE + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + visible 1 + autowrapped + decoration + cvartest "storyhead" + showcvar + { + "t1_surprise" + } + } + + itemDef + { + name vic_text_t1_fatal + group victorytext + type ITEM_TYPE_TEXT + rect 44 313 304 145 + text @TIERVICTORY_T1_FATAL + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + visible 1 + autowrapped + decoration + cvartest "storyhead" + showcvar + { + "t1_fatal" + } + } + + itemDef + { + name vic_text_t1_danger + group victorytext + type ITEM_TYPE_TEXT + rect 44 313 304 145 + text @TIERVICTORY_T1_DANGER + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + visible 1 + autowrapped + decoration + cvartest "storyhead" + showcvar + { + "t1_danger" + } + } + + itemDef + { + name vic_text_t1_rail + group victorytext + type ITEM_TYPE_TEXT + rect 44 313 304 145 + text @TIERVICTORY_T1_RAIL_01 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + visible 1 + autowrapped + decoration + cvartest "storyhead" + showcvar + { + "t1_rail" + } + } + +//---------------------------------------------------------------------------------------------- +// 2ND TIER +//---------------------------------------------------------------------------------------------- + itemDef + { + name vic_text_t2_rancor + group victorytext + type ITEM_TYPE_TEXT + rect 44 313 304 145 + text @TIERVICTORY_T2_RANCOR + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + visible 1 + autowrapped + decoration + cvartest "storyhead" + showcvar + { + "t2_rancor" + } + } + + itemDef + { + name vic_text_t2_trip + group victorytext + type ITEM_TYPE_TEXT + rect 44 313 304 145 + text @TIERVICTORY_T2_TRIP + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + visible 1 + autowrapped + decoration + cvartest "storyhead" + showcvar + { + "t2_trip" + } + } + + itemDef + { + name vic_text_t2_wedge + group victorytext + type ITEM_TYPE_TEXT + rect 44 313 304 145 + text @TIERVICTORY_T2_WEDGE + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + visible 1 + autowrapped + decoration + cvartest "storyhead" + showcvar + { + "t2_wedge" + } + } + + itemDef + { + name vic_text_t2_rogue + group victorytext + type ITEM_TYPE_TEXT + rect 44 313 304 145 + text @TIERVICTORY_T2_ROGUE + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + visible 1 + autowrapped + decoration + cvartest "storyhead" + showcvar + { + "t2_rogue" + } + } + + itemDef + { + name vic_text_t2_dpred + group victorytext + type ITEM_TYPE_TEXT + rect 44 313 304 145 + text @TIERVICTORY_T2_DPRED + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + visible 1 + autowrapped + decoration + cvartest "storyhead" + showcvar + { + "t2_dpred" + } + } + +//---------------------------------------------------------------------------------------------- +// 3RD TIER +//---------------------------------------------------------------------------------------------- + itemDef + { + name vic_text_t2_rift + group victorytext + type ITEM_TYPE_TEXT + rect 44 313 304 145 + text @TIERVICTORY_T3_RIFT + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + visible 1 + autowrapped + decoration + cvartest "storyhead" + showcvar + { + "t3_rift" + } + } + + itemDef + { + name vic_text_t3_stampede + group victorytext + type ITEM_TYPE_TEXT + rect 44 313 304 145 + text @TIERVICTORY_T3_STAMP + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + visible 1 + autowrapped + decoration + cvartest "storyhead" + showcvar + { + "t3_stamp" + } + } + + itemDef + { + name vic_text_t3_hevil + group victorytext + type ITEM_TYPE_TEXT + rect 44 313 304 145 + text @TIERVICTORY_T3_HEVIL + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + visible 1 + autowrapped + decoration + cvartest "storyhead" + showcvar + { + "t3_hevil" + } + } + + itemDef + { + name vic_text_t3_byss + group victorytext + type ITEM_TYPE_TEXT + rect 44 313 304 145 + text @TIERVICTORY_T3_BYSS + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + visible 1 + autowrapped + decoration + cvartest "storyhead" + showcvar + { + "t3_byss" + } + } + + itemDef + { + name vic_text_t3_bounty + group victorytext + type ITEM_TYPE_TEXT + rect 44 313 304 145 + text @TIERVICTORY_T3_BOUNTY + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + visible 1 + autowrapped + decoration + cvartest "storyhead" + showcvar + { + "t3_bounty" + } + } + + +//---------------------------------------------------------------------------------------------- +// BUTTONS +// +// AFTER THE VICTORY MESSAGE ABOVE, YOU GET A STORY MESSAGE BEFORE CHOOSING NEXT MISSION. +//---------------------------------------------------------------------------------------------- + +//---------------------------------------------------------------------------------------------- +//TIER ONE - INITIATE TIER +//---------------------------------------------------------------------------------------------- + +//---------------------------------------------------------------------------------------------- +//The first story message is in ingameGotoTier and not here. +//---------------------------------------------------------------------------------------------- + +//---------------------------------------------------------------------------------------------- +//completed 1st tier level on Tier 1 +//2nd visit to tier +//---------------------------------------------------------------------------------------------- + itemDef + { + name victory2 + type ITEM_TYPE_BUTTON + rect 394 440 200 24 + text @MENUS_CONTINUE + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 200 + textaligny -1 + visible 1 + cvartest "tier_storyinfo" + showcvar + { + "1" "2" + } + mouseEnter + { + } + mouseExit + { + } + action + { + hide victory2 + hide victorytext + hide models + show story2 + show story2text + playvoice "sound/chars/storyinfo/2.mp3" + show kyle2 + } + } + + itemDef + { + name kyle2 + group models2 + type ITEM_TYPE_MODEL + rect 415 285 149 149 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/kyle/model_menu.skin" + asset_model "models/players/kyle/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 0 + decoration + } + + itemDef + { + name story2 + type ITEM_TYPE_BUTTON + rect 394 440 200 24 + text @MENUS_OKAY + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 200 + textaligny -1 + visible 0 + mouseEnter + { + } + mouseExit + { + } + action + { + close all + open ingameMissionSelect1 + } + } + + itemDef + { + name story2text + type ITEM_TYPE_TEXTSCROLL + rect 44 313 304 145 + text @TIER1_2 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + lineHeight 18 + visible 0 + autowrapped + } + +//---------------------------------------------------------------------------------------------- +//completed 2nd tier level on Tier 1 +//3rd visit to tier +//---------------------------------------------------------------------------------------------- + itemDef + { + name victory3 + type ITEM_TYPE_BUTTON + rect 394 440 200 24 + text @MENUS_CONTINUE + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 200 + textaligny -1 + visible 1 + cvartest "tier_storyinfo" + showcvar + { + "3" + } + mouseEnter + { + } + mouseExit + { + } + action + { + hide victory3 + hide victorytext + hide models + show story3 + show story3text + playvoice "sound/chars/storyinfo/3.mp3" + show luke3 + } + } + + + itemDef + { + name luke3 + group models2 + type ITEM_TYPE_MODEL + rect 415 285 149 149 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/luke/model_menu.skin" + asset_model "models/players/luke/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 0 + decoration + } + + itemDef + { + name story3 + type ITEM_TYPE_BUTTON + rect 394 440 200 24 + text @MENUS_OKAY + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 200 + textaligny -1 + visible 0 + mouseEnter + { + } + mouseExit + { + } + action + { + close all + uiScript startmap t1_inter + //open ingameMissionSelect1 + } + } + + itemDef + { + name story3text + type ITEM_TYPE_TEXTSCROLL + rect 44 313 304 145 + text @TIER1_3 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + lineHeight 18 + visible 0 + autowrapped + } + +//---------------------------------------------------------------------------------------------- +//completed 3rd tier level on Tier 1 +//4th visit to tier +//---------------------------------------------------------------------------------------------- + itemDef + { + name victory4 + type ITEM_TYPE_BUTTON + rect 394 440 200 24 + text @MENUS_CONTINUE + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 200 + textaligny -1 + visible 1 + cvartest "tier_storyinfo" + showcvar + { + "4" + } + mouseEnter + { + } + mouseExit + { + } + action + { + hide victory4 + hide victorytext + hide models + show story4 + show story4text + playvoice "sound/chars/storyinfo/4.mp3" + show luke4 + } + } + + + itemDef + { + name luke4 + group models2 + type ITEM_TYPE_MODEL + rect 415 288 145 145 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/luke/model_menu.skin" + asset_model "models/players/luke/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 0 + decoration + } + + itemDef + { + name story4 + type ITEM_TYPE_BUTTON + rect 394 440 200 24 + text @MENUS_OKAY + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 200 + textaligny -1 + visible 0 + mouseEnter + { + } + mouseExit + { + } + action + { + close all + open ingameMissionSelect1 + } + } + + itemDef + { + name story4text + type ITEM_TYPE_TEXTSCROLL + rect 44 313 304 145 + text @TIER1_4 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + lineHeight 18 + visible 0 + autowrapped + } + +//---------------------------------------------------------------------------------------------- +//completed 4th tier level on Tier 1 +//5th visit to tier +//---------------------------------------------------------------------------------------------- + + itemDef + { + name victory5 + type ITEM_TYPE_BUTTON + rect 394 440 200 24 + text @MENUS_CONTINUE + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 200 + textaligny -1 + visible 1 + cvartest "tier_storyinfo" + showcvar + { + "5" + } + mouseEnter + { + } + mouseExit + { + } + action + { + hide victory5 + hide victorytext + hide models + show story5 + show story5text + playvoice "sound/chars/storyinfo/5.mp3" + show kyle5 + show story5_continue + } + } + + + itemDef + { + name kyle5 + group models2 + type ITEM_TYPE_MODEL + rect 415 288 145 145 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/kyle/model_menu.skin" + asset_model "models/players/kyle/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 0 + decoration + } + + itemDef + { + name story5 + type ITEM_TYPE_BUTTON + rect 494 440 100 24 + text @MENUS_NEXT_MISSION + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny -1 + visible 0 + mouseEnter + { + } + mouseExit + { + } + action + { + close all + open ingameMissionSelect1 + } + } + + itemDef + { + name story5text + type ITEM_TYPE_TEXTSCROLL + rect 44 313 304 145 + text @TIER1_5 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + lineHeight 18 + visible 0 + autowrapped + } + + itemDef + { + name story5_continue + type ITEM_TYPE_BUTTON + rect 394 440 100 24 + text @MENUS_RETURN_TO_ACADEMY + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 5 + textaligny -1 + visible 0 + mouseEnter + { + } + mouseExit + { + } + action + { + close all + open ingameForceStatus +// uiScript startmap academy2 + } + } + +//---------------------------------------------------------------------------------------------- +//completed 5th tier level on Tier 1 +//6th visit to tier +//---------------------------------------------------------------------------------------------- + itemDef + { + name victory6 + type ITEM_TYPE_BUTTON + rect 394 440 200 24 + text @MENUS_CONTINUE + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 200 + textaligny -1 + visible 1 + cvartest "tier_storyinfo" + showcvar + { + "6" + } + mouseEnter + { + } + mouseExit + { + } + action + { + hide victory6 + hide victorytext + hide models + show story6_continue + show story6text + playvoice "sound/chars/storyinfo/6.mp3" + show kyle6 + } + } + + + itemDef + { + name kyle6 + group models2 + type ITEM_TYPE_MODEL + rect 415 288 145 145 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/kyle/model_menu.skin" + asset_model "models/players/kyle/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 0 + decoration + } + + itemDef + { + name story6_continue + type ITEM_TYPE_BUTTON + rect 394 440 200 24 + text @MENUS_RETURN_TO_ACADEMY + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 200 + textaligny -1 + visible 0 + mouseEnter + { + } + mouseExit + { + } + action + { + close all + open ingameForceStatus +// uiScript startmap academy2 + } + } + + itemDef + { + name story6text + type ITEM_TYPE_TEXTSCROLL + rect 44 313 304 145 + text @TIER1_6 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + lineHeight 18 + visible 0 + autowrapped + } + + +//------------------------------------- +// +//TIER TWO - APPRENTICE TIER +// +//------------------------------------- + +//----------------------------------------------------------- +// +//The first story message is in ingameGotoTier and not here. +// +//----------------------------------------------------------- + +//------------------------------------- +// +//completed 1st tier level on Tier 2 +//2nd visit to tier +// +//------------------------------------- + + itemDef + { + name victory8 + type ITEM_TYPE_BUTTON + rect 394 440 200 24 + text @MENUS_CONTINUE + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 200 + textaligny -1 + visible 1 + cvartest "tier_storyinfo" + showcvar + { + "8" + } + mouseEnter + { + } + mouseExit + { + } + action + { + hide victory8 + hide victorytext + hide models + show story8 + show story8text + playvoice "sound/chars/storyinfo/8.mp3" + show prot8 + } + } + + itemDef + { + name prot8 + group models2 + type ITEM_TYPE_MODEL + rect 426 317 116 116 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/protocol/model_menu.skin" + asset_model "models/players/protocol/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 17 + model_g2maxs 60 20 50 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 0 + decoration + } + + itemDef + { + name story8 + type ITEM_TYPE_BUTTON + rect 394 440 200 24 + text @MENUS_OKAY + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 200 + textaligny -1 + visible 0 + mouseEnter + { + } + mouseExit + { + } + action + { + close all + open ingameMissionSelect2 + } + } + + itemDef + { + name story8text + type ITEM_TYPE_TEXTSCROLL + rect 44 313 304 145 + text @TIER2_8 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + lineHeight 18 + visible 0 + autowrapped + } + +//------------------------------------- +// +//completed 2nd tier level on Tier 2 +//3rd visit to tier +//------------------------------------- + + itemDef + { + name victory9 + type ITEM_TYPE_BUTTON + rect 394 440 200 24 + text @MENUS_CONTINUE + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 200 + textaligny -1 + visible 1 + cvartest "tier_storyinfo" + showcvar + { + "9" + } + mouseEnter + { + } + mouseExit + { + } + action + { + hide victory9 + hide victorytext + hide models + show story9 + show story9text + playvoice "sound/chars/storyinfo/9.mp3" + show kyle9 + } + } + + + itemDef + { + name kyle9 + group models2 + type ITEM_TYPE_MODEL + rect 415 288 145 145 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/kyle/model_menu.skin" + asset_model "models/players/kyle/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 0 + decoration + } + + itemDef + { + name story9 + type ITEM_TYPE_BUTTON + rect 394 440 200 24 + text @MENUS_OKAY + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 200 + textaligny -1 + visible 0 + mouseEnter + { + } + mouseExit + { + } + action + { + close all + open ingameMissionSelect2 + } + } + + itemDef + { + name story9text + type ITEM_TYPE_TEXTSCROLL + rect 44 313 304 145 + text @TIER2_9 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + lineHeight 18 + visible 0 + autowrapped + } + +//------------------------------------- +// +//completed 3rd tier level on Tier 2 +//4th visit to tier +//------------------------------------- + + itemDef + { + name victory10 + type ITEM_TYPE_BUTTON + rect 394 440 200 24 + text @MENUS_CONTINUE + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 200 + textaligny -1 + visible 1 + cvartest "tier_storyinfo" + showcvar + { + "10" + } + mouseEnter + { + } + mouseExit + { + } + action + { + hide victory10 + hide victorytext + hide models + show story10 + show story10text + playvoice "sound/chars/storyinfo/10.mp3" + show luke10 + } + } + + + itemDef + { + name luke10 + group models2 + type ITEM_TYPE_MODEL + rect 415 285 149 149 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/luke/model_menu.skin" + asset_model "models/players/luke/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 0 + decoration + } + + itemDef + { + name story10 + type ITEM_TYPE_BUTTON + rect 394 440 200 24 + text @MENUS_OKAY + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 200 + textaligny -1 + visible 0 + mouseEnter + { + } + mouseExit + { + } + action + { + close all + open ingameMissionSelect2 + } + } + + itemDef + { + name story10text + type ITEM_TYPE_TEXTSCROLL + rect 44 313 304 145 + text @TIER2_10 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + lineHeight 18 + visible 0 + autowrapped + } + +//------------------------------------- +// +//completed 4th tier level on Tier 2 +//5th visit to tier +//------------------------------------- + + itemDef + { + name victory11 + type ITEM_TYPE_BUTTON + rect 394 440 200 24 + text @MENUS_CONTINUE + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 200 + textaligny -1 + visible 1 + cvartest "tier_storyinfo" + showcvar + { + "11" + } + mouseEnter + { + } + mouseExit + { + } + action + { + hide victory11 + hide victorytext + hide models + show story11 + show story11text + playvoice "sound/chars/storyinfo/11.mp3" + show kyle11 + show story11_continue + } + } + + + itemDef + { + name kyle11 + group models2 + type ITEM_TYPE_MODEL + rect 415 288 145 145 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/kyle/model_menu.skin" + asset_model "models/players/kyle/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 0 + decoration + } + + itemDef + { + name story11 + type ITEM_TYPE_BUTTON + rect 494 440 100 24 + text @MENUS_NEXT_MISSION + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny -1 + visible 0 + mouseEnter + { + } + mouseExit + { + } + action + { + close all + open ingameMissionSelect2 + } + } + + itemDef + { + name story11text + type ITEM_TYPE_TEXTSCROLL + rect 44 313 304 145 + text @TIER2_11 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + lineHeight 18 + visible 0 + autowrapped + } + + itemDef + { + name story11_continue + type ITEM_TYPE_BUTTON + rect 394 440 100 24 + text @MENUS_RETURN_TO_ACADEMY + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 5 + textaligny -1 + visible 0 + mouseEnter + { + } + mouseExit + { + } + action + { + close all + open ingameForceStatus +// uiScript startmap academy4 + } + } + +//------------------------------------- +// +//completed 5th tier level on Tier 2 +//6th visit to tier +//------------------------------------- + + itemDef + { + name victory12 + type ITEM_TYPE_BUTTON + rect 394 440 200 24 + text @MENUS_CONTINUE + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 200 + textaligny -1 + visible 1 + cvartest "tier_storyinfo" + showcvar + { + "12" + } + mouseEnter + { + } + mouseExit + { + } + action + { + hide victory12 + hide victorytext + hide models + show story12_continue + show story12text + playvoice "sound/chars/storyinfo/12.mp3" + show kyle12 + } + } + + + itemDef + { + name kyle12 + group models2 + type ITEM_TYPE_MODEL + rect 415 288 145 145 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/kyle/model_menu.skin" + asset_model "models/players/kyle/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 0 + decoration + } + + itemDef + { + name story12_continue + type ITEM_TYPE_BUTTON + rect 394 440 200 24 + text @MENUS_RETURN_TO_ACADEMY + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 200 + textaligny -1 + visible 0 + mouseEnter + { + } + mouseExit + { + } + action + { + close all + open ingameForceStatus +// uiScript startmap academy4 + } + } + + itemDef + { + name story12text + type ITEM_TYPE_TEXTSCROLL + rect 44 313 304 145 + text @TIER2_12 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + lineHeight 18 + visible 0 + autowrapped + } + +//------------------------------------- +// +//TIER THREE - JEDI KNIGHT TIER +// +//------------------------------------- + +//----------------------------------------------------------- +// +//The first story message is in ingameGotoTier and not here. +// +//----------------------------------------------------------- + +//------------------------------------- +// +//completed 1st tier level on Tier 3 +//2nd visit to tier +// +//------------------------------------- + + itemDef + { + name victory14 + type ITEM_TYPE_BUTTON + rect 394 440 200 24 + text @MENUS_CONTINUE + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 200 + textaligny -1 + visible 1 + cvartest "tier_storyinfo" + showcvar + { + "14" + } + mouseEnter + { + } + mouseExit + { + } + action + { + hide victory14 + hide victorytext + hide models + show story14 + show story14text + playvoice "sound/chars/storyinfo/14.mp3" + show kyle14 + } + } + + itemDef + { + name kyle14 + group models2 + type ITEM_TYPE_MODEL + rect 415 288 145 145 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/kyle/model_menu.skin" + asset_model "models/players/kyle/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 0 + decoration + } + + itemDef + { + name story14 + type ITEM_TYPE_BUTTON + rect 394 440 200 24 + text @MENUS_OKAY + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 200 + textaligny -1 + visible 0 + mouseEnter + { + } + mouseExit + { + } + action + { + close all + open ingameMissionSelect3 + } + } + + itemDef + { + name story14text + type ITEM_TYPE_TEXTSCROLL + rect 44 313 304 145 + text @TIER3_14 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + lineHeight 18 + visible 0 + autowrapped + } + +//------------------------------------- +// +//completed 2nd tier level on Tier 3 +//3rd visit to tier +//------------------------------------- + + itemDef + { + name victory15 + type ITEM_TYPE_BUTTON + rect 394 440 200 24 + text @MENUS_CONTINUE + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 200 + textaligny -1 + visible 1 + cvartest "tier_storyinfo" + showcvar + { + "15" + } + mouseEnter + { + } + mouseExit + { + } + action + { + hide victory15 + hide victorytext + hide models + show story15 + show story15text + playvoice "sound/chars/storyinfo/15.mp3" + show kyle15 + } + } + + + itemDef + { + name kyle15 + group models2 + type ITEM_TYPE_MODEL + rect 415 288 145 145 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/kyle/model_menu.skin" + asset_model "models/players/kyle/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 0 + decoration + } + + itemDef + { + name story15 + type ITEM_TYPE_BUTTON + rect 394 440 200 24 + text @MENUS_OKAY + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 200 + textaligny -1 + visible 0 + mouseEnter + { + } + mouseExit + { + } + action + { + close all + open ingameMissionSelect3 + } + } + + itemDef + { + name story15text + type ITEM_TYPE_TEXTSCROLL + rect 44 313 304 145 + text @TIER3_15 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + lineHeight 18 + visible 0 + autowrapped + } + +//------------------------------------- +// +//completed 3rd tier level on Tier 3 +//4th visit to tier +//------------------------------------- + + itemDef + { + name victory16 + type ITEM_TYPE_BUTTON + rect 394 440 200 24 + text @MENUS_CONTINUE + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 200 + textaligny -1 + visible 1 + cvartest "tier_storyinfo" + showcvar + { + "16" + } + mouseEnter + { + } + mouseExit + { + } + action + { + hide victory16 + hide victorytext + hide models + show story16 + show story16text + playvoice "sound/chars/storyinfo/16.mp3" + show kyle16 + } + } + + + itemDef + { + name kyle16 + group models2 + type ITEM_TYPE_MODEL + rect 415 288 145 145 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/kyle/model_menu.skin" + asset_model "models/players/kyle/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 0 + decoration + } + + itemDef + { + name story16 + type ITEM_TYPE_BUTTON + rect 394 440 200 24 + text @MENUS_OKAY + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 200 + textaligny -1 + visible 0 + mouseEnter + { + } + mouseExit + { + } + action + { + close all + open ingameMissionSelect3 + } + } + + itemDef + { + name story16text + type ITEM_TYPE_TEXTSCROLL + rect 44 313 304 145 + text @TIER3_16 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + lineHeight 18 + visible 0 + autowrapped + } + +//------------------------------------- +// +//completed 4th tier level on Tier 3 +//5th visit to tier +//------------------------------------- + + itemDef + { + name victory17 + type ITEM_TYPE_BUTTON + rect 394 440 200 24 + text @MENUS_CONTINUE + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 200 + textaligny -1 + visible 1 + cvartest "tier_storyinfo" + showcvar + { + "17" + } + mouseEnter + { + } + mouseExit + { + } + action + { + hide victory17 + hide victorytext + hide models + show story17 + show story17text + playvoice "sound/chars/storyinfo/17.mp3" + show kyle17 + show story17_continue + } + } + + + itemDef + { + name kyle17 + group models2 + type ITEM_TYPE_MODEL + rect 415 288 145 145 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/kyle/model_menu.skin" + asset_model "models/players/kyle/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 0 + decoration + } + + itemDef + { + name story17 + type ITEM_TYPE_BUTTON + rect 494 440 100 24 + text @MENUS_NEXT_MISSION + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 100 + textaligny -1 + visible 0 + mouseEnter + { + } + mouseExit + { + } + action + { + close all + open ingameMissionSelect3 + } + } + + itemDef + { + name story17text + type ITEM_TYPE_TEXTSCROLL + rect 44 313 304 145 + text @TIER3_17 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + lineHeight 18 + visible 0 + autowrapped + } + + itemDef + { + name story17_continue + type ITEM_TYPE_BUTTON + rect 394 440 100 24 + text @MENUS_RETURN_TO_ACADEMY + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 5 + textaligny -1 + visible 0 + mouseEnter + { + } + mouseExit + { + } + action + { + close all + open ingameForceStatus +// uiScript startmap academy6 + } + } + +//------------------------------------- +// +//completed 5th tier level on Tier 3 +//6th visit to tier +//------------------------------------- + + itemDef + { + name victory18 + type ITEM_TYPE_BUTTON + rect 394 440 200 24 + text @MENUS_CONTINUE + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 200 + textaligny -1 + visible 1 + cvartest "tier_storyinfo" + showcvar + { + "18" + } + mouseEnter + { + } + mouseExit + { + } + action + { + hide victory18 + hide victorytext + hide models + show story18_continue + show story18text + playvoice "sound/chars/storyinfo/18.mp3" + show kyle18 + } + } + + + itemDef + { + name kyle18 + group models2 + type ITEM_TYPE_MODEL + rect 415 288 145 145 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/kyle/model_menu.skin" + asset_model "models/players/kyle/model.glm" + model_angle 180 + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 0 + decoration + } + + itemDef + { + name story18_continue + type ITEM_TYPE_BUTTON + rect 394 440 200 24 + text @MENUS_RETURN_TO_ACADEMY + font 2 + forecolor 1 1 1 1 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 200 + textaligny -1 + visible 0 + mouseEnter + { + } + mouseExit + { + } + action + { + close all + open ingameForceStatus +// uiScript startmap academy6 + } + } + + itemDef + { + name story18text + type ITEM_TYPE_TEXTSCROLL + rect 44 313 304 145 + text @TIER3_18 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 2 + textaligny -1 + lineHeight 18 + visible 0 + autowrapped + } + +//---------------------------------------------------------------------------------------------- +// +// SCANLINES OVER WHOLE MENU +// +//---------------------------------------------------------------------------------------------- + + itemDef + { + name static + group none + style WINDOW_STYLE_SHADER + rect 396 314 175 120 + background "gfx/menus/static" + backcolor 1 0 0 .2 + forecolor 1 0 0 .2 + visible 0 + decoration + cvartest "storyhead" + showcvar + { + "t2_trip" + } + } + + itemDef + { + name scan + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 640 + background "gfx/menus/scanlines" + forecolor 1 1 1 1 + visible 1 + decoration + } + + } +} + + + + + + + + + + + diff --git a/base/ui/ingameMissionSelect1.menu b/base/ui/ingameMissionSelect1.menu new file mode 100644 index 0000000..8e2ec51 --- /dev/null +++ b/base/ui/ingameMissionSelect1.menu @@ -0,0 +1,1276 @@ +//------------------------------------------------------------------------------------------------ +// Mission Select 1 Menu +// +// Select missions from the 1st tier. +// +//------------------------------------------------------------------------------------------------ +{ + menuDef + { + name "ingameMissionSelect1" + fullScreen 1 + rect 0 0 640 480 + visible 1 + focusColor 1 1 1 1 + descX 200 + descY 444 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + disablecolor .5 .5 .5 1 + fadeClamp 1.0 // sets the fadeup alpha + fadeCycle 25 // how often fade happens in milliseconds + fadeAmount 0.05 // amount to adjust alpha per cycle + onOpen + { + show mission_button + stopVoice + } + onESC + { + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/mission_back" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name eyecandy1 + group none + style WINDOW_STYLE_SHADER + rect 17 309 357 153 + background "gfx/menus/mission_bottomleft_grid" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name botlf + group none + style WINDOW_STYLE_SHADER + rect 0 300 80 180 + background "gfx/menus/mission_bottom_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name starfield + group none + style WINDOW_STYLE_FILLED + rect 20 20 600 256 + background "gfx/menus/star_field" + backcolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name stars_close + group none + style WINDOW_STYLE_FILLED + rect 20 20 600 256 + background "gfx/menus/star_field_zoom" + backcolor 1 1 1 0 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// BIG PLANET GRAPHICS +//---------------------------------------------------------------------------------------------- + itemDef + { + name tatooine + group none + style WINDOW_STYLE_FILLED + rect 320 148 0 0 + background "gfx/menus/planets/tatooine" + backcolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name bakura + group none + style WINDOW_STYLE_FILLED + rect 320 148 0 0 + background "gfx/menus/planets/bakura" + backcolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name blenjeel + group none + style WINDOW_STYLE_FILLED + rect 320 148 0 0 + background "gfx/menus/planets/blenjeel" + backcolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name corellia + group none + style WINDOW_STYLE_FILLED + rect 320 148 0 0 + background "gfx/menus/planets/core" + backcolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// GALAXY MAP +//---------------------------------------------------------------------------------------------- + itemDef + { + name galaxy + group none + style WINDOW_STYLE_FILLED + rect 64 20 512 256 + background "gfx/menus/mission_galaxy" + backcolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name map_title + type ITEM_TYPE_TEXT + rect 40 14 600 18 + text @MENUS_GALACTIC_MAP + font 2 + forecolor .549 .854 1 1 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 300 + textaligny -1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// TIER 1 LOCATION MARKERS ON GALAXY MAP +//---------------------------------------------------------------------------------------------- + itemDef + { + name loc_but01_off + group location_marker_off + style WINDOW_STYLE_SHADER + rect 239 188 32 32 + background "gfx/menus/mission_loc_but_off" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "tiers_complete" + disablecvar + { + "t1_sour" + } + cvarSubString + } + + itemDef + { + name loc_but01_on + group location_marker_on + style WINDOW_STYLE_SHADER + rect 239 188 32 32 + background "gfx/menus/mission_loc_but_on" + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "tiers_complete" + disablecvar + { + "t1_sour" + } + cvarSubString + } + + itemDef + { + name loc_but02_off + group location_marker_off + style WINDOW_STYLE_SHADER + rect 239 188 32 32 + background "gfx/menus/mission_loc_but_off" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "tiers_complete" + disablecvar + { + "t1_surprise" + } + cvarSubString + } + + itemDef + { + name loc_but02_on + group location_marker_on + style WINDOW_STYLE_SHADER + rect 239 188 32 32 + background "gfx/menus/mission_loc_but_on" + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "tiers_complete" + disablecvar + { + "t1_surprise" + } + cvarSubString + } + + itemDef + { + name loc_but03_off + group location_marker_off + style WINDOW_STYLE_SHADER + rect 216 122 20 20 + background "gfx/menus/mission_loc_but_off" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "tiers_complete" + disablecvar + { + "t1_fatal" + } + cvarSubString + } + + itemDef + { + name loc_but03_on + group location_marker_on + style WINDOW_STYLE_SHADER + rect 216 122 20 20 + background "gfx/menus/mission_loc_but_on" + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "tiers_complete" + disablecvar + { + "t1_fatal" + } + cvarSubString + } + + itemDef + { + name loc_but04_off + group location_marker_off + style WINDOW_STYLE_SHADER + rect 301 161 32 32 + background "gfx/menus/mission_loc_but_off" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "tiers_complete" + disablecvar + { + "t1_danger" + } + cvarSubString + } + + itemDef + { + name loc_but04_on + group location_marker_on + style WINDOW_STYLE_SHADER + rect 301 161 32 32 + background "gfx/menus/mission_loc_but_on" + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "tiers_complete" + disablecvar + { + "t1_danger" + } + cvarSubString + } + + itemDef + { + name loc_but05_off + group location_marker_off + style WINDOW_STYLE_SHADER + rect 320 128 28 28 + background "gfx/menus/mission_loc_but_off" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "tiers_complete" + disablecvar + { + "t1_rail" + } + cvarSubString + } + + itemDef + { + name loc_but05_on + group location_marker_on + style WINDOW_STYLE_SHADER + rect 320 128 28 28 + background "gfx/menus/mission_loc_but_on" + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "tiers_complete" + disablecvar + { + "t1_rail" + } + cvarSubString + } + + itemDef + { + name planet_name + type ITEM_TYPE_TEXT + rect 52 316 288 24 + font 2 + forecolor .549 .854 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + autowrapped + decoration + } + +//---------------------------------------------------------------------------------------------- +// TIER 1 MISSION BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name map_title + type ITEM_TYPE_TEXT + rect 10 305 400 20 + text @MENUS_MISSIONS + font 2 + forecolor .549 .854 1 1 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 200 + textaligny -1 + visible 1 + } + + itemDef + { + name miss1 + group mission_button + type ITEM_TYPE_BUTTON + rect 52 330 224 20 + text @MENUS_T1_SOUR_TITLE + desctext @MENUS_CLICK_BRIEFING + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + cvartest "tiers_complete" + disablecvar + { + "t1_sour" + } + cvarSubString + + mouseEnter + { + hide loc_but01_off + show loc_but01_on + + show planet_name + setitemtext planet_name @MENUS_TATOOINE + setitemrect planet_name 150 230 120 26 + + show button_glow + setitemrect button_glow 20 328 380 22 + + } + + mouseExit + { + hide loc_but01_on + show loc_but01_off + + hide planet_name + hide button_glow + } + + action + { + play "sound/weapons/force/protect.wav" + + fadeout starfield + fadeout galaxy + + fadein stars_close + + transition2 loc_but01_off 255 204 0 0 20 25 + transition2 loc_but02_off 255 204 0 0 20 25 + transition2 loc_but03_off 226 132 0 0 20 25 + transition2 loc_but04_off 317 177 0 0 20 25 + transition2 loc_but05_off 334 142 0 0 20 25 + + transition2 planet_name 270 250 256 20 20 15 + + transition2 tatooine 192 20 256 256 10 15 + + hide mission_button + hide location_marker_on + + show backbut + show accbut1 + + show briefing_background + show briefing_text + setitemtext briefing_text @BRIEFINGS_T1_SOUR + + hide button_glow + hide map_title + } + } + + itemDef + { + name miss2 + group mission_button + type ITEM_TYPE_BUTTON + rect 52 353 224 20 + text @MENUS_T1_SURPRISE_TITLE + desctext @MENUS_CLICK_BRIEFING + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + cvartest "tiers_complete" + disablecvar + { + "t1_surprise" + } + cvarSubString + + mouseEnter + { + hide loc_but02_off + show loc_but02_on + + show planet_name + setitemtext planet_name @MENUS_TATOOINE + setitemrect planet_name 150 230 120 26 + + show button_glow + setitemrect button_glow 20 351 380 22 + } + + mouseExit + { + hide loc_but02_on + show loc_but02_off + + hide planet_name + hide button_glow + } + + action + { + play "sound/weapons/force/protect.wav" + fadeout starfield + fadeout galaxy + fadein stars_close + + transition2 loc_but01_off 255 204 0 0 20 25 + transition2 loc_but02_off 255 204 0 0 20 25 + transition2 loc_but03_off 226 132 0 0 20 25 + transition2 loc_but04_off 317 177 0 0 20 25 + transition2 loc_but05_off 334 142 0 0 20 25 + + transition2 tatooine 192 20 256 256 10 15 + + transition2 planet_name 270 250 256 20 20 15 + hide mission_button + + hide location_marker_on + + show backbut + show accbut2 + + show briefing_background + show briefing_text + setitemtext briefing_text @BRIEFINGS_T1_SURPRISE + + hide button_glow + hide map_title + } + } + + itemDef + { + name miss3 + group mission_button + type ITEM_TYPE_BUTTON + rect 52 376 224 20 + text @MENUS_T1_FATAL_TITLE + desctext @MENUS_CLICK_BRIEFING + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + cvartest "tiers_complete" + disablecvar + { + "t1_fatal" + } + cvarSubString + + mouseEnter + { + hide loc_but03_off + show loc_but03_on + + show planet_name + setitemtext planet_name @MENUS_BAKURA + setitemrect planet_name 120 120 120 26 + + show button_glow + setitemrect button_glow 20 374 380 22 + } + mouseExit + { + hide loc_but03_on + show loc_but03_off + + hide planet_name + hide button_glow + } + action + { + play "sound/weapons/force/protect.wav" + fadeout starfield + fadeout galaxy + fadein stars_close + transition2 loc_but01_off 255 204 0 0 20 25 + transition2 loc_but02_off 255 204 0 0 20 25 + transition2 loc_but03_off 226 132 0 0 20 25 + transition2 loc_but04_off 317 177 0 0 20 25 + transition2 loc_but05_off 334 142 0 0 20 25 + transition2 bakura 192 20 256 256 10 15 + + transition2 planet_name 270 250 256 20 20 15 + + hide mission_button + hide location_marker_on + show backbut + show accbut3 + show briefing_background + show briefing_text + setitemtext briefing_text @BRIEFINGS_T1_FATAL + hide button_glow + hide map_title + } + } + + itemDef + { + name miss4 + group mission_button + type ITEM_TYPE_BUTTON + rect 52 399 224 20 + text @MENUS_T1_DANGER_TITLE + desctext @MENUS_CLICK_BRIEFING + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + cvartest "tiers_complete" + disablecvar + { + "t1_danger" + } + cvarSubString + + mouseEnter + { + hide loc_but04_off + show loc_but04_on + + show planet_name + setitemtext planet_name @MENUS_BLENJEEL + setitemrect planet_name 300 200 120 26 + + show button_glow + setitemrect button_glow 20 397 380 22 + } + mouseExit + { + hide loc_but04_on + show loc_but04_off + + hide planet_name + hide button_glow + } + + action + { + play "sound/weapons/force/protect.wav" + fadeout starfield + fadeout galaxy + fadein stars_close + transition2 loc_but01_off 255 204 0 0 20 25 + transition2 loc_but02_off 255 204 0 0 20 25 + transition2 loc_but03_off 226 132 0 0 20 25 + transition2 loc_but04_off 317 177 0 0 20 25 + transition2 loc_but05_off 334 142 0 0 20 25 + transition2 blenjeel 192 20 256 256 10 15 + + transition2 planet_name 270 250 256 20 20 15 + + hide mission_button + + hide location_marker_on + show backbut + show accbut4 + + show briefing_background + show briefing_text + setitemtext briefing_text @BRIEFINGS_T1_DANGER + + hide button_glow + hide map_title + } + } + + itemDef + { + name miss5 + group mission_button + type ITEM_TYPE_BUTTON + rect 52 422 224 20 + text @MENUS_T1_RAIL_TITLE + desctext @MENUS_CLICK_BRIEFING + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + cvartest "tiers_complete" + disablecvar + { + "t1_rail" + } + cvarSubString + + mouseEnter + { + hide loc_but05_off + show loc_but05_on + + show planet_name + setitemtext planet_name @MENUS_CORELLIA + setitemrect planet_name 380 120 120 26 + + show button_glow + setitemrect button_glow 20 420 380 22 + } + mouseExit + { + hide loc_but05_on + show loc_but05_off + + hide planet_name + hide button_glow + } + action + { + play "sound/weapons/force/protect.wav" + fadeout starfield + fadeout galaxy + fadein stars_close + transition2 loc_but01_off 255 204 0 0 20 25 + transition2 loc_but02_off 255 204 0 0 20 25 + transition2 loc_but03_off 226 132 0 0 20 25 + transition2 loc_but04_off 317 177 0 0 20 25 + transition2 loc_but05_off 334 142 0 0 20 25 + transition2 corellia 192 20 256 256 10 15 + + transition2 planet_name 270 250 256 20 20 15 + hide mission_button + + hide location_marker_on + show backbut + show accbut5 + show briefing_background + show briefing_text + setitemtext briefing_text @BRIEFINGS_T1_RAIL + hide button_glow + hide map_title + } + } + +//---------------------------------------------------------------------------------------------- +// MISSION BRIEF TEXT +//---------------------------------------------------------------------------------------------- + itemDef + { + name briefing_background + group none + style WINDOW_STYLE_FILLED + rect 42 314 320 114 + backcolor 0 0 .35 .7 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .8 1 + visible 0 + decoration + } + + itemDef + { + name briefing_text + type ITEM_TYPE_TEXTSCROLL + rect 42 314 320 114 + text @BRIEFINGS_T1_SOUR + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + lineHeight 18 + visible 0 + autowrapped + } + +//---------------------------------------------------------------------------------------------- +// GENERAL BACK BUTTON - if you don't want this mission +//---------------------------------------------------------------------------------------------- + itemDef + { + name backbut + type ITEM_TYPE_BUTTON + rect 52 430 172 24 + text @MENUS_BACK_CAPS + desctext @MENUS_DIFF_MISSION + font 2 + forecolor 1 .682 0 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + mouseEnter + { + show button_glow + setitemrect button_glow 15 430 200 20 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/esc.wav" + fadein starfield + fadein galaxy + fadeout stars_close + + transition2 loc_but01_off 239 188 32 32 20 25 + transition2 loc_but02_off 239 188 32 32 20 25 + transition2 loc_but03_off 216 122 20 20 20 25 + transition2 loc_but04_off 301 161 32 32 20 25 + transition2 loc_but05_off 320 128 28 28 20 25 + + hide backbut + + hide planet_name + + hide accbuttons + + hide briefing_text + hide tatooine + hide bakura + hide blenjeel + hide corellia + hide briefing_background + + hide button_glow + show mission_button + show map_title + } + } + +//---------------------------------------------------------------------------------------------- +// ACCEPT BUTTONS - IF YOU CHOOSE A PARTICULAR MISSION +//---------------------------------------------------------------------------------------------- + itemDef + { + name accbut1 + group accbuttons + type ITEM_TYPE_BUTTON + rect 268 430 172 24 + text @MENUS_ACCEPT + desctext @MENUS_ACCEPT_MISSION + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + mouseEnter + { + show button_glow + setitemrect button_glow 200 430 200 20 + } + mouseExit + { + hide button_glow + } + + action + { + hide backbut + hide briefing_text + show kyle + show nextscreen_button + show accept1text + playVoice "sound/chars/kyle/07kyk001.mp3" + hide accbuttons + setfocus nextscreen_button + setcvar tier_mapname "maptransition t1_sour" + hide button_glow + hide briefing_background + } + } + + itemDef + { + name accbut2 + group accbuttons + type ITEM_TYPE_BUTTON + rect 268 430 172 24 + text @MENUS_ACCEPT + desctext @MENUS_ACCEPT_MISSION + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + mouseEnter + { + show button_glow + setitemrect button_glow 200 430 200 20 + } + mouseExit + { + hide button_glow + } + action + { + hide backbut + hide briefing_text + show kyle + show nextscreen_button + show accept2text + playVoice "sound/chars/kyle/04kyk001.mp3" + hide accbuttons + setfocus nextscreen_button + setcvar tier_mapname "maptransition t1_surprise" + hide button_glow + hide briefing_background + } + } + + itemDef + { + name accbut3 + group accbuttons + type ITEM_TYPE_BUTTON + rect 268 430 172 24 + text @MENUS_ACCEPT + desctext @MENUS_ACCEPT_MISSION + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + mouseEnter + { + show button_glow + setitemrect button_glow 200 430 200 20 + } + mouseExit + { + hide button_glow + } + action + { + hide backbut + hide briefing_text + show luke + show nextscreen_button + show accept3text + playVoice "sound/chars/luke/08luk001.mp3" + hide accbuttons + setfocus nextscreen_button + setcvar tier_mapname "maptransition t1_fatal" + hide button_glow + hide briefing_background + } + } + + itemDef + { + name accbut4 + group accbuttons + type ITEM_TYPE_BUTTON + rect 268 430 172 24 + text @MENUS_ACCEPT + desctext @MENUS_ACCEPT_MISSION + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + mouseEnter + { + show button_glow + setitemrect button_glow 200 430 200 20 + } + mouseExit + { + hide button_glow + } + action + { + hide backbut + hide briefing_text + show luke + show nextscreen_button + show accept4text + playVoice "sound/chars/luke/06luk001.mp3" + hide accbuttons + setfocus nextscreen_button + setcvar tier_mapname "maptransition t1_danger" + hide button_glow + hide briefing_background + } + } + + itemDef + { + name accbut5 + group accbuttons + type ITEM_TYPE_BUTTON + rect 268 430 172 24 + text @MENUS_ACCEPT + desctext @MENUS_ACCEPT_MISSION + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + mouseEnter + { + show button_glow + setitemrect button_glow 200 430 200 20 + } + mouseExit + { + hide button_glow + } + action + { + hide backbut + hide briefing_text + show kyle + show nextscreen_button + show accept5text + playVoice "sound/chars/kyle/05kyk001.mp3" + hide accbuttons + setfocus nextscreen_button + setcvar tier_mapname "maptransition t1_rail" + hide button_glow + hide briefing_background + } + } + +//---------------------------------------------------------------------------------------------- +// MODELS FOR V-O +//---------------------------------------------------------------------------------------------- + itemDef + { + name luke + group models + type ITEM_TYPE_MODEL + rect 415 285 149 149 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/luke/model_menu.skin" + asset_model "models/players/luke/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 0 + decoration + } + + itemDef + { + name kyle + group models + type ITEM_TYPE_MODEL + rect 415 288 145 145 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/kyle/model_menu.skin" + asset_model "models/players/kyle/model.glm" + model_angle 180 + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 0 + decoration + } + + itemDef + { + name prot + group models + type ITEM_TYPE_MODEL + rect 426 317 116 116 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/protocol/model_menu.skin" + asset_model "models/players/protocol/model.glm" + model_angle 180 + model_g2mins 15 -20 17 + model_g2maxs 60 20 50 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// BRIEFING SUBTITLES +//---------------------------------------------------------------------------------------------- + itemDef + { + name accept1text + type ITEM_TYPE_TEXTSCROLL + rect 30 316 320 130 + text @T1_SOUR_07KYK001 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + lineHeight 18 + visible 0 + autowrapped + } + + itemDef + { + name accept2text + type ITEM_TYPE_TEXT + rect 30 316 320 130 + text @T1_SURPRISE_04KYK001 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + autowrapped + } + + itemDef + { + name accept3text + type ITEM_TYPE_TEXT + rect 30 316 320 130 + text @T1_FATAL_08LUK001 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + autowrapped + } + + itemDef + { + name accept4text + type ITEM_TYPE_TEXT + rect 30 316 320 130 + text @T1_DANGER_06LUK001 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + autowrapped + } + + itemDef + { + name accept5text + type ITEM_TYPE_TEXT + rect 30 316 320 130 + text @T1_RAIL_05KYK001 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + autowrapped + } + +//---------------------------------------------------------------------------------------------- +// NEXT BUTTONS - to go to next screen +//---------------------------------------------------------------------------------------------- + itemDef + { + name nextscreen_button + type ITEM_TYPE_BUTTON + rect 530 440 172 24 + text @MENUS_NEXT + desctext @MENUS_ADVANCE_NEXT + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + + mouseEnter + { + } + mouseExit + { + } + action + { + play "sound/interface/menuroam.wav" + close all + open ingameForceSelect + } + } + +//---------------------------------------------------------------------------------------------- +// SCANLINES OVER WHOLE MENU +//---------------------------------------------------------------------------------------------- + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name scan + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 640 + background "gfx/menus/scanlines" + forecolor 1 1 1 1 + visible 1 + decoration + } + + } +} + + + + + + + + + + + diff --git a/base/ui/ingameMissionSelect2.menu b/base/ui/ingameMissionSelect2.menu new file mode 100644 index 0000000..d40633c --- /dev/null +++ b/base/ui/ingameMissionSelect2.menu @@ -0,0 +1,1334 @@ +//------------------------------------------------------------------------------------------------ +// Mission Select 2 Menu +// +// Select missions from the 2nd tier. +// +//------------------------------------------------------------------------------------------------ +{ + menuDef + { + name "ingameMissionSelect2" + fullScreen 1 + rect 0 0 640 480 + visible 1 + focusColor 1 1 1 1 + descX 200 + descY 444 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + disablecolor .5 .5 .5 1 + fadeClamp 1.0 // sets the fadeup alpha + fadeCycle 25 // how often fade happens in milliseconds + fadeAmount 0.05 // amount to adjust alpha per cycle + onOpen + { + show mission_button + stopVoice + } + onESC + { + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/mission_back" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name eyecandy1 + group none + style WINDOW_STYLE_SHADER + rect 17 309 357 153 + background "gfx/menus/mission_bottomleft_grid" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name botlf + group none + style WINDOW_STYLE_SHADER + rect 0 300 80 180 + background "gfx/menus/mission_bottom_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name starfield + group none + style WINDOW_STYLE_FILLED + rect 20 20 600 256 + background "gfx/menus/star_field" + backcolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name stars_close + group none + style WINDOW_STYLE_FILLED + //rect 320 148 0 0 + rect 20 20 600 256 + background "gfx/menus/star_field_zoom" + backcolor 1 1 1 0 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// BIG PLANET GRAPHICS +//---------------------------------------------------------------------------------------------- + itemDef + { + name krildor + group none + style WINDOW_STYLE_FILLED + rect 320 148 0 0 + background "gfx/menus/planets/krildor" + backcolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name narkreeta + group none + style WINDOW_STYLE_FILLED + rect 320 148 0 0 + background "gfx/menus/planets/narkreeta" + backcolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name dosuun + group none + style WINDOW_STYLE_FILLED + rect 320 148 0 0 + background "gfx/menus/planets/dosuun" + backcolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name zonju + group none + style WINDOW_STYLE_FILLED + rect 320 148 0 0 + background "gfx/menus/planets/zonju" + backcolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name coruscant + group none + style WINDOW_STYLE_FILLED + rect 320 148 0 0 + background "gfx/menus/planets/coruscant" + backcolor 1 1 1 1 + visible 1 + decoration + } + + +//---------------------------------------------------------------------------------------------- +// GALAXY MAP +//---------------------------------------------------------------------------------------------- + itemDef + { + name galaxy + group none + style WINDOW_STYLE_FILLED + rect 64 20 512 256 + background "gfx/menus/mission_galaxy" + backcolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name map_title + type ITEM_TYPE_TEXT + rect 40 14 600 18 + text @MENUS_GALACTIC_MAP + font 2 + forecolor .549 .854 1 1 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 300 + textaligny -1 + visible 1 + } + +//---------------------------------------------------------------------------------------------- +// TIER 2 LOCATION MARKERS ON GALAXY MAP +//---------------------------------------------------------------------------------------------- + itemDef + { + name loc_but01_off + group none + style WINDOW_STYLE_SHADER + rect 324 158 32 32 + background "gfx/menus/mission_loc_but_off" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "tiers_complete" + disablecvar + { + "t2_rancor" + } + cvarSubString + } + + itemDef + { + name loc_but01_on + group none + style WINDOW_STYLE_SHADER + rect 324 158 32 32 + background "gfx/menus/mission_loc_but_on" + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "tiers_complete" + disablecvar + { + "t2_rancor" + } + cvarSubString + } + + itemDef + { + name loc_but02_off + group none + style WINDOW_STYLE_SHADER + rect 154 208 32 32 + background "gfx/menus/mission_loc_but_off" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "tiers_complete" + disablecvar + { + "t2_trip" + } + cvarSubString + } + + itemDef + { + name loc_but02_on + group none + style WINDOW_STYLE_SHADER + rect 154 208 32 32 + background "gfx/menus/mission_loc_but_on" + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "tiers_complete" + disablecvar + { + "t2_trip" + } + cvarSubString + } + + itemDef + { + name loc_but03_off + group none + style WINDOW_STYLE_SHADER + rect 260 104 20 20 + background "gfx/menus/mission_loc_but_off" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "tiers_complete" + disablecvar + { + "t2_wedge" + } + cvarSubString + } + + itemDef + { + name loc_but03_on + group none + style WINDOW_STYLE_SHADER + rect 260 104 20 20 + background "gfx/menus/mission_loc_but_on" + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "tiers_complete" + disablecvar + { + "t2_wedge" + } + cvarSubString + } + + itemDef + { + name loc_but04_off + group none + style WINDOW_STYLE_SHADER + rect 335 91 26 26 + background "gfx/menus/mission_loc_but_off" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "tiers_complete" + disablecvar + { + "t2_rogue" + } + cvarSubString + } + + itemDef + { + name loc_but04_on + group none + style WINDOW_STYLE_SHADER + rect 335 91 26 26 + background "gfx/menus/mission_loc_but_on" + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "tiers_complete" + disablecvar + { + "t2_rogue" + } + cvarSubString + } + + itemDef + { + name loc_but05_off + group none + style WINDOW_STYLE_SHADER + rect 150 150 28 28 + background "gfx/menus/mission_loc_but_off" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "tiers_complete" + disablecvar + { + "t2_dpred" + } + cvarSubString + } + + itemDef + { + name loc_but05_on + group none + style WINDOW_STYLE_SHADER + rect 150 150 28 28 + background "gfx/menus/mission_loc_but_on" + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "tiers_complete" + disablecvar + { + "t2_dpred" + } + cvarSubString + } + + itemDef + { + name planet_name + type ITEM_TYPE_TEXT + rect 52 316 288 24 + font 2 + forecolor .549 .854 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + autowrapped + decoration + } + +//---------------------------------------------------------------------------------------------- +// MODELS FOR V-O +//---------------------------------------------------------------------------------------------- + itemDef + { + name luke + group models + type ITEM_TYPE_MODEL + rect 415 285 149 149 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/luke/model_menu.skin" + asset_model "models/players/luke/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 0 + decoration + } + + itemDef + { + name kyle + group models + type ITEM_TYPE_MODEL + rect 415 288 145 145 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/kyle/model_menu.skin" + asset_model "models/players/kyle/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 0 + decoration + } + + itemDef + { + name prot + group models + type ITEM_TYPE_MODEL + rect 426 317 116 116 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/protocol/model_menu.skin" + asset_model "models/players/protocol/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 17 + model_g2maxs 60 20 50 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 0 + decoration + } + + itemDef + { + name wedge + group models + type ITEM_TYPE_MODEL + rect 426 317 116 116 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/rebel_pilot/model_default.skin" + asset_model "models/players/rebel_pilot/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 18 + model_g2maxs 60 20 50 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 0 + decoration + } +//---------------------------------------------------------------------------------------------- +// BUTTONS +//---------------------------------------------------------------------------------------------- + // GENERAL BACK BUTTON - if you don't want mission + itemDef + { + name backbut + type ITEM_TYPE_BUTTON + rect 52 430 172 24 + text @MENUS_BACK_CAPS + desctext @MENUS_DIFF_MISSION + font 2 + forecolor 1 .682 0 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + mouseEnter + { + show button_glow + setitemrect button_glow 15 430 200 20 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/esc.wav" + fadein starfield + fadein galaxy + fadeout stars_close + transition2 loc_but01_off 324 158 32 32 20 25 + transition2 loc_but02_off 154 208 32 32 20 25 + transition2 loc_but03_off 260 104 20 20 20 25 + transition2 loc_but04_off 335 91 26 26 20 25 + transition2 loc_but05_off 150 150 28 28 20 25 + hide backbut + show mission_button + hide accbut1 + hide accbut2 + hide accbut3 + hide accbut4 + hide accbut5 + + hide krildor + hide narkreeta + hide dosuun + hide zonju + hide coruscant + + hide planet_name + show map_title + + hide briefing_background + hide briefing_text + + hide button_glow + } + } + +//---------------------------------------------------------------------------------------------- +// TIER 1 MISSION BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name map_title + type ITEM_TYPE_TEXT + rect 10 305 400 20 + text @MENUS_MISSIONS + font 2 + forecolor .549 .854 1 1 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 200 + textaligny -1 + visible 1 + } + + itemDef + { + name miss1 + group mission_button + type ITEM_TYPE_BUTTON + rect 52 330 224 20 + text @MENUS_T2_RANCOR_TITLE + desctext @MENUS_CLICK_BRIEFING + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + cvartest "tiers_complete" + disablecvar + { + "t2_rancor" + } + cvarSubString + + mouseEnter + { + hide loc_but01_off + show loc_but01_on + + show planet_name + setitemtext planet_name @MENUS_NAR_KREETA + setitemrect planet_name 300 190 120 26 + + show button_glow + setitemrect button_glow 20 328 380 22 + } + mouseExit + { + hide loc_but01_on + show loc_but01_off + + hide planet_name + hide button_glow + } + action + { + play "sound/weapons/force/protect.wav" + fadeout starfield + fadeout galaxy + fadein stars_close + transition2 loc_but01_off 340 174 0 0 20 25 + transition2 loc_but02_off 170 224 0 0 20 25 + transition2 loc_but03_off 270 114 0 0 20 25 + transition2 loc_but04_off 348 104 0 0 20 25 + transition2 loc_but05_off 164 164 0 0 20 25 + transition2 narkreeta 192 20 256 256 10 15 + hide mission_button + hide loc_but01_on + hide loc_but02_on + hide loc_but03_on + hide loc_but04_on + hide loc_but05_on + show backbut + show accbut1 + + show briefing_background + show briefing_text + setitemtext briefing_text @BRIEFINGS_T2_RANCOR + + transition2 planet_name 270 250 256 20 20 15 + hide map_title + hide button_glow + } + } + + itemDef + { + name miss2 + group mission_button + type ITEM_TYPE_BUTTON + rect 52 353 224 20 + text @MENUS_T2_TRIP_TITLE + desctext @MENUS_CLICK_BRIEFING + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + cvartest "tiers_complete" + disablecvar + { + "t2_trip" + } + cvarSubString + + mouseEnter + { + hide loc_but02_off + show loc_but02_on + + show planet_name + setitemtext planet_name @MENUS_ZONJU_V + setitemrect planet_name 70 210 120 26 + + show button_glow + setitemrect button_glow 20 351 380 22 + } + mouseExit + { + hide loc_but02_on + show loc_but02_off + + hide planet_name + hide button_glow + } + action + { + play "sound/weapons/force/protect.wav" + fadeout starfield + fadeout galaxy + fadein stars_close + transition2 loc_but01_off 340 174 0 0 20 25 + transition2 loc_but02_off 170 224 0 0 20 25 + transition2 loc_but03_off 270 114 0 0 20 25 + transition2 loc_but04_off 348 104 0 0 20 25 + transition2 loc_but05_off 164 164 0 0 20 25 + transition2 zonju 192 20 256 256 10 15 + hide mission_button + hide loc_but01_on + hide loc_but02_on + hide loc_but03_on + hide loc_but04_on + hide loc_but05_on + show backbut + show accbut2 + + show briefing_background + show briefing_text + setitemtext briefing_text @BRIEFINGS_T2_TRIP + + transition2 planet_name 270 250 256 20 20 15 + hide map_title + hide button_glow + } + } + + itemDef + { + name miss3 + group mission_button + type ITEM_TYPE_BUTTON + rect 52 376 224 20 + text @MENUS_T2_WEDGE_TITLE + desctext @MENUS_CLICK_BRIEFING + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + cvartest "tiers_complete" + disablecvar + { + "t2_wedge" + } + cvarSubString + + mouseEnter + { + hide loc_but03_off + show loc_but03_on + + show planet_name + setitemtext planet_name @MENUS_KRIL_DOR + setitemrect planet_name 190 80 120 26 + + show button_glow + setitemrect button_glow 20 374 380 22 + } + mouseExit + { + hide loc_but03_on + show loc_but03_off + + hide planet_name + hide button_glow + } + action + { + play "sound/weapons/force/protect.wav" + fadeout starfield + fadeout galaxy + fadein stars_close + transition2 loc_but01_off 340 174 0 0 20 25 + transition2 loc_but02_off 170 224 0 0 20 25 + transition2 loc_but03_off 270 114 0 0 20 25 + transition2 loc_but04_off 348 104 0 0 20 25 + transition2 loc_but05_off 164 164 0 0 20 25 + transition2 krildor 192 20 256 256 10 15 + hide mission_button + hide loc_but01_on + hide loc_but02_on + hide loc_but03_on + hide loc_but04_on + hide loc_but05_on + show backbut + show accbut3 + + show briefing_background + show briefing_text + setitemtext briefing_text @BRIEFINGS_T2_WEDGE + + transition2 planet_name 270 250 256 20 20 15 + hide map_title + hide button_glow + } + } + + itemDef + { + name miss4 + group mission_button + type ITEM_TYPE_BUTTON + rect 52 399 224 20 + text @MENUS_T2_ROGUE_TITLE + desctext @MENUS_CLICK_BRIEFING + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + cvartest "tiers_complete" + disablecvar + { + "t2_rogue" + } + cvarSubString + + mouseEnter + { + hide loc_but04_off + show loc_but04_on + + show planet_name + setitemtext planet_name @MENUS_CORUSCANT + setitemrect planet_name 380 90 120 26 + + show button_glow + setitemrect button_glow 20 397 380 22 + } + mouseExit + { + hide loc_but04_on + show loc_but04_off + + hide planet_name + hide button_glow + } + action + { + play "sound/weapons/force/protect.wav" + fadeout starfield + fadeout galaxy + fadein stars_close + transition2 loc_but01_off 340 174 0 0 20 25 + transition2 loc_but02_off 170 224 0 0 20 25 + transition2 loc_but03_off 270 114 0 0 20 25 + transition2 loc_but04_off 348 104 0 0 20 25 + transition2 loc_but05_off 164 164 0 0 20 25 + transition2 coruscant 192 20 256 256 10 15 + hide mission_button + hide loc_but01_on + hide loc_but02_on + hide loc_but03_on + hide loc_but04_on + hide loc_but05_on + show backbut + show accbut4 + + show briefing_background + show briefing_text + setitemtext briefing_text @BRIEFINGS_T2_ROGUE + + transition2 planet_name 270 250 256 20 20 15 + hide map_title + hide button_glow + } + } + + itemDef + { + name miss5 + group mission_button + type ITEM_TYPE_BUTTON + rect 52 422 224 20 + text @MENUS_T2_DPRED_TITLE + desctext @MENUS_CLICK_BRIEFING + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + cvartest "tiers_complete" + disablecvar + { + "t2_dpred" + } + cvarSubString + + mouseEnter + { + hide loc_but05_off + show loc_but05_on + + show planet_name + setitemtext planet_name @MENUS_DOSUUN + setitemrect planet_name 60 150 120 26 + + show button_glow + setitemrect button_glow 20 420 380 22 + } + mouseExit + { + hide loc_but05_on + show loc_but05_off + + hide planet_name + hide button_glow + } + action + { + play "sound/weapons/force/protect.wav" + fadeout starfield + fadeout galaxy + fadein stars_close + transition2 loc_but01_off 340 174 0 0 20 25 + transition2 loc_but02_off 170 224 0 0 20 25 + transition2 loc_but03_off 270 114 0 0 20 25 + transition2 loc_but04_off 348 104 0 0 20 25 + transition2 loc_but05_off 164 164 0 0 20 25 + transition2 dosuun 192 20 256 256 10 15 + hide mission_button + hide loc_but01_on + hide loc_but02_on + hide loc_but03_on + hide loc_but04_on + hide loc_but05_on + show backbut + show accbut5 + + show briefing_background + show briefing_text + setitemtext briefing_text @BRIEFINGS_T2_DPRED + + transition2 planet_name 270 250 256 20 20 15 + hide map_title + hide button_glow + } + } + + +//---------------------------------------------------------------------------------------------- +// MISSION BRIEF TEXT +//---------------------------------------------------------------------------------------------- + itemDef + { + name briefing_background + group none + style WINDOW_STYLE_FILLED + rect 42 314 320 114 + backcolor 0 0 .35 .7 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .8 1 + visible 0 + decoration + } + + itemDef + { + name briefing_text + type ITEM_TYPE_TEXTSCROLL + rect 42 314 320 114 + text @BRIEFINGS_T1_SOUR + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + lineHeight 18 + visible 0 + autowrapped + } + +//---------------------------------------------------------------------------------------------- +// ACCEPT BUTTONS - IF YOU CHOOSE A PARTICULAR MISSION +//---------------------------------------------------------------------------------------------- + itemDef + { + name accbut1 + group accbuttons + type ITEM_TYPE_BUTTON + rect 268 430 172 24 + text @MENUS_ACCEPT + desctext @MENUS_ACCEPT_MISSION + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + mouseEnter + { + show button_glow + setitemrect button_glow 200 430 200 20 + } + mouseExit + { + hide button_glow + } + action + { + hide backbut + show prot + show nextscreen_button + show accept1text + playVoice "sound/chars/protocol/12pro001.mp3" + hide accbuttons + setfocus nextscreen_button + setcvar tier_mapname "maptransition t2_rancor" + hide briefing_background + hide briefing_text + hide button_glow + } + } + + itemDef + { + name accbut2 + group accbuttons + type ITEM_TYPE_BUTTON + rect 268 430 172 24 + text @MENUS_ACCEPT + desctext @MENUS_ACCEPT_MISSION + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + mouseEnter + { + show button_glow + setitemrect button_glow 200 430 200 20 + } + mouseExit + { + hide button_glow + } + action + { + hide backbut + show prot + show nextscreen_button + show accept2text + playVoice "sound/chars/protocol/15pro001.mp3" + hide accbuttons + setfocus nextscreen_button + setcvar tier_mapname "maptransition t2_trip" + hide briefing_background + hide briefing_text + hide button_glow + } + } + + itemDef + { + name accbut3 + group accbuttons + type ITEM_TYPE_BUTTON + rect 268 430 172 24 + text @MENUS_ACCEPT + desctext @MENUS_ACCEPT_MISSION + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + mouseEnter + { + show button_glow + setitemrect button_glow 200 430 200 20 + } + mouseExit + { + hide button_glow + } + action + { + hide backbut + show wedge + show nextscreen_button + show accept3text + playVoice "sound/chars/wedge/13wea001.mp3" + hide accbuttons + setfocus nextscreen_button + setcvar tier_mapname "maptransition t2_wedge" + hide briefing_background + hide briefing_text + hide button_glow + } + } + + itemDef + { + name accbut4 + group accbuttons + type ITEM_TYPE_BUTTON + rect 268 430 172 24 + text @MENUS_ACCEPT + desctext @MENUS_ACCEPT_MISSION + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + mouseEnter + { + show button_glow + setitemrect button_glow 200 430 200 20 + } + mouseExit + { + hide button_glow + } + action + { + hide backbut + + show nextscreen_button + show accept4text + + show kyle + playVoice "sound/chars/kyle/14kyk001.mp3" + + hide accbuttons + setfocus nextscreen_button + setcvar tier_mapname "maptransition t2_rogue" + hide briefing_background + hide briefing_text + hide button_glow + } + } + + itemDef + { + name accbut5 + group accbuttons + type ITEM_TYPE_BUTTON + rect 268 430 172 24 + text @MENUS_ACCEPT + desctext @MENUS_ACCEPT_MISSION + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + mouseEnter + { + show button_glow + setitemrect button_glow 200 430 200 20 + } + mouseExit + { + hide button_glow + } + action + { + hide backbut + show prot + show nextscreen_button + show accept5text + playVoice "sound/chars/protocol/16pro001.mp3" + hide accbuttons + setfocus nextscreen_button + setcvar tier_mapname "maptransition t2_dpred" + hide briefing_background + hide briefing_text + hide button_glow + } + } + +//---------------------------------------------------------------------------------------------- +// BRIEFING SUBTITLES +//---------------------------------------------------------------------------------------------- + itemDef + { + name accept1text + type ITEM_TYPE_TEXTSCROLL + rect 30 316 320 130 + text @T2_RANCOR_12PRO001 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + lineHeight 18 + visible 0 + autowrapped + } + + itemDef + { + name accept2text + type ITEM_TYPE_TEXTSCROLL + rect 30 316 320 130 + text @T2_TRIP_15PRO001 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + lineHeight 18 + visible 0 + autowrapped + } + + itemDef + { + name accept3text + type ITEM_TYPE_TEXTSCROLL + rect 30 316 320 130 + text @T2_WEDGE_13WEA001 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + lineHeight 18 + visible 0 + autowrapped + } + + itemDef + { + name accept4text + type ITEM_TYPE_TEXTSCROLL + rect 30 316 320 130 + text @T2_ROGUE_14KYK001 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + lineHeight 18 + visible 0 + autowrapped + } + + itemDef + { + name accept5text + type ITEM_TYPE_TEXTSCROLL + rect 30 316 320 130 + text @T2_DPRED_16PRO001 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + lineHeight 18 + visible 0 + autowrapped + } + +//---------------------------------------------------------------------------------------------- +// NEXT BUTTONS - to go to next screen +//---------------------------------------------------------------------------------------------- + itemDef + { + name nextscreen_button + type ITEM_TYPE_BUTTON + rect 530 440 172 24 + text @MENUS_NEXT + desctext @MENUS_ADVANCE_NEXT + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + + mouseEnter + { + } + mouseExit + { + } + action + { + play "sound/interface/menuroam.wav" + close all + open ingameForceSelect + } + } + +//---------------------------------------------------------------------------------------------- +// SCANLINES OVER WHOLE MENU +//---------------------------------------------------------------------------------------------- + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name static + group none + style WINDOW_STYLE_SHADER + rect 396 314 175 120 + background "gfx/menus/static" + backcolor 1 0 0 .2 + forecolor 1 0 0 .2 + visible 0 + decoration + } + + itemDef + { + name scan + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 640 + background "gfx/menus/scanlines" + forecolor 1 1 1 1 + visible 1 + decoration + } + + } +} + + + + + + + + + + + diff --git a/base/ui/ingameMissionSelect3.menu b/base/ui/ingameMissionSelect3.menu new file mode 100644 index 0000000..3d9e21e --- /dev/null +++ b/base/ui/ingameMissionSelect3.menu @@ -0,0 +1,1311 @@ +//------------------------------------------------------------------------------------------------ +// Mission Select 3 Menu +// +// Select missions from the 3rd tier. +// +//------------------------------------------------------------------------------------------------ +{ + menuDef + { + name "ingameMissionSelect3" + fullScreen 1 + rect 0 0 640 480 + visible 1 + focusColor 1 1 1 1 + descX 200 + descY 444 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + disablecolor .5 .5 .5 1 + fadeClamp 1.0 // sets the fadeup alpha + fadeCycle 25 // how often fade happens in milliseconds + fadeAmount 0.05 // amount to adjust alpha per cycle + onOpen + { + show mission_button + stopVoice + } + onESC + { + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/mission_back" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name eyecandy1 + group none + style WINDOW_STYLE_SHADER + rect 17 309 357 153 + background "gfx/menus/mission_bottomleft_grid" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name botlf + group none + style WINDOW_STYLE_SHADER + rect 0 300 80 180 + background "gfx/menus/mission_bottom_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name starfield + group none + style WINDOW_STYLE_FILLED + rect 20 20 600 256 + background "gfx/menus/star_field" + backcolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name stars_close + group none + style WINDOW_STYLE_FILLED + rect 20 20 600 256 + background "gfx/menus/star_field_zoom" + backcolor 1 1 1 0 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// BIG PLANET GRAPHICS +//---------------------------------------------------------------------------------------------- + itemDef + { + name big_planet + group none + style WINDOW_STYLE_FILLED + rect 320 148 0 0 + background "gfx/menus/planets/yalara" + backcolor 1 1 1 1 + visible 1 + decoration + } + + + itemDef + { + name yalara + group none + style WINDOW_STYLE_FILLED + rect 320 148 0 0 + background "gfx/menus/planets/yalara" + backcolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name chandrila + group none + style WINDOW_STYLE_FILLED + rect 320 148 0 0 + background "gfx/menus/planets/chandrila" + backcolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name ordmantell + group none + style WINDOW_STYLE_FILLED + rect 320 148 0 0 + background "gfx/menus/planets/ordman" + backcolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name tanaab + group none + style WINDOW_STYLE_FILLED + rect 320 148 0 0 + background "gfx/menus/planets/tanaab" + backcolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name byss + group none + style WINDOW_STYLE_FILLED + rect 320 148 0 0 + background "gfx/menus/planets/byss" + backcolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// GALAXY MAP +//---------------------------------------------------------------------------------------------- + itemDef + { + name galaxy + group none + style WINDOW_STYLE_FILLED + rect 64 20 512 256 + background "gfx/menus/mission_galaxy" + backcolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name map_title + type ITEM_TYPE_TEXT + rect 40 14 600 18 + text @MENUS_GALACTIC_MAP + font 2 + forecolor .549 .854 1 1 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 300 + textaligny -1 + visible 1 + } + +//---------------------------------------------------------------------------------------------- +// TIER 3 LOCATION MARKERS ON GALAXY MAP +//---------------------------------------------------------------------------------------------- + itemDef + { + name loc_but01_off + group location_marker + style WINDOW_STYLE_SHADER + rect 270 109 20 20 + background "gfx/menus/mission_loc_but_off" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "tiers_complete" + disablecvar + { + "t3_rift" + } + cvarSubString + } + + itemDef + { + name loc_but01_on + group location_marker + style WINDOW_STYLE_SHADER + rect 270 109 20 20 + background "gfx/menus/mission_loc_but_on" + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "tiers_complete" + disablecvar + { + "t3_rift" + } + cvarSubString + } + + itemDef + { + name loc_but02_off + group location_marker + style WINDOW_STYLE_SHADER + rect 380 122 30 30 + background "gfx/menus/mission_loc_but_off" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "tiers_complete" + disablecvar + { + "t3_stamp" + } + cvarSubString + } + + itemDef + { + name loc_but02_on + group location_marker + style WINDOW_STYLE_SHADER + rect 380 122 30 30 + background "gfx/menus/mission_loc_but_on" + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "tiers_complete" + disablecvar + { + "t3_stamp" + } + cvarSubString + } + + itemDef + { + name loc_but03_off + group location_marker + style WINDOW_STYLE_SHADER + rect 170 152 23 23 + background "gfx/menus/mission_loc_but_off" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "tiers_complete" + disablecvar + { + "t3_hevil" + } + cvarSubString + } + + itemDef + { + name loc_but03_on + group location_marker + style WINDOW_STYLE_SHADER + rect 170 152 23 23 + background "gfx/menus/mission_loc_but_on" + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "tiers_complete" + disablecvar + { + "t3_hevil" + } + cvarSubString + } + + itemDef + { + name loc_but04_off + group location_marker + style WINDOW_STYLE_SHADER + rect 295 104 20 20 + background "gfx/menus/mission_loc_but_off" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "tiers_complete" + disablecvar + { + "t3_byss" + } + cvarSubString + } + + itemDef + { + name loc_but04_on + group location_marker + style WINDOW_STYLE_SHADER + rect 295 104 20 20 + background "gfx/menus/mission_loc_but_on" + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "tiers_complete" + disablecvar + { + "t3_byss" + } + cvarSubString + } + + itemDef + { + name loc_but05_off + group location_marker + style WINDOW_STYLE_SHADER + rect 380 70 18 18 + background "gfx/menus/mission_loc_but_off" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "tiers_complete" + disablecvar + { + "t3_bounty" + } + cvarSubString + } + + itemDef + { + name loc_but05_on + group location_marker + style WINDOW_STYLE_SHADER + rect 380 70 18 18 + background "gfx/menus/mission_loc_but_on" + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "tiers_complete" + disablecvar + { + "t3_bounty" + } + cvarSubString + } + + itemDef + { + name planet_name + type ITEM_TYPE_TEXT + rect 52 316 288 24 + font 2 + forecolor .549 .854 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + autowrapped + decoration + } + +//---------------------------------------------------------------------------------------------- +// MODELS FOR V-O +//---------------------------------------------------------------------------------------------- + itemDef + { + name luke + group models + type ITEM_TYPE_MODEL + rect 415 285 149 149 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/luke/model_menu.skin" + asset_model "models/players/luke/model.glm" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 0 + decoration + } + + itemDef + { + name kyle + group models + type ITEM_TYPE_MODEL + rect 415 288 145 145 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/kyle/model_menu.skin" + asset_model "models/players/kyle/model.glm" + model_angle 180 + model_g2mins 15 -20 18 + model_g2maxs 60 20 55 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 0 + decoration + } + + itemDef + { + name prot + group models + type ITEM_TYPE_MODEL + rect 426 317 116 116 + model_g2anim "BOTH_STAND1_TALK2" + model_g2skin "models/players/protocol/model_menu.skin" + asset_model "models/players/protocol/model.glm" + model_angle 180 + model_g2mins 15 -20 17 + model_g2maxs 60 20 50 + model_rotation 0 + model_fovx 10 + model_fovy 10 + isCharacter 1 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// BUTTONS +//---------------------------------------------------------------------------------------------- + //GENERAL BACK BUTTON - if you don't want mission + itemDef + { + name backbut + type ITEM_TYPE_BUTTON + rect 52 430 172 24 + text @MENUS_BACK_CAPS + desctext @MENUS_DIFF_MISSION + font 2 + forecolor 1 .682 0 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + mouseEnter + { + show button_glow + setitemrect button_glow 15 430 200 20 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/esc.wav" + fadein starfield + fadein galaxy + fadeout stars_close + transition2 loc_but01_off 270 109 20 20 20 25 + transition2 loc_but02_off 380 122 30 30 20 25 + transition2 loc_but03_off 170 152 23 23 20 25 + transition2 loc_but04_off 295 104 20 20 20 25 + transition2 loc_but05_off 380 70 18 18 20 25 + hide backbut + + hide planet_name + + show mission_button + + hide accbuttons + + hide briefing_text + + hide big_planet + + hide planet_name + show map_title + + hide briefing_background + hide briefing_text + + hide button_glow + } + } + +//---------------------------------------------------------------------------------------------- +// TIER 3 MISSION BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name map_title + type ITEM_TYPE_TEXT + rect 10 305 400 20 + text @MENUS_MISSIONS + font 2 + forecolor .549 .854 1 1 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 200 + textaligny -1 + visible 1 + } + + itemDef + { + name miss1 + group mission_button + type ITEM_TYPE_BUTTON + rect 52 330 224 20 + text @MENUS_T3_RIFT_TITLE + desctext @MENUS_CLICK_BRIEFING + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + cvartest "tiers_complete" + disablecvar + { + "t3_rift" + } + cvarSubString + mouseEnter + { + hide loc_but01_off + show loc_but01_on + + show planet_name + setitemtext planet_name @MENUS_CHANDRILA + setitemrect planet_name 150 90 120 26 + + show button_glow + setitemrect button_glow 20 328 380 22 + } + mouseExit + { + hide loc_but01_on + show loc_but01_off + + hide planet_name + hide button_glow + } + action + { + play "sound/weapons/force/protect.wav" + + fadeout starfield + fadeout galaxy + + fadein stars_close + + transition2 loc_but01_off 280 119 0 0 20 25 + transition2 loc_but02_off 395 137 0 0 20 25 + transition2 loc_but03_off 181 163 0 0 20 25 + transition2 loc_but04_off 305 114 0 0 20 25 + transition2 loc_but05_off 389 79 0 0 20 25 + + hide loc_but01_on + hide loc_but02_on + hide loc_but03_on + hide loc_but04_on + hide loc_but05_on + + setitembackground big_planet "gfx/menus/planets/chandrila" + transition2 big_planet 192 20 256 256 10 15 + + transition2 planet_name 270 250 256 256 20 15 + + hide mission_button + + show backbut + show accbut1 + + show briefing_background + show briefing_text + setitemtext briefing_text @BRIEFINGS_T3_RIFT + + hide map_title + hide button_glow + + } + } + + itemDef + { + name miss2 + group mission_button + type ITEM_TYPE_BUTTON + rect 52 353 224 20 + text @MENUS_T3_STAMPEDE_TITLE + desctext @MENUS_CLICK_BRIEFING + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + cvartest "tiers_complete" + disablecvar + { + "t3_stamp" + } + cvarSubString + mouseEnter + { + hide loc_but02_off + show loc_but02_on + + show planet_name + setitemtext planet_name @MENUS_TANAAB + setitemrect planet_name 420 180 120 26 + + show button_glow + setitemrect button_glow 20 351 380 22 + } + mouseExit + { + hide loc_but02_on + show loc_but02_off + + hide planet_name + hide button_glow + } + action + { + play "sound/weapons/force/protect.wav" + fadeout starfield + fadeout galaxy + fadein stars_close + transition2 loc_but01_off 280 119 0 0 20 25 + transition2 loc_but02_off 395 137 0 0 20 25 + transition2 loc_but03_off 181 163 0 0 20 25 + transition2 loc_but04_off 305 114 0 0 20 25 + transition2 loc_but05_off 389 79 0 0 20 25 + + hide loc_but01_on + hide loc_but02_on + hide loc_but03_on + hide loc_but04_on + hide loc_but05_on + + setitembackground big_planet "gfx/menus/planets/tanaab" + transition2 big_planet 192 20 256 256 10 15 + + transition2 planet_name 270 250 256 256 20 15 + + hide mission_button + + show backbut + show accbut2 + + show briefing_background + show briefing_text + setitemtext briefing_text @BRIEFINGS_T3_STAMP + + hide map_title + hide button_glow + } + } + + itemDef + { + name miss3 + group mission_button + type ITEM_TYPE_BUTTON + rect 52 376 224 20 + text @MENUS_T3_HEVIL_TITLE + desctext @MENUS_CLICK_BRIEFING + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + cvartest "tiers_complete" + disablecvar + { + "t3_hevil" + } + cvarSubString + mouseEnter + { + hide loc_but03_off + show loc_but03_on + + show planet_name + setitemtext planet_name @MENUS_YALARA + setitemrect planet_name 60 180 120 26 + + show button_glow + setitemrect button_glow 20 374 380 22 + } + mouseExit + { + hide loc_but03_on + show loc_but03_off + hide planet_name + hide button_glow + } + action + { + play "sound/weapons/force/protect.wav" + fadeout starfield + fadeout galaxy + fadein stars_close + transition2 loc_but01_off 280 119 0 0 20 25 + transition2 loc_but02_off 395 137 0 0 20 25 + transition2 loc_but03_off 181 163 0 0 20 25 + transition2 loc_but04_off 305 114 0 0 20 25 + transition2 loc_but05_off 389 79 0 0 20 25 + + hide loc_but01_on + hide loc_but02_on + hide loc_but03_on + hide loc_but04_on + hide loc_but05_on + + setitembackground big_planet "gfx/menus/planets/yalara" + transition2 big_planet 192 20 256 256 10 15 + + transition2 planet_name 270 250 256 256 20 15 + + hide mission_button + + show backbut + show accbut3 + + show briefing_background + show briefing_text + setitemtext briefing_text @BRIEFINGS_T3_HEVIL + hide map_title + hide button_glow + } + } + + itemDef + { + name miss4 + group mission_button + type ITEM_TYPE_BUTTON + rect 52 399 224 20 + text @MENUS_T3_BYSS_TITLE + desctext @MENUS_CLICK_BRIEFING + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + cvartest "tiers_complete" + disablecvar + { + "t3_byss" + } + cvarSubString + mouseEnter + { + hide loc_but04_off + show loc_but04_on + + show planet_name + setitemtext planet_name @MENUS_BYSS + setitemrect planet_name 240 40 120 26 + + show button_glow + setitemrect button_glow 20 397 380 22 + } + mouseExit + { + hide loc_but04_on + show loc_but04_off + hide planet_name + hide button_glow + } + action + { + play "sound/weapons/force/protect.wav" + fadeout starfield + fadeout galaxy + fadein stars_close + transition2 loc_but01_off 280 119 0 0 20 25 + transition2 loc_but02_off 395 137 0 0 20 25 + transition2 loc_but03_off 181 163 0 0 20 25 + transition2 loc_but04_off 305 114 0 0 20 25 + transition2 loc_but05_off 389 79 0 0 20 25 + + hide loc_but01_on + hide loc_but02_on + hide loc_but03_on + hide loc_but04_on + hide loc_but05_on + + setitembackground big_planet "gfx/menus/planets/byss" + transition2 big_planet 192 20 256 256 10 15 + + transition2 planet_name 270 250 256 256 20 15 + + hide mission_button + + show backbut + show accbut4 + + show briefing_background + show briefing_text + setitemtext briefing_text @BRIEFINGS_T3_BYSS + + hide map_title + hide button_glow + } + } + + itemDef + { + name miss5 + group mission_button + type ITEM_TYPE_BUTTON + rect 52 422 224 20 + text @MENUS_T3_BOUNTY_TITLE + desctext @MENUS_CLICK_BRIEFING + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 1 + cvartest "tiers_complete" + disablecvar + { + "t3_bounty" + } + cvarSubString + mouseEnter + { + hide loc_but05_off + show loc_but05_on + + show planet_name + setitemtext planet_name @MENUS_ORD_MANTELL + setitemrect planet_name 410 40 120 26 + + show button_glow + setitemrect button_glow 20 420 380 22 + } + mouseExit + { + hide loc_but05_on + show loc_but05_off + hide planet_name + hide button_glow + } + action + { + play "sound/weapons/force/protect.wav" + fadeout starfield + fadeout galaxy + fadein stars_close + transition2 loc_but01_off 280 119 0 0 20 25 + transition2 loc_but02_off 395 137 0 0 20 25 + transition2 loc_but03_off 181 163 0 0 20 25 + transition2 loc_but04_off 305 114 0 0 20 25 + transition2 loc_but05_off 389 79 0 0 20 25 + + hide loc_but01_on + hide loc_but02_on + hide loc_but03_on + hide loc_but04_on + hide loc_but05_on + + setitembackground big_planet "gfx/menus/planets/ordman" + transition2 big_planet 192 20 256 256 10 15 + + transition2 planet_name 270 250 256 256 20 15 + + hide mission_button + hide location_marker + + show backbut + show accbut5 + + show briefing_background + show briefing_text + setitemtext briefing_text @BRIEFINGS_T3_BOUNTY + + hide map_title + hide button_glow + + } + } + +//---------------------------------------------------------------------------------------------- +// MISSION BRIEFING TEXT +//---------------------------------------------------------------------------------------------- + itemDef + { + name briefing_background + group none + style WINDOW_STYLE_FILLED + rect 42 314 320 114 + backcolor 0 0 .35 .7 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .8 1 + visible 0 + decoration + } + + itemDef + { + name briefing_text + type ITEM_TYPE_TEXTSCROLL + rect 42 314 320 114 + text @BRIEFINGS_T3_RIFT + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + lineHeight 18 + visible 0 + autowrapped + } + +//---------------------------------------------------------------------------------------------- +// ACCEPT BUTTONS - IF YOU CHOOSE A PARTICULAR MISSION +//---------------------------------------------------------------------------------------------- + itemDef + { + name accbut1 + group accbuttons + type ITEM_TYPE_BUTTON + rect 268 430 172 24 + text @MENUS_ACCEPT + desctext @MENUS_ACCEPT_MISSION + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + mouseEnter + { + show button_glow + setitemrect button_glow 200 430 200 20 + } + mouseExit + { + hide button_glow + } + action + { + hide accbuttons + setcvar tier_mapname "maptransition t3_rift" + + hide backbut + + show nextscreen_button + setfocus nextscreen_button + + show accept_text + setitemtext accept_text @T3_RIFT_23LUK001 + + show luke + playVoice "sound/chars/luke/23luk001.mp3" + + hide briefing_background + hide briefing_text + hide button_glow + } + } + + itemDef + { + name accbut2 + group accbuttons + type ITEM_TYPE_BUTTON + rect 268 430 172 24 + text @MENUS_ACCEPT + desctext @MENUS_ACCEPT_MISSION + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + mouseEnter + { + show button_glow + setitemrect button_glow 200 430 200 20 + } + mouseExit + { + hide button_glow + } + action + { + hide accbuttons + setcvar tier_mapname "maptransition t3_stamp" + + hide backbut + hide briefing_text + + show nextscreen_button + setfocus nextscreen_button + + show accept_text + setitemtext accept_text @T3_STAMP_25KYK001 + + hide briefing_background + hide briefing_text + hide button_glow + + show kyle + playVoice "sound/chars/kyle/25kyk001.mp3" + } + } + + itemDef + { + name accbut3 + group accbuttons + type ITEM_TYPE_BUTTON + rect 268 430 172 24 + text @MENUS_ACCEPT + desctext @MENUS_ACCEPT_MISSION + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + mouseEnter + { + show button_glow + setitemrect button_glow 200 430 200 20 + } + mouseExit + { + hide button_glow + } + action + { + hide accbuttons + setcvar tier_mapname "maptransition t3_hevil" + + hide backbut + hide briefing_text + + show nextscreen_button + setfocus nextscreen_button + + show accept_text + setitemtext accept_text @T3_HEVIL_22LUK001 + + show luke + playVoice "sound/chars/luke/22luk001.mp3" + + hide briefing_background + hide briefing_text + hide button_glow + + } + } + + itemDef + { + name accbut4 + group accbuttons + type ITEM_TYPE_BUTTON + rect 268 430 172 24 + text @MENUS_ACCEPT + desctext @MENUS_ACCEPT_MISSION + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + mouseEnter + { + show button_glow + setitemrect button_glow 200 430 200 20 + } + mouseExit + { + hide button_glow + } + action + { + hide accbuttons + setcvar tier_mapname "maptransition t3_byss" + + hide backbut + hide briefing_text + + show nextscreen_button + setfocus nextscreen_button + + show accept_text + setitemtext accept_text @T3_BYSS_21KYK001 + + show kyle + playVoice "sound/chars/kyle/21kyk001.mp3" + + hide briefing_background + hide briefing_text + hide button_glow + } + } + + itemDef + { + name accbut5 + group accbuttons + type ITEM_TYPE_BUTTON + rect 268 430 172 24 + text @MENUS_ACCEPT + desctext @MENUS_ACCEPT_MISSION + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + mouseEnter + { + show button_glow + setitemrect button_glow 200 430 200 20 + } + mouseExit + { + hide button_glow + } + action + { + hide accbuttons + setcvar tier_mapname "maptransition t3_bounty" + + hide backbut + hide briefing_text + + show nextscreen_button + setfocus nextscreen_button + + show accept_text + setitemtext accept_text @T3_BOUNTY_24KYK001 + + show kyle + playVoice "sound/chars/kyle/24kyk001.mp3" + + hide briefing_background + hide briefing_text + hide button_glow + } + } + +//---------------------------------------------------------------------------------------------- +// ACCEPT TEXT +//---------------------------------------------------------------------------------------------- + itemDef + { + name accept_text + type ITEM_TYPE_TEXT + rect 52 316 288 124 + text @T3_RIFT_23LUK001 + font 2 + forecolor 1 1 1 1 + textscale .8 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + autowrapped + decoration + } + +//---------------------------------------------------------------------------------------------- +// NEXT BUTTONS - to go to next screen +//---------------------------------------------------------------------------------------------- + itemDef + { + name nextscreen_button + type ITEM_TYPE_BUTTON + rect 530 440 172 24 + text @MENUS_NEXT + desctext @MENUS_ADVANCE_NEXT + font 2 + forecolor 1 .682 0 1 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + visible 0 + + mouseEnter + { + } + mouseExit + { + } + action + { + play "sound/interface/menuroam.wav" + close all + open ingameForceSelect + } + } + +//---------------------------------------------------------------------------------------------- +// SCANLINES OVER WHOLE MENU +//---------------------------------------------------------------------------------------------- + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name static + group none + style WINDOW_STYLE_SHADER + rect 396 314 175 120 + background "gfx/menus/static" + backcolor 1 0 0 .2 + forecolor 1 0 0 .2 + visible 0 + decoration + } + + itemDef + { + name scan + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 640 + background "gfx/menus/scanlines" + forecolor 1 1 1 1 + visible 1 + decoration + } + + } +} + + + + + + + + + + + diff --git a/base/ui/ingameWpnSelect.menu b/base/ui/ingameWpnSelect.menu new file mode 100644 index 0000000..a80ae74 --- /dev/null +++ b/base/ui/ingameWpnSelect.menu @@ -0,0 +1,1638 @@ +//---------------------------------------------------------------------------------------------- +// +// Weapon Select Menu +// +// The player is allowed to choose from a list of weapons. The weapons in the list are +// based on the value in tier_storyinfo +// +// Weapon index values +// SABER - 1 +// BLASTER PISTOL - 2 +// BLASTER - 3 +// DISRUPTOR - 4 +// BOWCASTER - 5 +// REPEATER - 6 +// DEMP - 7 +// FLECHETTE - 8 +// ROCKET LAUNCHER - 9 +// THERMAL DET. - 10 +// TRIP MINE - 11 +// DET PACK - 12 +// CONCUSSION - 13 +// +// Ammo index values amounts to give +// SABER - FORCE - 1 - 100 +// BLASTER PISTOL - BLASTER - 2 - 300 +// BLASTER - BLASTER - 2 - 300 +// DISRUPTOR - POWER CELL - 3 - 300 +// BOWCASTER - POWER CELL - 3 - 300 +// REPEATER - METAL BOLTS - 4 - 400 +// DEMP - POWER CELL - 3 - 300 +// FLECHETTE - METAL BOLTS - 4 - 400 +// ROCKET LAUNCHER - ROCKETS - 5 - 10 +// THERMAL DET. - THERMAL - 7 - 10 +// TRIP MINE - TRIP MINE - 8 - 5 +// DET. PACK - DETPACK - 9 - 5 +// CONCUSSION - METAL BOLTS - 4 - 400 +// +//---------------------------------------------------------------------------------------------- +{ + + menuDef + { + name "ingameWpnSelect" + fullScreen 1 + rect 0 0 640 480 + visible 1 + focusColor 1 1 1 1 + descX 320 + descY 424 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + fadeClamp 1.0 // sets the fadeup alpha + fadeCycle 25 // how often fade happens in milliseconds + fadeAmount 0.05 // amount to adjust alpha per cycle + + onOpen + { + uiScript "initweaponselect" // Perform screen init + uiScript "clearweapons" // Get rid of any weapons + uiScript "clearinventory" // Get rid of any inventory + uiScript "giveweapon" "1" // Give saber + uiScript "giveweapon" "2" // Give blaster + uiScript "equipweapon" "1" // start with saber + + } + + onESC + { + play "sound/interface/menuroam.wav" + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/weaponmenu_back" + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// TEXT - Choose weapons/Weapons chosen. +//---------------------------------------------------------------------------------------------- + itemDef + { + name choose_weapons_text + type ITEM_TYPE_TEXT + rect 0 15 640 18 + text @MENUS_CHOOSEWEAPONS + font 2 + forecolor 1 1 1 1 + textscale .80 + textalign ITEM_ALIGN_CENTER + textalignx 320 + visible 1 + decoration + } + + itemDef + { + name weapons_chosen_text + type ITEM_TYPE_TEXT + rect 0 20 640 18 + text @MENUS_WEAPONSCHOSEN + font 2 + forecolor .308 .980 .277 1 + textscale .80 + textalign ITEM_ALIGN_CENTER + textalignx 320 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// INSTRUCTIONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name setup_background + group inst_stuff + style WINDOW_STYLE_FILLED + rect 40 195 455 145 + backcolor 0 0 .35 .9 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .8 1 + visible 0 + decoration + } + + itemDef + { + name instruction_title + group inst_stuff + type ITEM_TYPE_TEXT + rect 50 195 470 18 + text @MENUS_INSTRUCTIONS + font 2 + forecolor .549 .854 1 1 + textscale .8 + textalign ITEM_ALIGN_CENTER + textalignx 230 + visible 0 + decoration + } + + itemDef + { + name instruction_text + group inst_stuff + type ITEM_TYPE_TEXTSCROLL + rect 45 220 475 130 + text @MENUS_WEAPON_SELECTION_HELP + font 4 + forecolor 1 1 1 1 + textscale 1.0 + textalign ITEM_ALIGN_LEFT + visible 0 + decoration autowrapped + textaligny 0 + lineHeight 13 + + } + + itemDef + { + name inst_done_button + group inst_stuff + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 495 255 130 64 + text @MENUS_DONE_CAPS + descText @MENUS_HELP_DESC + font 3 + textscale 1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor .79 .64 .22 1 + visible 0 + + mouseEnter + { + show button_glow + setitemrect button_glow 490 255 140 25 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + hide button_glow + hide inst_stuff + + show weapon_button + } + } + + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + +//---------------------------------------------------------------------------------------------- +// SABER BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + itemDef + { + name saber_hex_background + group normal_icon + style WINDOW_STYLE_SHADER + rect 28 40 88 120 + background "gfx/menus/hex_pattern_gray" + forecolor 0 1 1 1 + visible 1 + decoration + } + + itemDef + { + name saber_icon + group normal_icon + style WINDOW_STYLE_SHADER + rect 24 30 80 80 + background "gfx/hud/w_icon_lightsaber_na" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name saber_icon_lit + group normal_icon + style WINDOW_STYLE_SHADER + rect 24 30 80 80 + background "gfx/hud/w_icon_lightsaber" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name saber_button + group weapon_button + type ITEM_TYPE_BUTTON + rect 28 40 79 64 + forecolor 1 1 1 1 + visible 1 + mouseEnter + { + hide saber_icon + show saber_icon_lit + + // Show big icon + show weapon_icon + setitembackground weapon_icon "gfx/hud/w_icon_lightsaber_na" + + // Show weapon description + show weapon_desc + setitemtext weapon_desc @SP_INGAME_SABER_DESC + } + mouseExit + { + show saber_icon + hide saber_icon_lit + } + action + { + } + } + +//---------------------------------------------------------------------------------------------- +// BLASTER PISTOL BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + itemDef + { + name bpistol_hex_background + group normal_icon + style WINDOW_STYLE_SHADER + rect 28 109 88 120 + background "gfx/menus/hex_pattern_gray" + forecolor 0 1 1 1 + visible 1 + decoration + } + + itemDef + { + name bpistol_icon + group normal_icon + style WINDOW_STYLE_SHADER + rect 24 96 80 80 + background "gfx/hud/w_icon_blaster_pistol_na" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name bpistol_icon_lit + group normal_icon + style WINDOW_STYLE_SHADER + rect 24 96 80 80 + background "gfx/hud/w_icon_blaster_pistol" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name bpistol_button + group weapon_button + type ITEM_TYPE_BUTTON + rect 28 109 79 64 + forecolor 1 1 1 1 +// desctext @MENU_CLICKDESCRIPTION + visible 1 + mouseEnter + { + hide bpistol_icon + show bpistol_icon_lit + + // Show big icon + show weapon_icon + setitembackground weapon_icon "gfx/hud/w_icon_blaster_pistol_na" + + // Show weapon description + show weapon_desc + setitemtext weapon_desc @SP_INGAME_NEW_BLASTER_PISTOL_DESC + } + mouseExit + { + show bpistol_icon + hide bpistol_icon_lit + } + action + { + } + } + +//---------------------------------------------------------------------------------------------- +// BLASTER RIFLE BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + itemDef + { + name brifle_hex_background + group normal_icon + style WINDOW_STYLE_SHADER + rect 136 40 88 120 + background "gfx/menus/hex_pattern_gray" + forecolor 0 .5 0 1 + visible 1 + decoration + } + + itemDef + { + name brifle_icon + group normal_icon + style WINDOW_STYLE_SHADER + rect 134 31 80 80 + background "gfx/hud/w_icon_blaster_na" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name brifle_icon_lit + group normal_icon + style WINDOW_STYLE_SHADER + rect 134 31 80 80 + background "gfx/hud/w_icon_blaster" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name brifle_button + group weapon_button + type ITEM_TYPE_BUTTON + rect 137 40 79 64 + forecolor 1 1 1 1 + desctext @MENUS_CLICKSELECT + visible 1 + mouseEnter + { + hide brifle_icon + show brifle_icon_lit + + // Show big icon + show weapon_icon + setitembackground weapon_icon "gfx/hud/w_icon_blaster_na" + + // Show weapon description + show weapon_desc + setitemtext weapon_desc @SP_INGAME_BLASTER_RIFLE_DESC + } + mouseExit + { + show brifle_icon + hide brifle_icon_lit + } + + action + { // Add this weapon from player selection (weapon index, ammo index, ammo amount, menu item with graphic) + uiScript "addweaponselection" "3" "2" "300" "brifle_icon" "brifle_icon_lit" "brifle_hex_background" "sound/weapons/blaster/select.wav" + } + } + +//---------------------------------------------------------------------------------------------- +// DISRUPTOR RIFLE BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + itemDef + { + name disruptor_hex_background + group normal_icon + style WINDOW_STYLE_SHADER + rect 136 109 88 120 + background "gfx/menus/hex_pattern_gray" + forecolor 0 .5 0 1 + visible 1 + decoration + } + + itemDef + { + name disruptor_icon + group normal_icon + style WINDOW_STYLE_SHADER + rect 134 99 80 80 + background "gfx/hud/w_icon_disruptor_na" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name disruptor_icon_lit + group normal_icon + style WINDOW_STYLE_SHADER + rect 134 99 80 80 + background "gfx/hud/w_icon_disruptor" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name disruptor_button + group weapon_button + type ITEM_TYPE_BUTTON + rect 137 109 79 64 + forecolor 1 1 1 1 + desctext @MENUS_CLICKSELECT + visible 1 + mouseEnter + { + hide disruptor_icon + show disruptor_icon_lit + + // Show big icon + show weapon_icon + setitembackground weapon_icon "gfx/hud/w_icon_disruptor_na" + + // Show weapon description + show weapon_desc + setitemtext weapon_desc @SP_INGAME_DISRUPTOR_RIFLE_DESC + } + mouseExit + { + show disruptor_icon + hide disruptor_icon_lit + } + action + { // Add this weapon from player selection (weapon index, ammo index, ammo amount, menu item with graphic) + uiScript "addweaponselection" "4" "3" "300" "disruptor_icon" "disruptor_icon_lit" "disruptor_hex_background" "sound/weapons/disruptor/select.wav" + } + } + +//---------------------------------------------------------------------------------------------- +// BOWCASTER BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + itemDef + { + name bowcaster_hex_background + group normal_icon + style WINDOW_STYLE_SHADER + rect 222 40 88 120 + background "gfx/menus/hex_pattern_gray" + forecolor 0 .5 0 1 + visible 1 + decoration + } + + itemDef + { + name bowcaster_icon + group normal_icon + style WINDOW_STYLE_SHADER + rect 222 31 80 80 + background "gfx/hud/w_icon_bowcaster_na" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name bowcaster_icon_lit + group normal_icon + style WINDOW_STYLE_SHADER + rect 222 31 80 80 + background "gfx/hud/w_icon_bowcaster" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name bowcaster_button + group weapon_button + type ITEM_TYPE_BUTTON + rect 224 40 79 64 + forecolor 1 1 1 1 + desctext @MENUS_CLICKSELECT + visible 1 + mouseEnter + { + hide bowcaster_icon + show bowcaster_icon_lit + + // Show big icon + show weapon_icon + setitembackground weapon_icon "gfx/hud/w_icon_bowcaster_na" + + // Show weapon description + show weapon_desc + setitemtext weapon_desc @SP_INGAME_BOWCASTER_DESC + } + mouseExit + { + show bowcaster_icon + hide bowcaster_icon_lit + } + action + { // Add this weapon from player selection (weapon index, ammo index, ammo amount, menu item with graphic) + uiScript "addweaponselection" "5" "3" "300" "bowcaster_icon" "bowcaster_icon_lit" "bowcaster_hex_background" "sound/weapons/bowcaster/select.wav" + } + } + +//---------------------------------------------------------------------------------------------- +// DEMP BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + itemDef + { + name demp_hex_background + group normal_icon + style WINDOW_STYLE_SHADER + rect 222 109 88 120 + background "gfx/menus/hex_pattern_gray" + forecolor 0 .5 0 1 + visible 1 + decoration + } + + itemDef + { + name demp_icon + group normal_icon + style WINDOW_STYLE_SHADER + rect 222 99 80 80 + background "gfx/hud/w_icon_demp2_na" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name demp_icon_lit + group normal_icon + style WINDOW_STYLE_SHADER + rect 222 99 80 80 + background "gfx/hud/w_icon_demp2" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name demp_button + group weapon_button + type ITEM_TYPE_BUTTON + rect 225 109 79 64 + forecolor 1 1 1 1 + desctext @MENUS_CLICKSELECT + visible 1 + mouseEnter + { + hide demp_icon + show demp_icon_lit + + // Show big icon + show weapon_icon + setitembackground weapon_icon "gfx/hud/w_icon_demp2_na" + + // Show weapon description + show weapon_desc + setitemtext weapon_desc @SP_INGAME_DEMP2_DESC + } + mouseExit + { + show demp_icon + hide demp_icon_lit + } + action + { // Add this weapon from player selection (weapon index, ammo index, ammo amount, menu item with graphic) + uiScript "addweaponselection" "7" "3" "300" "demp_icon" "demp_icon_lit" "demp_hex_background" "sound/weapons/demp2/select.wav" + } + } + +//---------------------------------------------------------------------------------------------- +// REPEATER BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + itemDef + { + name repeater_hex_background + group normal_icon + style WINDOW_STYLE_SHADER + rect 311 40 88 120 + background "gfx/menus/hex_pattern_gray" + forecolor 0 .5 0 1 + visible 1 + decoration + cvartest "tier_storyinfo" + showcvar + { + "7"; "8"; "9"; "10"; "11"; "12"; "13"; "14"; "15"; "16"; "17"; "18"; "19"; + } + } + + itemDef + { + name repeater_icon + group normal_icon + style WINDOW_STYLE_SHADER + rect 309 35 80 80 + background "gfx/hud/w_icon_repeater_na" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "tier_storyinfo" + showcvar + { + "7"; "8"; "9"; "10"; "11"; "12"; "13"; "14"; "15"; "16"; "17"; "18"; "19"; + } + } + + itemDef + { + name repeater_icon_lit + group normal_icon + style WINDOW_STYLE_SHADER + rect 309 35 80 80 + background "gfx/hud/w_icon_repeater" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name repeater_button + group weapon_button + type ITEM_TYPE_BUTTON + rect 312 40 79 64 + forecolor 1 1 1 1 + desctext @MENUS_CLICKSELECT + visible 1 + cvartest "tier_storyinfo" + showcvar + { + "7"; "8"; "9"; "10"; "11"; "12"; "13"; "14"; "15"; "16"; "17"; "18"; "19"; + } + mouseEnter + { + hide repeater_icon + show repeater_icon_lit + + // Show big icon + show weapon_icon + setitembackground weapon_icon "gfx/hud/w_icon_repeater_na" + + // Show weapon description + show weapon_desc + setitemtext weapon_desc @SP_INGAME_HEAVYREPEATER_DESC + } + mouseExit + { + show repeater_icon + hide repeater_icon_lit + } + action + { // Add this weapon from player selection (weapon index, ammo index, ammo amount, menu item with graphic) + uiScript "addweaponselection" "6" "4" "400" "repeater_icon" "repeater_icon_lit" "repeater_hex_background" "sound/weapons/repeater/select.wav" + } + } + +//---------------------------------------------------------------------------------------------- +// FLECHETTE BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + itemDef + { + name flechette_hex_background + group normal_icon + style WINDOW_STYLE_SHADER + rect 311 109 88 120 + background "gfx/menus/hex_pattern_gray" + forecolor 0 .5 0 1 + visible 1 + decoration + cvartest "tier_storyinfo" + showcvar + { + "7"; "8"; "9"; "10"; "11"; "12"; "13"; "14"; "15"; "16"; "17"; "18"; "19"; + } + } + + itemDef + { + name flechette_icon + group normal_icon + style WINDOW_STYLE_SHADER + rect 309 100 80 80 + background "gfx/hud/w_icon_flechette_na" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "tier_storyinfo" + showcvar + { + "7"; "8"; "9"; "10"; "11"; "12"; "13"; "14"; "15"; "16"; "17"; "18"; "19"; + } + } + + itemDef + { + name flechette_icon_lit + group normal_icon + style WINDOW_STYLE_SHADER + rect 309 100 80 80 + background "gfx/hud/w_icon_flechette" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name flechette_button + group weapon_button + type ITEM_TYPE_BUTTON + rect 312 109 79 64 + forecolor 1 1 1 1 + desctext @MENUS_CLICKSELECT + visible 1 + cvartest "tier_storyinfo" + showcvar + { + "7"; "8"; "9"; "10"; "11"; "12"; "13"; "14"; "15"; "16"; "17"; "18"; "19"; + } + mouseEnter + { + hide flechette_icon + show flechette_icon_lit + + // Show big icon + show weapon_icon + setitembackground weapon_icon "gfx/hud/w_icon_flechette_na" + + // Show weapon description + show weapon_desc + setitemtext weapon_desc @SP_INGAME_FLECHETTE_DESC + } + mouseExit + { + show flechette_icon + hide flechette_icon_lit + } + action + { // Add this weapon from player selection (weapon index, ammo index, ammo amount, menu item with graphic) + uiScript "addweaponselection" "8" "4" "400" "flechette_icon" "flechette_icon_lit" "flechette_hex_background" "sound/weapons/flechette/select.wav" + } + } + +//---------------------------------------------------------------------------------------------- +// CONCUSSION BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + itemDef + { + name concussion_hex_background + group normal_icon + style WINDOW_STYLE_SHADER + rect 399 40 88 120 + background "gfx/menus/hex_pattern_gray" + forecolor 0 .5 0 1 + visible 1 + decoration + cvartest "tier_storyinfo" + showcvar + { + "13"; "14"; "15"; "16"; "17"; "18"; "19" + } + } + + itemDef + { + name concussion_icon + group normal_icon + style WINDOW_STYLE_SHADER + rect 395 30 80 80 + background "gfx/hud/w_icon_c_rifle_na" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "tier_storyinfo" + showcvar + { + "13"; "14"; "15"; "16"; "17"; "18"; "19" + } + } + + itemDef + { + name concussion_icon_lit + group normal_icon + style WINDOW_STYLE_SHADER + rect 395 30 80 80 + background "gfx/hud/w_icon_c_rifle" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name concussion_button + group weapon_button + type ITEM_TYPE_BUTTON + rect 400 40 79 64 + forecolor 1 1 1 1 + desctext @MENUS_CLICKSELECT + visible 1 + cvartest "tier_storyinfo" + showcvar + { + "13"; "14"; "15"; "16"; "17"; "18"; "19" + } + mouseEnter + { + hide concussion_icon + show concussion_icon_lit + + // Show big icon + show weapon_icon + setitembackground weapon_icon "gfx/hud/w_icon_c_rifle_na" + + // Show weapon description + show weapon_desc + setitemtext weapon_desc @SP_INGAME_CONCUSSION_DESC + } + mouseExit + { + show concussion_icon + hide concussion_icon_lit + } + action + { // Add this weapon from player selection (weapon index, ammo index, ammo amount, menu item with graphic) + uiScript "addweaponselection" "13" "4" "400" "concussion_icon" "concussion_icon_lit" "concussion_hex_background" "sound/weapons/concussion/select.wav" + } + } + +//---------------------------------------------------------------------------------------------- +// ROCKET BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + itemDef + { + name rocket_hex_background + group normal_icon + style WINDOW_STYLE_SHADER + rect 399 109 88 120 + background "gfx/menus/hex_pattern_gray" + forecolor 0 .5 0 1 + visible 1 + decoration + cvartest "tier_storyinfo" + showcvar + { + "13"; "14"; "15"; "16"; "17"; "18"; "19" + } + } + + itemDef + { + name rocket_icon + group normal_icon + style WINDOW_STYLE_SHADER + rect 395 99 80 80 + background "gfx/hud/w_icon_merrsonn_na" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "tier_storyinfo" + showcvar + { + "13"; "14"; "15"; "16"; "17"; "18"; "19" + } + } + + itemDef + { + name rocket_icon_lit + group normal_icon + style WINDOW_STYLE_SHADER + rect 395 99 80 80 + background "gfx/hud/w_icon_merrsonn" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name rocket_button + group weapon_button + type ITEM_TYPE_BUTTON + rect 400 109 79 64 + forecolor 1 1 1 1 + desctext @MENUS_CLICKSELECT + visible 1 + cvartest "tier_storyinfo" + showcvar + { + "13"; "14"; "15"; "16"; "17"; "18"; "19" + } + mouseEnter + { + hide rocket_icon + show rocket_icon_lit + + // Show big icon + show weapon_icon + setitembackground weapon_icon "gfx/hud/w_icon_merrsonn_na" + + // Show weapon description + show weapon_desc + setitemtext weapon_desc @SP_INGAME_MERR_SONN_DESC + } + mouseExit + { + show rocket_icon + hide rocket_icon_lit + } + action + { // Add this weapon from player selection (weapon index, ammo index, ammo amount, menu item with graphic) + uiScript "addweaponselection" "9" "5" "10" "rocket_icon" "rocket_icon_lit" "rocket_hex_background" "sound/weapons/rocket/select.wav" + } + } + +//---------------------------------------------------------------------------------------------- +// THERMAL DETONATOR BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + itemDef + { + name thermal_hex_background + group normal_icon + style WINDOW_STYLE_SHADER + rect 506 40 60 120 + background "gfx/menus/hex_pattern_gray" + forecolor 0 0 .5 1 + visible 1 + decoration + } + + itemDef + { + name thermal_icon + group normal_icon + style WINDOW_STYLE_SHADER + rect 494 32 80 80 + background "gfx/hud/w_icon_thermal_na" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name thermal_icon_lit + group normal_icon + style WINDOW_STYLE_SHADER + rect 494 32 80 80 + background "gfx/hud/w_icon_thermal" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name thermal_button + group weapon_button + type ITEM_TYPE_BUTTON + rect 507 40 52 64 + forecolor 1 1 1 1 + desctext @MENUS_CLICKSELECT + visible 1 + mouseEnter + { + hide thermal_icon + show thermal_icon_lit + + // Show big icon + show weapon_icon + setitembackground weapon_icon "gfx/hud/w_icon_thermal_na" + + // Show weapon description + show weapon_desc + setitemtext weapon_desc @SP_INGAME_THERMAL_DETONATOR_DESC + } + mouseExit + { + show thermal_icon + hide thermal_icon_lit + } + action + { // Add/remove this weapon from player selection (weapon #, menu item with graphic) + uiScript "addthrowweaponselection" "10" "7" "10" "thermal_icon" "thermal_icon_lit" "thermal_hex_background" "sound/weapons/thermal/select.wav" + } + } + +//---------------------------------------------------------------------------------------------- +// DETPACK BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + itemDef + { + name detpack_hex_background + group normal_icon + style WINDOW_STYLE_SHADER + rect 564 40 60 120 + background "gfx/menus/hex_pattern_gray" + forecolor 0 0 .5 1 + visible 1 + decoration + } + + itemDef + { + name detpack_icon + group normal_icon + style WINDOW_STYLE_SHADER + rect 553 36 80 80 + background "gfx/hud/w_icon_detpack_na" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name detpack_icon_lit + group normal_icon + style WINDOW_STYLE_SHADER + rect 553 36 80 80 + background "gfx/hud/w_icon_detpack" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name detpack_button + group weapon_button + type ITEM_TYPE_BUTTON + rect 565 40 52 64 + forecolor 1 1 1 1 + desctext @MENUS_CLICKSELECT + visible 1 + mouseEnter + { + hide detpack_icon + show detpack_icon_lit + + // Show big icon + show weapon_icon + setitembackground weapon_icon "gfx/hud/w_icon_detpack_na" + + // Show weapon description + show weapon_desc + setitemtext weapon_desc @SP_INGAME_DET_PACK_DESC + } + mouseExit + { + show detpack_icon + hide detpack_icon_lit + } + action + { // Add/remove this weapon from player selection (weapon #, menu item with graphic) + uiScript "addthrowweaponselection" "12" "9" "5" "detpack_icon" "detpack_icon_lit" "detpack_hex_background" "sound/weapons/detpack/select.wav" + } + } + +//---------------------------------------------------------------------------------------------- +// TRIP MINE BUTTONS AND BUTTON GRAPHICS +//---------------------------------------------------------------------------------------------- + itemDef + { + name tripmine_hex_background + group normal_icon + style WINDOW_STYLE_SHADER + rect 538 109 60 120 + background "gfx/menus/hex_pattern_gray" + forecolor 0 0 .5 1 + visible 1 + decoration + } + + itemDef + { + name tripmine_icon + group normal_icon + style WINDOW_STYLE_SHADER + rect 526 100 80 80 + background "gfx/hud/w_icon_tripmine_na" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name tripmine_icon_lit + group normal_icon + style WINDOW_STYLE_SHADER + rect 526 100 80 80 + background "gfx/hud/w_icon_tripmine" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name tripmine_button + group weapon_button + type ITEM_TYPE_BUTTON + rect 539 109 52 64 + forecolor 1 1 1 1 + desctext @MENUS_CLICKSELECT + visible 1 + mouseEnter + { + hide tripmine_icon + show tripmine_icon_lit + + // Show big icon + show weapon_icon + setitembackground weapon_icon "gfx/hud/w_icon_tripmine_na" + + // Show weapon description + show weapon_desc + setitemtext weapon_desc @SP_INGAME_TRIP_MINE_DESC + } + mouseExit + { + show tripmine_icon + hide tripmine_icon_lit + } + action + { // Add/remove this weapon from player selection (weapon #, menu item with graphic) + uiScript "addthrowweaponselection" "11" "8" "5" "tripmine_icon" "tripmine_icon_lit" "tripmine_hex_background" "sound/weapons/detpack/select.wav" + } + } + +//---------------------------------------------------------------------------------------------- +// CHOSEN WEAPONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name chosensaber_hex_background + style WINDOW_STYLE_SHADER + rect 65 358 70 107 + background "gfx/menus/hex_pattern_gray" + forecolor 0 1 1 1 + visible 1 + decoration + } + + itemDef + { + name chosen_sabericon + group chosenicons + style WINDOW_STYLE_SHADER + rect 67 358 60 60 + background "gfx/hud/w_icon_lightsaber_na" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name chosenblaster_hex_background + style WINDOW_STYLE_SHADER + rect 152 358 70 107 + background "gfx/menus/hex_pattern_gray" + forecolor 0 1 1 1 + visible 1 + decoration + } + + itemDef + { + name chosen_blastericon + group chosenicons + style WINDOW_STYLE_SHADER + rect 154 358 60 60 + background "gfx/hud/w_icon_blaster_pistol_na" + forecolor 1 1 1 1 + visible 1 + decoration + } + + + itemDef + { + name chosenweapon1_hex_background + style WINDOW_STYLE_SHADER + rect 280 358 70 107 + background "gfx/menus/hex_pattern_gray" + forecolor 0 1 0 1 + visible 1 + decoration + } + + itemDef + { + name chosenweapon1_icon + group chosenicons + style WINDOW_STYLE_SHADER + rect 282 358 60 60 + background "gfx/hud/w_icon_blaster_pistol_na" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name chosenweapon1_button + type ITEM_TYPE_BUTTON + rect 282 358 52 64 + forecolor 0 1 0 1 + visible 0 + desctext @MENUS_CLICKREMOVE + mouseEnter + { + uiScript highlightweaponselection "1" + } + mouseExit + { + uiScript normalweaponselection "1" + } + action + { + uiScript "removeweaponselection" "1" + } + } + + itemDef + { + name chosenweapon2_hex_background + style WINDOW_STYLE_SHADER + rect 367 358 70 107 + background "gfx/menus/hex_pattern_gray" + forecolor 0 1 0 1 + visible 1 + decoration + } + + itemDef + { + name chosenweapon2_icon + group chosenicons + style WINDOW_STYLE_SHADER + rect 369 358 60 60 + background "gfx/hud/w_icon_blaster_pistol_na" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name chosenweapon2_button + type ITEM_TYPE_BUTTON + rect 369 358 52 64 + forecolor 1 1 1 1 + visible 0 + desctext @MENUS_CLICKREMOVE + mouseEnter + { + uiScript highlightweaponselection "2" + } + mouseExit + { + uiScript normalweaponselection "2" + } + action + { + uiScript "removeweaponselection" "2" + } + } + + itemDef + { + name chosenthrowweapon_hex_background + style WINDOW_STYLE_SHADER + rect 500 358 70 107 + background "gfx/menus/hex_pattern_gray" + forecolor 0 0 1 1 + visible 1 + decoration + } + + itemDef + { + name chosenthrowweapon_icon + group chosenicons + style WINDOW_STYLE_SHADER + rect 500 358 60 60 + background "gfx/hud/w_icon_blaster_pistol_na" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name chosenthrowweapon_button + type ITEM_TYPE_BUTTON + rect 500 358 52 64 + forecolor 1 1 1 1 + visible 0 + desctext @MENUS_CLICKREMOVE + mouseEnter + { + uiScript highlightthrowselection + } + mouseExit + { + uiScript normalthrowselection + } + action + { + uiScript "removethrowweaponselection" + } + } + + + +//---------------------------------------------------------------------------------------------- +// BIG WEAPON ICON +//---------------------------------------------------------------------------------------------- + itemDef + { + name weapon_icon + group bigicons + style WINDOW_STYLE_SHADER + rect 20 200 128 128 + forecolor 1 1 1 1 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// WEAPON DESCRIPTION TEXT +//---------------------------------------------------------------------------------------------- + itemDef + { + name weapon_desc + group none + type ITEM_TYPE_TEXTSCROLL + rect 130 187 490 175 + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 8 + textaligny -1 + lineHeight 16 + visible 0 + autowrapped + decoration + } + +//---------------------------------------------------------------------------------------------- +// BOTTOM ROW OF BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name backbut + type ITEM_TYPE_BUTTON + rect 30 447 140 24 + text @MENUS_HELP + font 2 + forecolor 1 .682 0 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + desctext @MENUS_HELP_DESC1 + visible 1 + mouseEnter + { + } + mouseExit + { + } + // If we're backing up then we have to reset levels to what they were + action + { + play "sound/interface/menuroam.wav" + + open ingameWpnSelectHelp + } + } + + + // Don't change the name of this, code looks for this name to turn it on and off + itemDef + { + name beginmission + type ITEM_TYPE_BUTTON + rect 400 447 220 24 + text @MENUS_BEGIN_MISSION + font 2 + forecolor 1 .682 0 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + desctext @MENUS_BEGIN_MISSION_DESC + visible 1 + cvartest "weapon_menu" + hidecvar + { + "1" ; "2" ; "3" + } + mouseEnter + { + } + mouseExit + { + } + action + { + play "sound/interface/menuroam.wav" + exec "vstr tier_mapname" + } + } + + // Don't change the name of this, code looks for this name to turn it on and off + // This is a big hack so that from Academy2 it will only bring up the weapon select menu + // and then go right to HOTH2. + itemDef + { + name beginmission + type ITEM_TYPE_BUTTON + rect 400 447 220 24 + text @MENUS_BEGIN_MISSION + font 2 + forecolor 1 .682 0 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + desctext @MENUS_BEGIN_MISSION_DESC + visible 1 + cvartest "weapon_menu" + showcvar + { + "1" + } + mouseEnter + { + } + mouseExit + { + } + action + { + play "sound/interface/menuroam.wav" + exec "maptransition hoth2" + } + } + + // Don't change the name of this, code looks for this name to turn it on and off + // This is a big hack so that from Academy4 it will only bring up the weapon select menu + // and then go right to VJUN1. + itemDef + { + name beginmission + type ITEM_TYPE_BUTTON + rect 400 447 220 24 + text @MENUS_BEGIN_MISSION + font 2 + forecolor 1 .682 0 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + desctext @MENUS_BEGIN_MISSION_DESC + visible 1 + cvartest "weapon_menu" + showcvar + { + "2" + } + mouseEnter + { + } + mouseExit + { + } + action + { + play "sound/interface/menuroam.wav" + exec "maptransition vjun1" + } + } + + // Don't change the name of this, code looks for this name to turn it on and off + // This is a big hack so that from Academy6 it will only bring up the weapon select menu + // and then go right to TASPIN1. + itemDef + { + name beginmission + type ITEM_TYPE_BUTTON + rect 400 447 220 24 + text @MENUS_BEGIN_MISSION + font 2 + forecolor 1 .682 0 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + desctext @MENUS_BEGIN_MISSION_DESC + visible 1 + cvartest "weapon_menu" + showcvar + { + "3" + } + mouseEnter + { + } + mouseExit + { + } + action + { + play "sound/interface/menuroam.wav" + exec "maptransition taspir1" + } + } + +//---------------------------------------------------------------------------------------------- +// +// SCANLINES +// +//---------------------------------------------------------------------------------------------- + + itemDef + { + name scan + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 640 + background "gfx/menus/scanlines" + forecolor 1 1 1 1 + visible 1 + decoration + } + + } +} + + + + + + + + + + diff --git a/base/ui/ingameWpnSelectHelp.menu b/base/ui/ingameWpnSelectHelp.menu new file mode 100644 index 0000000..8a956c7 --- /dev/null +++ b/base/ui/ingameWpnSelectHelp.menu @@ -0,0 +1,126 @@ +//-------------------------------------------------------------- +// +// ERROR MENU +// +// Displays error messages +// +//-------------------------------------------------------------- +{ + menuDef + { + name "ingameWpnSelectHelp" + visible 0 + fullscreen 0 + rect 140 70 350 375 + focusColor 1 1 1 1 + style WINDOW_STYLE_FILLED + border 1 + popup + outOfBoundsClick + descX 240 + descY 425 + descScale 1 + descColor 1 .682 0 .8 + + itemDef + { + name window + rect 0 0 350 375 + style WINDOW_STYLE_FILLED + backcolor .015 .015 .229 1 + forecolor 0 0 0 1 + border 1 + bordercolor .388 .396 .925 1 + bordersize 5 + visible 1 + decoration + } + + itemDef + { + name instruction_title + group inst_stuff + type ITEM_TYPE_TEXT + rect 0 25 350 18 + text @MENUS_HELP + font 2 + forecolor .549 .854 1 1 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 175 + visible 1 + decoration + } + + itemDef + { + name instruction_text + group inst_stuff + type ITEM_TYPE_TEXTSCROLL + rect 25 80 300 250 + text @MENUS_WEAPON_SELECTION_HELP + font 4 + forecolor 1 1 1 1 + textscale 1.0 + textalign ITEM_ALIGN_LEFT + visible 1 + decoration autowrapped + textaligny 0 + lineHeight 13 + + } + + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + +//-------------------------------------------------------------------------------- +// BUTTON +//-------------------------------------------------------------------------------- + itemDef + { + name inst_done_button + group inst_stuff + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 0 315 350 18 + text @MENUS_OKAY + descText @MENUS_HELP_DESC + font 3 + textscale 1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 175 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 230 384 170 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/misc/nomenu.wav" + close ingameWpnSelectHelp + } + } + + + } +} + + diff --git a/base/ui/ingamecontrols.menu b/base/ui/ingamecontrols.menu new file mode 100644 index 0000000..b046c55 --- /dev/null +++ b/base/ui/ingamecontrols.menu @@ -0,0 +1,3247 @@ +//---------------------------------------------------------------------------------------------- +// +// INGAME CONTROLS MENU +// +// Player can change key bindings from ingame +// +//---------------------------------------------------------------------------------------------- +{ + 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 320 + descY 426 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + uiScript loadControls + + + // fade in movement controls + show movecontrols + setitemcolor movecontrols forecolor .615 .615 .956 0.0 + fadein movecontrols + + + hide attackcontrols + hide weaponcontrols + hide forcecontrols + hide quickcontrols + hide joycontrols + hide othercontrols + show setup_background + hide ffwarning + + setitemcolor side_buttons forecolor 1 .682 0 1 + setitemcolor movementcontrolbutton forecolor 1 1 1 1 + } + + onClose + { + uiScript saveControls + hide ffwarning + } + + onESC + { + play "sound/interface/esc.wav" + hide highlights + close all + open ingameMainMenu + hide ffwarning + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 107 8 428 112 + background "gfx/menus/jediacademy" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name left_frame + group lf_fr + style WINDOW_STYLE_SHADER + rect 0 50 320 160 + background "gfx/menus/menu_boxes_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name right_frame + group rt_fr + style WINDOW_STYLE_SHADER + rect 320 50 320 160 + background "gfx/menus/menu_boxes_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// TOP MENU BUTTONS +//---------------------------------------------------------------------------------------------- + + + // Big button "SAVE" + itemDef + { + name savegamebutton_glow + group none + style WINDOW_STYLE_SHADER + rect 7 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name savegamebutton + group nbut + text @MENUS_SAVE + descText @MENUS_SAVE_CURRENT_GAME + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 7 126 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show savegamebutton_glow + } + mouseExit + { + hide savegamebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open ingamesaveMenu + } + } + + + // Big button "LOAD" + itemDef + { + name loadgamebutton_glow + group none + style WINDOW_STYLE_SHADER + rect 170 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name loadgamebutton + group lbut + text @MENUS_LOAD + descText @MENUS_LOAD_A_SAVED_GAME + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 126 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show loadgamebutton_glow + } + mouseExit + { + hide loadgamebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open ingameloadMenu + } + } + + // Big button "CONTROLS" + itemDef + { + name controlsbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 340 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name controlsbutton + group cbut + text @MENUS_CONTROLS + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show controlsbutton_glow + } + mouseExit + { + hide controlsbutton_glow + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 502 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name setupbutton + group sbut + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 502 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show setupbutton_glow + } + mouseExit + { + hide setupbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open ingamesetupMenu ; + } + } + +//---------------------------------------------------------------------------------------------- +// OTHER MAIN MENU BUTTONS +//---------------------------------------------------------------------------------------------- + // BACK button in lower left corner + itemDef + { + name backbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 59 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name backbutton + group exit + text @MENUS_BACK + descText @MENUS_BACKTOMAIN + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 59 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show backbutton_glow + } + mouseExit + { + hide backbutton_glow + } + action + { + play "sound/interface/esc.wav" + close all ; + open ingamemainMenu + } + } + + // EXIT button in lower left corner + itemDef + { + name exitgamebutton_glow + group exit_glow + style WINDOW_STYLE_SHADER + rect 255 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name exitgamebutton + group exit + text @MENUS_EXIT + descText @MENUS_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 255 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show exitgamebutton_glow + } + mouseExit + { + hide exitgamebutton_glow + } + action + { + play "sound/weapons/saber/saberoff.mp3"; + close all ; + open ingamequitMenu + } + } + + // RESUME button in the lower right corner + itemDef + { + name resumebutton_glow + group resume_glow + style WINDOW_STYLE_SHADER + rect 455 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 455 444 130 24 + text @MENUS_RESUME + descText @MENUS_RESUME_CURRENT_GAME + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + mouseEnter + { + show resumebutton_glow + } + mouseExit + { + hide resumebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + uiScript closeingame // Close menu + } + } + +//---------------------------------------------------------------------------------------------- +// SECOND ROW MENU BUTTONS +//---------------------------------------------------------------------------------------------- +// Configure Controls title + itemDef + { + name control_title + group title + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_CONFIGURE_CONTROLS + rect 100 164 440 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// GLOW ON SIDE BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name sidebutton_glow + group none + style WINDOW_STYLE_SHADER + rect 60 185 200 24 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// MOVEMENT button +//---------------------------------------------------------------------------------------------- + itemDef + { + name movementcontrolbutton + group side_buttons + text @MENUS_MOVEMENT + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 185 170 24 + font 3 + textscale 0.9 + textalignx 170 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_MOVEMENT_KEYS + + mouseEnter + { + show sidebutton_glow + setitemrect sidebutton_glow 80 185 170 24 + } + mouseExit + { + hide sidebutton_glow + } + + action + { + play sound/interface/sub_select + show setup_background + + show movecontrols + fadein movecontrols + + hide attackcontrols + hide weaponcontrols + hide forcecontrols + hide quickcontrols + hide joycontrols + hide othercontrols + setitemcolor movementcontrolbutton forecolor 1 1 1 1 + setitemcolor attackcontrolbutton forecolor 1 .682 0 1 + setitemcolor weaponscontrolbutton forecolor 1 .682 0 1 + setitemcolor forcecontrolbutton forecolor 1 .682 0 1 + setitemcolor quickcontrolbutton forecolor 1 .682 0 1 + setitemcolor mousejoystickcontrolbutton forecolor 1 .682 0 1 + setitemcolor othercontrolbutton forecolor 1 .682 0 1 + } + } + +//---------------------------------------------------------------------------------------------- +// INTERACTION button +//---------------------------------------------------------------------------------------------- + itemDef + { + name attackcontrolbutton + group side_buttons + text @MENUS_INTERACTION + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 209 170 24 + font 3 + textscale 0.9 + textalignx 170 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_INTERACTION_DESC + + mouseEnter + { + show sidebutton_glow + setitemrect sidebutton_glow 80 209 170 24 + } + mouseExit + { + hide sidebutton_glow + } + + action + { + play sound/interface/sub_select + show setup_background + hide movecontrols + + show attackcontrols + + hide weaponcontrols + hide forcecontrols + hide quickcontrols + hide joycontrols + hide othercontrols + setitemcolor movementcontrolbutton forecolor 1 .682 0 1 + setitemcolor attackcontrolbutton forecolor 1 1 1 1 + setitemcolor weaponscontrolbutton forecolor 1 .682 0 1 + setitemcolor forcecontrolbutton forecolor 1 .682 0 1 + setitemcolor quickcontrolbutton forecolor 1 .682 0 1 + setitemcolor mousejoystickcontrolbutton forecolor 1 .682 0 1 + setitemcolor othercontrolbutton forecolor 1 .682 0 1 + } + } + + +//---------------------------------------------------------------------------------------------- +// WEAPONS button +//---------------------------------------------------------------------------------------------- + itemDef + { + name weaponscontrolbutton + group side_buttons + text @MENUS_WEAPONS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 233 170 24 + font 3 + textscale 0.9 + textalignx 170 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_WEAPON_CONTROLS + + mouseEnter + { + show sidebutton_glow + setitemrect sidebutton_glow 80 233 170 24 + } + mouseExit + { + hide sidebutton_glow + } + action + { + play sound/interface/sub_select + show setup_background + hide movecontrols + hide attackcontrols + show weaponcontrols + hide forcecontrols + hide quickcontrols + hide joycontrols + hide othercontrols + setitemcolor movementcontrolbutton forecolor 1 .682 0 1 + setitemcolor attackcontrolbutton forecolor 1 .682 0 1 + setitemcolor weaponscontrolbutton forecolor 1 1 1 1 + setitemcolor forcecontrolbutton forecolor 1 .682 0 1 + setitemcolor quickcontrolbutton forecolor 1 .682 0 1 + setitemcolor mousejoystickcontrolbutton forecolor 1 .682 0 1 + setitemcolor othercontrolbutton forecolor 1 .682 0 1 + } + } + +//---------------------------------------------------------------------------------------------- +// FORCE POWERS button +//---------------------------------------------------------------------------------------------- + itemDef + { + name forcecontrolbutton + group side_buttons + text @MENUS_FORCE_POWERS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 257 170 24 + font 3 + textscale 0.9 + textalignx 170 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_FORCE_POWER + + mouseEnter + { + show sidebutton_glow + setitemrect sidebutton_glow 80 257 170 24 + } + mouseExit + { + hide sidebutton_glow + } + action + { + play sound/interface/sub_select + show setup_background + hide movecontrols + hide attackcontrols + hide weaponcontrols + show forcecontrols + hide quickcontrols + hide joycontrols + hide othercontrols + setitemcolor movementcontrolbutton forecolor 1 .682 0 1 + setitemcolor attackcontrolbutton forecolor 1 .682 0 1 + setitemcolor weaponscontrolbutton forecolor 1 .682 0 1 + setitemcolor forcecontrolbutton forecolor 1 1 1 1 + setitemcolor quickcontrolbutton forecolor 1 .682 0 1 + setitemcolor mousejoystickcontrolbutton forecolor 1 .682 0 1 + setitemcolor othercontrolbutton forecolor 1 .682 0 1 + } + } + +//---------------------------------------------------------------------------------------------- +// QUICK KEYS button +//---------------------------------------------------------------------------------------------- + itemDef + { + name quickcontrolbutton + group side_buttons + text @MENUS_QUICK_KEYS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 281 170 24 + font 3 + textscale 0.9 + textalignx 170 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_QUICK_KEYS + + mouseEnter + { + show sidebutton_glow + setitemrect sidebutton_glow 80 281 170 24 + } + mouseExit + { + hide sidebutton_glow + } + action + { + play sound/interface/sub_select + show setup_background + hide movecontrols + hide attackcontrols + hide weaponcontrols + hide forcecontrols + show quickcontrols + hide joycontrols + hide othercontrols + setitemcolor movementcontrolbutton forecolor 1 .682 0 1 + setitemcolor attackcontrolbutton forecolor 1 .682 0 1 + setitemcolor weaponscontrolbutton forecolor 1 .682 0 1 + setitemcolor forcecontrolbutton forecolor 1 .682 0 1 + setitemcolor quickcontrolbutton forecolor 1 1 1 1 + setitemcolor mousejoystickcontrolbutton forecolor 1 .682 0 1 + setitemcolor othercontrolbutton forecolor 1 .682 0 1 + } + } + +//---------------------------------------------------------------------------------------------- +// MOUSE/JOYSTICK button +//---------------------------------------------------------------------------------------------- + itemDef + { + name mousejoystickcontrolbutton + group side_buttons + text @MENUS_MOUSE_JOYSTICK + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 305 170 24 + font 3 + textscale 0.9 + textalignx 170 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_MOUSE_AND_JOYSTICK + + mouseEnter + { + show sidebutton_glow + setitemrect sidebutton_glow 80 305 170 24 + } + mouseExit + { + hide sidebutton_glow + } + + action + { + play sound/interface/sub_select + show setup_background + hide movecontrols + hide attackcontrols + hide weaponcontrols + hide forcecontrols + hide quickcontrols + show joycontrols + hide othercontrols + setitemcolor movementcontrolbutton forecolor 1 .682 0 1 + setitemcolor attackcontrolbutton forecolor 1 .682 0 1 + setitemcolor weaponscontrolbutton forecolor 1 .682 0 1 + setitemcolor forcecontrolbutton forecolor 1 .682 0 1 + setitemcolor quickcontrolbutton forecolor 1 .682 0 1 + setitemcolor mousejoystickcontrolbutton forecolor 1 1 1 1 + setitemcolor othercontrolbutton forecolor 1 .682 0 1 + } + } + +//---------------------------------------------------------------------------------------------- +// OTHER button +//---------------------------------------------------------------------------------------------- + itemDef + { + name othercontrolbutton + group side_buttons + text @MENUS_OTHER + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 329 170 24 + font 3 + textscale 0.9 + textalignx 170 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_ADDITIONAL + + mouseEnter + { + show sidebutton_glow + setitemrect sidebutton_glow 80 329 170 24 + } + mouseExit + { + hide sidebutton_glow + } + action + { + play sound/interface/sub_select + show setup_background + hide movecontrols + hide attackcontrols + hide weaponcontrols + hide forcecontrols + hide quickcontrols + hide joycontrols + show othercontrols + setitemcolor movementcontrolbutton forecolor 1 .682 0 1 + setitemcolor attackcontrolbutton forecolor 1 .682 0 1 + setitemcolor weaponscontrolbutton forecolor 1 .682 0 1 + setitemcolor forcecontrolbutton forecolor 1 .682 0 1 + setitemcolor quickcontrolbutton forecolor 1 .682 0 1 + setitemcolor mousejoystickcontrolbutton forecolor 1 .682 0 1 + setitemcolor othercontrolbutton forecolor 1 1 1 1 + } + } + + itemDef + { + name setup_background + group side_buttons + style WINDOW_STYLE_FILLED + rect 260 185 340 225 + backcolor 0 0 .6 .5 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .6 1 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// HIGHLIGHT BARS +//---------------------------------------------------------------------------------------------- + itemDef + { + name highlight1 + group highlights + style WINDOW_STYLE_SHADER + rect 260 190 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight2 + group highlights + style WINDOW_STYLE_SHADER + rect 260 204 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight3 + group highlights + style WINDOW_STYLE_SHADER + rect 260 218 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight4 + group highlights + style WINDOW_STYLE_SHADER + rect 260 232 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight5 + group highlights + style WINDOW_STYLE_SHADER + rect 260 246 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight6 + group highlights + style WINDOW_STYLE_SHADER + rect 260 260 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight7 + group highlights + style WINDOW_STYLE_SHADER + rect 260 274 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight8 + group highlights + style WINDOW_STYLE_SHADER + rect 260 288 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight9 + group highlights + style WINDOW_STYLE_SHADER + rect 260 302 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight10 + group highlights + style WINDOW_STYLE_SHADER + rect 260 316 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight11 + group highlights + style WINDOW_STYLE_SHADER + rect 260 330 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight12 + group highlights + style WINDOW_STYLE_SHADER + rect 260 344 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight13 + group highlights + style WINDOW_STYLE_SHADER + rect 260 358 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight14 + group highlights + style WINDOW_STYLE_SHADER + rect 260 372 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight15 + group highlights + style WINDOW_STYLE_SHADER + rect 260 386 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// MOVEMENT BINDING +//---------------------------------------------------------------------------------------------- + itemDef + { + name movement1 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_WALK_FORWARD + cvar "+forward" + rect 260 188 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_MOVES_PLAYER_FORWARD + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight1 + show keybindstatus + } + mouseexit + { + hide highlight1 + hide keybindstatus + } + } + + + itemDef + { + name movement2 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_BACKPEDAL + cvar "+back" + rect 260 202 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_MOVES_PLAYER_BACKWARD + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight2 + show keybindstatus + } + mouseexit + { + hide highlight2 + hide keybindstatus + } + } + + itemDef + { + name movement3 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_TURN_LEFT + cvar "+left" + rect 260 216 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_ROTATES_PLAYER_LEFT + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight3 + show keybindstatus + } + mouseexit + { + hide highlight3 + hide keybindstatus + } + } + + itemDef + { + name movement4 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_TURN_RIGHT + cvar "+right" + rect 260 230 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_ROTATES_PLAYER_RIGHT + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight4 + show keybindstatus + } + mouseexit + { + hide highlight4 + hide keybindstatus + } + } + + itemDef + { + name movement5 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_RUN_WALK + cvar "+speed" + rect 260 244 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_IF_HELD_TOGGLES_BETWEEN + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight5 + show keybindstatus + } + mouseexit + { + hide highlight5 + hide keybindstatus + } + } + + itemDef + { + name movement6 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_STEP_LEFT + cvar "+moveleft" + rect 260 258 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_STEPS_PLAYER_TO_THE_LEFT + + action + { + play sound/interface/button1 + } + mouseenter + { + show highlight6 + show keybindstatus + } + mouseexit + { + hide highlight6 + hide keybindstatus + } + } + + itemDef + { + name movement7 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_STEP_RIGHT + cvar "+moveright" + rect 260 272 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_STEPS_PLAYER_TO_THE_RIGHT + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight7 + show keybindstatus + } + mouseexit + { + hide highlight7 + hide keybindstatus + } + } + + itemDef + { + name movement8 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_SIDESTEP_TURN + cvar "+strafe" + rect 260 286 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_HELD_ALLOWS_PLAYER_TO + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight8 + show keybindstatus + } + mouseexit + { + hide highlight8 + hide keybindstatus + } + } + + itemDef + { + name movement12 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_UP_JUMP + cvar "+moveup" + rect 260 342 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_MAKES_PLAYER_JUMP_IF + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight12 + show keybindstatus + } + mouseexit + { + hide highlight12 + hide keybindstatus + } + } + + itemDef + { + name movement13 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_DOWN_CROUCH + cvar "+movedown" + rect 260 356 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 0.0 + visible 0 + descText @MENUS_MAKES_PLAYER_CROUCH_TO + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight13 + show keybindstatus + } + mouseexit + { + hide highlight13 + hide keybindstatus + } + } + + itemDef + { + name movement11 + group movecontrols + text @MENUS_HOLD_USE_PLUS_STRAFE + rect 260 384 340 14 + textalign ITEM_ALIGN_CENTER + textalignx 170 + textaligny 0 + font 4 + textscale 1 + forecolor .549 .854 1 1 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// INTERACTION BINDING +//---------------------------------------------------------------------------------------------- + itemDef + { + name attacklook1 + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_ATTACK + cvar "+attack" + rect 260 188 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_ATTACKS_WITH_READIED + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight1 + show keybindstatus + } + mouseexit + { + hide highlight1 + hide keybindstatus + } + } + + itemDef + { + name attacklook2 + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_ALT_ATTACK + cvar "+altattack" + rect 260 202 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_ATTACKS_WITH_ALTERNATE + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight2 + show keybindstatus + } + mouseexit + { + hide highlight2 + hide keybindstatus + } + } + + itemDef + { + name attacksaber + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_LIGHTSABER_STYLE + cvar "saberAttackCycle" + rect 260 216 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_CYCLES_BETWEEN_AVAILABLE + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight3 + show keybindstatus + } + mouseexit + { + hide highlight3 + hide keybindstatus + } + } + + itemDef + { + name attacklook3 + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_USE + cvar "+use" + rect 260 244 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_ACTIVATES_WORLD_DEVICES + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight5 + show keybindstatus + } + mouseexit + { + hide highlight5 + hide keybindstatus + } + } + + + itemDef + { + name attacklook4 + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_LOOK_UP + cvar "+lookup" + rect 260 300 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_TILTS_VIEW_UPWARDS + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight9 + show keybindstatus + } + mouseexit + { + hide highlight9 + hide keybindstatus + } + } + + + itemDef + { + name attacklook5 + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_LOOK_DOWN + cvar "+lookdown" + rect 260 314 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_TILTS_VIEW_DOWNWARDS + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight10 + show keybindstatus + } + mouseexit + { + hide highlight10 + hide keybindstatus + } + } + + itemDef + { + name attacklook + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_MOUSE_LOOK + cvar "+mlook" + rect 260 328 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_IF_HELD_ALLOWS_PLAYER + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight11 + show keybindstatus + } + mouseexit + { + hide highlight11 + hide keybindstatus + } + } + + itemDef + { + name attacklook + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_CENTERVIEW + cvar "centerview" + rect 260 342 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_RETURNS_VIEW_TO_HORIZONTAL + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight12 + show keybindstatus + } + mouseexit + { + hide highlight12 + hide keybindstatus + } + } + +//---------------------------------------------------------------------------------------------- +// WEAPON BINDING +//---------------------------------------------------------------------------------------------- + itemDef + { + name weapon1 + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_MELEE_LIGHTSABER + cvar "weapon 1" + rect 260 188 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_READIES_LIGHTSABER + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight1 + show keybindstatus + } + mouseexit + { + hide highlight1 + hide keybindstatus + } + } + + itemDef + { + name weapon3 + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_PISTOL + cvar "weapon 2" + rect 260 202 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_READIES_THE_BLASTER_PISTOL + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight2 + show keybindstatus + } + mouseexit + { + hide highlight2 + hide keybindstatus + } + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_RIFLE + cvar "weapon 3" + rect 260 216 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_READIES_THE_E_11_BLASTER + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight3 + show keybindstatus + } + mouseexit + { + hide highlight3 + hide keybindstatus + } + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_DISRUPTOR_RIFLE + cvar "weapon 4" + rect 260 230 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_READIES_THE_TENLOSS_DXR_6 + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight4 + show keybindstatus + } + mouseexit + { + hide highlight4 + hide keybindstatus + } + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_BOWCASTER + cvar "weapon 5" + rect 260 244 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_READIES_THE_WOOKIEE_BOWCASTER + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight5 + show keybindstatus + } + mouseexit + { + hide highlight5 + hide keybindstatus + } + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_HEAVY_REPEATER + cvar "weapon 6" + rect 260 258 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_READIES_THE_IMPERIAL + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight6 + show keybindstatus + } + mouseexit + { + hide highlight6 + hide keybindstatus + } + } + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_DEMP_2 + cvar "weapon 7" + rect 260 272 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_READIES_THE_DEMP2_GUN + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight7 + show keybindstatus + } + mouseexit + { + hide highlight7 + hide keybindstatus + } + } + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_FLECHETTE + cvar "weapon 8" + rect 260 286 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_READIES_THE_GOLAN_ARMS + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight8 + show keybindstatus + } + mouseexit + { + hide keybindstatus + hide highlight8 + } + } + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_CONC_RIFLE_SETUP + cvar "weapon 13" + rect 260 300 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_READIES_THE_CONC_RIFLE + + mouseenter + { + show highlight9 + show keybindstatus + } + mouseexit + { + hide keybindstatus + hide highlight9 + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_MERR_SONN + cvar "weapon 9" + rect 260 314 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_READIES_THE_MERR_SONN + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight10 + show keybindstatus + } + mouseexit + { + hide highlight10 + hide keybindstatus + } + } + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_THROWABLE_WEAPONS + cvar "weapon 10" + rect 260 328 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_TOGGLES_BETWEEN_DETONATORS + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight11 + show keybindstatus + } + mouseexit + { + hide highlight11 + hide keybindstatus + } + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_NEXT_WEAPON + cvar "weapnext" + rect 260 342 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_SELECTS_THE_NEXT_WEAPON + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight12 + show keybindstatus + } + mouseexit + { + hide highlight12 + hide keybindstatus + } + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_PREVIOUS_WEAPON + cvar "weapprev" + rect 260 356 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_SELECTS_THE_PREVIOUS + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight13 + show keybindstatus + } + mouseexit + { + hide highlight13 + hide keybindstatus + } + } + +//---------------------------------------------------------------------------------------------- +// FORCE BINDING +//---------------------------------------------------------------------------------------------- + itemDef + { + name force1 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_PUSH + cvar "force_throw" + rect 260 188 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_USES_FORCE_PUSH_ABILITY + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight1 + show keybindstatus + } + mouseexit + { + hide highlight1 + hide keybindstatus + } + } + + itemDef + { + name force2 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_PULL + cvar "force_pull" + rect 260 202 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_USES_FORCE_PULL_ABILITY + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight2 + show keybindstatus + } + mouseexit + { + hide highlight2 + hide keybindstatus + } + } + + itemDef + { + name force3 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_SPEED + cvar "force_speed" + rect 260 216 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_USES_FORCE_SPEED_ABILITY + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight3 + show keybindstatus + } + mouseexit + { + hide highlight3 + hide keybindstatus + } + } + + itemDef + { + name force4 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_SENSE + cvar "force_sight" + rect 260 230 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_USES_FORCE_SENSE_ABILITY + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight4 + show keybindstatus + } + mouseexit + { + hide highlight4 + hide keybindstatus + } + } + + itemDef + { + name force5 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_ABSORB + cvar "force_absorb" + rect 260 244 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_USES_FORCE_ABSORB_ABILITY + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight5 + show keybindstatus + } + mouseexit + { + hide highlight5 + hide keybindstatus + } + } + + itemDef + { + name force6 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_HEAL + cvar "force_heal" + rect 260 258 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_USES_FORCE_HEAL_ABILITY + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight6 + show keybindstatus + } + mouseexit + { + hide highlight6 + hide keybindstatus + } + } + + itemDef + { + name force7 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_MINDTRICK + cvar "force_distract" + rect 260 272 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_USES_JEDI_MIND_TRICK + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight7 + show keybindstatus + } + mouseexit + { + hide highlight7 + hide keybindstatus + } + } + + itemDef + { + name force8 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_PROTECT + cvar "force_protect" + rect 260 286 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_USES_FORCE_PROTECT_ABILITY + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight8 + show keybindstatus + } + mouseexit + { + hide highlight8 + hide keybindstatus + } + } + + itemDef + { + name force9 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_DRAIN + cvar "+force_drain" + rect 260 300 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_USES_DRAIN_FORCE_ABILITY + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight9 + show keybindstatus + } + mouseexit + { + hide highlight9 + hide keybindstatus + } + } + + itemDef + { + name force10 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_GRIP + cvar "+force_grip" + rect 260 314 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_USES_FORCE_GRIP_ABILITY + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight10 + show keybindstatus + } + mouseexit + { + hide highlight10 + hide keybindstatus + } + } + + + itemDef + { + name force11 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_LIGHTNING + cvar "+force_lightning" + rect 260 328 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_USES_FORCE_LIGHTNING + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight11 + show keybindstatus + } + mouseexit + { + hide highlight11 + hide keybindstatus + } + } + + itemDef + { + name force12 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_DARK_RAGE + cvar "force_rage" + rect 260 342 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_USES_RAGE_FORCE_ABILITY + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight12 + show keybindstatus + } + mouseexit + { + hide highlight12 + hide keybindstatus + } + } + + itemDef + { + name forcekeys + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_USE_FORCE_POWER + cvar "+useforce" + rect 260 356 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_USES_CURRENTLY_SELECTED + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight13 + show keybindstatus + } + mouseexit + { + hide highlight13 + hide keybindstatus + } + } + + itemDef + { + name forcekeys + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_NEXT + cvar "forcenext" + rect 260 370 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_SELECTS_NEXT_AVAILABLE + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight14 + show keybindstatus + } + mouseexit + { + hide highlight14 + hide keybindstatus + } + } + + itemDef + { + name forcekeys + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_PREVIOUS + cvar "forceprev" + rect 260 384 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_SELECTS_PREVIOUS_AVAILABLE + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight15 + show keybindstatus + } + mouseexit + { + hide highlight15 + hide keybindstatus + } + } + +//---------------------------------------------------------------------------------------------- +// QUICK KEY BINDING +//---------------------------------------------------------------------------------------------- + itemDef + { + name quickkeys1 + group quickcontrols + type ITEM_TYPE_BIND + text @MENUS_DATAPAD + cvar "datapad" + rect 260 188 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_CHECK_DATAPAD_FOR_MISSION + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight1 + show keybindstatus + } + mouseexit + { + hide highlight1 + hide keybindstatus + } + } + + itemDef + { + name quickkeys + group quickcontrols + type ITEM_TYPE_BIND + text @MENUS_SAVE_MENU + cvar "uimenu ingamesavemenu" + rect 260 216 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_BRINGS_UP_SAVE_GAME_MENU + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight3 + show keybindstatus + } + mouseexit + { + hide highlight3 + hide keybindstatus + } + } + + itemDef + { + name quickkeys + group quickcontrols + type ITEM_TYPE_BIND + text @MENUS_LOAD_MENU + cvar "uimenu ingameloadmenu" + rect 260 230 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_BRINGS_UP_LOAD_GAME_MENU + + action + { + play sound/interface/button1 + } + mouseenter + { + show highlight4 + show keybindstatus + } + mouseexit + { + hide highlight4 + hide keybindstatus + } + } + + itemDef + { + name quickkeys + group quickcontrols + type ITEM_TYPE_BIND + text @MENUS_INSTANT_SAVE + cvar "save quick" + rect 260 244 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_AUTOMATICALLY_SAVES_GAME + + action + { + play sound/interface/button1 + } + mouseenter + { + show highlight5 + show keybindstatus + } + mouseexit + { + hide highlight5 + hide keybindstatus + } + } + + itemDef + { + name quickkeys + group quickcontrols + type ITEM_TYPE_BIND + text @MENUS_INSTANT_LOAD + cvar "load quick" + rect 260 258 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_AUTOMATICALLY_LOADS_GAME + + action + { + play sound/interface/button1 + } + mouseenter + { + show highlight6 + show keybindstatus + } + mouseexit + { + hide highlight6 + hide keybindstatus + } + } + + +//---------------------------------------------------------------------------------------------- +// MOUSE/JOYSTICK KEY BINDING +//---------------------------------------------------------------------------------------------- + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_YESNO + text @MENUS_INVERT_MOUSE + cvar "ui_mousePitch" + rect 260 202 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_TOGGLE_TO_TILT_VIEW_IN + + action { + uiScript update ui_mousePitch + play sound/interface/button1 + } + + mouseenter + { + show highlight2 + } + + mouseexit + { + hide highlight2 + } + } + + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_YESNO + text @MENUS_SMOOTH_MOUSE + cvar "m_filter" + rect 260 216 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_WHEN_TURNED_ON_MOUSE + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight3 + } + + mouseexit + { + hide highlight3 + } + } + + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_SLIDER + text @MENUS_SENSITIVITY + cvarfloat "sensitivity" 5 2 30 + rect 260 230 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_ADJUSTS_CHARACTER_REACTION + + action + { + play sound/interface/button1 + } + mouseenter + { + show highlight4 + } + mouseexit + { + hide highlight4 + } + } + + + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_YESNO + text @MENUS_ENABLE_JOYSTICK + cvar "in_joystick" + rect 260 258 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_TURNED_ON_GAME_SEARCHES + action + { + play sound/interface/button1 + exec in_restart + } + + mouseenter + { + show highlight6 + } + + mouseexit + { + hide highlight6 + } + } + + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_YESNO + text @MENUS_X_AXIS_AS_BUTTONS + cvar "joy_xbutton" + rect 260 272 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_WHEN_OFF_HORIZONTAL + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight7 + } + + mouseexit + { + hide highlight7 + } + } + + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_YESNO + text @MENUS_Y_AXIS_AS_BUTTONS + cvar "joy_ybutton" + rect 260 286 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_WHEN_OFF_VERTICAL_STICK + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight8 + } + + mouseexit + { + hide highlight8 + } + } + + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_SLIDER + text @MENUS_JOYSTICK_THRESHOLD + cvarfloat "joy_threshold" .15 .05 .75 + rect 260 300 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_ADJUSTS_THE_SIZE_OF_THE + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight9 + } + mouseexit + { + hide highlight9 + } + } + +// +// Not shown +// + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_YESNO + text @MENUS_FORCE_FEEDBACK + cvar "use_ff" + rect 260 328 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_WHEN_TURNED_ON_GAME + action + { + play sound/interface/button1 + uiScript update ff + } + + mouseenter + { + show highlight11 + show ffwarning + } + + mouseexit + { + hide highlight11 + hide ffwarning + } + } + + itemDef + { + name ffwarning + type ITEM_TYPE_TEXT + text @MENUS_APPLY_FORCE_FEEDBACK + text2 @MENUS_AND_RETURNTO_GAME + rect 260 360 340 14 + textalign ITEM_ALIGN_CENTER + textalignx 170 + text2aligny 18 + font 4 + textscale 1 + // foreColor 1 .682 0 .8 + forecolor 1 0 0 1 + decoration + visible 0 + } + +//---------------------------------------------------------------------------------------------- +// OTHER +//---------------------------------------------------------------------------------------------- + itemDef + { + name other1 + group othercontrols + type ITEM_TYPE_YESNO + text @MENUS_ALWAYS_RUN + cvar "cl_run" + rect 260 188 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_WHEN_ON_PLAYER_ALWAYS + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight1 + } + + mouseexit + { + hide highlight1 + } + } + + itemDef + { + name other2 + group othercontrols + type ITEM_TYPE_MULTI + text @MENUS_AUTO_SWITCH + cvar "cg_autoswitch" + cvarFloatList + { + @MENUS_DON_T_SWITCH 0 + @MENUS_BEST_SAFE_WEAPON 1 + @MENUS_ALWAYS_BEST_WEAPON 2 + } + rect 260 202 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_CHOOSE_WHETHER_TO_SWITCH + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight2 + } + + mouseexit + { + hide highlight2 + } + + } + + itemDef + { + name other3 + group othercontrols + type ITEM_TYPE_BIND + text @MENUS_3RD_PERSON + cvar "cg_thirdperson !" + rect 260 230 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1.0 + visible 0 + descText @MENUS_CHANGES_VIEW_BETWEEN + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight4 + show keybindstatus + } + mouseexit + { + hide highlight4 + hide keybindstatus + } + } + +//---------------------------------------------------------------------------------------------- +// Text +//---------------------------------------------------------------------------------------------- + itemDef + { + name keyBindStatus + group none + ownerdraw 250 // UI_KEYBINDSTATUS + text @MENUS_BLANK_1 + rect 375 425 0 0 + textaligny 0 + font 4 + textscale 1 + textalign ITEM_ALIGN_CENTER + forecolor 1 1 0 1 + visible 0 + decoration + } + + itemDef + { + name slider_message + group none + text @MENUS_MOVE_THE_SLIDER_TO_INCREASE + rect 375 425 0 0 + textaligny 0 + font 4 + textscale 1 + textalign ITEM_ALIGN_CENTER + visible 0 + decoration + } + + itemDef + { + name yesno_message + group none + text @MENUS_CLICK_ON_FIELD_TO_TOGGLE + rect 375 425 0 0 + textaligny 0 + font 4 + textscale 1 + textalign ITEM_ALIGN_CENTER + visible 0 + decoration + } + + itemDef + { + name multi_message + group none + text @MENUS_CLICK_ON_FIELD_TO_CHANGE + rect 375 425 0 0 + textaligny 0 + font 4 + textscale 1 + textalign ITEM_ALIGN_CENTER + visible 0 + decoration + } + + } +} diff --git a/base/ui/ingameload.menu b/base/ui/ingameload.menu new file mode 100644 index 0000000..260cd0a --- /dev/null +++ b/base/ui/ingameload.menu @@ -0,0 +1,726 @@ +//---------------------------------------------------------------------------------------------- +// INGAME MAIN MENU +// +// Allows user to load from saved games. Called from in game main menu. +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + // ***IMPORTANT*** This name can not change, code looks for it. + // If it must change, change it in UI_AdjustSaveGameListBox() also + // + name "ingameloadMenu" + 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 320 + descY 426 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + disablecolor .5 .5 .5 1 + + onOpen + { + uiScript ReadSaveDirectory + } + + onESC + { + play "sound/interface/esc.wav" + uiScript closeingame // Close menu + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 107 8 428 112 + background "gfx/menus/jediacademy" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name left_frame + group lf_fr + style WINDOW_STYLE_SHADER + rect 0 50 320 160 + background "gfx/menus/menu_boxes_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name right_frame + group rt_fr + style WINDOW_STYLE_SHADER + rect 320 50 320 160 + background "gfx/menus/menu_boxes_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// TOP MENU BUTTONS +//---------------------------------------------------------------------------------------------- + // Big button "SAVE" + itemDef + { + name savegamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 7 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name savegamebutton + group nbut + text @MENUS_SAVE + descText @MENUS_SAVE_CURRENT_GAME + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 7 126 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + mouseEnter + { + show savegamebutton_glow + } + mouseExit + { + hide savegamebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open ingamesaveMenu + } + } + + // Big button "LOAD" + itemDef + { + name loadgamebutton + group lbut + text @MENUS_LOAD + descText @MENUS_LOAD_A_SAVED_GAME + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 126 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 1 1 1 + visible 1 + decoration + + } + + // Big button "CONTROLS" + itemDef + { + name controlsbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 340 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name controlsbutton + group cbut + text @MENUS_CONTROLS + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show controlsbutton_glow + } + mouseExit + { + hide controlsbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open ingamecontrolsMenu ; + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 502 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name setupbutton + group sbut + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 502 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show setupbutton_glow + } + mouseExit + { + hide setupbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open ingamesetupMenu ; + } + } + +//---------------------------------------------------------------------------------------------- +// OTHER MAIN MENU BUTTONS +//---------------------------------------------------------------------------------------------- + // BACK button in lower left corner + itemDef + { + name backbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 59 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name backbutton + group exit + text @MENUS_BACK + descText @MENUS_BACKTOMAIN + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 59 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + cvartest ui_missionfailed + hidecvar + { + "1" + } + + mouseEnter + { + show backbutton_glow + } + mouseExit + { + hide backbutton_glow + } + action + { + play "sound/interface/esc.wav" + close all ; + open ingamemainMenu + } + } + + // Only displayed when the mission failure screen is up + itemDef + { + name backbutton + group exit + text @MENUS_BACK + descText @MENUS_BACKTOMAIN + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 59 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + cvartest ui_missionfailed + showcvar + { + "1" + } + + mouseEnter + { + show backbutton_glow + } + mouseExit + { + hide backbutton_glow + } + action + { + play "sound/interface/esc.wav" + close all ; + open missionfailed_menu + } + } + // EXIT button in lower left corner + itemDef + { + name exitgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 255 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name exitgamebutton + group exit + text @MENUS_EXIT + descText @MENUS_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 255 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show exitgamebutton_glow + } + mouseExit + { + hide exitgamebutton_glow + } + action + { + play "sound/weapons/saber/saberoff.mp3"; + close all ; + open ingamequitMenu + } + } + + // RESUME button in the lower right corner + itemDef + { + name resumebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 455 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 455 444 130 24 + text @MENUS_RESUME + descText @MENUS_RESUME_CURRENT_GAME + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + mouseEnter + { + show resumebutton_glow + } + mouseExit + { + hide resumebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + uiScript closeingame // Close menu + } + } + +//---------------------------------------------------------------------------------------------- +// LOAD GAME MENU specific stuff +//---------------------------------------------------------------------------------------------- + // Load Game title + itemDef + { + name loadgame_title + group title + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_LOAD_GAME + rect 100 164 440 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + itemDef + { + // ***IMPORTANT*** This name can not change, code looks for it. + // If it must change, change it in UI_AdjustSaveGameListBox() also + // + name loadgamelist + group loadscreen + rect 40 200 360 190 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 120 + elementheight 16 + font 2 + textaligny 8 + textscale 0.7 + border 1 + bordersize 1 + bordercolor 0 0 .8 1 + forecolor .615 .615 .956 1 + + + backcolor 0 0 .5 .25 + outlinecolor .5 .5 .5 .5 + elementtype LISTBOX_TEXT + feeder FEEDER_SAVEGAMES + notselectable + visible 1 + columns 2 2 55 150 155 0 200 //#of col., x loc. of 1st column, 2 number doesn't seem to do anything, third is width of column + mouseEnter + { + setitemcolor loadgamelist bordercolor 1 1 1 1 + } + mouseExit + { + setitemcolor loadgamelist bordercolor 0 0 .8 1 + } + doubleclick + { + play sound/interface/button1.wav + uiScript loadgame + } + action + { + play sound/interface/sub_select + } + } + + itemDef + { + name loadgamepic + group loadscreen + style WINDOW_STYLE_EMPTY + ownerdraw 236 //UI_ALLMAPS_SELECTION + font 2 + textscale .8 +// forecolor 1 1 1 1 + forecolor .549 .854 1 1 + rect 435 200 180 135 + border 1 + bordercolor 0 0 .8 1 + visible 1 + } + + // loadgame button + itemDef + { + name loadgameaction_glow + group glow + style WINDOW_STYLE_SHADER + rect 440 360 190 20 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name loadgameaction + group actionbutton + text @MENUS_LOAD_GAME + descText @MENUS_LOAD_CHOSEN_GAME + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 440 360 175 25 + font 3 + textscale 0.8 + textalignx 175 + textaligny 1 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + cvarTest ui_SelectionOK + enableCvar { "1" } + + mouseEnter + { + show loadgameaction_glow + } + mouseExit + { + hide loadgameaction_glow + } + action + { + play sound/interface/button1.wav ; + hide glow ; + uiScript loadgame + } + } + + // deletegame button + itemDef + { + name deletegameaction_glow + group glow + style WINDOW_STYLE_SHADER + rect 440 385 190 20 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name deletegamebutton + group actionbutton + text @MENUS_DELETE_GAME + descText @MENUS_DELETE_CHOSEN_GAME + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 440 385 175 25 + font 3 + textscale 0.8 + textalignx 175 + textaligny 1 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + cvarTest ui_SelectionOK + enableCvar { "1" } + + mouseEnter + { + show deletegameaction_glow + } + mouseExit + { + hide deletegameaction_glow + } + action + { + play sound/interface/button1.wav ; + hide glow ; + uiScript deletegame + } + } + + + // resumegame button + itemDef + { + name resumegameaction_glow + group glow + style WINDOW_STYLE_SHADER + rect 440 410 190 20 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name resumeautobutton + group actionbutton + text @MENUS_RESUME_MISSION + descText @MENUS_RESUME_LAST_MISSION_ENTERED + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 440 410 175 25 + font 3 + textscale 0.8 + textalignx 175 + textaligny 1 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 // This button isn't used when not in game. + cvarTest ui_ResumeOK + enableCvar { "1" } + + mouseEnter + { + show resumegameaction_glow + } + mouseExit + { + hide resumegameaction_glow + } + action + { + play "sound/interface/button1.wav" ; + hide glow ; + uiScript loadAuto + } + } + } +} + + + + + + + + + + + + + + + + + + + diff --git a/base/ui/ingamequit.menu b/base/ui/ingamequit.menu new file mode 100644 index 0000000..367fca8 --- /dev/null +++ b/base/ui/ingamequit.menu @@ -0,0 +1,784 @@ + //---------------------------------------------------------------------------------------------- + // + // QUIT MENU + // + //---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "ingamequitMenu" + visible 0 + fullScreen 1 // MENU_TRUE + rect 0 0 640 480 // Size and position of the menu + focusColor 1 1 1 1 // Focus color for text and items + descX 320 + descY 426 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + hide abandongamegroup ; + hide quitprogramgroup ; + hide highlights ; + show quitchoicegroup ; + } + onESC + { + play "sound/interface/esc.wav" + hide abandongamegroup ; + hide quitprogramgroup ; + hide highlights ; + show quitchoicegroup ; + close all ; + open ingameMainMenu ; + } + + + //---------------------------------------------------------------------------------------------- + // + // MENU BACKGROUND + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 107 8 428 112 + background "gfx/menus/jediacademy" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name left_frame + group lf_fr + style WINDOW_STYLE_SHADER + rect 0 50 320 160 + background "gfx/menus/menu_boxes_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name right_frame + group rt_fr + style WINDOW_STYLE_SHADER + rect 320 50 320 160 + background "gfx/menus/menu_boxes_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + //---------------------------------------------------------------------------------------------- + // + // TOP MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + + + // Big button "SAVE" + itemDef + { + name savegamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 7 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name savegamebutton + group nbut + text @MENUS_SAVE + descText @MENUS_SAVE_CURRENT_GAME + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 7 126 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show savegamebutton_glow + } + mouseExit + { + hide savegamebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open ingamesaveMenu + } + } + + + // Big button "LOAD" + itemDef + { + name loadgamebutton_glow + group none + style WINDOW_STYLE_SHADER + rect 170 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name loadgamebutton + group lbut + text @MENUS_LOAD + descText @MENUS_LOAD_A_SAVED_GAME + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 126 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show loadgamebutton_glow + } + mouseExit + { + hide loadgamebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open ingameloadMenu + } + } + + // Big button "CONTROLS" + itemDef + { + name controlsbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 340 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name controlsbutton + group cbut + text @MENUS_CONTROLS + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show controlsbutton_glow + } + mouseExit + { + hide controlsbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open ingamecontrolsMenu ; + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 502 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name setupbutton + group sbut + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 502 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show setupbutton_glow + } + mouseExit + { + hide setupbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open ingamesetupMenu ; + } + } + + //---------------------------------------------------------------------------------------------- + // + // OTHER MAIN MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + // RESUME button in the lower right corner + itemDef + { + name resumebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 455 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 455 444 130 24 + text @MENUS_RESUME + descText @MENUS_RESUME_CURRENT_GAME + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + mouseEnter + { + show resumebutton_glow + } + mouseExit + { + hide resumebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + uiScript closeingame // Close menu + } + } + + //---------------------------------------------------------------------------------------------- + // + // QUIT GAME MENU specific stuff + // + //---------------------------------------------------------------------------------------------- + // Quitting title + itemDef + { + name quit_title + group none + text @MENUS_LEAVING_JEDI_KNIGHT_2 + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + rect 100 164 440 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + itemDef + { + name quitgame_current_glow + group highlights + style WINDOW_STYLE_SHADER + rect 220 210 200 30 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + // Quit current button + itemDef + { + name quitgame_current + group quitchoicegroup + text @MENUS_ABANDON_GAME + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 220 210 200 30 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 100 + textaligny -2 + descText @MENUS_QUIT_CURRENT_GAME_AND + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + show abandongamegroup ; + hide quitchoicegroup ; + hide quitprogramgroup ; + hide highlights ; + } + mouseEnter + { + show quitgame_current_glow + } + mouseExit + { + hide quitgame_current_glow + } + } + + itemDef + { + name quitgame_program_glow + group highlights + style WINDOW_STYLE_SHADER + rect 220 280 200 30 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + // Quit program button + itemDef + { + name quitgame_program + group quitchoicegroup + text @MENUS_QUIT_PROGRAM + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 220 280 200 30 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 100 + textaligny -2 + descText @MENUS_LEAVE_THE_PROGRAM_ENTIRELY + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + show quitprogramgroup ; + hide abandongamegroup ; + hide quitchoicegroup ; + hide highlights ; + } + mouseEnter + { + show quitgame_program_glow + } + mouseExit + { + hide quitgame_program_glow + } + } + + +//---------------------------------------------------------------------------------------------- +// +// Abandon game Confirmation +// +//---------------------------------------------------------------------------------------------- +// Quit current button + itemDef + { + name fakequitgame_current + group abandongamegroup + text @MENUS_ABANDON_GAME + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 220 210 200 30 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 100 + textaligny -2 + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name abandongame_cancel_glow + group highlights + style WINDOW_STYLE_SHADER + rect 78 384 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + // CANCEL button + itemDef + { + name abandongame_cancel + group abandongamegroup + text @MENUS_NO + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 78 384 130 24 + font 3 + textscale 1 + textalignx 65 + textaligny -1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + descText @MENUS_DO_NOT_ABANDON + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + hide abandongamegroup ; + hide quitprogramgroup ; + hide highlights ; + show quitchoicegroup ; + } + mouseEnter + { + show abandongame_cancel_glow + } + mouseExit + { + hide abandongame_cancel_glow + } + } + + itemDef + { + name abandongame_yes_glow + group highlights + style WINDOW_STYLE_SHADER + rect 434 384 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + // YES button + itemDef + { + name abandongame_yes + group abandongamegroup + text @MENUS_YES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 434 384 130 24 + font 3 + textscale 1 + textalignx 65 + textaligny -1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + descText @MENUS_ABANDON + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + hide abandongamegroup ; + hide quitprogramgroup ; + hide highlights ; + show quitchoicegroup ; + uiScript Leave //disconnect and start over + } + mouseEnter + { + show abandongame_yes_glow + } + mouseExit + { + hide abandongame_yes_glow + } + } + + +//---------------------------------------------------------------------------------------------- +// +// Leave game Confirmation +// +//---------------------------------------------------------------------------------------------- +// Quit program button + itemDef + { + name fakequitgame_program + group quitprogramgroup + text @MENUS_QUIT_PROGRAM + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 220 280 200 30 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 100 + textaligny -2 + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name quitprogram_cancel_glow + group highlights + style WINDOW_STYLE_SHADER + rect 78 384 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + // CANCEL button + itemDef + { + name quitprogram_cancel + group quitprogramgroup + text @MENUS_NO + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 78 384 130 24 + font 3 + textscale 1 + textalignx 65 + textaligny -1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + descText @MENUS_DO_NOT_LEAVE_JEDI_KNIGHT + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + hide quitprogramgroup ; + hide abandongamegroup ; + hide highlights ; + show quitchoicegroup ; + } + mouseEnter + { + show quitprogram_cancel_glow + } + mouseExit + { + hide quitprogram_cancel_glow + } + } + + itemDef + { + name quitprogram_yes_glow + group highlights + style WINDOW_STYLE_SHADER + rect 434 384 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + // YES button + itemDef + { + name quitprogram_yes + group quitprogramgroup + text @MENUS_YES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 434 384 130 24 + font 3 + textscale 1 + textalignx 65 + textaligny -1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + descText @MENUS_JEDI_KNIGHT_II + forecolor 1 .682 0 1 + visible 1 + cvartest "com_demo" + hidecvar + { + "1" + } + action + { + play "sound/interface/button1.wav" ; + uiScript Quit // Quit the game + } + mouseEnter + { + show quitprogram_yes_glow + } + mouseExit + { + hide quitprogram_yes_glow + } + } + + // YES button + itemDef + { + name quitprogram_yes + group quitprogramgroup + text @MENUS_YES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 434 384 130 24 + font 3 + textscale 1 + textalignx 65 + textaligny -1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + descText @MENUS_JEDI_KNIGHT_II + forecolor 1 .682 0 1 + visible 1 + cvartest "com_demo" + hidecvar + { + "0" + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open demo_sellscreen1 ; + + } + mouseEnter + { + show quitprogram_yes_glow + } + mouseExit + { + hide quitprogram_yes_glow + } + } + + + } +} \ No newline at end of file diff --git a/base/ui/ingamesave.menu b/base/ui/ingamesave.menu new file mode 100644 index 0000000..c30d8a7 --- /dev/null +++ b/base/ui/ingamesave.menu @@ -0,0 +1,663 @@ +//------------------------------------------------------------------------------------------------ +// INGAME MAIN MENU +// +// Allows player to save current game +// +//------------------------------------------------------------------------------------------------ +{ + menuDef + { + name "ingamesaveMenu" + 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 320 + descY 426 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + disablecolor .5 .5 .5 1 + + onOpen + { + uiScript ReadSaveDirectory + setfocus savegamedesc + } + + onESC + { + play "sound/interface/esc.wav" + uiScript closeingame // Close menu + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 107 8 428 112 + background "gfx/menus/jediacademy" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name left_frame + group lf_fr + style WINDOW_STYLE_SHADER + rect 0 50 320 160 + background "gfx/menus/menu_boxes_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name right_frame + group rt_fr + style WINDOW_STYLE_SHADER + rect 320 50 320 160 + background "gfx/menus/menu_boxes_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// TOP MENU BUTTONS +//---------------------------------------------------------------------------------------------- + // Big button "SAVE" + itemDef + { + name savegamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 7 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name savegamebutton + group nbut + text @MENUS_SAVE + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 7 126 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 1 1 1 + visible 1 + decoration + } + + + // Big button "LOAD" + itemDef + { + name loadgamebutton_glow + group none + style WINDOW_STYLE_SHADER + rect 170 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name loadgamebutton + group lbut + text @MENUS_LOAD + descText @MENUS_LOAD_A_SAVED_GAME + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 126 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show loadgamebutton_glow + } + mouseExit + { + hide loadgamebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open ingameloadMenu + } + } + + // Big button "CONTROLS" + itemDef + { + name controlsbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 340 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name controlsbutton + group cbut + text @MENUS_CONTROLS + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show controlsbutton_glow + } + mouseExit + { + hide controlsbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open ingamecontrolsMenu ; + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 502 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name setupbutton + group sbut + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 502 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show setupbutton_glow + } + mouseExit + { + hide setupbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open ingamesetupMenu ; + } + } + +//---------------------------------------------------------------------------------------------- +// OTHER MAIN MENU BUTTONS +//---------------------------------------------------------------------------------------------- + // BACK button in lower left corner + itemDef + { + name backbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 59 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name backbutton + group exit + text @MENUS_BACK + descText @MENUS_BACKTOMAIN + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 59 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show backbutton_glow + } + mouseExit + { + hide backbutton_glow + } + action + { + play "sound/interface/esc.wav" + close all ; + open ingamemainMenu + } + } + + // EXIT button in lower left corner + itemDef + { + name exitgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 255 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name exitgamebutton + group exit + text @MENUS_EXIT + descText @MENUS_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 255 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show exitgamebutton_glow + } + mouseExit + { + hide exitgamebutton_glow + } + action + { + play "sound/weapons/saber/saberoff.mp3"; + close all ; + open ingamequitMenu + } + } + + // RESUME button in the lower right corner + itemDef + { + name resumebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 455 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 455 444 130 24 + text @MENUS_RESUME + descText @MENUS_RESUME_CURRENT_GAME + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + mouseEnter + { + show resumebutton_glow + } + mouseExit + { + hide resumebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + uiScript closeingame // Close menu + } + } + +//---------------------------------------------------------------------------------------------- +// SAVE GAME FIELDS +//---------------------------------------------------------------------------------------------- + // Save Game title + itemDef + { + name savegame_title + group title + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_SAVE_GAME + rect 100 164 440 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + itemDef + { + name savegamedesc + group savegame + type ITEM_TYPE_EDITFIELD + style WINDOW_STYLE_EMPTY + text @MENUS_DESC + cvar ui_gameDesc + maxChars 60 + rect 40 185 450 16 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -4 + font 2 + textscale .8 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + forecolor .615 .615 .956 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + } + + itemDef + { + name savegamelist + group loadscreen + rect 40 200 360 190 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 120 + elementheight 16 + font 2 + textaligny 8 + textscale 0.7 + border 1 + bordersize 1 + bordercolor 0 0 .8 1 + forecolor .615 .615 .956 1 + backcolor 0 0 .5 .25 + outlinecolor .5 .5 .5 .5 + elementtype LISTBOX_TEXT + feeder FEEDER_SAVEGAMES + notselectable + visible 1 + columns 2 2 55 150 155 0 200 + mouseEnter + { + setitemcolor savegamelist bordercolor 1 1 1 1 + } + mouseExit + { + setitemcolor savegamelist bordercolor 0 0 .8 1 + } + } + + itemDef + { + name savegame_desc + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_TEXT + rect 40 392 360 16 + text @MENUS_SAVEGAME_DESC + font 4 + textscale 1 + textalignx 0 + textaligny 1 + textalign ITEM_ALIGN_LEFT + forecolor 1 .682 0 1 + visible 1 + } + + itemDef + { + name savegamepic + group loadscreen + style WINDOW_STYLE_EMPTY + ownerdraw 236 //UI_ALLMAPS_SELECTION + font 2 + textscale .8 + forecolor .549 .854 1 1 + rect 435 200 180 135 + border 1 + bordercolor 0 0 .8 1 + visible 1 + decoration + } + + itemDef + { + name savegameaction_glow + group glow + style WINDOW_STYLE_SHADER + rect 440 360 190 20 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name savegamebutton + group toprow + text @MENUS_SAVE_GAME + descText @MENUS_SAVE_GAME + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 440 360 175 25 + font 3 + textscale 0.8 + textalignx 175 + textaligny 1 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + mouseEnter + { + show savegameaction_glow + } + mouseExit + { + hide savegameaction_glow + } + action + { + play sound/interface/button1.wav ; + uiScript savegame + } + } + + // deletegame button + itemDef + { + name deletegameaction_glow + group glow + style WINDOW_STYLE_SHADER + rect 440 385 190 20 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name deletegamebutton + group toprow + text @MENUS_DELETE_GAME + descText @MENUS_DELETE_CHOSEN_GAME + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 440 385 175 25 + font 3 + textscale 0.8 + textalignx 175 + textaligny 1 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + cvarTest "ui_SelectionOK" + enableCvar { "1" } + mouseEnter + { + show deletegameaction_glow + } + mouseExit + { + hide deletegameaction_glow + } + action + { + play sound/interface/button1.wav ; + hide glow ; + uiScript deletegame + } + } + } +} + + + + + + + + + + + + + + + + + + + diff --git a/base/ui/ingamesetup.menu b/base/ui/ingamesetup.menu new file mode 100644 index 0000000..04260e6 --- /dev/null +++ b/base/ui/ingamesetup.menu @@ -0,0 +1,2740 @@ +//---------------------------------------------------------------------------------------------- +// INGAME SETUP MENU +// +// Allow user to setup video and stuff +// +//---------------------------------------------------------------------------------------------- +{ + 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 + descX 320 + descY 426 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + setfocus graphics ; + uiScript getvideosetup ; // Get video settings + hide applyChanges ; + hide video2 ; + hide vidrestart ; + hide sound ; + hide options ; + hide defaults + show setup_background ; + show video ; + setitemcolor video1menubutton forecolor 1 1 1 1 ; + setitemcolor video2menubutton forecolor 1 .682 0 1 ; + setitemcolor soundmenubutton forecolor 1 .682 0 1; + setitemcolor gameoptionmenubutton forecolor 1 .682 0 1; + setitemcolor modsmenubutton forecolor 1 .682 0 1; + setitemcolor gamedefaultsmenubutton forecolor 1 .682 0 1; + } + + onESC + { + play "sound/interface/esc.wav" + defer VideoSetup ingamevideowarningMenu + hide highlights + close all + open ingameMainMenu + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 107 8 428 112 + background "gfx/menus/jediacademy" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name left_frame + group lf_fr + style WINDOW_STYLE_SHADER + rect 0 50 320 160 + background "gfx/menus/menu_boxes_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name right_frame + group rt_fr + style WINDOW_STYLE_SHADER + rect 320 50 320 160 + background "gfx/menus/menu_boxes_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name button_glow + group highlights + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// GLOW ON SIDE BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name sidebutton_glow + group highlights + style WINDOW_STYLE_SHADER + rect 60 185 200 24 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// TOP MENU BUTTONS +//---------------------------------------------------------------------------------------------- + // Big button "SAVE" + itemDef + { + name savegamebutton + group nbut + text @MENUS_SAVE + descText @MENUS_SAVE_CURRENT_GAME + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 7 126 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 7 126 130 26 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open ingamesaveMenu + } + + } + + + // Big button "LOAD" + itemDef + { + name loadgamebutton + group lbut + text @MENUS_LOAD + descText @MENUS_LOAD_A_SAVED_GAME + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 126 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 170 126 130 26 + } + mouseExit + { + hide button_glow + } + + action + { + play "sound/interface/button1.wav" ; + close all ; + open ingameloadMenu + } + } + + // Big button "CONTROLS" + itemDef + { + name controlsbutton + group cbut + text @MENUS_CONTROLS + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 340 126 130 26 + } + mouseExit + { + hide button_glow + } + + action + { + play "sound/interface/button1.wav" ; + close all ; + open ingamecontrolsMenu ; + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton + group sbut + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 502 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 502 126 130 26 + } + mouseExit + { + hide button_glow + } + } +//---------------------------------------------------------------------------------------------- +// OTHER MAIN MENU BUTTONS +//---------------------------------------------------------------------------------------------- + // BACK button in lower left corner + itemDef + { + name backbutton + group exit + text @MENUS_BACK + descText @MENUS_BACKTOMAIN + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 59 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 59 444 130 24 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/esc.wav" + close all ; + open ingamemainMenu + } + } + +// EXIT button in lower left corner + itemDef + { + name exitgamebutton + group exit + text @MENUS_EXIT + descText @MENUS_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 255 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 255 444 130 24 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/weapons/saber/saberoff.mp3"; + close all ; + open ingamequitMenu + } + } + + // RESUME button in the lower right corner + itemDef + { + name resume + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 455 444 130 24 + text @MENUS_RESUME + descText @MENUS_RESUME_CURRENT_GAME + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + mouseEnter + { + show button_glow + setitemrect button_glow 455 444 130 24 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + uiScript closeingame // Close menu + } + } + +//---------------------------------------------------------------------------------------------- +// SECOND ROW MENU BUTTONS +//---------------------------------------------------------------------------------------------- + // Setup Options title + itemDef + { + name setup_title + group title + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_SETUP_OPTIONS + rect 100 164 440 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + + // video1 button + itemDef + { + name video1menubutton + group none + text @MENUS_VIDEO + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 185 170 24 + font 3 + textscale 0.9 + textalignx 170 + textaligny 2 + textstyle 1 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_VIDEO_SETTINGS + + mouseEnter + { + show sidebutton_glow + setitemrect sidebutton_glow 80 185 180 24 + } + mouseExit + { + hide sidebutton_glow + } + action + { + play sound/interface/sub_select ; + + defer VideoSetup ingamevideowarningMenu ; + + 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 1 .682 0 1 + setitemcolor soundmenubutton forecolor 1 .682 0 1 + setitemcolor gameoptionmenubutton forecolor 1 .682 0 1 + setitemcolor modsmenubutton forecolor 1 .682 0 1 + setitemcolor gamedefaultsmenubutton forecolor 1 .682 0 1 + } + } + + // video2 button + itemDef + { + name video2menubutton + group none + text @MENUS_MORE_VIDEO + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 209 170 24 + font 3 + textscale 0.9 + textalignx 170 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGUE_MORE_VIDEO_SETTINGS + + mouseEnter + { + show sidebutton_glow + setitemrect sidebutton_glow 80 209 180 24 + } + mouseExit + { + hide sidebutton_glow + } + action + { + play sound/interface/sub_select ; + + defer VideoSetup ingamevideowarningMenu ; + + show setup_background ; + hide video ; + hide applyChanges ; + show video2 ; + hide vidrestart ; + hide sound ; + hide options ; + hide mods ; + hide defaults ; + setitemcolor video1menubutton forecolor 1 .682 0 1 + setitemcolor video2menubutton forecolor 1 1 1 1 ; + setitemcolor soundmenubutton forecolor 1 .682 0 1 + setitemcolor gameoptionmenubutton forecolor 1 .682 0 1 + setitemcolor modsmenubutton forecolor 1 .682 0 1 + setitemcolor gamedefaultsmenubutton forecolor 1 .682 0 1 + } + } + + // sound button + itemDef + { + name soundmenubutton + group none + text @MENUS_SOUND + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 233 170 24 + font 3 + textscale 0.9 + textalignx 170 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_SOUND_SETTINGS + + mouseEnter + { + show sidebutton_glow + setitemrect sidebutton_glow 80 233 180 24 + } + mouseExit + { + hide sidebutton_glow + } + + action + { + play sound/interface/sub_select ; + + defer VideoSetup ingamevideowarningMenu ; + + show setup_background ; + hide video ; + hide applyChanges ; + hide video2 ; + hide vidrestart ; + show sound ; + hide options ; + hide mods ; + hide defaults ; + setitemcolor video1menubutton forecolor 1 .682 0 1 + setitemcolor video2menubutton forecolor 1 .682 0 1 + setitemcolor soundmenubutton forecolor 1 1 1 1 ; + setitemcolor gameoptionmenubutton forecolor 1 .682 0 1 + setitemcolor modsmenubutton forecolor 1 .682 0 1 + setitemcolor gamedefaultsmenubutton forecolor 1 .682 0 1 + } + } + + // gameoptions button + itemDef + { + name gameoptionmenubutton + group none + text @MENUS_GAME_OPTIONS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 257 170 24 + font 3 + textscale 0.9 + textalignx 170 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_GAME_OPTIONS + + mouseEnter + { + show sidebutton_glow + setitemrect sidebutton_glow 80 257 180 24 + } + mouseExit + { + hide sidebutton_glow + } + + action + { + defer VideoSetup ingamevideowarningMenu + + play sound/interface/sub_select + show setup_background + hide video + hide applyChanges + hide video2 + hide vidrestart + hide sound + show options + hide langapply + hide mods + hide defaults + setitemcolor video1menubutton forecolor 1 .682 0 1 + setitemcolor video2menubutton forecolor 1 .682 0 1 + setitemcolor soundmenubutton forecolor 1 .682 0 1 + setitemcolor gameoptionmenubutton forecolor 1 1 1 1 + setitemcolor modsmenubutton forecolor 1 .682 0 1 + setitemcolor gamedefaultsmenubutton forecolor 1 .682 0 1 + } + } + + // mods button + itemDef + { + name modsmenubutton + group none + text @MENUS_MODS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 281 170 24 + font 3 + textscale 0.9 + textalignx 170 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_GAME_OPTIONS + + mouseEnter + { + show sidebutton_glow + setitemrect sidebutton_glow 80 281 180 24 + } + mouseExit + { + hide sidebutton_glow + } + + action + { + play sound/interface/sub_select ; + + defer VideoSetup ingamevideowarningMenu ; + uiScript loadMods ; + + show setup_background ; + hide video ; + hide applyChanges ; + hide video2 ; + hide vidrestart ; + hide sound ; + hide options ; + show mods ; + hide defaults ; + setitemcolor video1menubutton forecolor 1 .682 0 1 + setitemcolor video2menubutton forecolor 1 .682 0 1 + setitemcolor soundmenubutton forecolor 1 .682 0 1 + setitemcolor gameoptionmenubutton forecolor 1 .682 0 1 + setitemcolor modsmenubutton forecolor 1 1 1 1 ; + setitemcolor gamedefaultsmenubutton forecolor 1 .682 0 1 + } + } + + // gamedefaults button + itemDef + { + name gamedefaultsmenubutton + group none + text @MENUS_DEFAULTS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 305 170 24 + font 3 + textscale 0.9 + textalignx 170 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_RESTORE_DEFAULT_SETTINGS + + mouseEnter + { + show sidebutton_glow + setitemrect sidebutton_glow 80 305 180 24 + } + mouseExit + { + hide sidebutton_glow + } + + action + { + play sound/interface/sub_select ; + + defer VideoSetup ingamevideowarningMenu ; + + show setup_background ; + hide video ; + hide applyChanges ; + hide video2 ; + hide vidrestart ; + hide sound ; + hide options ; + hide mods ; + show defaults ; + + setitemcolor video1menubutton forecolor 1 .682 0 1 + setitemcolor video2menubutton forecolor 1 .682 0 1 + setitemcolor soundmenubutton forecolor 1 .682 0 1 + setitemcolor gameoptionmenubutton forecolor 1 .682 0 1 + setitemcolor modsmenubutton forecolor 1 .682 0 1 + setitemcolor gamedefaultsmenubutton forecolor 1 1 1 1 ; + } + } + + itemDef + { + name setup_background + group none + style WINDOW_STYLE_FILLED + rect 260 185 340 225 + backcolor 0 0 .6 .5 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .6 1 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// HIGHLIGHT BARS +//---------------------------------------------------------------------------------------------- + itemDef + { + name highlight1 + group highlights + style WINDOW_STYLE_SHADER + rect 260 190 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight2 + group highlights + style WINDOW_STYLE_SHADER + rect 260 204 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight3 + group highlights + style WINDOW_STYLE_SHADER + rect 260 218 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight4 + group highlights + style WINDOW_STYLE_SHADER + rect 260 232 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight5 + group highlights + style WINDOW_STYLE_SHADER + rect 260 246 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight6 + group highlights + style WINDOW_STYLE_SHADER + rect 260 260 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight7 + group highlights + style WINDOW_STYLE_SHADER + rect 260 274 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight8 + group highlights + style WINDOW_STYLE_SHADER + rect 260 288 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight9 + group highlights + style WINDOW_STYLE_SHADER + rect 260 302 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight10 + group highlights + style WINDOW_STYLE_SHADER + rect 260 316 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight11 + group highlights + style WINDOW_STYLE_SHADER + rect 260 330 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight12 + group highlights + style WINDOW_STYLE_SHADER + rect 260 344 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight13 + group highlights + style WINDOW_STYLE_SHADER + rect 260 358 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight14 + group highlights + style WINDOW_STYLE_SHADER + rect 260 372 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight15 + group highlights + style WINDOW_STYLE_SHADER + rect 260 386 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// VIDEO 1 MENU BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name graphics + group video + text @MENUS_VIDEO_QUALITY + type ITEM_TYPE_MULTI + rect 260 188 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + style WINDOW_STYLE_FILLED + forecolor .615 .615 .956 1 + descText @MENUS_SELECT_PRESET_GRAPHIC + + visible 0 + + cvar "ui_r_glCustom" + cvarFloatList + { + @MENUS_HIGH_QUALITY 0 + @MENUS_NORMAL 1 + @MENUS_FAST 2 + @MENUS_FASTEST 3 + @MENUS_CUSTOM 4 + } + + mouseenter + { + show highlight1 + } + mouseexit + { + hide highlight1 + } + action + { + play "sound/interface/button1.wav" ; + uiScript update "ui_r_glCustom" ; + setcvar ui_r_modified 1 ; + show applyChanges + } + } + + + itemDef + { + name video_mode + group video + type ITEM_TYPE_MULTI + text @MENUS_VIDEO_MODE + cvarFloatList { @MENUS_640_X_480 3 @MENUS_800_X_600 4 @MENUS_1024_X_768 6 @MENUS_1152_X_864 7 @MENUS_1280_X_1024 8 @MENUS_1600_X_1200 9 @MENUS_2048_X_1536 10 @MENUS_2400_X_600 12 } + cvar "ui_r_mode" + + rect 260 216 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + descText @MENUS_CHANGE_THE_DISPLAY_RESOLUTION + + 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 color_depth + group video + type ITEM_TYPE_MULTI + text @MENUS_COLOR_DEPTH + rect 260 230 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + + cvarFloatList { @MENUS_DEFAULT 0 @MENUS_16_BIT 16 @MENUS_32_BIT 32 } + descText @MENUS_CHANGE_THE_NUMBER_OF + cvar "ui_r_colorbits" + + visible 0 + + mouseenter + { + show highlight4 + } + mouseexit + { + hide highlight4 + } + action + { + play "sound/interface/button1.wav" + uiScript glCustom + uiScript update "ui_r_colorbits" + setcvar ui_r_modified 1 + show applyChanges + } + } + + itemDef + { + name fullscreen + group video + type ITEM_TYPE_MULTI + text @MENUS_FULL_SCREEN + rect 260 244 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + descText @MENUS_TOGGLE_BETWEEN_FULL_SCREEN + cvar "ui_r_fullscreen" + + 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 geometric_detail + group video + type ITEM_TYPE_MULTI + text @MENUS_GEOMETRIC_DETAIL + rect 260 258 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + cvarFloatList { @MENUS_LOW 2 @MENUS_MEDIUM 1 @MENUS_HIGH 0 } + descText @MENUS_ADJUST_THE_NUMBER_OF + cvar "ui_r_lodbias" + + visible 0 + + mouseenter + { + show highlight6 + } + mouseexit + { + hide highlight6 + } + 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 @MENUS_TEXTURE_DETAIL + rect 260 272 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + cvarFloatList { @MENUS_LOW 3 @MENUS_MEDIUM 2 @MENUS_HIGH 1 @MENUS_VERY_HIGH 0 } + descText @MENUS_SELECT_THE_RESOLUTION + cvar "ui_r_picmip" + + visible 0 + + mouseenter + { + show highlight7 + } + mouseexit + { + hide highlight7 + } + action + { + play "sound/interface/button1.wav" ; + uiScript glCustom ; + setcvar ui_r_modified 1 ; + show applyChanges + } + } + + itemDef + { + name texture_quality + group video + type ITEM_TYPE_MULTI + text @MENUS_TEXTURE_QUALITY + rect 260 286 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + cvarFloatList { @MENUS_DEFAULT 0 @MENUS_16_BIT 16 @MENUS_32_BIT 32 } + descText @MENUS_SELECT_THE_NUMBER_OF + cvar "ui_r_texturebits" + + visible 0 + + mouseenter + { + show highlight8 + } + mouseexit + { + hide highlight8 + } + 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 @MENUS_TEXTURE_FILTER + rect 260 300 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + cvarStrList { @MENUS_BILINEAR , "GL_LINEAR_MIPMAP_NEAREST" , @MENUS_TRILINEAR , "GL_LINEAR_MIPMAP_LINEAR" } + descText @MENUS_ADJUST_HOW_WELL_THE_TEXTURES + cvar "ui_r_texturemode" + + visible 0 + + mouseenter + { + show highlight9 + } + mouseexit + { + hide highlight9 + } + 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 @MENUS_DETAILED_SHADERS + rect 260 314 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + descText @MENUS_HIDE_OR_UNHIDE_TEXTURES + cvar "ui_r_detailtextures" + + visible 0 + + mouseenter + { + show highlight10 + } + mouseexit + { + hide highlight10 + } + action + { + play "sound/interface/button1.wav" ; + uiScript glCustom ; + setcvar ui_r_modified 1 ; + show applyChanges + } + } + + + + itemDef + { + name video_sync + group video + type ITEM_TYPE_MULTI + text @MENUS_VIDEO_SYNC + cvar "r_swapInterval" + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + rect 260 328 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_VIDEO_SYNC_DESC + + mouseenter + { + show button_glow + setitemrect button_glow 260 328 340 20 + } + mouseexit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + + } + } + + itemDef + { + name compress_textures + group video_obsolete + type ITEM_TYPE_MULTI + text @MENUS_COMPRESSED_TEXTURES + rect 260 328 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + descText @MENUS_TAKE_ADVANTAGE_OF_3D + cvar "ui_r_ext_compress_textures" + + visible 0 + + mouseenter + { + show highlight11 + } + mouseexit + { + hide highlight11 + } + 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 260 384 340 14 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 0.5 0.5 1 + visible 0 + decoration + } + + itemDef + { + name applyChanges + group none + text @MENUS_APPLY_CHANGES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 260 384 340 14 + textaligny 0 + font 4 + textscale 1 + textalignx 170 + textalign ITEM_ALIGN_CENTER + 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 ; + hide applyChanges ; + } + } + +//---------------------------------------------------------------------------------------------- +// VIDEO RESTART +//---------------------------------------------------------------------------------------------- +// Faint red box + itemDef + { + name vidrestart_background + group vidrestart + style WINDOW_STYLE_FILLED + rect 260 185 340 225 + backcolor 0 0 .6 .5 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .6 1 + visible 0 + decoration + } + + itemDef + { + name vidrestart_text1 + group vidrestart + text @MENUS_THIS_WILL_APPLY_VIDEO + text2 @MENUS_AND_RETURNTO_GAME + 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 @MENUS_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 + } + + // YES button + itemDef + { + name vidrestart_yes + group vidrestart + text @MENUS_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 @MENUS_APPLY_CHANGES_AND_RETURN + forecolor 1 .682 0 1 + visible -1 + + 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 vidrestart + 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 + } + + // CANCEL button + itemDef + { + name vidrestart_no + group vidrestart + text @MENUS_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 @MENUS_DO_NOT_APPLY_CHANGES + forecolor 1 .682 0 1 + visible 0 + action + { + play "sound/interface/esc.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 290 198 280 36 + background "gfx/menus/greyscale" // greyscale + forecolor 1 1 1 1 + visible 0 + decoration + + } + + itemDef + { + name bright_text + group video2 + text @MENUS_ADJUST_BRIGHTNESS_SLIDER + text2 @MENUS_THE_NUMBER_6_CAN_BARELY + text2aligny 14 + textalignx 170 + textaligny 0 + font 4 + textscale 1 + rect 260 234 340 20 + textalign ITEM_ALIGN_CENTER + forecolor .549 .854 1 1 + visible 0 + decoration + } + + itemDef + { + name brightness + group video2 + type ITEM_TYPE_SLIDER + text @MENUS_VIDEO_BRIGHTNESS + cvarfloat "r_gamma" 1 .5 3 + rect 260 267 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_ADJUST_THE_BRIGHTNESS + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 265 340 20 + } + mouseexit + { + hide button_glow + } + } + + itemDef + { + name shadows + group video2 + type ITEM_TYPE_MULTI + text @MENUS_SHADOWS + descText @MENUS_SHADOWS_DESC + cvar "cg_shadows" + cvarFloatList + { + @MENUS_NONE 0 + @MENUS_SHADOWS_SIMPLE 1 + @MENUS_SHADOWS_VOLUMETRIC 2 +// "Projected" 3 + } + rect 260 287 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + action + { + play "sound/interface/button1.wav" ; + } + mouseenter + { + show button_glow + setitemrect button_glow 260 285 340 20 + } + mouseexit + { + hide button_glow + } + + } + + + itemDef + { + name dynamic_light + group video2 + type ITEM_TYPE_MULTI + text @MENUS_DYNAMIC_LIGHTS + cvar "r_dynamiclight" + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + rect 260 301 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_TOGGLE_TO_TURN_ON_MOVING + + mouseenter + { + show button_glow + setitemrect button_glow 260 301 340 20 + } + mouseexit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + + } + } + + itemDef + { + name dynamic_glow + group video2 + type ITEM_TYPE_MULTI + text @MENUS_DYNAMIC_GLOW + cvar "r_dynamicglow" + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + rect 260 315 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_DYNAMIC_GLOW_DESC + + mouseenter + { + show button_glow + setitemrect button_glow 260 315 340 20 + } + mouseexit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + + } + } + + itemDef + { + name light_flares + group video2 + type ITEM_TYPE_MULTI + text @MENUS_LIGHT_FLARES + cvar "r_flares" + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + rect 260 329 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_TOGGLE_TO_SHOW_HALOS + + mouseenter + { + show button_glow + setitemrect button_glow 260 329 340 20 + } + mouseexit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" + } + } + + itemDef + { + name wall_marks + group video2 + type ITEM_TYPE_MULTI + text @MENUS_WALL_MARKS + cvar "cg_marks" + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + rect 260 343 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_TOGGLE_TO_DISPLAY_SCORCH + + mouseenter + { + show button_glow + setitemrect button_glow 260 343 340 20 + } + mouseexit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" + } + } + + itemDef + { + name video_mode + group video2 + type ITEM_TYPE_SLIDER + text @MENUS_ANISOTROPIC_FILTERING + cvarTest r_ext_texture_filter_anisotropic_avail + hideCvar { 0 } + cvarfloat "r_ext_texture_filter_anisotropic" 2 0 16 + rect 260 359 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + + descText @MENUS_TOGGLE_ADVANCED_TEXTURE + + mouseenter + { + show button_glow + setitemrect button_glow 260 359 340 20 + } + mouseexit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" + } + } + + itemDef + { + name advancedvideo + group video2 + type ITEM_TYPE_BUTTON + text @MENUS_SHOW_DRIVER_INFO + rect 260 393 340 14 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 170 + textaligny 0 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + descText @MENUS_SHOW_ADVANCED_INFORMATION + + mouseenter + { + show button_glow + setitemrect button_glow 260 392 340 20 + } + mouseexit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" + setfocus video2menubutton + open videodriverMenu + } + } + +//---------------------------------------------------------------------------------------------- +// SOUND FIELDS +//---------------------------------------------------------------------------------------------- + itemDef + { + name effects_volume + group sound + type ITEM_TYPE_SLIDER + text @MENUS_EFFECTS_VOLUME + cvarfloat "s_volume" 0 0 1 + rect 260 188 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_ADJUST_VOLUME_FOR_SOUND + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight1 + } + mouseexit + { + hide highlight1 + } + } + + itemDef + { + name music_volume + group sound + type ITEM_TYPE_SLIDER + text @MENUS_MUSIC_VOLUME + cvarfloat "s_musicvolume" 0 0 1 + rect 260 216 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_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 @MENUS_VOICE_VOLUME + cvarfloat "s_volumevoice" 0 0 1 + rect 260 244 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_ADJUST_VOLUME_FOR_SPEECH + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight5 + } + mouseexit + { + hide highlight5 + } + } + + itemDef + { + name sound_quality + group sound + type ITEM_TYPE_MULTI + text @MENUS_SOUND_QUALITY + cvar "s_khz" + cvarFloatList { @MENUS_LOW 11 @MENUS_HIGH 22 } + rect 260 272 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_TRADE_CLARITY_OF_SOUND + cvarTest "s_UseOpenAL" + hideCvar { 1 } + + mouseenter + { + show highlight7 + } + mouseexit + { + hide highlight7 + } + action + { + play "sound/interface/button1.wav" + uiScript update s_khz + } + } + + itemDef + { + name eax + group sound + type ITEM_TYPE_MULTI + cvar "s_UseOpenAL" + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + text @MENUS_EAX + rect 260 300 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_EAX_DESC + action + { + play "sound/interface/button1.wav" + uiScript update s_khz + } + + mouseenter + { + show highlight9 + } + mouseexit + { + hide highlight9 + } + } + + itemDef + { + name eax_icon + group sound + style WINDOW_STYLE_SHADER + rect 366 316 128 64 + background "gfx/menus/eax" + forecolor 1 1 1 1 + visible 1 + decoration + cvarTest "s_UseOpenAL" + hideCvar { 0 } + } + +//-------------------------------------------------------------------------------------------- +// OPTION FIELDS +//---------------------------------------------------------------------------------------------- + itemDef + { + name draw_crosshair + group options + type ITEM_TYPE_MULTI + text @MENUS_DRAW_CROSSHAIR + cvar "cg_drawcrosshair" + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + rect 260 188 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_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 @MENUS_IDENTIFY_TARGET + cvar "cg_crosshairIdentifyTarget" + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + rect 260 202 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_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 @MENUS_SLOW_MOTION_DEATH + cvar "d_slowmodeath" + cvarFloatList + { + @MENUS_NEVER 0 + @MENUS_ON_DEATH 1 + @MENUS_RARELY 2 + @MENUS_SLOW_MO_NORMAL 3 + @MENUS_OFTEN 4 + @MENUS_FREQUENTLY 5 + @MENUS_EXCESSIVELY 6 + } + rect 260 216 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_SELECT_THE_FREQUENCY + + action + { + play "sound/interface/button1.wav" + } + mouseenter + { + show highlight3 + } + mouseexit + { + hide highlight3 + } + } + + + itemDef + { + name force1st + group options + type ITEM_TYPE_MULTI + text @MENUS_1ST_PERSON_GUNS + cvar "cg_gunAutoFirst" + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + rect 260 244 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_WHEN_PUTTING_AWAY_SABER + + action + { + play "sound/interface/button1.wav" + } + mouseenter + { + show highlight5 + } + mouseexit + { + hide highlight5 + } + } + + itemDef + { + name footsteps + group options + type ITEM_TYPE_MULTI + text @MENUS_FOOTSTEPS + desctext @MENUS_FOOTSTEPS_DESC + cvar "cg_footsteps" + cvarFloatList + { + @MENUS_OFF 0 + @MENUS_SOUNDS 1 + @MENUS_SOUNDS_AND_EFFECTS 2 + @MENUS_SOUNDS_EFFECTS_GRAPHICS 3 + } + rect 260 258 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + action + { + play "sound/interface/button1.wav" + } + mouseenter + { + show highlight6 + } + mouseexit + { + hide highlight6 + } + } + + + itemDef + { + name dismemberment + group options + type ITEM_TYPE_MULTI + text @MENUS_DISMEMBERMENT + cvar "g_dismemberment" + cvarFloatList + { + @MENUS_OFF 0 + @MENUS_ON 3 + } + cvarTest ui_iscensored + hideCvar { 1 } + rect 260 272 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_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 @MENUS_VIEW_SWAYING + descText @MENUS_VIEW_SWAYING_DESC + cvar "ui_disableWeaponSway" + cvarFloatList + { + @MENUS_ON 0 + @MENUS_OFF 1 + } + cvarTest "ui_disableWeaponSway" + showCvar + { + "0" + } + rect 260 286 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 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 @MENUS_VIEW_SWAYING + descText @MENUS_VIEW_SWAYING_DESC + cvar "ui_disableWeaponSway" + cvarFloatList + { + @MENUS_ON 0 + @MENUS_OFF 1 + } + cvarTest "ui_disableWeaponSway" + hideCvar + { + "0" + } + rect 260 286 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 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 text + group options + type ITEM_TYPE_MULTI + text @MENUS_TEXT + cvar "se_language" + feeder 23 //FEEDER_PLAYER_SPECIES + cvarStrList feeder + rect 260 314 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_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 @MENUS_VOICE + cvarTest com_demo + hideCvar { 1 } + cvar "s_language" + cvarStrList + { + "English" "english" + @MENUS_LANG_FRENCH "francais" + "Deutsch" "deutsch" + "Español" "espanol" + } + rect 260 328 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_CHOOSE_THE_LANGUAGE_TO + + action + { + play "sound/interface/button1.wav" + show langapply + } + mouseenter + { + show highlight11 + } + mouseexit + { + hide highlight11 + } + } + + itemDef + { + name voice + group options + type ITEM_TYPE_MULTI + text @MENUS_SUBTITLES + cvar "g_subtitles" + cvarFloatList + { + @MENUS_NONE 0 + @MENUS_IN_CINEMATICS 2 +// @MENUS_ALL_VOICEOVERS 1 + } + rect 260 342 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_TOGGLE_WHETHER_SUBTITLES + + action + { + play "sound/interface/button1" + } + mouseenter + { + show highlight12 + } + mouseexit + { + hide highlight12 + } + } + + // APPLY CHANGES button + itemDef + { + name langapply + group options + text @MENUS_SET_LANGUAGE + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 260 356 340 14 + textalign ITEM_ALIGN_CENTER + textalignx 174 + textaligny -5 + font 2 + textscale 1 + forecolor 1 .682 0 1 + descText @MENUS_SET_LANGUAGE_INFO + visible 0 + + action + { + play "sound/interface/button1" + exec "snd_restart" + hide langapply + hide highlight13 + } + mouseEnter + { + show highlight13 + } + mouseExit + { + hide highlight13 + } + + } + +//---------------------------------------------------------------------------------------------- +// MOD GAME MENU specific stuff +//---------------------------------------------------------------------------------------------- + itemDef + { + name serverinfo + group mods + rect 270 196 320 176 + 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 1 .682 0 1 + backcolor 0 0 .5 .25 + outlinecolor .5 .5 .5 .5 + elementtype LISTBOX_TEXT + feeder 9 + notselectable + visible 0 + columns 1 2 40 280 + } + + itemDef + { + name loadmod_button + group none + style WINDOW_STYLE_SHADER + rect 260 384 340 14 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name loadmod + group mods + text @MENUS_LOAD_MOD + descText @MENUS_LOAD_CHOSEN_MOD + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 260 384 340 14 + textalign ITEM_ALIGN_CENTER + textalignx 170 + textaligny 0 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + action + { + play "sound/interface/button1.wav" + uiScript RunMod ; + } + + mouseEnter + { + show loadmod_button + } + mouseExit + { + hide loadmod_button + } + } + +//---------------------------------------------------------------------------------------------- +// RESET DEFAULTS +//---------------------------------------------------------------------------------------------- +// Faint red box + itemDef + { + name vidrestart_background + group defaults + style WINDOW_STYLE_FILLED + rect 260 185 340 225 + backcolor 0 0 .6 .5 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .6 1 + visible 0 + decoration + } + + itemDef + { + name button_glow2 + group highlights + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name options + group defaults + text @MENUS_WARNING + rect 260 202 340 20 + textalign ITEM_ALIGN_CENTER + textalignx 170 + font 2 + textscale 1 + forecolor 1 0 0 1 + visible 0 + decoration + } + + itemDef + { + name options + group defaults + text @MENUS_THIS_WILL_SET_ALL_GAME + text2 @MENUS_TO_THEIR_FACTORY_SETTINGS + rect 260 230 340 20 + textalign ITEM_ALIGN_CENTER + textalignx 174 + text2aligny 20 + font 2 + textscale 1 + forecolor 1 0 0 1 + visible 0 + decoration + } + + itemDef + { + name options + group defaults + text @MENUS_VID_RESTART3 + rect 260 286 340 20 + textalign ITEM_ALIGN_CENTER + textalignx 174 + font 2 + textscale 1 + forecolor 1 0 0 1 + visible 0 + decoration + } + + // NO button - return to Main Menu + itemDef + { + name default_no_button + group defaults + text @MENUS_NO + descText @MENUS_DO_NOT_RESET_DEFAULT + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 276 356 120 32 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny 0 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + action + { + play "sound/interface/esc.wav" + hide highlights ; + uiscript clearmouseover default_no_button ; + close all ; + open ingamemainMenu ; + } + mouseEnter + { + show button_glow2 + setitemrect button_glow2 276 356 120 32 + } + mouseExit + { + hide button_glow2 + } + } + + // YES button - lose reset defaults + itemDef + { + name default_yes + group defaults + text @MENUS_YES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 466 356 120 32 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny 0 + descText @MENUS_USE_DEFAULT_SETTINGS + forecolor 1 .682 0 1 + visible 0 + + action + { + play "sound/interface/button1.wav" ; + hide highlights ; + close all ; + uiscript resetdefaults + } + mouseEnter + { + show button_glow2 + setitemrect button_glow2 466 356 120 32 + } + mouseExit + { + hide button_glow2 + } + + } + } +} + diff --git a/base/ui/ingamevid_warning.menu b/base/ui/ingamevid_warning.menu new file mode 100644 index 0000000..8f6c1f4 --- /dev/null +++ b/base/ui/ingamevid_warning.menu @@ -0,0 +1,197 @@ +//------------------------------------------------------------------------------------------------ +// INGAME VIDEO WARNING +//------------------------------------------------------------------------------------------------ +{ + menuDef + { + name "ingamevideowarningMenu" + visible 0 + fullScreen 1 // MENU_TRUE + rect 100 120 440 320 + focusColor 1 1 1 1 // Focus color for text and items + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + descX 320 + descY 350 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + popup + + onESC + { + play "sound/interface/esc.wav" + close all ; + open ingameSetupMenu ; + } + + onClose + { + play "sound/interface/button1.wav" ; + } + + itemDef + { + name warn_background + group none + style WINDOW_STYLE_SHADER + rect 100 120 440 320 + background "gfx/menus/menu_boxred" // Frame + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// +// VIDEO WARNING +// +//---------------------------------------------------------------------------------------------- + // Video Warning title + itemDef + { + name vidwarn_title + group vidwarn + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_UNAPPLIED_VIDEO_CHANGES + rect 120 130 400 20 + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 200 + textaligny -3 + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name vidwarn_text1 + group vidwarn + text @MENUS_YOU_HAVE_MADE_CHANGES + rect 210 240 220 20 + textalign ITEM_ALIGN_CENTER + text2aligny 18 + textalignx 110 + font 2 + textscale 1 + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name vidwarn_text2 + group vidwarn + text @MENUS_APPLY_THESE_CHANGES_OR + rect 210 260 220 20 + textalign ITEM_ALIGN_CENTER + textalignx 110 + font 2 + textscale 1 + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name vidwarn_no_button + group vidwarn + style WINDOW_STYLE_SHADER + rect 180 380 120 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + // DISCARD button - return to Video Data screen + itemDef + { + name vidwarn_no + group vidwarn + text @MENUS_DISCARD + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 180 380 120 24 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny -3 + descText @MENUS_DO_NOT_APPLY_CHANGES + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/esc.wav" + close all ; + uiScript getvid1data ; // Get video settings + open ingameSetupMenu ; + activate ingameSetupMenu video1menubutton + } + mouseEnter + { + show vidwarn_no_button + } + mouseExit + { + hide vidwarn_no_button + } + } + + itemDef + { + name vidwarn_yes_button + group vidwarn + style WINDOW_STYLE_SHADER + rect 340 380 120 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + // APPLY button, use settings + itemDef + { + name vidwarn_yes + group vidwarn + text @MENUS_APPLY + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 380 120 24 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny -3 + descText @MENUS_APPLY_CHANGES_AND_THEN + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + uiScript setvid1data ingameSetupMenu ; // Set video settings + close all + } + mouseEnter + { + show vidwarn_yes_button + } + mouseExit + { + hide vidwarn_yes_button + } + } + } +} + + + + + + diff --git a/base/ui/jahud.txt b/base/ui/jahud.txt new file mode 100644 index 0000000..9f7797f --- /dev/null +++ b/base/ui/jahud.txt @@ -0,0 +1,5 @@ +// hud menu defs +// +{ + loadMenu { "ui/hud.menu" } +} diff --git a/base/ui/jamp/advancedcreateserver.menu b/base/ui/jamp/advancedcreateserver.menu new file mode 100644 index 0000000..233be9f --- /dev/null +++ b/base/ui/jamp/advancedcreateserver.menu @@ -0,0 +1,1174 @@ +//---------------------------------------------------------------------------------------------- +// MAIN MENU +//---------------------------------------------------------------------------------------------- +//ui_net_gametype +// 0 = FFA +// 1 = DUEL +// 2 = POWER DUEL +// 3 = TEAM FFA +// 4 = SIEGE +// 5 = CTF + +{ + menuDef + { + name "advancedcreateserver" + fullScreen MENU_FALSE + rect 40 50 560 380 // Size and position of the menu + visible MENU_FALSE // Visible on open + focusColor 1 1 1 1 // Focus color for text and items + descX 320 + descY 426 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + popup + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + + onOpen + { + uiScript setui_dualforcepower + } + + onESC + { + play "sound/interface/button1.wav" ; + close advancedcreateserver ; + open createserver ; + } + + itemDef + { + name setup_background + group none + style WINDOW_STYLE_FILLED + rect 0 0 560 420 + backcolor 0 0 .4 .95 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .6 1 + visible 1 + decoration + } + + /*itemDef + { + name frame_pic + group none + style WINDOW_STYLE_SHADER + rect 0 0 560 380 + background "gfx/menus/menu_box_ingame" + forecolor 1 1 1 1 + decoration + visible 1 + appearance_slot 1 + }*/ + +//------------------------------------------------ +// ADVANCED OPTIONS +//------------------------------------------------ + // Advanced Server title + itemDef + { + name advanced_title + group none + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_SERVER_RULES + rect 115 5 330 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 165 + textaligny -1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + +//--------------------------------- +// +// COMBAT RULES +// +//--------------------------------- + + itemDef + { + name rules_title + group none + text @MENUS_COMBAT_RULES + rect 5 35 280 20 + font 3 + textscale 0.8 + textalign ITEM_ALIGN_CENTER + textalignx 140 + textaligny -2 + forecolor .549 .854 1 1 + visible 1 + decoration + } + +//--------------------------------- +// FRIENDLY FIRE +//--------------------------------- + + itemDef + { + name settingsButton1 + style WINDOW_STYLE_SHADER + rect 5 55 280 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name normal + group grpsettings + type ITEM_TYPE_YESNO + text @MENUS_FRIENDLY_FIRE + descText @MENUS_WHEN_ON_IT_MEANS_TEAMMATES + cvar "g_friendlyfire" + cvarTest "ui_netGameType" + showCvar + { + "2" ; + "3" ; + "4" ; + "5" + } + rect 5 55 280 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 1 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show settingsButton1 + } + mouseExit + { + hide settingsButton1 + } + } + +//------------------------ +// LIGHTSABER ONLY +//------------------------ + + itemDef + { + name settingsButton2 + style WINDOW_STYLE_SHADER + rect 5 75 280 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name options + group grpOptions + type ITEM_TYPE_YESNO + text @MENUS_LIGHTSABER_ONLY + descText @MENUS_SABER_ONLY_INFO + cvar "g_weaponDisable" + rect 5 75 280 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 1 + visible 1 + cvarTest "ui_netGameType" + //Hide in Duel/Power Duel/Siege + hideCvar + { + "1" ; + "2" ; + "4" ; + } + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show settingsButton2 + } + mouseExit + { + hide settingsButton2 + } + } + + itemDef + { + name options + group grpOptions + type ITEM_TYPE_YESNO + text @MENUS_LIGHTSABER_ONLY + descText @MENUS_SABER_ONLY_INFO + cvar "g_duelWeaponDisable" + rect 5 75 280 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 1 + visible 1 + cvarTest "ui_netGameType" + //hide in everthing but Duel/Power Duel + showCvar + { + "1" ; + "2" + } + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show settingsButton2 + } + mouseExit + { + hide settingsButton2 + } + } + +//-------------------------- +// ALLOW PRIVATE DUEL +//-------------------------- + itemDef + { + name settingsButton3 + style WINDOW_STYLE_SHADER + rect 5 95 280 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name options + group grpOptions + type ITEM_TYPE_YESNO + text @MENUS_ALLOW_SABER_CHALLENGE + descText @MENUS_SABER_CHALLENGE_INFO + cvar "g_privateDuel" + cvarTest "ui_netGameType" + showCvar + { + "0" ; + "3" + } + rect 5 95 280 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 1 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show settingsButton3 + } + mouseExit + { + hide settingsButton3 + } + } + +//-------------------------------- +// FORCE MASTERY LEVEL +//-------------------------------- + + itemDef + { + name settingsButton4 + style WINDOW_STYLE_SHADER + rect 5 115 280 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name normal + group grpsettings + text @MENUS_FORCE_MASTERY + descText @MENUS_FORCE_MASTERY_INFO + ownerdraw UI_FORCE_MASTERY_SET + cvarTest "ui_netGameType" + hideCvar + { + "4" + } + rect 5 115 280 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 1 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show settingsButton4 + } + mouseExit + { + hide settingsButton4 + } + } + +//-------------------------------- +// FORCE POWER DISABLE +//-------------------------------- + itemDef + { + name settingsButton5 + style WINDOW_STYLE_SHADER + rect 5 135 280 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name options + group grpOptions + type ITEM_TYPE_YESNO + text @MENUS_DISABLE_FORCE + descText @MENUS_DISABLE_FORCE_INFO + cvar "g_forcePowerDisable" + cvarTest "ui_netGameType" + hideCvar + { + "1" ; + "2" ; + "4" + } + rect 5 135 280 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 1 + visible 1 + action + { + uiScript forcePowersDisable ; + play "sound/interface/button1.wav" + } + mouseEnter + { + show settingsButton5 + } + mouseExit + { + hide settingsButton5 + } + } + +// FORCE POWERS setting in Duel/Power Duel + itemDef + { + name options + group grpOptions + type ITEM_TYPE_MULTI + text @MENUS_FORCE_POWERS_TITLE + descText @MENUS_FORCE_POWERS_TITLE_DESC + cvar "g_forcePowerDisable" + cvarTest "ui_netGameType" + showCvar + { + "1" ; + "2" + } + cvar "ui_dualforcepower" + cvarFloatList + { + @MENUS_YES 0 + @MENUS_NO 1 + @MENUS_LIMITED 2 + } + rect 5 135 280 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 1 + visible 1 + action + { + uiScript dualForcePowers ; + play "sound/interface/button1.wav" + } + mouseEnter + { + show settingsButton5 + } + mouseExit + { + hide settingsButton5 + } + } + +//-------------------------------- +// SABERLOCKING +//-------------------------------- + itemDef + { + name settingsButton7 + style WINDOW_STYLE_SHADER + rect 5 175 280 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name expert + group grpsettings + type ITEM_TYPE_YESNO + text @MENUS_SABERLOCKING + descText @MENUS_SABERLOCKING_DESC + cvar "g_saberLocking" + rect 5 175 280 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 2 + font 4 + textscale 1 + forecolor 1 1 1 1 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show settingsButton7 + } + mouseExit + { + hide settingsButton7 + } + } + +//--------------------------------- +// +// ADVANCED GAME RULES +// +//--------------------------------- + + itemDef + { + name rules_title + group none + text @MENUS_ADV_GAME_RULES + rect 5 205 280 20 + font 3 + textscale 0.8 + textalign ITEM_ALIGN_CENTER + textalignx 140 + textaligny -2 + forecolor .549 .854 1 1 + visible 1 + decoration + } + +//-------------------------------- +// AUTOJOIN +//-------------------------------- + itemDef + { + name settingsButton8 + style WINDOW_STYLE_SHADER + rect 5 225 280 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name expert + group grpsettings + type ITEM_TYPE_YESNO + text @MENUS_AUTO_JOIN + descText @MENUS_SET_TO_ON_TO_HAVE_PLAYERS + cvar "g_teamautojoin" + rect 5 225 280 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 2 + font 4 + textscale 1 + forecolor 1 1 1 1 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show settingsButton8 + } + mouseExit + { + hide settingsButton8 + } + } + + +//-------------------------------- +// FORCE BASED TEAMS +//-------------------------------- + + itemDef + { + name settingsButton11 + style WINDOW_STYLE_SHADER + rect 5 285 280 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name options + group grpOptions + type ITEM_TYPE_YESNO + text @MENUS_LIGHT_DARK_TEAMS + descText @MENUS_LIGHT_DARK_INFO + cvar "g_forceBasedTeams" + cvarTest "ui_netGameType" + showCvar + { + "3" ; + "5" + } + rect 5 285 280 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 1 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show settingsButton11 + } + mouseExit + { + hide settingsButton11 + } + } + +//--------------------------------- +// +// SERVER RULES +// +//--------------------------------- + + itemDef + { + name rules_title + group none + text @MENUS_SERVER_RULES + rect 285 35 280 20 + font 3 + textscale 0.8 + textalign ITEM_ALIGN_CENTER + textalignx 140 + textaligny -2 + forecolor .549 .854 1 1 + visible 1 + decoration + } + +//------------------------ +// AUTO MAP CYCLE +//------------------------ + itemDef + { + name settingsButton12 + style WINDOW_STYLE_SHADER + rect 285 55 280 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name auto_map_cycle + group grpsettings + type ITEM_TYPE_YESNO + text @MENUS_AUTO_MAP_CYCLE + cvar "g_autoMapCycle" + rect 285 55 280 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 1 + visible 1 + descText @MENUS_AUTO_MAP_CYCLE_DESC + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show settingsButton12 + } + mouseExit + { + hide settingsButton12 + } + } + +//--------------------- +// ALLOW VOTE +//--------------------- + itemDef + { + name settingsButton13 + style WINDOW_STYLE_SHADER + rect 285 75 280 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name expert + group grpsettings + type ITEM_TYPE_YESNO + text @MENUS_ENABLE_VOTING + cvar "g_allowvote" + rect 285 75 280 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 1 + visible 1 + descText @MENUS_THIS_ALLOWS_PLAYERS_TO + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show settingsButton13 + } + mouseExit + { + hide settingsButton13 + } + } + +//---------------------------- +// DEDICATED +//--------------------------- + itemDef + { + name settingsButton14 + style WINDOW_STYLE_SHADER + rect 285 95 280 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name normal + group grpsettings + type ITEM_TYPE_MULTI + text @MENUS_DEDICATED_SERVER + // syntax for this is cvar name followed by a semicolan separated list of choices first choice equals 0 + // dedicated is a special cvar in that as soon as it is set, the game goes to console only so the ui catches this one specifically + cvar "ui_dedicated" + cvarFloatList + { + @MENUS_NO 0 @MENUS_LAN 1 @MENUS_INTERNET 2 + } + rect 285 95 280 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 1 + visible 1 + descText @MENUS_A_DEDICATED_SERVER_IS + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show settingsButton14 + } + mouseExit + { + hide settingsButton14 + } + } + +//------------------------- +// PASSWORD +//------------------------- + itemDef + { + name settingsButton15 + style WINDOW_STYLE_SHADER + rect 285 115 280 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name expert + group grpsettings + type 4 + text @MENUS_PASSWORD_1 + cvar "g_password" + rect 285 115 280 20 + textalign ITEM_ALIGN_RIGHT + textalignx 130 + textaligny 0 + font 4 + textscale 1 + maxchars 8 + forecolor 1 1 1 1 + visible 1 + descText @MENUS_SETS_PASSWORD_FOR_YOUR + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show settingsButton15 + } + mouseExit + { + hide settingsButton15 + } + } + +//--------------------------------- +// +// CONNECTION RULES +// +//--------------------------------- + + itemDef + { + name rules_title + group none + text @MENUS_CONNECTION_RULES + rect 285 205 280 20 + font 3 + textscale 0.8 + textalign ITEM_ALIGN_CENTER + textalignx 140 + textaligny -2 + forecolor .549 .854 1 1 + visible 1 + decoration + } + +//------------------------- +// PURE SERVER +//------------------------- + + itemDef + { + name settingsButton16 + style WINDOW_STYLE_SHADER + rect 285 225 280 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name normal + group grpsettings + type ITEM_TYPE_YESNO + text @MENUS_PURE_SERVER + descText @MENUS_CLIENT_MUST_HAVE_EXACT + cvar "sv_pure" + rect 285 225 280 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 1 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show settingsButton16 + } + mouseExit + { + hide settingsButton16 + } + } + +//------------------------- +// AUTO DOWNLOAD +//------------------------- + + itemDef + { + name settingsButton17 + style WINDOW_STYLE_SHADER + rect 285 245 280 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name expert + group grpsettings + type ITEM_TYPE_YESNO + text @MENUS_AUTO_DOWNLOAD + descText @MENUS_CLIENTS_CAN_DOWNLOAD + cvar "sv_allowdownload" + rect 285 245 280 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 1 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show settingsButton17 + } + mouseExit + { + hide settingsButton17 + } + } + +//------------------------- +// MIN PING +//------------------------- + itemDef + { + name settingsButton18 + style WINDOW_STYLE_SHADER + rect 285 265 280 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name expert + group grpsettings + type ITEM_TYPE_NUMERICFIELD + maxchars 4 + text @MENUS_MINIMUM_PING + descText @MENUS_FASTEST_CLIENT_ALLOWED + cvar "sv_minping" + rect 285 265 280 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 1 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show settingsButton18 + } + mouseExit + { + hide settingsButton18 + } + } + +//------------------------- +// MAX PING +//------------------------- + itemDef + { + name settingsButton19 + style WINDOW_STYLE_SHADER + rect 285 285 280 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name expert + group grpsettings + type ITEM_TYPE_NUMERICFIELD + maxchars 4 + text @MENUS_MAXIMUM_PING + descText @MENUS_SLOWEST_CLIENT_ALLOWED + cvar "sv_maxping" + rect 285 285 280 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 1 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show settingsButton19 + } + mouseExit + { + hide settingsButton19 + } + } + +//------------------------- +// MAX RATE +//------------------------- + itemDef + { + name settingsButton20 + style WINDOW_STYLE_SHADER + rect 285 305 280 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name expert + group grpsettings + type ITEM_TYPE_NUMERICFIELD + text @MENUS_MAX_RATE + descText @MENUS_DATA_TRANSFER_RATE_TO + cvar "sv_maxrate" + rect 285 305 280 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 1 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show settingsButton20 + } + mouseExit + { + hide settingsButton20 + } + } + +//------------------------- +// RECONNECT LIMIT +//------------------------- + itemDef + { + name settingsButton21 + style WINDOW_STYLE_SHADER + rect 285 325 280 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name expert + group grpsettings + type ITEM_TYPE_NUMERICFIELD + text @MENUS_RECONNECT_LIMIT + descText @MENUS_MINIMUM_TIME_ALLOWED + cvar "sv_reconnectlimit" + maxchars 4 + rect 285 325 280 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 1 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show settingsButton21 + } + mouseExit + { + hide settingsButton21 + } + } + +//--------------------------------- +// +// DONE BUTTON +// +//--------------------------------- + + itemDef + { + name doneButton + group none + style WINDOW_STYLE_SHADER + rect 200 352 160 30 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name done + text @MENUS_DONE + descText @MENUS_GO_BACK_TO_STANDARD_SETTINGS + type ITEM_TYPE_BUTTON + font 3 + textscale 1 + style WINDOW_STYLE_EMPTY + rect 200 352 160 30 + textalignx 80 // Center + textaligny 0 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + close advancedcreateserver ; + open createserver ; + } + mouseEnter + { + show doneButton + } + mouseExit + { + hide doneButton + } + } + + } +} + + + + + + + + + + + + + + + + diff --git a/base/ui/jamp/connect.menu b/base/ui/jamp/connect.menu new file mode 100644 index 0000000..fdb4fdb --- /dev/null +++ b/base/ui/jamp/connect.menu @@ -0,0 +1,21 @@ +{ + +menuDef { + name "Connect" + rect 0 0 640 480 + fullScreen MENU_FALSE + visible MENU_FALSE + style WINDOW_STYLE_SHADER + + itemDef + { + name miniFrame + rect 0 0 640 480 + style WINDOW_STYLE_SHADER + background "menu/art/unknownmap_mp" + visible 1 + decoration + } + } + +} \ No newline at end of file diff --git a/base/ui/jamp/controls.menu b/base/ui/jamp/controls.menu new file mode 100644 index 0000000..62a4450 --- /dev/null +++ b/base/ui/jamp/controls.menu @@ -0,0 +1,3765 @@ +//-------------------------------------------------------------- +// +// MULTIPLAYER CONTROLS MENU +// +//-------------------------------------------------------------- +{ + menuDef + { + name "controlsMenu" + fullScreen 1 // MENU_TRUE + rect 0 0 640 480 // Size and position of the menu + visible 0 // Visible on open + focusColor 1 1 1 1 // Focus color for text and items + descX 320 + descY 424 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + uiScript loadControls; + + show setup_background ; + show movecontrols ; + hide attackcontrols ; + hide weaponcontrols ; + hide forcecontrols ; + hide forcecontrols2 ; + hide quickcontrols ; + hide joycontrols ; + hide othercontrols ; + setitemcolor movementcontrolbutton forecolor 1 1 1 1 ; + setitemcolor attackcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor weaponscontrolbutton forecolor 1 .682 0 1 ; + setitemcolor forcecontrolbutton forecolor 1 .682 0 1 ; + setitemcolor forcecontrolbutton2 forecolor 1 .682 0 1 ; + setitemcolor quickcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor mousejoystickcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor othercontrolbutton forecolor 1 .682 0 1 ; + } + + onClose + { + uiScript saveControls + } + + onESC + { + play "sound/interface/menuroam.wav" ; + hide highlights ; + close controlsMenu ; + open main ; + } + + //---------------------------------------------------------------------------------------------- + // + // MENU BACKGROUND + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 107 8 428 112 + background "gfx/menus/jediacademy" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name left_frame + group lf_fr + style WINDOW_STYLE_SHADER + rect 0 50 320 160 + background "gfx/menus/menu_boxes_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name right_frame + group rt_fr + style WINDOW_STYLE_SHADER + rect 320 50 320 160 + background "gfx/menus/menu_boxes_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + //---------------------------------------------------------------------------------------------- + // + // TOP MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + + // Big button "NEW" + itemDef + { + name newgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 7 126 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 7 126 130 24 + text @MENUS_PLAY + descText @MENUS_START_PLAYING_NOW + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show newgamebutton_glow + } + mouseExit + { + hide newgamebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open multiplayermenu + } + } + + // Big button "PLAYER PROFILE" + itemDef + { + name profilebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 170 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name profilebutton + group toprow + text @MENUS_PROFILE + descText @MENUS_PROFILE_DESC + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 126 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show profilebutton_glow + } + mouseExit + { + hide profilebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open playerMenu + } + } + + // Big button "CONTROLS" + itemDef + { + name controlsbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 340 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name controlsbutton + group toprow + text @MENUS_CONTROLS2 + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 1 1 1 + visible 1 + + mouseEnter + { + show controlsbutton_glow + } + mouseExit + { + hide controlsbutton_glow + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 502 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name setupbutton + group toprow + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 502 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show setupbutton_glow + } + mouseExit + { + hide setupbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open setup_menu + } + } + + + //---------------------------------------------------------------------------------------------- + // + // OTHER MAIN MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + // Credits hidden button + itemDef + { + name creditsbutton + group othermain +// text @CREDITS + descText @MENUS_SHOW_GAME_CREDITS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 200 144 256 256 + font 2 + textscale 1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textalignx 46 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 0 + + mouseEnter + { + } + mouseExit + { + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open creditsMenu + } + } + + // EXIT button in lower left corner + itemDef + { + name exitgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 255 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 @MENUS_EXIT + descText @MENUS_LEAVE_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 255 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 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 @MENUS_CONFIGURE_CONTROLS + rect 100 164 440 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + // movement button + itemDef + { + name movementcontrolbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 80 185 180 24 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name movementcontrolbutton + group none + text @MENUS_MOVEMENT + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 185 170 24 + font 3 + textscale 0.9 + textalignx 160 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 0 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_MOVEMENT_KEYS + + mouseEnter + { + show movementcontrolbutton_glow + } + mouseExit + { + hide movementcontrolbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + show setup_background ; + show movecontrols ; + hide attackcontrols ; + hide weaponcontrols ; + hide forcecontrols ; + hide forcecontrols2 ; + hide joycontrols ; + hide othercontrols ; + setitemcolor movementcontrolbutton forecolor 1 1 1 1 ; + setitemcolor attackcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor weaponscontrolbutton forecolor 1 .682 0 1 ; + setitemcolor forcecontrolbutton forecolor 1 .682 0 1 ; + setitemcolor forcecontrolbutton2 forecolor 1 .682 0 1 ; + setitemcolor mousejoystickcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor othercontrolbutton forecolor 1 .682 0 1 ; + } + } + + + // attack button + itemDef + { + name attackcontrolbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 80 209 180 24 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name attackcontrolbutton + group none + text @MENUS_INTERACTION + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 209 170 24 + font 3 + textscale 0.9 + textalignx 160 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 0 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_INTERACTION_DESC + + mouseEnter + { + show attackcontrolbutton_glow + } + mouseExit + { + hide attackcontrolbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + show setup_background ; + hide movecontrols ; + show attackcontrols ; + hide weaponcontrols ; + hide forcecontrols ; + hide forcecontrols2 ; + hide joycontrols ; + hide othercontrols ; + setitemcolor movementcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor attackcontrolbutton forecolor 1 1 1 1 ; + setitemcolor weaponscontrolbutton forecolor 1 .682 0 1 ; + setitemcolor forcecontrolbutton forecolor 1 .682 0 1 ; + setitemcolor forcecontrolbutton2 forecolor 1 .682 0 1 ; + setitemcolor mousejoystickcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor othercontrolbutton forecolor 1 .682 0 1 ; + } + } + + // Weapons button + itemDef + { + name weaponscontrolbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 80 233 180 24 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name weaponscontrolbutton + group none + text @MENUS_WEAPONS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 233 170 24 + font 3 + textscale 0.9 + textalignx 160 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 0 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_WEAPON_CONTROLS + + mouseEnter + { + show weaponscontrolbutton_glow + } + mouseExit + { + hide weaponscontrolbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + show setup_background ; + hide movecontrols ; + hide attackcontrols ; + show weaponcontrols ; + hide forcecontrols ; + hide forcecontrols2 ; + hide joycontrols ; + hide othercontrols ; + setitemcolor movementcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor attackcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor weaponscontrolbutton forecolor 1 1 1 1 ; + setitemcolor forcecontrolbutton forecolor 1 .682 0 1 ; + setitemcolor forcecontrolbutton2 forecolor 1 .682 0 1 ; + setitemcolor mousejoystickcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor othercontrolbutton forecolor 1 .682 0 1 ; + } + } + + // Force Powers button + itemDef + { + name forcecontrolbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 80 257 180 24 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name forcecontrolbutton + group none + text @MENUS_FORCE_POWERS_1 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 257 170 24 + font 3 + textscale 0.9 + textalignx 160 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 0 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_FORCE_POWER + + mouseEnter + { + show forcecontrolbutton_glow + } + mouseExit + { + hide forcecontrolbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + show setup_background ; + hide movecontrols ; + hide attackcontrols ; + hide weaponcontrols ; + show forcecontrols ; + hide forcecontrols2 ; + hide joycontrols ; + hide othercontrols ; + setitemcolor movementcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor attackcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor weaponscontrolbutton forecolor 1 .682 0 1 ; + setitemcolor forcecontrolbutton forecolor 1 1 1 1 ; + setitemcolor forcecontrolbutton2 forecolor 1 .682 0 1 ; + setitemcolor mousejoystickcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor othercontrolbutton forecolor 1 .682 0 1 ; + } + } + + // Force Powers button 2 + itemDef + { + name forcecontrolbutton2_glow + group mods + style WINDOW_STYLE_SHADER + rect 80 281 180 24 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name forcecontrolbutton2 + text @MENUS_FORCE_POWERS_2 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 281 170 24 + font 3 + textscale 0.9 + textalignx 160 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 0 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_FORCE_POWER + + mouseEnter + { + show forcecontrolbutton2_glow + } + mouseExit + { + hide forcecontrolbutton2_glow + } + action + { + play "sound/interface/button1.wav" ; + show setup_background ; + hide movecontrols ; + hide attackcontrols ; + hide weaponcontrols ; + hide forcecontrols ; + show forcecontrols2 ; + hide joycontrols ; + hide othercontrols ; + setitemcolor movementcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor attackcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor weaponscontrolbutton forecolor 1 .682 0 1 ; + setitemcolor forcecontrolbutton forecolor 1 .682 0 1 ; + setitemcolor forcecontrolbutton2 forecolor 1 1 1 1 ; + setitemcolor mousejoystickcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor othercontrolbutton forecolor 1 .682 0 1 ; + } + } + + // mousejoystick button + itemDef + { + name mousejoystickcontrolbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 80 305 180 24 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name mousejoystickcontrolbutton + group none + text @MENUS_MOUSE_JOYSTICK + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 305 170 24 + font 3 + textscale 0.9 + textalignx 160 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 0 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_MOUSE_AND_JOYSTICK + + mouseEnter + { + show mousejoystickcontrolbutton_glow + } + mouseExit + { + hide mousejoystickcontrolbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + show setup_background ; + hide movecontrols ; + hide attackcontrols ; + hide weaponcontrols ; + hide forcecontrols ; + hide forcecontrols2 ; + show joycontrols ; + hide othercontrols ; + setitemcolor movementcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor attackcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor weaponscontrolbutton forecolor 1 .682 0 1 ; + setitemcolor forcecontrolbutton forecolor 1 .682 0 1 ; + setitemcolor forcecontrolbutton2 forecolor 1 .682 0 1 ; + setitemcolor mousejoystickcontrolbutton forecolor 1 1 1 1 ; + setitemcolor othercontrolbutton forecolor 1 .682 0 1 ; + } + } + + // other button + itemDef + { + name othercontrolbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 80 329 180 24 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name othercontrolbutton + group none + text @MENUS_OTHER + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 329 170 24 + font 3 + textscale 0.9 + textalignx 160 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 0 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_ADDITIONAL + + mouseEnter + { + show othercontrolbutton_glow + } + mouseExit + { + hide othercontrolbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + show setup_background ; + hide movecontrols ; + hide attackcontrols ; + hide weaponcontrols ; + hide forcecontrols ; + hide forcecontrols2 ; + hide joycontrols ; + show othercontrols ; + setitemcolor movementcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor attackcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor weaponscontrolbutton forecolor 1 .682 0 1 ; + setitemcolor forcecontrolbutton forecolor 1 .682 0 1 ; + setitemcolor forcecontrolbutton2 forecolor 1 .682 0 1 ; + setitemcolor mousejoystickcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor othercontrolbutton forecolor 1 1 1 1 ; + } + } + + itemDef + { + name setup_background + group none + style WINDOW_STYLE_FILLED + rect 260 185 340 235 + backcolor 0 0 .6 .5 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .6 1 + visible 0 + decoration + } + + //---------------------------------------------------------------------------------------------- + // + // HIGHLIGHT BARS + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name highlight1 + group highlights + style WINDOW_STYLE_SHADER + rect 260 190 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight2 + group highlights + style WINDOW_STYLE_SHADER + rect 260 204 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight3 + group highlights + style WINDOW_STYLE_SHADER + rect 260 218 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight4 + group highlights + style WINDOW_STYLE_SHADER + rect 260 232 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight5 + group highlights + style WINDOW_STYLE_SHADER + rect 260 246 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight6 + group highlights + style WINDOW_STYLE_SHADER + rect 260 260 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight7 + group highlights + style WINDOW_STYLE_SHADER + rect 260 274 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight8 + group highlights + style WINDOW_STYLE_SHADER + rect 260 288 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight9 + group highlights + style WINDOW_STYLE_SHADER + rect 260 302 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight10 + group highlights + style WINDOW_STYLE_SHADER + rect 260 316 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight11 + group highlights + style WINDOW_STYLE_SHADER + rect 260 330 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight12 + group highlights + style WINDOW_STYLE_SHADER + rect 260 344 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight13 + group highlights + style WINDOW_STYLE_SHADER + rect 260 358 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight14 + group highlights + style WINDOW_STYLE_SHADER + rect 260 372 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight15 + group highlights + style WINDOW_STYLE_SHADER + rect 260 386 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight16 + group highlights + style WINDOW_STYLE_SHADER + rect 260 400 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// +// MOVEMENT BINDING +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name movement1 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_WALK_FORWARD + cvar "+forward" + rect 260 188 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_MOVES_PLAYER_FORWARD + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight1 + show keybindstatus + } + mouseexit + { + hide highlight1 + hide keybindstatus + } + } + + + itemDef + { + name movement2 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_BACKPEDAL + cvar "+back" + rect 260 202 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_MOVES_PLAYER_BACKWARD + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight2 + show keybindstatus + } + mouseexit + { + hide highlight2 + hide keybindstatus + } + } + + itemDef + { + name movement3 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_TURN_LEFT + cvar "+left" + rect 260 216 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_ROTATES_PLAYER_LEFT + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight3 + show keybindstatus + } + mouseexit + { + hide highlight3 + hide keybindstatus + } + } + + itemDef + { + name movement4 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_TURN_RIGHT + cvar "+right" + rect 260 230 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_ROTATES_PLAYER_RIGHT + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight4 + show keybindstatus + } + mouseexit + { + hide highlight4 + hide keybindstatus + } + } + + itemDef + { + name movement5 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_RUN_WALK + cvar "+speed" + rect 260 244 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_IF_HELD_TOGGLES_BETWEEN + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight5 + show keybindstatus + } + mouseexit + { + hide highlight5 + hide keybindstatus + } + } + + itemDef + { + name movement6 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_STEP_LEFT + cvar "+moveleft" + rect 260 258 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_STEPS_PLAYER_TO_THE_LEFT + + action + { + play sound/interface/button1 + } + mouseenter + { + show highlight6 + show keybindstatus + } + mouseexit + { + hide highlight6 + hide keybindstatus + } + } + + itemDef + { + name movement7 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_STEP_RIGHT + cvar "+moveright" + rect 260 272 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_STEPS_PLAYER_TO_THE_RIGHT + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight7 + show keybindstatus + } + mouseexit + { + hide highlight7 + hide keybindstatus + } + } + + itemDef + { + name movement8 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_SIDESTEP_TURN + cvar "+strafe" + rect 260 286 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_HELD_ALLOWS_PLAYER_TO + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight8 + show keybindstatus + } + mouseexit + { + hide highlight8 + hide keybindstatus + } + } + + itemDef + { + name movement12 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_UP_JUMP + cvar "+moveup" + rect 260 342 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_MAKES_PLAYER_JUMP_IF + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight12 + show keybindstatus + } + mouseexit + { + hide highlight12 + hide keybindstatus + } + } + + itemDef + { + name movement13 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_DOWN_CROUCH + cvar "+movedown" + rect 260 356 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_MAKES_PLAYER_CROUCH_TO + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight13 + show keybindstatus + } + mouseexit + { + hide highlight13 + hide keybindstatus + } + } + +//---------------------------------------------------------------------------------------------- +// +// INTERACTION BINDING +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name attacklook1 + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_ATTACK + cvar "+attack" + rect 260 188 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_ATTACKS_WITH_READIED + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight1 + show keybindstatus + } + mouseexit + { + hide highlight1 + hide keybindstatus + } + } + + itemDef + { + name attacklook2 + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_ALT_ATTACK + cvar "+altattack" + rect 260 202 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_ATTACKS_WITH_ALTERNATE + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight2 + show keybindstatus + } + mouseexit + { + hide highlight2 + hide keybindstatus + } + } + + itemDef + { + name attacksaber + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_LIGHTSABER_STYLE + cvar "saberAttackCycle" + rect 260 216 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_CYCLES_BETWEEN_AVAILABLE + action + { + play sound/interface/button1 + } + + mouseenter + { + show highlight3 + show keybindstatus + } + mouseexit + { + hide highlight3 + hide keybindstatus + } + } + + itemDef + { + group attackcontrols + name attacklook + type ITEM_TYPE_BIND + text @MENUS_USE + cvar "+use" + rect 260 244 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 3 + descText @MENUS_ACTIVATES_WORLD_DEVICES + + mouseenter + { + show highlight5 + show keybindstatus + } + mouseexit + { + hide highlight5 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name attacklook + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_USE_HELD_ITEM + cvar "+button2" + rect 260 258 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 6 + descText @MENUS_ACTIVATES_CURRENTLY_SELECTED + + mouseenter + { + show highlight6 + show keybindstatus + } + mouseexit + { + hide highlight6 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name attacklook + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_NEXT_INVENTORY + cvar "invnext" + rect 260 272 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 6 + descText @MENUS_SELECTS_NEXT_USABLE_ITEM + + mouseenter + { + show highlight7 + show keybindstatus + } + mouseexit + { + hide highlight7 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name attacklook + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_PREV_INVENTORY + cvar "invprev" + rect 260 286 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 6 + descText @MENUS_SELECTS_PREVIOUS_USABLE + + mouseenter + { + show highlight8 + show keybindstatus + } + mouseexit + { + hide highlight8 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name attacklook4 + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_LOOK_UP + cvar "+lookup" + rect 260 314 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 4 + descText @MENUS_TILTS_VIEW_UPWARDS + + mouseenter + { + show highlight10 + show keybindstatus + } + mouseexit + { + hide highlight10 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + + itemDef + { + name attacklook5 + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_LOOK_DOWN + cvar "+lookdown" + rect 260 328 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + descText @MENUS_TILTS_VIEW_DOWNWARDS + forecolor .615 .615 .956 1 + + mouseenter + { + show highlight11 + show keybindstatus + } + mouseexit + { + hide highlight11 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name attacklook + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_MOUSE_LOOK + cvar "+mlook" + rect 260 342 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 6 + descText @MENUS_IF_HELD_ALLOWS_PLAYER + forecolor .615 .615 .956 1 + + mouseenter + { + show highlight12 + show keybindstatus + } + mouseexit + { + hide highlight12 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name attacklook + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_CENTER_VIEW + cvar "centerview" + rect 260 356 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 1 + visible 0 + // appearance_slot 6 + descText @MENUS_RETURNS_VIEW_TO_HORIZONTAL + forecolor .615 .615 .956 1 + + mouseenter + { + show highlight13 + show keybindstatus + } + mouseexit + { + hide highlight13 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + +//---------------------------------------------------------------------------------------------- +// +// WEAPON BINDING +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name weapon1 + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_MELEE_LIGHTSABER + cvar "weapon 1" + rect 260 188 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 1 + visible 0 + descText @MENUS_READIES_LIGHTSABER + forecolor .615 .615 .956 1 + + mouseenter + { + show highlight1 + show keybindstatus + } + mouseexit + { + hide highlight1 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name weapon3 + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_PISTOL + cvar "weapon 2" + rect 260 202 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 1 + visible 0 + descText @MENUS_READIES_THE_BLASTER_PISTOL + forecolor .615 .615 .956 1 + + mouseenter + { + show highlight2 + show keybindstatus + } + mouseexit + { + hide highlight2 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_RIFLE + cvar "weapon 3" + rect 260 216 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 1 + visible 0 + descText @MENUS_READIES_THE_E_11_BLASTER + forecolor .615 .615 .956 1 + + mouseenter + { + show highlight3 + show keybindstatus + } + mouseexit + { + hide highlight3 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_DISRUPTOR_RIFLE + cvar "weapon 4" + rect 260 230 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_READIES_THE_TENLOSS_DXR_6 + + mouseenter + { + show highlight4 + show keybindstatus + } + mouseexit + { + hide highlight4 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_BOWCASTER + cvar "weapon 5" + rect 260 244 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_READIES_THE_WOOKIEE_BOWCASTER + + mouseenter + { + show highlight5 + show keybindstatus + } + mouseexit + { + hide highlight5 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_HEAVY_REPEATER + cvar "weapon 6" + rect 260 258 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_READIES_THE_IMPERIAL + + mouseenter + { + show highlight6 + show keybindstatus + } + mouseexit + { + hide highlight6 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_DEMP_2 + cvar "weapon 7" + rect 260 272 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 7 + descText @MENUS_READIES_THE_DEMP2_GUN + + mouseenter + { + show highlight7 + show keybindstatus + } + mouseexit + { + hide highlight7 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_FLECHETTE + cvar "weapon 8" + rect 260 286 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 8 + descText @MENUS_READIES_THE_GOLAN_ARMS + + mouseenter + { + show highlight8 + show keybindstatus + } + mouseexit + { + hide keybindstatus + hide highlight8 + } + action + { + play "sound/interface/button1.wav" ; + } + } + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_CONC_RIFLE_SETUP + cvar "weapon 13" + rect 260 300 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 8 + descText @MENUS_READIES_THE_CONC_RIFLE + + mouseenter + { + show highlight9 + show keybindstatus + } + mouseexit + { + hide keybindstatus + hide highlight9 + } + action + { + play "sound/interface/button1.wav" ; + } + } + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_MERR_SONN + cvar "weapon 9" + rect 260 314 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 9 + descText @MENUS_READIES_THE_MERR_SONN + + mouseenter + { + show highlight10 + show keybindstatus + } + mouseexit + { + hide highlight10 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_THROWABLE_WEAPONS + cvar "weapon 10" + rect 260 328 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 10 + descText @MENUS_TOGGLES_BETWEEN_DETONATORS + + mouseenter + { + show highlight11 + show keybindstatus + } + mouseexit + { + hide highlight11 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_NEXT_WEAPON + cvar "weapnext" + rect 260 342 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 10 + descText @MENUS_SELECTS_THE_NEXT_WEAPON + + mouseenter + { + show highlight12 + show keybindstatus + } + mouseexit + { + hide highlight12 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_PREVIOUS_WEAPON + cvar "weapprev" + rect 260 356 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 11 + descText @MENUS_SELECTS_THE_PREVIOUS + + mouseenter + { + show highlight13 + show keybindstatus + } + mouseexit + { + hide highlight13 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + +//---------------------------------------------------------------------------------------------- +// +// FORCE BINDING +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name force2 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_PUSH + cvar "force_throw" + rect 260 188 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 1 + descText @MENUS_USES_FORCE_PUSH_ABILITY + + mouseenter + { + show highlight1 + show keybindstatus + } + mouseexit + { + hide highlight1 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name force3 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_PULL + cvar "force_pull" + rect 260 202 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 2 + descText @MENUS_USES_FORCE_PULL_ABILITY + + mouseenter + { + show highlight2 + show keybindstatus + } + mouseexit + { + hide highlight2 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name force4 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_SPEED + cvar "force_speed" + rect 260 216 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 3 + descText @MENUS_USES_FORCE_SPEED_ABILITY + + mouseenter + { + show highlight3 + show keybindstatus + } + mouseexit + { + hide highlight3 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name force4 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_SIGHT + cvar "force_seeing" + rect 260 230 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_USES_FORCE_SIGHT_ABILITY + + mouseenter + { + show highlight4 + show keybindstatus + } + mouseexit + { + hide highlight4 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name forcekeys + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_USE_FORCE_POWER + cvar "+useforce" + rect 260 300 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 8 + descText @MENUS_USES_CURRENTLY_SELECTED + + mouseenter + { + show highlight9 + show keybindstatus + } + mouseexit + { + hide highlight9 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name forcekeys + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_NEXT + cvar "forcenext" + rect 260 314 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 9 + descText @MENUS_SELECTS_NEXT_AVAILABLE + + mouseenter + { + show highlight10 + show keybindstatus + } + mouseexit + { + hide highlight10 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name forcekeys + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_PREVIOUS + cvar "forceprev" + rect 260 328 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 10 + descText @MENUS_SELECTS_PREVIOUS_AVAILABLE + + mouseenter + { + show highlight11 + show keybindstatus + } + mouseexit + { + hide highlight11 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + +//---------------------------------------------------------------------------------------------- +// +// FORCE BINDING 2 (light / dark) +// +//---------------------------------------------------------------------------------------------- + itemDef + { + group forcecontrols2 + type ITEM_TYPE_BIND + text @MENUS_FORCE_PROTECT + cvar "force_protect" + rect 260 188 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_USES_FORCE_PROTECT_ABILITY + + mouseenter + { + show highlight1 + show keybindstatus + } + mouseexit + { + hide highlight1 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + group forcecontrols2 + type ITEM_TYPE_BIND + text @MENUS_FORCE_ABSORB + cvar "force_absorb" + rect 260 202 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_USE_ABSORB + + mouseenter + { + show highlight2 + show keybindstatus + } + mouseexit + { + hide highlight2 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + group forcecontrols2 + type ITEM_TYPE_BIND + text @MENUS_FORCE_HEAL + cvar "force_heal" + rect 260 216 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_USES_FORCE_HEAL_ABILITY + + mouseenter + { + show highlight3 + show keybindstatus + } + mouseexit + { + hide highlight3 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + group forcecontrols2 + type ITEM_TYPE_BIND + text @MENUS_HEAL_OTHER + cvar "force_healother" + rect 260 230 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_USE_HEAL_OTHER + + mouseenter + { + show highlight4 + show keybindstatus + } + mouseexit + { + hide highlight4 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + group forcecontrols2 + type ITEM_TYPE_BIND + text @MENUS_FORCE_MINDTRICK + cvar "force_distract" + rect 260 244 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_USES_MIND_TRICK_ABILITY + + mouseenter + { + show highlight5 + show keybindstatus + } + mouseexit + { + hide highlight5 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + group forcecontrols2 + type ITEM_TYPE_BIND + text @MENUS_FORCE_GRIP + cvar "+force_grip" + rect 260 272 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_USES_GRIP_FORCE_ABILITY + + mouseenter + { + show highlight7 + show keybindstatus + } + mouseexit + { + hide highlight7 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + group forcecontrols2 + type ITEM_TYPE_BIND + text @MENUS_FORCE_DRAIN + cvar "+force_drain" + rect 260 286 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_USES_DRAIN_FORCE_ABILITY + + mouseenter + { + show highlight8 + show keybindstatus + } + mouseexit + { + hide highlight8 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + group forcecontrols2 + type ITEM_TYPE_BIND + text @MENUS_FORCE_LIGHTNING + cvar "+force_lightning" + rect 260 300 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_USES_LIGHTNING_FORCE + + mouseenter + { + show highlight9 + show keybindstatus + } + mouseexit + { + hide highlight9 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + group forcecontrols2 + type ITEM_TYPE_BIND + text @MENUS_RAGE + cvar "force_rage" + rect 260 314 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_USES_RAGE_FORCE_ABILITY + + mouseenter + { + show highlight10 + show keybindstatus + } + mouseexit + { + hide highlight10 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + group forcecontrols2 + type ITEM_TYPE_BIND + text @MENUS_TEAM_POWER + cvar "force_forcepowerother" + rect 260 330 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_USES_TEAM_POWER_FORCE + + mouseenter + { + show highlight11 + show keybindstatus + } + mouseexit + { + hide highlight11 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + +//---------------------------------------------------------------------------------------------- +// +// MOUSE/JOYSTICK KEY BINDING +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name mousejoystick1 + group joycontrols + type ITEM_TYPE_YESNO + text @MENUS_FREE_LOOK + cvar "cl_freelook" + rect 260 188 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 1 + descText @MENUS_TOGGLE_TO_ALLOW_PLAYER + + mouseenter + { + show highlight1 + } + + mouseexit + { + hide highlight1 + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_SLIDER + text @MENUS_SENSITIVITY + cvarfloat "sensitivity" 5 2 30 + rect 260 216 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 2 + descText @MENUS_ADJUSTS_CHARACTER_REACTION + + mouseenter + { + show highlight3 + } + mouseexit + { + hide highlight3 + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_YESNO + text @MENUS_INVERT_MOUSE + cvar "ui_mousePitch" + rect 260 244 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 3 + descText @MENUS_TOGGLE_TO_TILT_VIEW_IN + + action + { + play "sound/interface/button1.wav" ; + uiScript update ui_mousePitch + } + mouseenter + { + show highlight5 + } + + mouseexit + { + hide highlight5 + } + } + + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_YESNO + text @MENUS_SMOOTH_MOUSE + cvar "m_filter" + rect 260 258 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 4 + descText @MENUS_WHEN_TURNED_ON_MOUSE + + mouseenter + { + show highlight6 + } + + mouseexit + { + hide highlight6 + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_YESNO + text @MENUS_ENABLE_JOYSTICK + cvar "in_joystick" + rect 260 300 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 6 + descText @MENUS_TURNED_ON_GAME_SEARCHES + + mouseenter + { + show highlight9 + } + + mouseexit + { + hide highlight9 + } + action + { + play "sound/interface/button1.wav" ; + exec in_restart + } + } + + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_SLIDER + text @MENUS_JOYSTICK_THRESHOLD + cvarfloat "joy_threshold" .15 .05 .75 + rect 260 328 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 7 + descText @MENUS_ADJUSTS_THE_SIZE_OF_THE + + mouseenter + { + show highlight11 + } + mouseexit + { + hide highlight11 + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_YESNO + text @MENUS_X_AXIS_AS_BUTTONS + cvar "joy_xbutton" + rect 260 356 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 8 + descText @MENUS_WHEN_OFF_HORIZONTAL + + mouseenter + { + show highlight13 + } + + mouseexit + { + hide highlight13 + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_YESNO + text @MENUS_Y_AXIS_AS_BUTTONS + cvar "joy_ybutton" + rect 260 370 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 9 + descText @MENUS_WHEN_OFF_VERTICAL_STICK + + mouseenter + { + show highlight14 + } + + mouseexit + { + hide highlight14 + } + action + { + play "sound/interface/button1.wav" ; + } + } + +//---------------------------------------------------------------------------------------------- +// +// OTHER +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name other1 + group othercontrols + type ITEM_TYPE_YESNO + text @MENUS_ALWAYS_RUN + cvar "cl_run" + rect 260 188 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 1 + descText @MENUS_WHEN_ON_PLAYER_ALWAYS + + mouseenter + { + show highlight1 + } + + mouseexit + { + hide highlight1 + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + group othercontrols + type ITEM_TYPE_MULTI + text @MENUS_AUTO_SWITCH + cvar "cg_autoswitch" + cvarFloatList + { + @MENUS_DON_T_SWITCH 0 + @MENUS_BEST_SAFE_WEAPON 1 + @MENUS_ALWAYS_BEST_WEAPON 2 + } + rect 260 202 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_CHOOSE_WHETHER_TO_SWITCH + mouseenter + { + show highlight2 + } + mouseexit + { + hide highlight2 + } + action + { + play "sound/interface/button1.wav" + } + } + + itemDef + { + group othercontrols + type ITEM_TYPE_BIND + text @MENUS_CHAT + cvar "messagemode" + rect 260 230 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_SENDS_A_CHAT_MESSAGE + + mouseenter + { + show highlight4 + show keybindstatus + } + mouseexit + { + hide highlight4 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + group othercontrols + type ITEM_TYPE_BIND + text @MENUS_TEAM_CHAT + cvar "messagemode2" + rect 260 244 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_A_CHAT_MESSAGE_TO_EVERYONE + + mouseenter + { + show highlight5 + show keybindstatus + } + mouseexit + { + hide highlight5 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + group othercontrols + type ITEM_TYPE_BIND + text @MENUS_VC_CONTROLS + cvar "voicechat" + rect 260 258 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_VC_CONTROLS_DESC + + mouseenter + { + show highlight6 + show keybindstatus + } + mouseexit + { + hide highlight6 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + group othercontrols + type ITEM_TYPE_BIND + text @MENUS_AUTOMAP + cvar "automap_toggle" + rect 260 272 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_AUTOMAP_DESC + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight7 + show keybindstatus + } + mouseexit + { + hide highlight7 + hide keybindstatus + } + } + + itemDef + { + group othercontrols + type ITEM_TYPE_BIND + text @MENUS_SHOW_SCORES + cvar "+scores" + rect 260 286 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_SHOWS_THE_CURRENT_SCORES + + mouseenter + { + show highlight8 + show keybindstatus + } + mouseexit + { + hide highlight8 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + group othercontrols + type ITEM_TYPE_BIND + text @MENUS_SABER_CHALLENGE + cvar "engage_duel" + rect 260 300 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_INFO_SABER_CHALLENGE + + mouseenter + { + show highlight9 + show keybindstatus + } + mouseexit + { + hide highlight9 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + group othercontrols + type ITEM_TYPE_BIND + text @MENUS_3RD_PERSON + cvar "cg_thirdperson !" + rect 260 314 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_CHANGES_VIEW_BETWEEN + + mouseenter + { + show highlight10 + show keybindstatus + } + mouseexit + { + hide highlight10 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + group othercontrols + type ITEM_TYPE_BIND + text @MENUS_TAUNT + cvar "taunt" + rect 260 342 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_TAUNT_DESC + + mouseenter + { + show highlight12 + show keybindstatus + } + mouseexit + { + hide highlight12 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + group othercontrols + type ITEM_TYPE_BIND + text @MENUS_BOW + cvar "bow" + rect 260 356 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_BOW_DESC + + mouseenter + { + show highlight13 + show keybindstatus + } + mouseexit + { + hide highlight13 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + group othercontrols + type ITEM_TYPE_BIND + text @MENUS_MEDITATE + cvar "meditate" + rect 260 372 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_MEDITATE_DESC + + mouseenter + { + show highlight14 + show keybindstatus + } + mouseexit + { + hide highlight14 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + group othercontrols + type ITEM_TYPE_BIND + text @MENUS_FLOURISH + cvar "flourish" + rect 260 386 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_FLOURISH_DESC + + mouseenter + { + show highlight15 + show keybindstatus + } + mouseexit + { + hide highlight15 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + group othercontrols + type ITEM_TYPE_BIND + text @MENUS_GLOAT + cvar "gloat" + rect 260 400 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_GLOAT_DESC + + mouseenter + { + show highlight16 + show keybindstatus + } + mouseexit + { + hide highlight16 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + //---------------------------------------------------------------------------------------------- + // + // Text + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name keyBindStatus + group none + ownerdraw 250 // UI_KEYBINDSTATUS + text @MENUS_BLANK_1 + rect 375 434 0 0 + textStyle 0 + font 4 + textscale 1 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + visible 0 + decoration + } + + itemDef + { + name slider_message + group none + text @MENUS_MOVE_THE_SLIDER_TO_INCREASE + rect 375 434 0 0 + textStyle 0 + font 4 + textscale 1 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + visible 0 + decoration + } + + itemDef + { + name yesno_message + group none + text @MENUS_CLICK_ON_FIELD_TO_TOGGLE + rect 375 434 0 0 + textStyle 0 + font 4 + textscale 1 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + visible 0 + decoration + } + + itemDef + { + name multi_message + group none + text @MENUS_CLICK_ON_FIELD_TO_CHANGE + rect 375 434 0 0 + textStyle 0 + font 4 + textscale 1 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + visible 0 + decoration + } + } +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/base/ui/jamp/createfavorite.menu b/base/ui/jamp/createfavorite.menu new file mode 100644 index 0000000..872aaae --- /dev/null +++ b/base/ui/jamp/createfavorite.menu @@ -0,0 +1,222 @@ +//---------------------------------------------------------------------------------------------- +// +// PASSWORD POPUP MENU +// +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "createfavorite_popmenu" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 200 150 240 180 + focusColor 1 1 1 1 // Focus color for text and items + style 1 + border 1 + descX 320 + descY 314 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + popup + + onOpen + { + setfocus addressEntry + } + onESC + { + play "sound/interface/esc.wav" ; + close createfavorite_popmenu + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name setup_background + group none + style WINDOW_STYLE_FILLED + rect 0 0 240 180 + backcolor 0 0 .35 .9 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .8 1 + visible 1 + decoration + } + + itemDef + { + name title_glow + group none + style WINDOW_STYLE_SHADER + rect 0 4 270 22 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 1 + decoration + } + + // SCREEN TITLE + itemDef + { + name title + text @MENUS_FAVORITE_SERVER_INFO + style WINDOW_STYLE_EMPTY + rect 5 5 220 20 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 110 + textaligny 1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + //--------------------------------------------- + // ENTER NAME AND ADDRESS + //--------------------------------------------- +/* + itemDef + { + name nameTitle + text @MENUS_FAVE_NAME + style 0 + decoration + font 1 + textscale .8 + rect 177 126 110 20 + textalign ITEM_ALIGN_LEFT + textalignx 1 + textaligny 3 + forecolor 1 1 1 1 + visible 1 + } + + itemDef + { + name nameEntry + style 1 + maxchars 15 + text @MENUS_BLANK_1 + descText @MENUS_FAVE_NAME_DESC + font 1 + textscale .8 + TYPE 4 + cvar "ui_favoriteName" + rect 265 126 150 20 + textalign 0 + textalignx -16 + textaligny 3 + forecolor 1 1 1 1 + backcolor .25 .25 .25 .5 + visible 1 + mouseenter + { + setitemcolor nameEntry backcolor .25 .25 .25 .75 + } + mouseexit + { + setitemcolor nameEntry backcolor .25 .25 .25 .5 + } + } +*/ + + + itemDef + { + name addressTitle + text @MENUS_ENTER_IP_ADDRESS + style 0 + decoration + font 2 + textscale .8 + rect 10 35 220 20 + textalign ITEM_ALIGN_CENTER + textalignx 110 + textaligny 3 + forecolor .549 .854 1 1 + visible 1 + } + + itemDef + { + name addressEntry + style 1 + maxPaintChars 21 + text " " + descText @MENUS_INPUT_IP_ADDRESS_OF_SERVER + font 2 + textscale .8 + TYPE 4 + maxchars 21 + cvar "ui_favoriteAddress" + rect 10 59 220 20 + textalign ITEM_ALIGN_LEFT + textalignx 42 + textaligny -2 + forecolor 1 1 1 1 + border 1 + bordercolor .79 .64 .22 1 + backcolor .25 .25 .25 .5 + visible 1 + mouseenter + { + setitemcolor addressEntry backcolor .25 .25 .25 .75 + } + + mouseexit + { + setitemcolor addressEntry backcolor .25 .25 .25 .5 + } + } + + itemDef + { + name doneText + text @MENUS_DONE + descText @MENUS_FINISHED_INPUTTING_INFO + type 1 + font 3 + textscale .8 + style WINDOW_STYLE_FILLED + rect 20 110 200 30 + textalign ITEM_ALIGN_CENTER + textalignx 100 + textaligny 5 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" + uiScript CreateFavorite + close createfavorite_popmenu + } + mouseEnter + { + show button_glow + setitemrect button_glow 10 113 240 26 + } + mouseExit + { + hide button_glow + } + } + } +} diff --git a/base/ui/jamp/createserver.menu b/base/ui/jamp/createserver.menu new file mode 100644 index 0000000..0b9c4e6 --- /dev/null +++ b/base/ui/jamp/createserver.menu @@ -0,0 +1,2011 @@ +//---------------------------------------------------------------------------------------------- +// +// CREATE SERVER MENU +// +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "createserver" + fullScreen 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 320 + descY 424 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onEsc + { + setcvartocvar password g_password + close createserver + open multiplayermenu + uiscript checkservername + } + + onOpen + { + setcvartocvar password g_password + uiScript loadArenas + hide accept_alt + show accept + hide back_alt + show back + hide grpmessage + uiScript setBotButtons + uiscript clampmaxplayers + uiscript checkservername + } + + //---------------------------------------------------------------------------------------------- + // + // MENU BACKGROUND + // + //---------------------------------------------------------------------------------------------- + + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + forecolor 1 1 1 1 + visible 1 + decoration + } + +///////////////////////////////////// +// Create Server title +///////////////////////////////////// + + itemDef + { + name create_title + group none + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_CREATE_A_NEW_MULTIPLAYER + rect 50 4 540 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 270 + textaligny -1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + +///////////////////////////////////// +// Blue backgrounds +///////////////////////////////////// + + itemDef + { + name setup_background + group none + style WINDOW_STYLE_FILLED + rect 2 50 200 192 + backcolor 0 0 .6 .5 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .6 1 + visible 1 + decoration + } + + + itemDef + { + name setup_background + group none + style WINDOW_STYLE_FILLED + rect 204 50 429 192 + backcolor 0 0 .6 .5 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .6 1 + visible 1 + decoration + } + + itemDef + { + name setup_background + group none + style WINDOW_STYLE_FILLED + rect 204 244 429 178 + backcolor 0 0 .6 .5 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .6 1 + visible 1 + decoration + } + +//--------------------------------------------- +// GAME TYPE SELECTION FIELD +//--------------------------------------------- + itemDef + { + name gametypefieldButton + group none + style WINDOW_STYLE_SHADER + rect 5 25 255 26 + background "gfx/menus/menu_blendbox3" + forecolor .615 .615 .956 1 + visible 0 + decoration + + } + + itemDef + { + name gametypefield + style 0 + ownerdraw UI_NETGAMETYPE + text @MENUS_GAME_TYPE + descText @MENUS_ALLOWS_YOU_TO_SELECT + textstyle 0 + rect 5 25 255 26 + textalign ITEM_ALIGN_LEFT + textalignx 10 + textaligny -3 + font 2 + textscale .9 + forecolor .615 .615 .956 1 + visible 1 + border 0 + bordercolor 1 1 1 1 + action + { + play "sound/interface/button1" + uiScript setBotButtons + } + mouseEnter + { + show gametypefieldButton + } + mouseExit + { + hide gametypefieldButton + } + } + +//--------------------------------------------- +// SERVER NAME ENTRY FIELD +//--------------------------------------------- + + itemDef + { + name hostnameButton + group none + style WINDOW_STYLE_SHADER + rect 220 22 470 26 + background "gfx/menus/menu_blendbox" + forecolor .615 .615 .956 1 + decoration + visible 0 + } + + itemDef + { + name expert + group grpsettings + type ITEM_TYPE_EDITFIELD + text @MENUS_SERVER_NAME_1 //@HOST_NAME + cvar "sv_hostname" + maxChars 32 + maxPaintChars 18 + rect 260 25 310 26 + textalign ITEM_ALIGN_LEFT + textalignx 10 + textaligny -3 + font 2 + textscale .9 + forecolor .615 .615 .956 1 + visible 1 + border 0 + bordercolor .79 .64 .22 1 + descText @MENUS_ENTER_THE_NAME_FOR_YOUR + mouseEnter + { + show hostnameButton + } + mouseExit + { + hide hostnameButton + uiscript checkservername + } + action + { + play "sound/interface/button1" + uiscript checkservername + } + } +//------------------------------------------------ +// +// GAME SETTINGS +// +//------------------------------------------------ + +// +// GENERAL RULES TITLE +// + + itemDef + { + name rules_title + group none + text @MENUS_GENERAL_RULES + rect 10 55 180 20 + font 3 + textscale 0.8 + textalign ITEM_ALIGN_CENTER + textalignx 90 + textaligny -2 + forecolor .549 .854 1 1 + visible 1 + decoration + } + +// +// MINIMUM BOTS/PLAYERS +// + itemDef + { + name settingsButton11 + style WINDOW_STYLE_SHADER + rect 10 75 180 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name expert + group grpsettings + type ITEM_TYPE_NUMERICFIELD + maxchars 4 + text @MENUS_PLAYERS + descText @MENUS_PLAYERS_INFO + cvar "bot_minplayers" + rect 10 75 180 20 + textalign ITEM_ALIGN_RIGHT + textalignx 145 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + cvarTest "ui_netGameType" + hideCvar + { + "4" + } + visible 1 + action + { + play "sound/interface/button1" + } + mouseEnter + { + show settingsButton11 + } + mouseExit + { + hide settingsButton11 + } + } + +// TEAM SWITCHING + itemDef + { + name expert + group grpsettings + type ITEM_TYPE_YESNO + text @MENUS_TEAM_SWITCHING + cvar "g_siegeTeamSwitch" + cvarTest "ui_netGameType" + showCvar + { + "4" + } + rect 10 75 180 20 + textalign ITEM_ALIGN_RIGHT + textalignx 145 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 1 + descText @MENUS_TEAM_SWITCHING_DESC + action + { + play "sound/interface/button1" + } + mouseEnter + { + show settingsButton11 + } + mouseExit + { + hide settingsButton11 + } + } + +// +// MAX PLAYERS +// + itemDef + { + name settingsButton1 + style WINDOW_STYLE_SHADER + rect 10 95 180 20 + background "gfx/menus/menu_blendbox" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name expert + group grpsettings + type ITEM_TYPE_NUMERICFIELD + text @MENUS_MAXIMUM_PLAYERS + cvar "sv_maxclients" + rect 10 95 180 20 + textalign ITEM_ALIGN_RIGHT + textalignx 145 + textaligny 0 + font 4 + textscale 1 + maxchars 6 + forecolor .615 .615 .956 1 + visible 1 + descText @MENUS_SETS_THE_MAXIMUM_NUMBER + action + { + play "sound/interface/button1" + } + mouseEnter + { + show settingsButton1 + } + mouseExit + { + hide settingsButton1 + uiscript clampmaxplayers + } + } + +// +// EVEN TEAMS +// + itemDef + { + name settingsButton10 + style WINDOW_STYLE_SHADER + rect 10 115 180 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name expert + group grpsettings + type ITEM_TYPE_YESNO + text @MENUS_EVEN_TEAMS + cvar "g_teamforcebalance" + cvarTest "ui_netGameType" + showCvar + { + "3" ; + "4" ; + "5" + } + rect 10 115 180 20 + textalign ITEM_ALIGN_RIGHT + textalignx 145 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 1 + descText @MENUS_THIS_OPTION_RE_BALANCES + action + { + play "sound/interface/button1" + } + mouseEnter + { + show settingsButton10 + } + mouseExit + { + hide settingsButton10 + } + } + +// +// END GAME RULES TITLE +// + + itemDef + { + name rules_title + group none + text @MENUS_ENDGAME_RULES + rect 10 155 180 20 + font 3 + textscale 0.8 + textalign ITEM_ALIGN_CENTER + textalignx 90 + textaligny -2 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + +// +// TIME LIMIT +// + itemDef + { + name settingsButton2 + style WINDOW_STYLE_SHADER + rect 10 175 180 20 + background "gfx/menus/menu_blendbox" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name normal + group grpsettings + type ITEM_TYPE_NUMERICFIELD + text @MENUS_TIME_LIMIT + cvar "timelimit" + rect 10 175 180 20 + textalign ITEM_ALIGN_RIGHT + textalignx 145 + textaligny 0 + font 4 + textscale 1 + maxchars 4 + forecolor .615 .615 .956 1 + visible 1 + descText @MENUS_THIS_VALUE_ADJUSTS_THE + cvarTest "ui_netGameType" + hideCvar + { + "1" ; + "2" ; + "4" + } + action + { + play "sound/interface/button1" + } + mouseEnter + { + show settingsButton2 + } + mouseExit + { + hide settingsButton2 + } + } + + +// +// KILL LIMIT / CAPTURE LIMIT /DUEL LIMIT +// + itemDef + { + name settingsButton3 + style WINDOW_STYLE_SHADER + rect 10 195 180 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name normal + group grpsettings + type ITEM_TYPE_NUMERICFIELD + text @MENUS_KILL_LIMIT + cvar "fraglimit" + cvarTest "ui_netGameType" + showCvar + { + "0" ; + "3" + } + rect 10 195 180 20 + textalign ITEM_ALIGN_RIGHT + textalignx 145 + textaligny 0 + font 4 + textscale 1 + maxchars 4 + forecolor .615 .615 .956 1 + visible 1 + descText @MENUS_ESTABLISH_THE_NUMBER + action + { + play "sound/interface/button1" + } + mouseEnter + { + show settingsButton3 + } + mouseExit + { + hide settingsButton3 + } + } + + itemDef + { + name normal + group grpsettings + type ITEM_TYPE_NUMERICFIELD + text @MENUS_CAPTURE_LIMIT + cvar "capturelimit" + cvarTest "ui_netGameType" + showCvar + { + "5" + } + rect 10 195 180 20 + textalign ITEM_ALIGN_RIGHT + textalignx 145 + textaligny 0 + font 4 + textscale 1 + maxchars 6 + forecolor .615 .615 .956 1 + visible 1 + descText @MENUS_THIS_IS_THE_NUMBER_OF + action + { + play "sound/interface/button1" + } + mouseEnter + { + show settingsButton3 + } + mouseExit + { + hide settingsButton3 + } + } + + itemDef + { + name settingsButton3b + style WINDOW_STYLE_SHADER + rect 10 215 180 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name normal + group grpsettings + type ITEM_TYPE_NUMERICFIELD + text @MENUS_DUEL_LIMIT + descText @MENUS_VALUE_ADJUSTS_THE_TOTAL + cvar "duel_fraglimit" + cvarTest "ui_netGameType" + hideCvar + { + "0" ; + "3" ; + "4" ; + "5" + } + rect 10 215 180 20 + textalign ITEM_ALIGN_RIGHT + textalignx 145 + textaligny 0 + font 4 + textscale 1 + maxchars 6 + forecolor .615 .615 .956 1 + visible 1 + action + { + play "sound/interface/button1" + } + mouseEnter + { + show settingsButton3b + } + mouseExit + { + hide settingsButton3b + } + } + +//--------------------------------------------- +// MAP LISTING +//--------------------------------------------- + + itemDef + { + name maplist + rect 2 244 200 178 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 120 + elementheight 20 + font 2 + textscale .75 + elementtype LISTBOX_TEXT + feeder FEEDER_ALLMAPS + textstyle 6 + textalign 3 + textaligny 2 + border 1 + bordercolor .79 .64 .22 .5 + forecolor .615 .615 .956 1 + backcolor 0 0 .5 .75 + outlinecolor .25 .464 .578 .5 + descText @MENUS_CHOOSE_YOUR_GAME + visible 1 + columns 1 2 196 172 + mouseEnter + { + setitemcolor maplist bordercolor .79 .64 .22 1 + } + mouseExit + { + setitemcolor maplist bordercolor .79 .64 .22 .5 + } + } + +//------------------------------------- +// BOT LIST FOR NON-TEAMGAMES +//------------------------------------- + itemDef + { + name bot1Button + style WINDOW_STYLE_SHADER + rect 207 55 196 20 + background "gfx/menus/menu_blendbox" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name humanbotfield + style 0 + text @MENUS_1_1 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_BLUETEAM1 + rect 207 55 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny -4 + font 2 + textscale 1 + forecolor 0.65 0.65 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1" + } + mouseEnter + { + show bot1Button + } + mouseExit + { + hide bot1Button + } + } + + itemDef + { + name bot2Button + style WINDOW_STYLE_SHADER + rect 207 75 196 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name humanbotfield + style 0 + text @MENUS_2_1 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_REDTEAM1 + rect 207 75 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny -4 + font 2 + textscale 1 + forecolor 1 0.2 0.2 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1" + } + mouseEnter + { + show bot2Button + } + mouseExit + { + hide bot2Button + } + } + + itemDef + { + name bot3Button + style WINDOW_STYLE_SHADER + rect 207 95 196 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name humanbotfield + style 0 + text @MENUS_3_1 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_BLUETEAM2 + rect 207 95 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny -4 + font 2 + textscale 1 + forecolor 0.65 0.65 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1" + } + mouseEnter + { + show bot3Button + } + mouseExit + { + hide bot3Button + } + } + + itemDef + { + name bot4Button + style WINDOW_STYLE_SHADER + rect 207 115 196 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name humanbotfield + style 0 + text @MENUS_4_1 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_REDTEAM2 + rect 207 115 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny -4 + font 2 + textscale 1 + forecolor 1 0.2 0.2 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1" + } + mouseEnter + { + show bot4Button + } + mouseExit + { + hide bot4Button + } + } + + itemDef + { + name bot5Button + style WINDOW_STYLE_SHADER + rect 207 135 196 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name humanbotfield + style 0 + text @MENUS_5_1 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_BLUETEAM3 + rect 207 135 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny -4 + font 2 + textscale 1 + forecolor 0.65 0.65 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1" + } + mouseEnter + { + show bot5Button + } + mouseExit + { + hide bot5Button + } + } + + itemDef + { + name bot6Button + style WINDOW_STYLE_SHADER + rect 207 155 196 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name humanbotfield + style 0 + text @MENUS_6_1 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_REDTEAM3 + rect 207 155 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny -4 + font 2 + textscale 1 + forecolor 1 0.2 0.2 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1" + } + mouseEnter + { + show bot6Button + } + mouseExit + { + hide bot6Button + } + } + + itemDef + { + name bot7Button + style WINDOW_STYLE_SHADER + rect 207 175 196 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + + } + + itemDef + { + name humanbotfield + style 0 + text @MENUS_7_1 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_BLUETEAM4 + rect 207 175 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny -4 + font 2 + textscale 1 + forecolor 0.65 0.65 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1" + } + mouseEnter + { + show bot7Button + } + mouseExit + { + hide bot7Button + } + } + + itemDef + { + name bot8Button + style WINDOW_STYLE_SHADER + rect 207 195 196 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name humanbotfield + style 0 + text @MENUS_8_1 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_REDTEAM4 + rect 207 195 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny -4 + font 2 + textscale 1 + forecolor 1 0.2 0.2 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1" + } + mouseEnter + { + show bot8Button + } + mouseExit + { + hide bot8Button + } + } + + itemDef + { + name bot9Button + style WINDOW_STYLE_SHADER + rect 435 55 196 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name humanbotfield + style 0 + text @MENUS_9_1 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_BLUETEAM5 + rect 435 55 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny -4 + font 2 + textscale 1 + forecolor 0.65 0.65 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1" + } + mouseEnter + { + show bot9Button + } + mouseExit + { + hide bot9Button + } + } + + itemDef + { + name bot10Button + style WINDOW_STYLE_SHADER + rect 435 75 196 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name humanbotfield + style 0 + text @MENUS_10 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_REDTEAM5 + rect 435 75 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 10 + textaligny -4 + font 2 + textscale 1 + forecolor 1 0.2 0.2 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1" + } + mouseEnter + { + show bot10Button + } + mouseExit + { + hide bot10Button + } + } + + itemDef + { + name bot11Button + style WINDOW_STYLE_SHADER + rect 435 95 196 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name humanbotfield + style 0 + text @MENUS_11 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_BLUETEAM6 + rect 435 95 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 10 + textaligny -4 + font 2 + textscale 1 + forecolor 0.65 0.65 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1" + } + mouseEnter + { + show bot11Button + } + mouseExit + { + hide bot11Button + } + } + + itemDef + { + name bot12Button + style WINDOW_STYLE_SHADER + rect 435 115 196 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name humanbotfield + style 0 + text @MENUS_12 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_REDTEAM6 + rect 435 115 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 10 + textaligny -4 + font 2 + textscale 1 + forecolor 1 0.2 0.2 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1" + } + mouseEnter + { + show bot12Button + } + mouseExit + { + hide bot12Button + } + } + + itemDef + { + name bot13Button + style WINDOW_STYLE_SHADER + rect 435 135 196 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name humanbotfield + style 0 + text @MENUS_13 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_BLUETEAM7 + rect 435 135 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 10 + textaligny -4 + font 2 + textscale 1 + forecolor 0.65 0.65 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1" + } + mouseEnter + { + show bot13Button + } + mouseExit + { + hide bot13Button + } + } + + itemDef + { + name bot14Button + style WINDOW_STYLE_SHADER + rect 435 155 196 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name humanbotfield + style 0 + text @MENUS_14 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_REDTEAM7 + rect 435 155 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 10 + textaligny -4 + font 2 + textscale 1 + forecolor 1 0.2 0.2 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1" + } + mouseEnter + { + show bot14Button + } + mouseExit + { + hide bot14Button + } + } + + itemDef + { + name bot15Button + style WINDOW_STYLE_SHADER + rect 435 175 196 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name humanbotfield + style 0 + text @MENUS_15 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_BLUETEAM8 + rect 435 175 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 10 + textaligny -4 + font 2 + textscale 1 + forecolor 0.65 0.65 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1" + } + mouseEnter + { + show bot15Button + } + mouseExit + { + hide bot15Button + } + } + + itemDef + { + name bot16Button + style WINDOW_STYLE_SHADER + rect 435 195 196 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name humanbotfield + style 0 + text @MENUS_16 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_REDTEAM8 + rect 435 195 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 10 + textaligny -4 + font 2 + textscale 1 + forecolor 1 0.2 0.2 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1" + } + mouseEnter + { + show bot16Button + } + mouseExit + { + hide bot16Button + } + } + + + itemDef + { + name humanbotnonfield + style 0 + text @MENUS_1_1 + descText @MENUS_ONLY_HUMANS + ownerdraw UI_BLUETEAM1 + rect 207 55 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny -4 + font 2 + textscale 1 + forecolor 0.65 0.65 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + } + + itemDef + { + name humanbotnonfield + style 0 + text @MENUS_2_1 + descText @MENUS_ONLY_HUMANS + ownerdraw UI_REDTEAM1 + rect 207 75 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny -4 + font 2 + textscale 1 + forecolor 1 0.2 0.2 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + } + + itemDef + { + name humanbotnonfield + style 0 + text @MENUS_3_1 + descText @MENUS_ONLY_HUMANS + ownerdraw UI_BLUETEAM2 + rect 207 95 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny -4 + font 2 + textscale 1 + forecolor 0.65 0.65 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + } + + itemDef + { + name humanbotnonfield + style 0 + text @MENUS_4_1 + descText @MENUS_ONLY_HUMANS + ownerdraw UI_REDTEAM2 + rect 207 115 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny -4 + font 2 + textscale 1 + forecolor 1 0.2 0.2 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + } + + itemDef + { + name humanbotnonfield + style 0 + text @MENUS_5_1 + descText @MENUS_ONLY_HUMANS + ownerdraw UI_BLUETEAM3 + rect 207 135 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny -4 + font 2 + textscale 1 + forecolor 0.65 0.65 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + } + + itemDef + { + name humanbotnonfield + style 0 + text @MENUS_6_1 + descText @MENUS_ONLY_HUMANS + ownerdraw UI_REDTEAM3 + rect 207 155 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny -4 + font 2 + textscale 1 + forecolor 1 0.2 0.2 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + } + + itemDef + { + name humanbotnonfield + style 0 + text @MENUS_7_1 + descText @MENUS_ONLY_HUMANS + ownerdraw UI_BLUETEAM4 + rect 207 175 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny -4 + font 2 + textscale 1 + forecolor 0.65 0.65 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + } + + itemDef + { + name humanbotnonfield + style 0 + text @MENUS_8_1 + descText @MENUS_ONLY_HUMANS + ownerdraw UI_REDTEAM4 + rect 207 195 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny -4 + font 2 + textscale 1 + forecolor 1 0.2 0.2 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + } + + itemDef + { + name humanbotnonfield + style 0 + text @MENUS_9_1 + descText @MENUS_ONLY_HUMANS + ownerdraw UI_BLUETEAM5 + rect 435 55 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny -4 + font 2 + textscale 1 + forecolor 0.65 0.65 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + } + + itemDef + { + name humanbotnonfield + style 0 + text @MENUS_10 + descText @MENUS_ONLY_HUMANS + ownerdraw UI_REDTEAM5 + rect 435 75 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 10 + textaligny -4 + font 2 + textscale 1 + forecolor 1 0.2 0.2 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + } + + itemDef + { + name humanbotnonfield + style 0 + text @MENUS_11 + descText @MENUS_ONLY_HUMANS + ownerdraw UI_BLUETEAM6 + rect 435 95 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 10 + textaligny -4 + font 2 + textscale 1 + forecolor 0.65 0.65 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + } + + itemDef + { + name humanbotnonfield + style 0 + text @MENUS_12 + descText @MENUS_ONLY_HUMANS + ownerdraw UI_REDTEAM6 + rect 435 115 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 10 + textaligny -4 + font 2 + textscale 1 + forecolor 1 0.2 0.2 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + } + + itemDef + { + name humanbotnonfield + style 0 + text @MENUS_13 + descText @MENUS_ONLY_HUMANS + ownerdraw UI_BLUETEAM7 + rect 435 135 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 10 + textaligny -4 + font 2 + textscale 1 + forecolor 0.65 0.65 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + } + + itemDef + { + name humanbotnonfield + style 0 + text @MENUS_14 + descText @MENUS_ONLY_HUMANS + ownerdraw UI_REDTEAM7 + rect 435 155 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 10 + textaligny -4 + font 2 + textscale 1 + forecolor 1 0.2 0.2 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + } + + itemDef + { + name humanbotnonfield + style 0 + text @MENUS_15 + descText @MENUS_ONLY_HUMANS + ownerdraw UI_BLUETEAM8 + rect 435 175 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 10 + textaligny -4 + font 2 + textscale 1 + forecolor 0.65 0.65 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + } + + itemDef + { + name humanbotnonfield + style 0 + text @MENUS_16 + descText @MENUS_ONLY_HUMANS + ownerdraw UI_REDTEAM8 + rect 435 195 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 10 + textaligny -4 + font 2 + textscale 1 + forecolor 1 0.2 0.2 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + } + +//--------------------------------------------- +// SKILL BUTTON +//--------------------------------------------- + + itemDef + { + name difficultyfieldButton + group none + style WINDOW_STYLE_SHADER + rect 410 215 175 24 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name difficultyfield + style 0 + ownerdraw UI_SKILL + text @MENUS_SKILL + descText @MENUS_ADJUSTS_THE_DIFFICULTY + rect 435 215 175 24 + textalign ITEM_ALIGN_LEFT + textalignx 10 + textaligny 2 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 1 + cvarTest "ui_netGameType" + hideCvar + { + "4" + } + action + { + play "sound/interface/button1" + } + mouseEnter + { + show difficultyfieldButton + } + mouseExit + { + hide difficultyfieldButton + } + } + +//--------------------------------------------- +// MAP SCREENSHOT +//--------------------------------------------- + + itemDef + { + name mappreview + style 0 + ownerdraw UI_STARTMAPCINEMATIC + //rect 7 57 190 141 + rect 314 254 210 158 + border 1 + bordercolor .265 .824 .886 .25 + visible 1 + } + + itemDef + { + name mappreview + style WINDOW_STYLE_FILLED + //rect 6 56 192 143 + rect 313 253 212 160 + border 1 + bordercolor .265 .824 .886 .25 + visible 1 + } + +//--------------------------------------------- +// BOTTOM BUTTONS OPTIONS +//--------------------------------------------- + itemDef + { + name backButton + group none + style WINDOW_STYLE_SHADER + rect 10 444 200 32 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name back + text @MENUS_BACK + descText @MENUS_EXIT_TO_MAIN_MENU + type ITEM_TYPE_BUTTON + font 3 + textscale 1.1 + textstyle 0 + style WINDOW_STYLE_FILLED + rect 10 444 200 32 + textalign 1 + textalignx 100 + textaligny 2 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1" + close createserver + open multiplayermenu + } + mouseenter + { + show backButton + } + mouseexit + { + hide backButton + } + } + + itemDef + { + name acceptButton + group none + style WINDOW_STYLE_SHADER + rect 430 444 200 32 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name accept + text @MENUS_BEGIN + descText @MENUS_START_SERVER + type ITEM_TYPE_BUTTON + font 3 + textscale 1.1 + textstyle 0 + style WINDOW_STYLE_FILLED + rect 430 444 200 32 + textalign 1 + textalignx 100 + textaligny 2 + forecolor 1 .682 0 1 + visible 1 + + action + { + play "sound/interface/button1" + uiScript setSiegeNoBots + uiScript weaponDisable //update the weapondisable cvar for duel or non-duel + uiScript StartServer + setcvartocvar password g_password + close createserver + } + + mouseenter + { + show acceptButton + } + mouseexit + { + hide acceptButton + } + } + + itemDef + { + name advancedButton + group none + style WINDOW_STYLE_SHADER + rect 220 444 200 32 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name advanced + text @MENUS_ADVANCED + descText @MENUS_UPDATE_ADVANCED_SERVER + type ITEM_TYPE_BUTTON + font 3 + textscale 1.1 + textstyle 0 + style WINDOW_STYLE_FILLED + rect 220 444 200 32 + textalign 1 + textalignx 100 + textaligny 2 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" + open advancedcreateserver + } + mouseenter + { + show advancedButton + } + mouseexit + { + hide advancedButton + } + } + } +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/base/ui/jamp/credits.menu b/base/ui/jamp/credits.menu new file mode 100644 index 0000000..734cac5 --- /dev/null +++ b/base/ui/jamp/credits.menu @@ -0,0 +1,441 @@ +// CREDITS MENU + +{ + menuDef + { + name "creditsMenu" + fullScreen MENU_TRUE // MENU_TRUE + rect 0 0 640 480 // Size and position of the menu + visible MENU_TRUE // Visible on open + focusColor 1 1 1 1 // Focus color for text and items + appearanceIncrement 75 // In miliseconds + descX 375 + descY 434 + descScale 1 + descColor .235 .882 .847 1 // Focus color for text and items + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + exec "music music/cairn_bay/impbasee_action" ; + setfocus newgamebutton ; + } + + onClose + { +// exec "music music/cairn_bay/impbasee_explore" ; + } + + onESC + { + play "sound/interface/button1.wav" ; + 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 15 0 60 480 + background "gfx/menus/menu3" // Frame + forecolor 1 1 1 1 + visible 1 + decoration + } + + + // The red saber glow on the left + itemDef + { + name saberglowr + group none + style WINDOW_STYLE_SHADER + rect 75 0 60 480 + background "gfx/menus/menu3r" // Frame + forecolor 1 1 1 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 -255 -50 600 600 + background "gfx/menus/menu2" // Frame + forecolor 0.7 0.7 0.7 1 + visible 1 + decoration + } + + // The red saber halo on the left + itemDef + { + name saberhalor + group none + style WINDOW_STYLE_SHADER + rect -195 35 600 600 + background "gfx/menus/menu2r" // Frame + forecolor 0.7 0.7 0.7 1 + visible 1 + decoration + } + + + //---------------------------------------------------------------------------------------------- + // + // TOP 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 + // appearance_slot 1 + decoration + } + + itemDef + { + name newgamebutton + group toprow + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 115 115 130 24 + text @MENUS_PLAY + descText @MENUS_START_PLAYING_NOW + font 3 + textscale 0.9 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + forecolor 0.65 0.65 1 1 + visible 1 + + mouseEnter + { + show newgamebutton_glow + } + mouseExit + { + hide newgamebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open multiplayermenu + } + } + + // 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 + // appearance_slot 1 + decoration + } + + itemDef + { + name loadgamebutton + group toprow + text @MENUS_RULES + descText @MENUS_GAME_DESCRIPTIONS + 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.65 0.65 1 1 + visible 1 + + mouseEnter + { + show loadgamebutton_glow + } + mouseExit + { + hide loadgamebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open rulesgameMenu + } + } + + // 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 + // appearance_slot 1 + decoration + } + + itemDef { + name controlsbutton + group toprow + text @MENUS_CONTROLS2 + descText @MENUS_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" ; + close all ; + open weaponSetupMenu + } + } + + // 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 + // appearance_slot 1 + decoration + } + + itemDef { + name setupbutton + group toprow + text @MENUS_SETUP + descText @MENUS_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.wav" ; + close all ; + open weaponSetupMenu + } + } + + 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 + // appearance_slot 1 + decoration + } + + itemDef + { + name exitgamebutton + group othermain + text @MENUS_EXIT + descText @MENUS_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 + } + } + + //---------------------------------------------------------------------------------------------- + // + // CREDITS FIELDS + // + //---------------------------------------------------------------------------------------------- + // Credits title + itemDef + { + name credits_title + group none + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_CREDITS + rect 150 145 450 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -1 + forecolor 1 1 1 1 + visible 1 + // appearance_slot 2 + decoration + } + + + itemDef + { + name confirm + group none + text @MENUS_TO_BE_DETERMINED + font 2 + textscale 1 + textstyle 3 + rect 320 220 110 20 + textalign ITEM_ALIGN_CENTER + textalignx 0 + textaligny 0 + decoration + forecolor .433 .703 .722 1 + visible 1 + // appearance_slot 2 + } + + } +} + + + + + + + + + + + diff --git a/base/ui/jamp/demo.menu b/base/ui/jamp/demo.menu new file mode 100644 index 0000000..05afe2c --- /dev/null +++ b/base/ui/jamp/demo.menu @@ -0,0 +1,553 @@ +//---------------------------------------------------------------------------------------------- +// MAIN MENU +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "demo" + fullScreen MENU_TRUE + rect 0 0 640 480 // Size and position of the menu + visible MENU_TRUE // Visible on open + focusColor 1 1 1 1 // Focus color for text and items + descX 320 + descY 424 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + uiScript LoadDemos ; + } + + onESC + { + play "sound/interface/menuroam.wav" ; + close all ; + open main ; + } + + + //---------------------------------------------------------------------------------------------- + // + // MENU BACKGROUND + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 107 8 428 112 + background "gfx/menus/jediacademy" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name left_frame + group lf_fr + style WINDOW_STYLE_SHADER + rect 0 50 320 160 + background "gfx/menus/menu_boxes_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name right_frame + group rt_fr + style WINDOW_STYLE_SHADER + rect 320 50 320 160 + background "gfx/menus/menu_boxes_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + //---------------------------------------------------------------------------------------------- + // + // TOP MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + + // Big button "NEW" + itemDef + { + name newgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 7 126 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 7 126 130 24 + text @MENUS_PLAY + descText @MENUS_START_PLAYING_NOW + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show newgamebutton_glow + } + mouseExit + { + hide newgamebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open multiplayermenu + } + } + + // Big button "PLAYER PROFILE" + itemDef + { + name profilebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 170 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name profilebutton + group toprow + text @MENUS_PROFILE + descText @MENUS_PROFILE_DESC + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 126 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show profilebutton_glow + } + mouseExit + { + hide profilebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open playerMenu + } + } + + // Big button "CONTROLS" + itemDef + { + name controlsbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 340 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name controlsbutton + group toprow + text @MENUS_CONTROLS2 + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show controlsbutton_glow + } + mouseExit + { + hide controlsbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open controlsMenu ; + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 502 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name setupbutton + group toprow + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 502 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show setupbutton_glow + } + mouseExit + { + hide setupbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open setup_menu + } + } + + + //---------------------------------------------------------------------------------------------- + // + // OTHER MAIN MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + // Credits hidden button + itemDef + { + name creditsbutton + group othermain +// text @CREDITS + descText @MENUS_SHOW_GAME_CREDITS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 200 144 256 256 + 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 + { + } + mouseExit + { + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open creditsMenu + } + } + + itemDef + { + name backButton + group none + style WINDOW_STYLE_SHADER + rect 10 444 200 32 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name back + text @MENUS_BACK + descText @MENUS_EXIT_TO_MAIN_MENU + type ITEM_TYPE_BUTTON + font 3 + textscale 1.1 + textstyle 0 + style WINDOW_STYLE_FILLED + rect 59 444 130 24 + textalign 1 + textalignx 65 + textaligny -1 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + close all ; + open multiplayermenu + } + mouseenter + { + show backButton + } + mouseexit + { + hide backButton + } + } + + // EXIT button in lower left corner + itemDef + { + name exitgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 255 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 @MENUS_EXIT + descText @MENUS_LEAVE_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 255 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show exitgamebutton_glow + } + mouseExit + { + hide exitgamebutton_glow + } + action + { + play "sound/weapons/saber/saberoff.mp3"; + close all ; + open quitMenu + } + } + +/////////////////////////////////// +// TITLE BAR +/////////////////////////////////// + + itemDef + { + name default_rulesheader + group rulesheader + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_DEMOS + rect 100 164 440 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -2 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + itemDef + { + name demolist + rect 40 183 560 200 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 120 + elementheight 20 + //background "gfx/menus/menu_box1" + font 3 + textscale .8 + elementtype LISTBOX_TEXT + feeder FEEDER_DEMOS + textalign 3 + textaligny 22 + border 1 + bordercolor 0 0 .6 1 + outlinecolor .5 .5 .5 .5 + forecolor .615 .615 .956 1 + backcolor 0 0 .6 .5 + visible 1 + doubleclick + { + play "sound/interface/button1.wav" ; + close demo ; + uiScript RunDemo + } + } + + itemDef + { + name beginButton + group none + style WINDOW_STYLE_SHADER + rect 245 390 150 30 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name begin + text @MENUS_PLAY_DEMO + descText @MENUS_BEGIN_PLAYING_THE_DEMO + type ITEM_TYPE_BUTTON + font 3 + textscale 1 + style WINDOW_STYLE_EMPTY + rect 245 390 150 30 + textalignx 75 // Center + textaligny 1 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + close demo ; + uiScript RunDemo + } + mouseEnter + { + show beginButton + } + mouseExit + { + hide beginButton + } + + } + } +} + + + + + + + + + + + + + diff --git a/base/ui/jamp/error.menu b/base/ui/jamp/error.menu new file mode 100644 index 0000000..00cb45c --- /dev/null +++ b/base/ui/jamp/error.menu @@ -0,0 +1,127 @@ +{ +\\ END OF GAME \\ + menuDef + { + name "error_popmenu" + visible 0 + fullscreen 0 + rect 158 80 320 320 + focusColor 1 1 1 1 + style WINDOW_STYLE_FILLED + border 1 + popup + outOfBoundsClick + + onClose + { + uiScript clearError + } + + onOpen + { + } + + onESC + { + close error_popmenu ; + open main + } + + + + itemDef + { + name window + rect 10 15 300 320 + style WINDOW_STYLE_FILLED + backcolor .015 .015 .229 1 + forecolor 0 0 0 1 + border 1 + bordercolor .988 .984 .121 1 + bordersize 5 + visible 1 + decoration + } + + itemDef + { + name errorinfo + rect 0 50 320 20 + text @MENUS_ERROR + textalign ITEM_ALIGN_CENTER + textstyle 6 + textscale 1 + textalignx 160 + forecolor 1 1 1 1 + visible 1 + decoration + } + itemDef + { + name errorinfo + rect 60 80 200 270 + type ITEM_TYPE_TEXT + style WINDOW_STYLE_FILLED + textstyle 3 + autowrapped + cvar "com_errorMessage" + textalign ITEM_ALIGN_CENTER + textalignx 90 + textscale 1 + forecolor 1 1 1 1 + visible 1 + decoration + } + +// BUTTON // +//-------------------------------------------------------------------------------- +// BUTTON +//-------------------------------------------------------------------------------- + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 118 295 85 26 + background "gfx/menus/menu_buttonback" forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name exit + group grpControlbutton + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 138 295 45 26 + text @MENUS_OKAY + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 22 + forecolor 1 .682 0 1 + + visible 1 + + action + { + play "sound/misc/nomenu.wav" + close error_popmenu + open main + } + + mouseEnter + { + show button_glow + } + mouseExit + { + hide button_glow + } + } + } +} + + + + diff --git a/base/ui/jamp/findplayer.menu b/base/ui/jamp/findplayer.menu new file mode 100644 index 0000000..cbc965e --- /dev/null +++ b/base/ui/jamp/findplayer.menu @@ -0,0 +1,351 @@ +//---------------------------------------------------------------------------------------------- +// +// FIND PLAYER POPUP MENU +// +// Screen for finding which server has a particular player +// +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "findplayer_popmenu" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 125 60 390 360 + focusColor 1 1 1 1 // Focus color for text and items + style 1 + border 1 + descX 320 + descY 400 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + popup + + onOpen + { + uiScript FindPlayer + setfocus nameField + } + onESC + { + play "sound/interface/esc.wav" ; + close findplayer_popmenu + } + + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name setup_background + group none + style WINDOW_STYLE_FILLED + rect 0 0 390 380 + backcolor 0 0 .35 .9 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .8 1 + visible 1 + decoration + } + + //--------------------------------------------- + // TITLE + //--------------------------------------------- + // title + itemDef + { + name screenTitle + text @MENUS_FIND_PLAYER + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + rect 25 5 340 20 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 170 + textaligny 1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + //--------------------------------------------- + // PLAYER NAME + //--------------------------------------------- + itemDef + { + name nameTitle + text @MENUS_NAME1 + style 0 + decoration + font 2 + textscale .9 + rect 25 30 90 25 + textalign ITEM_ALIGN_RIGHT + textalignx 85 + textaligny 0 + forecolor .549 .854 1 1 + visible 1 + } + + itemDef + { + name nameEntry + style 1 + descText @MENUS_INPUT_PLAYER_NAME + text @MENUS_BLANK_1 + maxchars 15 + font 2 + textscale .9 + type ITEM_TYPE_EDITFIELD + cvar "ui_findplayer" + rect 115 30 250 25 + textalign ITEM_ALIGN_LEFT + textalignx 5 + textaligny 0 + forecolor 1 1 1 1 + backcolor .25 .25 .25 .5 + border 1 + bordercolor .79 .64 .22 1 + visible 1 + action + { + ui_script FindPlayer + } + mouseenter + { + setitemcolor nameEntry backcolor .25 .25 .25 .75 + } + mouseexit + { + setitemcolor nameEntry backcolor .25 .25 .25 .5 + } + } + + + //--------------------------------------------- + // LIST OF SERVER NAMES + //--------------------------------------------- + itemDef + { + name serverNameList + rect 25 60 340 90 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 120 + elementheight 16 + font 2 + textscale .8 + backcolor 0 0 0 0.5 + outlinecolor .1 .1 .7 .5 + border 1 + bordersize 1 + bordercolor .5 .5 .5 1 + elementtype LISTBOX_TEXT + feeder FEEDER_FINDPLAYER + visible 1 + textaligny 12 + mouseenter + { + setitemcolor serverNameWindow bordercolor .7 0 0 1 + } + mouseexit + { + setitemcolor serverNameWindow bordercolor .5 .5 .5 1 + } + } + + itemDef + { + name serverNameWindow + rect 25 60 340 90 + style 1 + backcolor 0 0 0 0 + forecolor 0 0 0 0 + border 1 + bordersize 1 + bordercolor .5 .5 .5 1 + visible 1 + decoration + } + + itemDef + { + name serversFoundMsg + cvar "ui_playerServersFound" + type 0 + style 0 + background "gfx/menus/menu_blendbox" + rect 5 360 390 30 + font 3 + textscale .6 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny 1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + //--------------------------------------------- + // LIST OF SERVER STATUS INFORMATION + //--------------------------------------------- + itemDef + { + name serverInfoList + rect 25 160 340 150 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 120 + elementheight 16 + font 2 + textscale .7 + backcolor 0 0 0 1 + border 1 + bordersize 1 + bordercolor .5 .5 .5 1 + elementtype LISTBOX_TEXT + feeder FEEDER_SERVERSTATUS + notselectable + visible 1 + columns 4 2 40 120 + 40 40 180 + 90 40 180 + 135 40 180 + mouseenter + { + setitemcolor serverInfowindow bordercolor .7 0 0 1 + } + mouseexit + { + setitemcolor serverInfowindow bordercolor .5 .5 .5 1 + } + } + + itemDef + { + name serverInfowindow + rect 25 160 340 150 + style 1 + backcolor 0 0 0 0 + forecolor 0 0 0 0 + border 1 + bordersize 1 + bordercolor .5 .5 .5 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name search + text @MENUS_SEARCH_CAPS + descText @MENUS_SEARCH_DESC + type 1 + font 3 + textscale .8 + style WINDOW_STYLE_FILLED + rect 15 310 120 30 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny 5 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + ui_script FindPlayer + } + mouseEnter + { + show button_glow + setitemrect button_glow 15 312 150 26 + } + mouseExit + { + hide button_glow + } + } + + itemDef + { + name doneText + text @MENUS_DONE_CAPS + descText @MENUS_DONE_DESC + type 1 + font 3 + textscale .8 + style WINDOW_STYLE_FILLED + rect 135 310 120 30 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny 5 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + close findplayer_popmenu + } + mouseEnter + { + show button_glow + setitemrect button_glow 115 312 160 26 + } + mouseExit + { + hide button_glow + } + } + + itemDef + { + name join + text @MENUS_JOIN_CAPS + descText @MENUS_JOIN_PLAYER_DESC + type 1 + font 3 + textscale .8 + style WINDOW_STYLE_FILLED + rect 255 310 120 30 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny 5 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + ui_script FoundPlayerJoinServer + } + mouseEnter + { + show button_glow + setitemrect button_glow 235 312 160 26 + } + mouseExit + { + hide button_glow + } + } + } +} diff --git a/base/ui/jamp/gameinfo.txt b/base/ui/jamp/gameinfo.txt new file mode 100644 index 0000000..da21e40 --- /dev/null +++ b/base/ui/jamp/gameinfo.txt @@ -0,0 +1,35 @@ +// Game type info +// +// description, g_gametype enum +// +// 0 - GT_FFA, // free for all +// 1 - GT_HOLOCRON, // ffa with holocrons +// 2 - GT_JEDIMASTER, // jedi master +// 3 - GT_DUEL, // one on one tournament +// 4 - GT_POWERDUEL, +// 5 - GT_SINGLE_PLAYER, // single player ffa +// 6 - GT_TEAM, // team ffa +// 7 - GT_SIEGE, // siege +// 8 - GT_CTF, // capture the flag +// 9 - GT_CTY, // capture the ysalimari + +gametypes { + { "Free For All" 0 } + { "Duel" 3 } + { "Power Duel" 4 } + { "Team FFA" 6 } + { "Siege" 7 } + { "Capture the Flag" 8 } +} + + +joingametypes { + { "All" -1 } + { "Free For All" 0 } + { "Duel" 3 } + { "Power Duel" 4 } + { "Team FFA" 6 } + { "Siege" 7 } + { "Capture the Flag" 8 } +} + diff --git a/base/ui/jamp/ingame.menu b/base/ui/jamp/ingame.menu new file mode 100644 index 0000000..1d240a3 --- /dev/null +++ b/base/ui/jamp/ingame.menu @@ -0,0 +1,604 @@ +//------------------------------------------- +// INGAME MENU +// +// This is the main menu of the ingame menus. +// +//------------------------------------------- +{ + assetGlobalDef + { + font "ergoec" 18 // font + smallFont "ocr_a" 18 // font + bigFont "anewhope" 20 // font + small2Font "arialnb" 14 + cursor "cursor" // cursor + gradientBar "ui/assets/gradientbar2.tga" // gradient bar + itemFocusSound "sound/interface/menuroam.wav" // sound for item getting focus (via keyboard or mouse ) + + fadeClamp 1.0 // sets the fadeup alpha + fadeCycle 1 // how often fade happens in milliseconds + fadeAmount 0.1 // amount to adjust alpha per cycle + + shadowColor 0.1 0.1 0.1 0.25 // shadow color + precacheSound + { + "sound/interface/choose_color.wav" ; + "sound/interface/choose_head.wav" ; + "sound/interface/choose_torso.wav" ; + "sound/interface/choose_saber.wav" ; + "sound/interface/choose_hilt.wav" ; + "sound/interface/choose_blade.wav" ; + "sound/interface/transition.wav" ; + "sound/interface/esc.wav" ; + "sound/interface/sub_select.wav" ; + } + } + + menuDef + { + name "ingame" + visible 0 + fullScreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 0 0 640 480 + focusColor 1 1 1 1 + disableColor 0.5 0.5 0.5 1 + + onOpen + { + uiScript setBotButton + } + + + + + itemDef + { + name background_pic + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 32 + background "gfx/menus/menu_top_mp" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name aboutButton + group none + style WINDOW_STYLE_SHADER + rect 5 0 70 32 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemdef + { + name about + text @MENUS_ABOUT + rect 5 0 70 32 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + font 2 + textscale .8 + textstyle 3 + textalign ITEM_ALIGN_CENTER + textalignx 35 + textaligny 2 + forecolor 1 .682 0 1 + backcolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1.wav" ; + open ingame_about + } + mouseenter + { + show aboutButton + } + mouseexit + { + hide aboutButton + } + } + + itemDef + { + name joinButton + group none + style WINDOW_STYLE_SHADER + rect 75 0 70 32 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name join + text @MENUS_JOIN + cvarTest "ui_singleplayeractive" + disableCvar + { + "1" + } + rect 75 0 70 32 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + font 2 + textscale .8 + textstyle 3 + textalign ITEM_ALIGN_CENTER + textalignx 35 + textaligny 2 + forecolor 1 .682 0 1 + backcolor 0 0 0 0 + visible 1 + cvartest "g_gametype" + showcvar { "0", "1", "2", "3", "4", "5", "6", "8" } + action + { + play "sound/interface/button1.wav" ; + open ingame_join + } + mouseenter + { + show joinButton + } + mouseexit + { + hide joinButton + } + } + + itemDef + { + name class + text @MENUS_JOIN + type 1 + style WINDOW_STYLE_FILLED + rect 75 0 70 32 + font 2 + textscale .8 + textstyle 3 + textalign ITEM_ALIGN_CENTER + textalignx 35 + textaligny 2 + forecolor 1 .682 0 1 + backcolor 0 0 0 0 + visible 1 + cvartest "g_gametype" + showcvar { "7" } + action + { + play "sound/interface/button1.wav" ; + open ingame_siegeclass + } + mouseenter + { + show joinButton + } + mouseexit + { + hide joinButton + } + } + + itemDef + { + name playerButton + group none + style WINDOW_STYLE_SHADER + rect 145 0 70 32 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name player + text @MENUS_PROFILE_LOWER + type 1 + style WINDOW_STYLE_FILLED + rect 145 0 70 32 + font 2 + textscale .8 + textstyle 3 + textalign ITEM_ALIGN_CENTER + textalignx 35 + textaligny 2 + forecolor 1 .682 0 1 + backcolor 0 0 0 0 + visible 1 + cvartest "g_gametype" + showcvar { "0", "1", "2", "3", "4", "5", "6", "8" } + action + { + play "sound/interface/button1.wav" ; + open ingame_player + } + mouseenter + { + show playerButton + } + mouseexit + { + hide playerButton + } + } + + itemDef + { + name objectivesButton + group none + style WINDOW_STYLE_SHADER + rect 145 0 70 32 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name objectives + text @MENUS_OBJECTIVES + type 1 + style WINDOW_STYLE_FILLED + rect 145 0 70 32 + font 2 + textscale .8 + textstyle 3 + textalign ITEM_ALIGN_CENTER + textalignx 35 + textaligny 2 + forecolor 1 .682 0 1 + backcolor 0 0 0 0 + visible 1 + cvartest "g_gametype" + showcvar { "7" } + action + { + play "sound/interface/button1.wav" ; + open ingame_objectives + } + mouseenter + { + show objectivesButton + } + mouseexit + { + hide objectivesButton + } + } + + itemDef + { + name chatButton + group none + style WINDOW_STYLE_SHADER + rect 215 0 70 32 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name chat + text @MENUS_VOICE_CHAT + type 1 + style WINDOW_STYLE_FILLED + rect 215 0 70 32 + font 2 + textscale .8 + textstyle 3 + textalign ITEM_ALIGN_CENTER + textalignx 35 + textaligny 2 + forecolor 1 .682 0 1 + backcolor 0 0 0 0 + visible 1 + cvartest "g_gametype" + showcvar { "7" } + action + { + play "sound/interface/button1.wav" ; + open ingame_voicechat + } + mouseenter + { + show chatButton + } + mouseexit + { + hide chatButton + } + } + + itemDef + { + name addBotButton + group none + style WINDOW_STYLE_SHADER + rect 215 0 70 32 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + // do not change the name of this, the uiScript setBotButton looks + // for this item and turns it off if the gametype is siege + itemDef + { + name addBot + text @MENUS_ADD_BOT + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + rect 215 0 70 32 + font 2 + textscale .8 + textstyle 3 + textalign ITEM_ALIGN_CENTER + textalignx 35 + textaligny 2 + forecolor 1 .682 0 1 + backcolor 0 0 0 0 + visible 1 + cvarTest "sv_running" + disableCvar + { + "0" + } + action + { + play "sound/interface/button1.wav" ; + open ingame_addbot + } + mouseenter + { + show addBotButton + } + mouseexit + { + hide addBotButton + } + } + + itemDef + { + name controlsButton + group none + style WINDOW_STYLE_SHADER + rect 285 0 70 32 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name controls + text @MENUS_CONTROLS2 + type 1 + style WINDOW_STYLE_FILLED + rect 285 0 70 32 + font 2 + textscale .8 + textstyle 3 + textalign ITEM_ALIGN_CENTER + textalignx 35 + textaligny 2 + forecolor 1 .682 0 1 + backcolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1.wav" ; + open ingame_controls + } + mouseenter + { + show controlsButton + } + mouseexit + { + hide controlsButton + } + } + + itemDef + { + name setupButton + group none + style WINDOW_STYLE_SHADER + rect 355 0 70 32 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name setup + text @MENUS_SETUP_INGAME + type 1 + style WINDOW_STYLE_FILLED + rect 355 0 70 32 + font 2 + textscale .8 + textstyle 3 + textalign ITEM_ALIGN_CENTER + textalignx 35 + textaligny 2 + forecolor 1 .682 0 1 + backcolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1.wav" ; + open ingame_setup + } + mouseenter + { + show setupButton + } + mouseexit + { + hide setupButton + } + } + + itemDef + { + name voteButton + group none + style WINDOW_STYLE_SHADER + rect 425 0 70 32 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name vote + text @MENUS_VOTE + type 1 + style WINDOW_STYLE_FILLED + cvarTest "ui_singleplayeractive" + disableCvar + { + "1" + } + rect 425 0 70 32 + font 2 + textscale .8 + textstyle 3 + textalign ITEM_ALIGN_CENTER + textalignx 35 + textaligny 2 + forecolor 1 .682 0 1 + backcolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1.wav" ; + open ingame_vote + } + mouseenter + { + show voteButton + } + mouseexit + { + hide voteButton + } + } + + itemDef + { + name callvoteButton + group none + style WINDOW_STYLE_SHADER + rect 495 0 70 32 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name callvote + text @MENUS_CALL_VOTE + type 1 + style WINDOW_STYLE_FILLED + cvarTest "ui_singleplayeractive" + disableCvar + { + "1" + } + + rect 495 0 70 32 + font 2 + textscale .8 + textstyle 3 + textalign ITEM_ALIGN_CENTER + textalignx 35 + textaligny 2 + forecolor 1 .682 0 1 + backcolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1.wav" ; + open ingame_callvote + } + mouseenter + { + show callvoteButton + } + mouseexit + { + hide callvoteButton + } + } + + itemDef + { + name leaveButton + group none + style WINDOW_STYLE_SHADER + rect 565 0 70 32 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name leave + text @MENUS_EXIT_INGAME + type 1 + style WINDOW_STYLE_FILLED + rect 565 0 70 32 + font 2 + textscale .8 + textstyle 3 + textalign ITEM_ALIGN_CENTER + textalignx 35 + textaligny 2 + forecolor 1 .682 0 1 + backcolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1.wav" ; + open ingame_leave + } + mouseenter + { + show leaveButton + } + mouseexit + { + hide leaveButton + } + } + } +} diff --git a/base/ui/jamp/ingame_about.menu b/base/ui/jamp/ingame_about.menu new file mode 100644 index 0000000..23ce3cd --- /dev/null +++ b/base/ui/jamp/ingame_about.menu @@ -0,0 +1,300 @@ +//---------------------------------------------------------------------------------------------- +// INGAME ABOUT BOX +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "ingame_about" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 10 40 380 280 + focusColor 1 .75 0 1 + style 1 + border 1 + + + // Overall window backdrop + itemDef + { + name background_pic + group none + style WINDOW_STYLE_SHADER + rect 0 0 500 240 + background "gfx/menus/menu_box_ingame" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name about + rect 10 5 360 20 + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + type 4 + text @MENUS_HOST_NAME + cvar "ui_about_hostname" + maxPaintChars 40 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny -2 + font 2 + textscale 1 + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name about + rect 10 40 360 20 + style 0 + type 4 + text @MENUS_ADDRESS + cvar "cl_currentServerAddress" + maxPaintChars 24 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny -3 + forecolor 1 .682 0 1 + font 2 + textscale 1 + visible 1 + decoration + } + + itemDef + { + name about + rect 10 60 360 20 + type 4 + style 0 + text @MENUS_MAP_NAME + cvar "ui_about_mapname" + maxPaintChars 20 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny -3 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 1 + decoration + } + + itemDef + { + name about + rect 10 80 360 20 + style 0 + //type 4 + textalign ITEM_ALIGN_RIGHT + text @MENUS_TYPE + type ITEM_TYPE_MULTI + cvar "ui_about_gametype" + cvarFloatList + { + @MENUS_FREE_FOR_ALL 0 + @MENUS_HOLOCRON_FFA 1 + @MENUS_JEDI_MASTER 2 + @MENUS_DUEL 3 + @MENUS_POWERDUEL 4 + @MENUS_TEAM_FFA 6 + @MENUS_SIEGE 7 + @MENUS_CAPTURE_THE_FLAG 8 + @MENUS_CAPTURE_THE_YSALIMARI 9 + } + + textalignx 150 + textaligny -3 + font 2 + textscale 1 + forecolor 1 .682 0 1 + backcolor 0 0 .75 .25 + visible 1 + decoration + } + + + + itemDef + { + name about + rect 10 100 360 20 + type 4 + style 0 + text @MENUS_MAXIMUM_PLAYERS + cvar "ui_about_maxclients" + maxPaintChars 12 + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny -3 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 1 + decoration + } + + itemDef + { + name about + rect 10 120 360 20 + type 4 + style 0 + text @MENUS_TIME_LIMIT + maxPaintChars 12 + cvar "ui_about_timelimit" + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny -3 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 1 + decoration + } + + itemDef + { + name about + rect 10 140 360 20 + type 4 + style 0 + text @MENUS_FRAG_LIMIT + cvarTest "ui_about_gametype" + hideCvar + { + "1" ; + "2" ; + "3" ; + "4" ; + "7" ; + "8" ; + "9" ; + } + maxPaintChars 12 + cvar "ui_about_fraglimit" + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny -3 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 1 + decoration + } + + itemDef + { + name about + rect 10 140 360 20 + type 4 + style 0 + text @MENUS_CAPTURE_LIMIT + cvarTest "ui_about_gametype" + showCvar + { + "8" ; + "9" ; + } + maxPaintChars 12 + cvar "ui_about_capturelimit" + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny -3 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 1 + decoration + } + + itemDef + { + name about + rect 10 160 360 20 + type 4 + style 0 + text @MENUS_DUEL_LIMIT + cvarTest "ui_about_gametype" + showCvar + { + "3" ; + "4" ; + } + maxPaintChars 12 + cvar "ui_about_duellimit" + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny -3 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 1 + decoration + } + + itemDef + { + name about + rect 10 180 360 20 + type 4 + maxPaintChars 4 + style 0 + text @MENUS_MINIMUM_PLAYERS + cvar "ui_about_botminplayers" + textalign ITEM_ALIGN_RIGHT + textalignx 150 + textaligny -3 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 1 + decoration + } + + itemDef + { + name about + rect 10 210 360 20 + type 4 + style 0 + text @MENUS_VERSION + cvar version + maxPaintChars 40 + textalign ITEM_ALIGN_CENTER + textalignx 180 + textaligny 14 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 1 + decoration + } + + } +} + + + + + + + + + + + + + + + + + + + + diff --git a/base/ui/jamp/ingame_addbot.menu b/base/ui/jamp/ingame_addbot.menu new file mode 100644 index 0000000..ef917b5 --- /dev/null +++ b/base/ui/jamp/ingame_addbot.menu @@ -0,0 +1,153 @@ +//---------------------------------------------------------------------------------------------- +// ADDBOT MENU +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "ingame_addbot" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 105 40 240 128 + disableColor .5 .5 .5 1 + focusColor 1 1 1 1 // Focus color for text and items + style 1 + border 1 + + // Overall window backdrop + itemDef + { + name background_pic + group none + style WINDOW_STYLE_SHADER + rect 0 0 240 128 + background "gfx/menus/menu_box_ingame" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name gametypefield + style 0 + text @MENUS_NAME1 + ownerdraw UI_BOTNAME + rect 2 4 236 30 + textalign ITEM_ALIGN_RIGHT + textalignx 80 + textaligny 0 + font 2 + textscale .9 + forecolor 1 .682 0 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1.wav" ; + } + + } + + itemDef + { + name gametypefield + style 0 + text @MENUS_TEAM + ownerdraw UI_REDBLUE + rect 2 34 236 30 + textalign ITEM_ALIGN_RIGHT + textalignx 80 + textaligny 0 + font 2 + textscale .9 + forecolor 1 .682 0 1 + cvarTest "g_gametype" + disableCvar + { + "0" ; + "1" ; + "2" ; + "3" ; + "4" ; + "5" + } + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name gametypefield + style 0 + text @MENUS_SKILL1 + ownerdraw UI_BOTSKILL + rect 2 64 236 30 + textalign ITEM_ALIGN_RIGHT + textalignx 80 + textaligny 0 + font 2 + textscale .9 + forecolor 1 .682 0 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name okButton + group none + style WINDOW_STYLE_SHADER + rect 20 94 200 30 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name ok + text @MENUS_ADD_BOT + type 1 + style WINDOW_STYLE_EMPTY + rect 20 94 200 30 + textalignx 80 + textaligny 2 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + uiScript addBot ; + uiScript closeingame + } + mouseEnter + { + show okButton + } + mouseExit + { + hide okButton + } + } + } +} + + + + diff --git a/base/ui/jamp/ingame_callvote.menu b/base/ui/jamp/ingame_callvote.menu new file mode 100644 index 0000000..33a4821 --- /dev/null +++ b/base/ui/jamp/ingame_callvote.menu @@ -0,0 +1,647 @@ +\\ CALL VOTE MENU \\ +{ + menuDef + { + name "ingame_callvote" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 270 40 360 216 + focusColor 1 1 1 1 // Focus color for text and items + style 1 + border 1 + descX 450 + descY 210 + descScale 1 + descColor 1 .682 0 .8 // Focus color for text and items + descAlignment ITEM_ALIGN_CENTER + onopen + { + uiscript clearmouseover map ; + uiscript clearmouseover type ; + uiscript clearmouseover kick ; + hide doneButton ; + hide grpcallVote ; + show misc ; + uiScript loadArenas ; + setitemcolor grpbutton forecolor 1 .682 0 1 ; + setitemcolor miscbutton forecolor 1 1 1 1 ; + uiscript resetmaplist ; + } + + + // Overall window backdrop + itemDef + { + name background_pic + group none + style WINDOW_STYLE_SHADER + rect 0 0 360 210 + background "gfx/menus/menu_box_ingame" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name playerconfigtitle + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_CALL_FOR_VOTES + rect 10 5 340 15 + textalign ITEM_ALIGN_CENTER + textalignx 170 + textaligny -2 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + font 3 + textscale 0.8 + forecolor .549 .854 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + } + +/* itemDef + { + name setup_background + style WINDOW_STYLE_SHADER + rect 112 35 245 135 + background "gfx/menus/menu_box1" // Frame + forecolor 1 1 1 1 + visible 1 + decoration + } + */ + + + itemDef + { + name setup_background2 + group none + style WINDOW_STYLE_FILLED + rect 120 35 235 135 + backcolor 0 0 .6 .5 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .6 1 + visible 1 + decoration + } + + + // DONE GLOW, used for several buttons + + itemDef + { + name doneButton + group none + style WINDOW_STYLE_SHADER + rect 140 186 80 30 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + // BUTTONS // + itemDef + { + name misc_glow + group glows + style WINDOW_STYLE_SHADER + rect 0 35 120 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name miscbutton + group grpbutton + text @MENUS_GENERAL + descText @MENUS_ADJUST_GAME_OPTIONS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 10 35 103 30 + font 3 + textscale 0.9 + textalignx 100 + textaligny 5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + hide grpCallVote ; + show misc ; + setitemcolor grpbutton forecolor 1 .682 0 1 ; + setitemcolor miscbutton forecolor 1 1 1 1 ; + } + mouseEnter + { + show misc_glow + } + mouseExit + { + hide misc_glow + } + } + + + itemDef + { + name gametype_glow + group glows + style WINDOW_STYLE_SHADER + rect 0 65 120 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name gametypebutton + group grpbutton + text @MENUS_GAMETYPE + descText @MENUS_START_A_DIFFERENT_TYPE + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 10 65 103 30 + font 3 + textscale 0.9 + textalignx 100 + textaligny 5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + hide grpCallVote ; + show type ; + setitemcolor grpbutton forecolor 1 .682 0 1 ; + setitemcolor gametypebutton forecolor 1 1 1 1 ; + } + + forecolor .615 .615 .956 1 + + mouseEnter + { + show gametype_glow + } + mouseExit + { + hide gametype_glow + } + } + + itemDef + { + name changemap_glow + group glows + style WINDOW_STYLE_SHADER + rect 0 95 120 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name changemapbutton + text @MENUS_MAP + descText @MENUS_CHANGE_TO_A_NEW_MAP + group grpbutton + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 10 95 103 30 + font 3 + textscale 0.9 + textalignx 100 + textaligny 5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + hide grpCallVote ; + show maplist ; + show map ; + setitemcolor grpbutton forecolor 1 .682 0 1 ; + setitemcolor changemapbutton forecolor 1 1 1 1 ; + } + mouseEnter + { + show changemap_glow + } + mouseExit + { + hide changemap_glow + } + } + + itemDef + { + name kick_glow + group glows + style WINDOW_STYLE_SHADER + rect 0 125 120 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name kickbutton + group grpbutton + text @MENUS_KICK + descText @MENUS_BANISH_A_PLAYER_FROM + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 10 125 103 30 + font 3 + textscale 0.9 + textalignx 100 + textaligny 5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + hide grpCallVote ; + show kick ; + setitemcolor grpbutton forecolor 1 .682 0 1 ; + setitemcolor kickbutton forecolor 1 1 1 1 ; + } + mouseEnter + { + show kick_glow + } + mouseExit + { + hide kick_glow + } + } + + //---------------------------------- + // MISC VOTE PANEL + //---------------------------------- + itemDef + { + name misc + text @MENUS_RESTART_MAP + descText @MENUS_BEGIN_VOTE_TO_RESTART + group grpCallVote + rect 112 35 245 30 + type 1 + textalign ITEM_ALIGN_CENTER + textalignx 122 + textaligny 2 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + action + { + play "sound/interface/button1.wav" ; + exec "cmd callvote map_restart" ; + uiScript closeingame + } + } + + itemDef + { + name misc + group grpCallVote + text @MENUS_NEXT_MAP + descText @MENUS_BEGIN_VOTE_TO_CYCLE_TO + rect 112 65 245 30 + type 1 + textalign ITEM_ALIGN_CENTER + textalignx 122 + textaligny 2 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + action + { + play "sound/interface/button1.wav" ; + exec "cmd callvote nextmap" ; + uiScript closeingame + } + } + + itemDef + { + name misc + group grpCallVote + text @MENUS_WARMUP + descText @MENUS_BEGIN_VOTE_TO_DO_A_WARMUP + rect 112 95 245 30 + type 1 + textalign ITEM_ALIGN_CENTER + textalignx 122 + textaligny 2 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + action + { + play "sound/interface/button1.wav" ; + exec "cmd callvote g_doWarmup 1" ; + uiScript closeingame + } + } + + //---------------------------------- + // GAMETYPE VOTE PANEL + //---------------------------------- + itemDef + { + name type + group grpCallVote + text @MENUS_GAME_TYPE + descText @MENUS_SELECT_A_NEW_GAME_TYPE + style 0 + ownerdraw UI_NETGAMETYPE + rect 120 65 230 30 + textalign ITEM_ALIGN_RIGHT + textalignx 50 + textaligny 2 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + } + + + itemDef + { + name type + group grpCallVote + text @MENUS_OKAY + descText @MENUS_BEGIN_VOTE_FOR_THIS_GAME + type 1 + style WINDOW_STYLE_FILLED + rect 140 186 80 30 + textalign ITEM_ALIGN_CENTER + textalignx 40 + textaligny 0 + font 3 + textscale 1 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + uiScript voteGame ; + uiScript closeingame + } + mouseEnter + { + show doneButton + } + mouseExit + { + hide doneButton + } + } + + + //---------------------------------- + // MAP VOTE PANEL + //---------------------------------- + itemDef + { + name map + group grpCallVote + text @MENUS_NEW_MAP + ownerdraw UI_ALLMAPS_SELECTION + rect 120 35 230 20 + textalign 0 + textalignx 5 + textaligny -2 + font 2 + textscale .8 + forecolor .549 .854 1 1 + decoration + visible 0 + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name maplist + group grpCallVote + descText @MENUS_SELECT_DESIRED_MAP + rect 120 55 230 108 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 120 + elementheight 15 + elementtype LISTBOX_TEXT + feeder FEEDER_ALLMAPS + border 1 + bordercolor 1 .682 0 .8 + backcolor 0 0 .5 .25 + outlinecolor .1 .1 .7 .5 + visible 0 + font 2 + textaligny 12 + textscale .8 + forecolor .615 .615 .956 1 + mouseEnter + { + fadein message_arena ; + setitemcolor map bordercolor .7 0 0 1 + } + mouseExit + { + fadeout message_arena ; + setitemcolor map bordercolor .5 .5 .5 .5 + } + action + { + play "sound/interface/button1.wav" ; + + } + } + + + + itemDef + { + name map + text @MENUS_OKAY + descText @MENUS_BEGIN_VOTE_TO_SWITCH + type 1 + group grpCallVote + style WINDOW_STYLE_FILLED + rect 140 186 80 30 + textalign ITEM_ALIGN_CENTER + textalignx 40 + textaligny 0 + font 3 + textscale 1 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + uiScript voteMap ; + uiScript closeingame + } + mouseEnter + { + show doneButton + } + mouseExit + { + hide doneButton + } + } + + + //---------------------------------- + // KICK VOTE PANEL + //---------------------------------- + itemDef + { + name kick + group grpCallVote + text @MENUS_KICK_PLAYER + rect 120 35 230 20 + textalign 0 + textalignx 5 + textaligny -2 + font 2 + textscale .8 + forecolor .549 .854 1 1 + visible 0 + decoration + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + name kick + group grpCallVote + descText @MENUS_SELECT_PLAYER_TO_KICK + rect 120 55 230 108 + style WINDOW_STYLE_FILLED + type ITEM_TYPE_LISTBOX + elementwidth 120 + elementheight 15 + elementtype LISTBOX_TEXT + feeder FEEDER_PLAYER_LIST + border 1 + bordercolor 1 .682 0 .8 + backcolor 0 0 .5 .25 + outlinecolor .1 .1 .7 .5 + font 2 + textaligny 12 + textscale .8 + forecolor .615 .615 .956 1 + visible 0 + mouseEnter + { + fadein message_arena ; + setitemcolor kick bordercolor .7 0 0 1 + } + mouseExit + { + fadeout message_arena ; + setitemcolor kick bordercolor .5 .5 .5 1 + } + action + { + play "sound/interface/button1.wav" ; + } + + } + + itemDef + { + name kick + text @MENUS_OKAY + descText @MENUS_BEGIN_VOTE_TO_BANISH + type 1 + group grpCallVote + style WINDOW_STYLE_FILLED + rect 140 186 80 30 + textalign ITEM_ALIGN_CENTER + textalignx 40 + textaligny 0 + font 3 + textscale 1 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + uiScript voteKick ; + uiScript closeingame + } + mouseEnter + { + show doneButton + } + mouseExit + { + hide doneButton + } + } + + } +} + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/base/ui/jamp/ingame_controls.menu b/base/ui/jamp/ingame_controls.menu new file mode 100644 index 0000000..e655529 --- /dev/null +++ b/base/ui/jamp/ingame_controls.menu @@ -0,0 +1,3305 @@ +//----------------------------------------- +// SETUP MENU +//----------------------------------------- +{ + menuDef + { + name "ingame_controls" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 45 35 550 335 + focusColor 1 1 1 1 // Focus color for text and items + style 1 + border 1 + descX 305 + descY 360 + descScale 1 + descColor 1 .682 0 .8 // Focus color for text and items + descAlignment ITEM_ALIGN_CENTER + + onClose + { + hide highlights ; + uiScript saveControls + } + + onESC + { + play "sound/interface/button1.wav" ; + close ingame_controls + } + + onopen + { + hide grpControls ; + show look ; + uiScript loadControls + + show setup_background ; + show movecontrols ; + hide attackcontrols ; + hide weaponcontrols ; + hide forcecontrols ; + hide forcecontrols2 ; + hide joycontrols ; + hide othercontrols ; + setitemcolor movementcontrolbutton forecolor 1 1 1 1 ; + setitemcolor attackcontrolbutton forecolor 1 .682 0 1 + setitemcolor weaponscontrolbutton forecolor 1 .682 0 1 ; + setitemcolor forcecontrolbutton forecolor 1 .682 0 1 ; + setitemcolor forcecontrolbutton2 forecolor 1 .682 0 1 ; + setitemcolor mousejoystickcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor othercontrolbutton forecolor 1 .682 0 1 ; + } + + // Overall window backdrop + itemDef + { + name background_pic + group none + style WINDOW_STYLE_SHADER + rect 0 0 550 345 + background "gfx/menus/menu_box_ingame" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name playerconfigtitle + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_CONFIGURE_CONTROLS + rect 20 5 510 28 + textalign ITEM_ALIGN_CENTER + textalignx 255 + textaligny 2 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + font 3 + textscale 0.9 + forecolor .549 .854 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + } + +// movement button + itemDef + { + name movementcontrolbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 20 43 185 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name movementcontrolbutton + group none + text @MENUS_MOVEMENT + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 20 43 170 30 + font 3 + textscale 0.8 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 0.65 0.65 1 1 + visible 1 + descText @MENUS_CONFIGURE_MOVEMENT_KEYS + + mouseEnter + { + show movementcontrolbutton_glow + } + mouseExit + { + hide movementcontrolbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + show setup_background ; + show movecontrols ; + hide attackcontrols ; + hide weaponcontrols ; + hide forcecontrols ; + hide forcecontrols2 ; + hide joycontrols ; + hide othercontrols ; + setitemcolor movementcontrolbutton forecolor 1 1 1 1 ; + setitemcolor attackcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor weaponscontrolbutton forecolor 1 .682 0 1 ; + setitemcolor forcecontrolbutton forecolor 1 .682 0 1 ; + setitemcolor forcecontrolbutton2 forecolor 1 .682 0 1 ; + setitemcolor mousejoystickcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor othercontrolbutton forecolor 1 .682 0 1 ; + } + } + +// interaction button + itemDef + { + name attackcontrolbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 20 73 185 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name attackcontrolbutton + group none + text @MENUS_INTERACTION + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 20 73 170 30 + font 3 + textscale 0.8 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 0.65 0.65 1 1 + visible 1 + descText @MENUS_INTERACTION_DESC + + mouseEnter + { + show attackcontrolbutton_glow + } + mouseExit + { + hide attackcontrolbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + show setup_background ; + hide movecontrols ; + show attackcontrols ; + hide weaponcontrols ; + hide forcecontrols ; + hide forcecontrols2 ; + hide joycontrols ; + hide othercontrols ; + setitemcolor movementcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor attackcontrolbutton forecolor 1 1 1 1 ; + setitemcolor weaponscontrolbutton forecolor 1 .682 0 1 ; + setitemcolor forcecontrolbutton forecolor 1 .682 0 1 ; + setitemcolor forcecontrolbutton2 forecolor 1 .682 0 1 ; + setitemcolor mousejoystickcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor othercontrolbutton forecolor 1 .682 0 1 ; + } + } + + // Weapons button + itemDef + { + name weaponscontrolbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 20 103 185 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name weaponscontrolbutton + group none + text @MENUS_WEAPONS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 20 103 170 30 + font 3 + textscale 0.8 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_WEAPON_CONTROLS + + mouseEnter + { + show weaponscontrolbutton_glow + } + mouseExit + { + hide weaponscontrolbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + show setup_background ; + hide movecontrols ; + hide attackcontrols ; + show weaponcontrols ; + hide forcecontrols ; + hide forcecontrols2 ; + hide joycontrols ; + hide othercontrols ; + setitemcolor movementcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor attackcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor weaponscontrolbutton forecolor 1 1 1 1 ; + setitemcolor forcecontrolbutton forecolor 1 .682 0 1 ; + setitemcolor forcecontrolbutton2 forecolor 1 .682 0 1 ; + setitemcolor mousejoystickcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor othercontrolbutton forecolor 1 .682 0 1 ; + } + } + + // Force Powers button + itemDef + { + name forcecontrolbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 20 133 185 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name forcecontrolbutton + group none + text @MENUS_FORCE_POWERS_1 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 20 133 170 30 + font 3 + textscale 0.8 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 0.65 0.65 1 1 + visible 1 + descText @MENUS_CONFIGURE_FORCE_POWER + + mouseEnter + { + show forcecontrolbutton_glow + } + mouseExit + { + hide forcecontrolbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + show setup_background ; + hide movecontrols ; + hide attackcontrols ; + hide weaponcontrols ; + show forcecontrols ; + hide forcecontrols2 ; + hide joycontrols ; + hide othercontrols ; + setitemcolor movementcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor attackcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor weaponscontrolbutton forecolor 1 .682 0 1 ; + setitemcolor forcecontrolbutton forecolor 1 1 1 1 ; + setitemcolor forcecontrolbutton2 forecolor 1 .682 0 1 ; + setitemcolor mousejoystickcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor othercontrolbutton forecolor 1 .682 0 1 ; + } + } + + // Force Powers button 2 + itemDef + { + name forcecontrolbutton2_glow + group mods + style WINDOW_STYLE_SHADER + rect 20 163 185 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name forcecontrolbutton2 + text @MENUS_FORCE_POWERS_2 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 20 163 170 30 + font 3 + textscale 0.8 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 0.65 0.65 1 1 + visible 1 + descText @MENUS_CONFIGURE_FORCE_POWER + + mouseEnter + { + show forcecontrolbutton2_glow + } + mouseExit + { + hide forcecontrolbutton2_glow + } + action + { + play "sound/interface/button1.wav" ; + show setup_background ; + hide movecontrols ; + hide attackcontrols ; + hide weaponcontrols ; + hide forcecontrols ; + show forcecontrols2 ; + hide joycontrols ; + hide othercontrols ; + setitemcolor movementcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor attackcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor weaponscontrolbutton forecolor 1 .682 0 1 ; + setitemcolor forcecontrolbutton forecolor 1 .682 0 1 ; + setitemcolor forcecontrolbutton2 forecolor 1 1 1 1 ; + setitemcolor mousejoystickcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor othercontrolbutton forecolor 1 .682 0 1 ; + } + } + + // mousejoystick button + itemDef + { + name mousejoystickcontrolbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 20 193 185 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name mousejoystickcontrolbutton + group none + text @MENUS_MOUSE_JOYSTICK + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 20 193 170 30 + font 3 + textscale 0.8 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 0.65 0.65 1 1 + visible 1 + descText @MENUS_CONFIGURE_MOUSE_AND_JOYSTICK + + mouseEnter + { + show mousejoystickcontrolbutton_glow + } + mouseExit + { + hide mousejoystickcontrolbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + show setup_background ; + hide movecontrols ; + hide attackcontrols ; + hide weaponcontrols ; + hide forcecontrols ; + hide forcecontrols2 ; + show joycontrols ; + hide othercontrols ; + setitemcolor movementcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor attackcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor weaponscontrolbutton forecolor 1 .682 0 1 ; + setitemcolor forcecontrolbutton forecolor 1 .682 0 1 ; + setitemcolor forcecontrolbutton2 forecolor 1 .682 0 1 ; + setitemcolor mousejoystickcontrolbutton forecolor 1 1 1 1 ; + setitemcolor othercontrolbutton forecolor 1 .682 0 1 ; + } + } + + // other button + itemDef + { + name othercontrolbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 20 223 185 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name othercontrolbutton + group none + text @MENUS_OTHER + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 20 223 170 30 + font 3 + textscale 0.8 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 0.65 0.65 1 1 + visible 1 + descText @MENUS_CONFIGURE_ADDITIONAL + + mouseEnter + { + show othercontrolbutton_glow + } + mouseExit + { + hide othercontrolbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + show setup_background ; + hide movecontrols ; + hide attackcontrols ; + hide weaponcontrols ; + hide forcecontrols ; + hide forcecontrols2 ; + hide joycontrols ; + show othercontrols ; + setitemcolor movementcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor attackcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor weaponscontrolbutton forecolor 1 .682 0 1 ; + setitemcolor forcecontrolbutton forecolor 1 .682 0 1 ; + setitemcolor forcecontrolbutton2 forecolor 1 .682 0 1 ; + setitemcolor mousejoystickcontrolbutton forecolor 1 .682 0 1 ; + setitemcolor othercontrolbutton forecolor 1 1 1 1 ; + } + } + + itemDef + { + name setup_background + group none + style WINDOW_STYLE_FILLED + rect 210 41 320 280 + backcolor 0 0 .6 .5 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .6 1 + visible 0 + decoration + } + + + //---------------------------------------------------------------------------------------------- + // + // HIGHLIGHT BARS + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name highlight1 + group highlights + style WINDOW_STYLE_SHADER + rect 220 40 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 220 60 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 220 80 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 220 100 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 220 120 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 220 140 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 220 160 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 220 180 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 220 200 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 220 220 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 220 240 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 220 260 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight13 + group highlights + style WINDOW_STYLE_SHADER + rect 220 280 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight14 + group highlights + style WINDOW_STYLE_SHADER + rect 220 300 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// +// MOVEMENT BINDING +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name movement1 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_WALK_FORWARD + cvar "+forward" + rect 220 61 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 1 + descText @MENUS_MOVES_PLAYER_FORWARD + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight2 + show keybindstatus + } + mouseexit + { + hide highlight2 + hide keybindstatus + } + } + + + itemDef + { + name movement2 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_BACKPEDAL + cvar "+back" + rect 220 81 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 2 + descText @MENUS_MOVES_PLAYER_BACKWARD + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight3 + show keybindstatus + } + mouseexit + { + hide highlight3 + hide keybindstatus + } + } + + itemDef + { + name movement3 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_TURN_LEFT + cvar "+left" + rect 220 101 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 3 + descText @MENUS_ROTATES_PLAYER_LEFT + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight4 + show keybindstatus + } + mouseexit + { + hide highlight4 + hide keybindstatus + } + } + + itemDef + { + name movement4 + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_TURN_RIGHT + cvar "+right" + rect 220 121 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 4 + descText @MENUS_ROTATES_PLAYER_RIGHT + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight5 + show keybindstatus + } + mouseexit + { + hide highlight5 + hide keybindstatus + } + } + + itemDef + { + name movement + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_RUN_WALK + cvar "+speed" + rect 220 141 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 5 + descText @MENUS_IF_HELD_TOGGLES_BETWEEN + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight6 + show keybindstatus + } + mouseexit + { + hide highlight6 + hide keybindstatus + } + } + + itemDef + { + name movement + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_STEP_LEFT + cvar "+moveleft" + rect 220 161 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 6 + descText @MENUS_STEPS_PLAYER_TO_THE_LEFT + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight7 + show keybindstatus + } + mouseexit + { + hide highlight7 + hide keybindstatus + } + } + + itemDef + { + name movement + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_STEP_RIGHT + cvar "+moveright" + rect 220 181 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 7 + descText @MENUS_STEPS_PLAYER_TO_THE_RIGHT + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight8 + show keybindstatus + } + mouseexit + { + hide highlight8 + hide keybindstatus + } + } + + itemDef + { + name movement + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_SIDESTEP + cvar "+strafe" + rect 220 201 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 8 + descText @MENUS_HELD_ALLOWS_PLAYER_TO + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight9 + show keybindstatus + } + mouseexit + { + hide highlight9 + hide keybindstatus + } + } + + itemDef + { + name movement + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_UP_JUMP + cvar "+moveup" + rect 220 221 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 9 + descText @MENUS_MAKES_PLAYER_JUMP_IF + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight10 + show keybindstatus + } + mouseexit + { + hide highlight10 + hide keybindstatus + } + } + + itemDef + { + name movement + group movecontrols + type ITEM_TYPE_BIND + text @MENUS_DOWN_CROUCH + cvar "+movedown" + rect 220 241 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 10 + descText @MENUS_MAKES_PLAYER_CROUCH_TO + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight11 + show keybindstatus + } + mouseexit + { + hide highlight11 + hide keybindstatus + } + } + +//---------------------------------------------------------------------------------------------- +// +// INTERACTION BINDING +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name attacklook1 + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_ATTACK + cvar "+attack" + rect 220 61 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 1 + descText @MENUS_ATTACKS_WITH_READIED + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight2 + show keybindstatus + } + mouseexit + { + hide highlight2 + hide keybindstatus + } + } + + itemDef + { + name attacklook2 + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_ALT_ATTACK + cvar "+altattack" + rect 220 81 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 2 + descText @MENUS_ATTACKS_WITH_ALTERNATE + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight3 + show keybindstatus + } + mouseexit + { + hide highlight3 + hide keybindstatus + } + } + + itemDef + { + name attacksaber + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_LIGHTSABER_STYLE + cvar "saberAttackCycle" + rect 220 101 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 2 + descText @MENUS_CYCLES_BETWEEN_AVAILABLE + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight4 + show keybindstatus + } + mouseexit + { + hide highlight4 + hide keybindstatus + } + } + + itemDef + { + name attacksaber + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_USE + cvar "+use" + rect 220 141 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 3 + descText @MENUS_ACTIVATES_WORLD_DEVICES + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight6 + show keybindstatus + } + mouseexit + { + hide highlight6 + hide keybindstatus + } + } + + itemDef + { + name attacksaber + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_USE_HELD_ITEM + cvar "+button2" + rect 220 161 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 6 + descText @MENUS_ACTIVATES_CURRENTLY_SELECTED + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight7 + show keybindstatus + } + mouseexit + { + hide highlight7 + hide keybindstatus + } + } + + itemDef + { + name attacksaber + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_INV_NEXT + cvar "invnext" + rect 220 181 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 6 + descText @MENUS_SELECTS_NEXT_USABLE_ITEM + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight8 + show keybindstatus + } + mouseexit + { + hide highlight8 + hide keybindstatus + } + } + + itemDef + { + name attacksaber + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_INV_PREV + cvar "invprev" + rect 220 201 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 6 + descText @MENUS_SELECTS_PREVIOUS_USABLE + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight9 + show keybindstatus + } + mouseexit + { + hide highlight9 + hide keybindstatus + } + } + + itemDef + { + name attacklook4 + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_LOOK_UP + cvar "+lookup" + rect 220 221 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 4 + descText @MENUS_TILTS_VIEW_UPWARDS + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight10 + show keybindstatus + } + mouseexit + { + hide highlight10 + hide keybindstatus + } + } + + + itemDef + { + name attacklook5 + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_LOOK_DOWN + cvar "+lookdown" + rect 220 241 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 5 + descText @MENUS_TILTS_VIEW_DOWNWARDS + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight11 + show keybindstatus + } + mouseexit + { + hide highlight11 + hide keybindstatus + } + } + + itemDef + { + name attacklook + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_MOUSE_LOOK + cvar "+mlook" + rect 220 261 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 6 + descText @MENUS_IF_HELD_ALLOWS_PLAYER + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight12 + show keybindstatus + } + mouseexit + { + hide highlight12 + hide keybindstatus + } + } + + itemDef + { + name attacklook + group attackcontrols + type ITEM_TYPE_BIND + text @MENUS_CENTER_VIEW + cvar "centerview" + rect 220 281 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 6 + descText @MENUS_RETURNS_VIEW_TO_HORIZONTAL + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight13 + show keybindstatus + } + mouseexit + { + hide highlight13 + hide keybindstatus + } + } + +//---------------------------------------------------------------------------------------------- +// +// WEAPON BINDING +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name weapon1 + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_MELEE_LIGHTSABER + cvar "weapon 1" + rect 220 41 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_READIES_LIGHTSABER + action + { + play "sound/interface/button1.wav" ; + } + mouseenter + { + show highlight1 + show keybindstatus + } + mouseexit + { + hide highlight1 + hide keybindstatus + } + } + + itemDef + { + name weapon3 + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_PISTOL + cvar "weapon 2" + rect 220 61 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_READIES_THE_BLASTER_PISTOL + action + { + play "sound/interface/button1.wav" ; + } + mouseenter + { + show highlight2 + show keybindstatus + } + mouseexit + { + hide highlight2 + hide keybindstatus + } + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_RIFLE + cvar "weapon 3" + rect 220 81 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_READIES_THE_E_11_BLASTER + action + { + play "sound/interface/button1.wav" ; + } + mouseenter + { + show highlight3 + show keybindstatus + } + mouseexit + { + hide highlight3 + hide keybindstatus + } + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_DISRUPTOR_RIFLE + cvar "weapon 4" + rect 220 101 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_READIES_THE_TENLOSS_DXR_6 + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight4 + show keybindstatus + } + mouseexit + { + hide highlight4 + hide keybindstatus + } + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_BOWCASTER + cvar "weapon 5" + rect 220 121 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_READIES_THE_WOOKIEE_BOWCASTER + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight5 + show keybindstatus + } + mouseexit + { + hide highlight5 + hide keybindstatus + } + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_HEAVY_REPEATER + cvar "weapon 6" + rect 220 141 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_READIES_THE_IMPERIAL + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight6 + show keybindstatus + } + mouseexit + { + hide highlight6 + hide keybindstatus + } + } + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_DEMP_2 + cvar "weapon 7" + rect 220 161 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 7 + descText @MENUS_READIES_THE_DEMP2_GUN + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight7 + show keybindstatus + } + mouseexit + { + hide highlight7 + hide keybindstatus + } + } + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_FLECHETTE + cvar "weapon 8" + rect 220 181 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 8 + descText @MENUS_READIES_THE_GOLAN_ARMS + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight8 + show keybindstatus + } + mouseexit + { + hide keybindstatus + hide highlight8 + } + } + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_CONC_RIFLE_SETUP + cvar "weapon 13" + rect 220 201 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 8 + descText @MENUS_READIES_THE_CONC_RIFLE + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight9 + show keybindstatus + } + mouseexit + { + hide keybindstatus + hide highlight9 + } + } + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_MERR_SONN + cvar "weapon 9" + rect 220 221 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 9 + descText @MENUS_READIES_THE_MERR_SONN + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight10 + show keybindstatus + } + mouseexit + { + hide highlight10 + hide keybindstatus + } + } + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_THROWABLE_WEAPONS + cvar "weapon 10" + rect 220 241 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 10 + descText @MENUS_TOGGLES_BETWEEN_DETONATORS + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight11 + show keybindstatus + } + mouseexit + { + hide highlight11 + hide keybindstatus + } + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_NEXT_WEAPON + cvar "weapnext" + rect 220 261 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 10 + descText @MENUS_SELECTS_THE_NEXT_WEAPON + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight12 + show keybindstatus + } + mouseexit + { + hide highlight12 + hide keybindstatus + } + } + + itemDef + { + name none + group weaponcontrols + type ITEM_TYPE_BIND + text @MENUS_PREVIOUS_WEAPON + cvar "weapprev" + rect 220 281 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 11 + descText @MENUS_SELECTS_THE_PREVIOUS + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight13 + show keybindstatus + } + mouseexit + { + hide highlight13 + hide keybindstatus + } + } + +//---------------------------------------------------------------------------------------------- +// +// FORCE BINDING +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name force2 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_PUSH + cvar "force_throw" + rect 220 61 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 1 + descText @MENUS_USES_FORCE_PUSH_ABILITY + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight2 + show keybindstatus + } + mouseexit + { + hide highlight2 + hide keybindstatus + } + } + + itemDef + { + name force3 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_PULL + cvar "force_pull" + rect 220 81 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 2 + descText @MENUS_USES_FORCE_PULL_ABILITY + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight3 + show keybindstatus + } + mouseexit + { + hide highlight3 + hide keybindstatus + } + } + + itemDef + { + name force4 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_SPEED + cvar "force_speed" + rect 220 101 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 3 + descText @MENUS_USES_FORCE_SPEED_ABILITY + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight4 + show keybindstatus + } + mouseexit + { + hide highlight4 + hide keybindstatus + } + } + + itemDef + { + name force4 + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_SIGHT + cvar "force_seeing" + rect 220 121 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_USES_FORCE_SIGHT_ABILITY + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight5 + show keybindstatus + } + mouseexit + { + hide highlight5 + hide keybindstatus + } + } + + itemDef + { + name forcekeys + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_USE_FORCE_POWER + cvar "+useforce" + rect 220 161 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 8 + descText @MENUS_USES_CURRENTLY_SELECTED + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight7 + show keybindstatus + } + mouseexit + { + hide highlight7 + hide keybindstatus + } + } + + itemDef + { + name forcekeys + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_NEXT + cvar "forcenext" + rect 220 181 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 9 + descText @MENUS_SELECTS_NEXT_AVAILABLE + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight8 + show keybindstatus + } + mouseexit + { + hide highlight8 + hide keybindstatus + } + } + + itemDef + { + name forcekeys + group forcecontrols + type ITEM_TYPE_BIND + text @MENUS_FORCE_PREVIOUS + cvar "forceprev" + rect 220 201 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 10 + descText @MENUS_SELECTS_PREVIOUS_AVAILABLE + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight9 + show keybindstatus + } + mouseexit + { + hide highlight9 + hide keybindstatus + } + } + +//---------------------------------------------------------------------------------------------- +// +// FORCE BINDING 2 (light / dark) +// +//---------------------------------------------------------------------------------------------- + itemDef + { + group forcecontrols2 + type ITEM_TYPE_BIND + text @MENUS_FORCE_PROTECT + cvar "force_protect" + rect 220 61 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_USES_FORCE_PROTECT_ABILITY + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight2 + show keybindstatus + } + mouseexit + { + hide highlight2 + hide keybindstatus + } + } + + itemDef + { + group forcecontrols2 + type ITEM_TYPE_BIND + text @MENUS_FORCE_ABSORB + cvar "force_absorb" + rect 220 81 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_USE_ABSORB + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight3 + show keybindstatus + } + mouseexit + { + hide highlight3 + hide keybindstatus + } + } + + itemDef + { + group forcecontrols2 + type ITEM_TYPE_BIND + text @MENUS_FORCE_HEAL + cvar "force_heal" + rect 220 101 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_USES_FORCE_HEAL_ABILITY + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight4 + show keybindstatus + } + mouseexit + { + hide highlight4 + hide keybindstatus + } + } + + itemDef + { + group forcecontrols2 + type ITEM_TYPE_BIND + text @MENUS_HEAL_OTHER + cvar "force_healother" + rect 220 121 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_USE_HEAL_OTHER + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight5 + show keybindstatus + } + mouseexit + { + hide highlight5 + hide keybindstatus + } + } + + itemDef + { + group forcecontrols2 + type ITEM_TYPE_BIND + text @MENUS_FORCE_MINDTRICK + cvar "force_distract" + rect 220 141 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_USES_MIND_TRICK_ABILITY + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight6 + show keybindstatus + } + mouseexit + { + hide highlight6 + hide keybindstatus + } + } + + itemDef + { + group forcecontrols2 + type ITEM_TYPE_BIND + text @MENUS_FORCE_GRIP + cvar "+force_grip" + rect 220 161 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_USES_GRIP_FORCE_ABILITY + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight7 + show keybindstatus + } + mouseexit + { + hide highlight7 + hide keybindstatus + } + } + + itemDef + { + group forcecontrols2 + type ITEM_TYPE_BIND + text @MENUS_FORCE_DRAIN + cvar "+force_drain" + rect 220 181 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_USES_DRAIN_FORCE_ABILITY + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight8 + show keybindstatus + } + mouseexit + { + hide highlight8 + hide keybindstatus + } + } + + itemDef + { + group forcecontrols2 + type ITEM_TYPE_BIND + text @MENUS_FORCE_LIGHTNING + cvar "+force_lightning" + rect 220 201 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_USES_LIGHTNING_FORCE + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight9 + show keybindstatus + } + mouseexit + { + hide highlight9 + hide keybindstatus + } + } + + itemDef + { + group forcecontrols2 + type ITEM_TYPE_BIND + text @MENUS_RAGE + cvar "force_rage" + rect 220 221 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_USES_RAGE_FORCE_ABILITY + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight10 + show keybindstatus + } + mouseexit + { + hide highlight10 + hide keybindstatus + } + } + + itemDef + { + group forcecontrols2 + type ITEM_TYPE_BIND + text @MENUS_TEAM_POWER + cvar "force_forcepowerother" + rect 220 241 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_USES_TEAM_POWER_FORCE + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight11 + show keybindstatus + } + mouseexit + { + hide highlight11 + hide keybindstatus + } + } + +//---------------------------------------------------------------------------------------------- +// +// MOUSE/JOYSTICK KEY BINDING +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name mousejoystick1 + group joycontrols + type ITEM_TYPE_YESNO + text @MENUS_FREE_LOOK + cvar "cl_freelook" + rect 220 61 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 1 + descText @MENUS_TOGGLE_TO_ALLOW_PLAYER + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight2 + } + + mouseexit + { + hide highlight2 + } + } + + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_SLIDER + text @MENUS_SENSITIVITY + cvarfloat "sensitivity" 5 2 30 + rect 220 81 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 2 + descText @MENUS_ADJUSTS_CHARACTER_REACTION + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight3 + } + mouseexit + { + hide highlight3 + } + } + + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_YESNO + text @MENUS_INVERT_PITCH + cvar "ui_mousePitch" + rect 220 101 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 3 + descText @MENUS_TOGGLE_TO_TILT_VIEW_IN + + action { uiScript update ui_mousePitch ; + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight4 + } + + mouseexit + { + hide highlight4 + } + } + + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_YESNO + text @MENUS_SMOOTH_MOUSE + cvar "m_filter" + rect 220 121 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 4 + descText @MENUS_WHEN_TURNED_ON_MOUSE + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight5 + } + + mouseexit + { + hide highlight5 + } + } + +// +// Not shown +// + itemDef + { + name mousejoystick + group joycontrols_obsolete + type ITEM_TYPE_YESNO + text @MENUS_FORCE_FEEDBACK + cvar "use_ff" + rect 220 141 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 5 + descText @MENUS_WHEN_TURNED_ON_GAME + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight6 + } + + mouseexit + { + hide highlight6 + } + } + + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_YESNO + text @MENUS_ENABLE_JOYSTICK + cvar "in_joystick" + rect 220 181 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 6 + descText @MENUS_TURNED_ON_GAME_SEARCHES + action + { + play "sound/interface/button1.wav" ; + exec in_restart + } + + mouseenter + { + show highlight8 + } + + mouseexit + { + hide highlight8 + } + } + + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_SLIDER + text @MENUS_JOYSTICK_THRESHOLD + cvarfloat "joy_threshold" .15 .05 .75 + rect 220 201 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 7 + descText @MENUS_ADJUSTS_THE_SIZE_OF_THE + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight9 + } + mouseexit + { + hide highlight9 + } + } + + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_YESNO + text @MENUS_X_AXIS_AS_BUTTONS + cvar "joy_xbutton" + rect 220 221 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 8 + descText @MENUS_WHEN_OFF_HORIZONTAL + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight10 + } + + mouseexit + { + hide highlight10 + } + } + + itemDef + { + name mousejoystick + group joycontrols + type ITEM_TYPE_YESNO + text @MENUS_Y_AXIS_AS_BUTTONS + cvar "joy_ybutton" + rect 220 241 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 9 + descText @MENUS_WHEN_OFF_VERTICAL_STICK + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight11 + } + + mouseexit + { + hide highlight11 + } + } + +//---------------------------------------------------------------------------------------------- +// +// OTHER +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name other1 + group othercontrols + type ITEM_TYPE_YESNO + text @MENUS_ALWAYS_RUN + cvar "cl_run" + rect 220 41 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 1 + descText @MENUS_WHEN_ON_PLAYER_ALWAYS + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight1 + } + + mouseexit + { + hide highlight1 + } + } + + itemDef + { + name other2 + group othercontrols + type ITEM_TYPE_MULTI + text @MENUS_AUTO_SWITCH + cvar "cg_autoswitch" + cvarFloatList + { + @MENUS_DON_T_SWITCH 0 + @MENUS_BEST_SAFE_WEAPON 1 + @MENUS_ALWAYS_BEST_WEAPON 2 + } + rect 220 61 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 1 + descText @MENUS_CHOOSE_WHETHER_TO_SWITCH + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight2 + } + + mouseexit + { + hide highlight2 + } + + } + + itemDef + { + group othercontrols + type ITEM_TYPE_BIND + text @MENUS_CHAT + cvar "messagemode" + rect 220 81 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_SENDS_A_CHAT_MESSAGE + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight3 + show keybindstatus + } + mouseexit + { + hide highlight3 + hide keybindstatus + } + } + + itemDef + { + group othercontrols + type ITEM_TYPE_BIND + text @MENUS_TEAM_CHAT + cvar "messagemode2" + rect 220 101 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_A_CHAT_MESSAGE_TO_EVERYONE + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight4 + show keybindstatus + } + mouseexit + { + hide highlight4 + hide keybindstatus + } + } + + itemDef + { + group othercontrols + type ITEM_TYPE_BIND + text @MENUS_VC_CONTROLS + cvar "voicechat" + rect 220 121 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_VC_CONTROLS_DESC + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight5 + show keybindstatus + } + mouseexit + { + hide highlight5 + hide keybindstatus + } + } + + itemDef + { + group othercontrols + type ITEM_TYPE_BIND + text @MENUS_AUTOMAP + cvar "automap_toggle" + rect 220 141 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_AUTOMAP_DESC + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight6 + show keybindstatus + } + mouseexit + { + hide highlight6 + hide keybindstatus + } + } + + itemDef + { + group othercontrols + type ITEM_TYPE_BIND + text @MENUS_SHOW_SCORES + cvar "+scores" + rect 220 161 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_SHOWS_THE_CURRENT_SCORES + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight7 + show keybindstatus + } + mouseexit + { + hide highlight7 + hide keybindstatus + } + } + + itemDef + { + group othercontrols + type ITEM_TYPE_BIND + text @MENUS_SABER_CHALLENGE + cvar "engage_duel" + rect 220 181 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_INFO_SABER_CHALLENGE + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight8 + show keybindstatus + } + mouseexit + { + hide highlight8 + hide keybindstatus + } + } + + itemDef + { + group othercontrols + type ITEM_TYPE_BIND + text @MENUS_3RD_PERSON + cvar "cg_thirdperson !" + rect 220 201 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_CHANGES_VIEW_BETWEEN + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight9 + show keybindstatus + } + mouseexit + { + hide highlight9 + hide keybindstatus + } + } + + itemDef + { + group othercontrols + type ITEM_TYPE_BIND + text @MENUS_TAUNT + cvar "taunt" + rect 220 221 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_TAUNT_DESC + + mouseenter + { + show highlight10 + show keybindstatus + } + mouseexit + { + hide highlight10 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + group othercontrols + type ITEM_TYPE_BIND + text @MENUS_BOW + cvar "bow" + rect 220 241 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_BOW_DESC + + mouseenter + { + show highlight11 + show keybindstatus + } + mouseexit + { + hide highlight11 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + group othercontrols + type ITEM_TYPE_BIND + text @MENUS_MEDITATE + cvar "meditate" + rect 220 261 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_MEDITATE_DESC + + mouseenter + { + show highlight12 + show keybindstatus + } + mouseexit + { + hide highlight12 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + group othercontrols + type ITEM_TYPE_BIND + text @MENUS_FLOURISH + cvar "flourish" + rect 220 281 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_FLOURISH_DESC + + mouseenter + { + show highlight13 + show keybindstatus + } + mouseexit + { + hide highlight13 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + itemDef + { + group othercontrols + type ITEM_TYPE_BIND + text @MENUS_GLOAT + cvar "gloat" + rect 220 301 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 151 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_GLOAT_DESC + + mouseenter + { + show highlight14 + show keybindstatus + } + mouseexit + { + hide highlight14 + hide keybindstatus + } + action + { + play "sound/interface/button1.wav" ; + } + } + + //---------------------------------------------------------------------------------------------- + // + // Text + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name keyBindStatus + group none + ownerdraw 250 // UI_KEYBINDSTATUS + text "" + rect 275 322 0 0 + textStyle 0 + font 2 + textscale .7 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 .9 + visible 0 + decoration + } + + itemDef + { + name slider_message + group none + text @MENUS_MOVE_THE_SLIDER_TO_INCREASE + rect 275 310 0 0 + textStyle 0 + font 2 + textscale .7 + textalign ITEM_ALIGN_CENTER + visible 0 + decoration + } + + itemDef + { + name yesno_message + group none + text @MENUS_CLICK_ON_FIELD_TO_TOGGLE + rect 275 310 0 0 + textStyle 0 + font 2 + textscale .7 + textalign ITEM_ALIGN_CENTER + visible 0 + decoration + } + + itemDef + { + name multi_message + group none + text @MENUS_CLICK_ON_FIELD_TO_CHANGE + rect 275 310 0 0 + textStyle 0 + font 2 + textscale .7 + textalign ITEM_ALIGN_CENTER + visible 0 + decoration + } + } +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/base/ui/jamp/ingame_join.menu b/base/ui/jamp/ingame_join.menu new file mode 100644 index 0000000..bb87ff8 --- /dev/null +++ b/base/ui/jamp/ingame_join.menu @@ -0,0 +1,393 @@ +//---------------------------------------------------------------------------------------------- +// INGAME_JOIN MENU +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "ingame_join" + visible 1 + fullScreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 55 40 128 128 + focusColor 1 1 1 1 + + + // Overall window backdrop + itemDef + { + name background_pic + group none + style WINDOW_STYLE_SHADER + rect 0 0 128 128 + background "gfx/menus/menu_box_ingame" + forecolor 1 1 1 1 + visible 1 + decoration + } + + //--------------------------------- + // BUTTONS + //--------------------------------- + itemDef + { + name button1 + group buttons + style WINDOW_STYLE_SHADER + rect 2 4 124 30 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name button2 + group buttons + style WINDOW_STYLE_SHADER + rect 2 34 124 30 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name button3 + group buttons + style WINDOW_STYLE_SHADER + rect 2 64 124 30 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name button4 + group buttons + style WINDOW_STYLE_SHADER + rect 2 94 124 30 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + //--------------------------------- + // TEAM JOIN + //--------------------------------- + itemDef + { + name team + text @MENUS_AUTO_TEAM + type 1 + style 2 + rect 2 4 124 30 + textalign ITEM_ALIGN_CENTER + textalignx 62 + textaligny 0 + font 2 + textscale 1 + forecolor 1 .682 0 1 + cvarTest "ui_about_gametype" + showCvar + { + "6" ; + "7" ; + "8" ; + "9" + } + visible 1 + action + { + play "sound/interface/button1.wav" ; + exec "cmd team free" ; + uiScript closeingame + } + mouseEnter + { + show button1 + } + mouseExit + { + hide button1 + } + } + + itemDef + { + name team + text @MENUS_TEAM_RED + type 1 + style 2 + rect 2 34 124 30 + textalign ITEM_ALIGN_CENTER + textalignx 62 + textaligny 0 + font 2 + textscale 1 + forecolor 1 0.2 0.2 1 + cvarTest "ui_about_gametype" + showCvar + { + "6" ; + "7" ; + "8" ; + "9" + } + visible 1 + action + { + play "sound/interface/button1.wav" ; + exec "cmd team red" ; + uiScript closeingame + } + mouseEnter + { + show button2 + } + mouseExit + { + hide button2 + } + } + + itemDef + { + name team + text @MENUS_TEAM_BLUE + type 1 + style 2 + rect 2 64 124 30 + textalign ITEM_ALIGN_CENTER + textalignx 62 + textaligny 0 + font 2 + textscale 1 + forecolor 0.2 0.2 1 1 + cvarTest "ui_about_gametype" + showCvar + { + "6" ; + "7" ; + "8" ; + "9" + } + visible 1 + action + { + play "sound/interface/button1.wav" ; + exec "cmd team blue" ; + uiScript closeingame + } + mouseEnter + { + show button3 + } + mouseExit + { + hide button3 + } + } + + + itemDef + { + name team + text @MP_INGAME_JOIN_SINGLE + type 1 + style 2 + rect 2 34 124 30 + textalign ITEM_ALIGN_CENTER + textalignx 62 + textaligny 0 + font 2 + textscale 1 + forecolor 1 0.2 0.2 1 + cvarTest "ui_about_gametype" + showCvar + { + "4" + } + visible 1 + action + { + play "sound/interface/button1.wav" ; + exec "cmd duelteam single" ; + uiScript closeingame + } + mouseEnter + { + show button2 + } + mouseExit + { + hide button2 + } + } + + itemDef + { + name team + text @MP_INGAME_JOIN_DOUBLE + type 1 + style 2 + rect 2 64 124 30 + textalign ITEM_ALIGN_CENTER + textalignx 62 + textaligny 0 + font 2 + textscale 1 + forecolor 0.2 0.2 1 1 + cvarTest "ui_about_gametype" + showCvar + { + "4" + } + visible 1 + action + { + play "sound/interface/button1.wav" ; + exec "cmd duelteam double" ; + uiScript closeingame + } + mouseEnter + { + show button3 + } + mouseExit + { + hide button3 + } + } + + + itemDef + { + name team + text @MENUS_SPECTATE + type 1 + style 2 + rect 2 94 124 30 + textalign ITEM_ALIGN_CENTER + textalignx 62 + textaligny 0 + font 2 + textscale 1 + forecolor 1 .682 0 1 + cvarTest "ui_about_gametype" + showCvar + { + "6" ; + "7" ; + "8" ; + "9" + } + visible 1 + action + { + play "sound/interface/button1.wav" ; + exec "cmd team s" ; + uiScript closeingame + } + mouseEnter + { + show button4 + } + mouseExit + { + hide button4 + } + } + + //--------------------------------- + // NON-TEAM JOIN + //--------------------------------- + itemDef + { + name team + text @MENUS_JOIN_GAME + type 1 + style 2 + rect 2 34 124 30 + textalign ITEM_ALIGN_CENTER + textalignx 62 + textaligny 0 + font 2 + textscale 1 + forecolor 1 .682 0 1 + cvarTest "ui_about_gametype" + hideCvar + { + "4" ; + "6" ; + "7" ; + "8" ; + "9" + } + visible 1 + action + { + play "sound/interface/button1.wav" ; + exec "cmd team free" ; + uiScript closeingame + } + mouseEnter + { + show button2 + } + mouseExit + { + hide button2 + } + } + + itemDef + { + name team + text @MENUS_SPECTATE + type 1 + style 2 + rect 2 64 124 30 + textalign ITEM_ALIGN_CENTER + textalignx 62 + textaligny 0 + font 2 + textscale 1 + forecolor 1 .682 0 1 + cvarTest "ui_about_gametype" + hideCvar + { + "4" ; + "6" ; + "7" ; + "8" ; + "9" + } + visible 1 + action + { + play "sound/interface/button1.wav" ; + exec "cmd team s" ; + uiScript closeingame + } + mouseEnter + { + show button3 + } + mouseExit + { + hide button3 + } + } + + } +} + + + + + diff --git a/base/ui/jamp/ingame_leave.menu b/base/ui/jamp/ingame_leave.menu new file mode 100644 index 0000000..ec49a31 --- /dev/null +++ b/base/ui/jamp/ingame_leave.menu @@ -0,0 +1,423 @@ +\\ INGAME_LEAVE MENU \\ +{ + menuDef + { + name "ingame_leave" + visible 1 + fullScreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 474 40 156 100 + focusColor 1 1 1 1 + onOpen + { + show grpMenu ; + hide grpConfirm + } + + // Overall window backdrop + itemDef + { + name background_pic + group none + style WINDOW_STYLE_SHADER + rect 0 0 156 100 + background "gfx/menus/menu_box_ingame" + forecolor 1 1 1 1 + visible 1 + decoration + } + +// +// BUTTONS +// + itemDef + { + name button1 + group buttons + style WINDOW_STYLE_SHADER + rect 2 5 152 30 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name button2 + group buttons + style WINDOW_STYLE_SHADER + rect 2 35 152 30 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name button3 + group buttons + style WINDOW_STYLE_SHADER + rect 2 65 152 30 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + +// +// LEAVE MAIN MENU +// + + itemDef + { + name leave + text @MENUS_MAIN_MENU + group grpMenu + style 2 + type 1 + rect 2 5 152 30 + textalign ITEM_ALIGN_CENTER + textalignx 76 + textaligny 0 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + hide grpMenu ; + hide buttons ; + show leaveConfirm + } + mouseEnter + { + show button1 + } + mouseExit + { + hide button1 + } + } + + itemDef + { + name leave + group grpMenu + text @MENUS_RESTART_MATCH + style 2 + type 1 + rect 2 35 152 30 + textalign ITEM_ALIGN_CENTER + textalignx 76 + textaligny 0 + font 2 + textscale 1 + forecolor 1 .682 0 1 + cvarTest "cl_currentServerAddress" + enableCvar + { + "Localhost" + } + visible 1 + action + { + play "sound/interface/button1.wav" ; + hide grpMenu ; + hide buttons ; + show restartConfirm + } + mouseEnter + { + show button2 + } + mouseExit + { + hide button2 + } + } + + itemDef + { + name leave + group grpMenu + type 1 + text @MENUS_QUIT_PROGRAM + style 2 + rect 2 65 152 30 + textalign ITEM_ALIGN_CENTER + textalignx 76 + textaligny 0 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + hide grpMenu ; + hide buttons ; + show quitConfirm + } + mouseEnter + { + show button3 + } + mouseExit + { + hide button3 + } + } + + + + //--------------------------------- + // MAIN MENU CONFIRM + //--------------------------------- + itemDef + { + name leaveConfirm + text @MENUS_GO_TO_MAIN_MENU + group grpConfirm + style 2 + rect 2 5 152 30 + textalign ITEM_ALIGN_CENTER + textalignx 76 + textaligny 0 + font 2 + textscale 1 + forecolor .549 .854 1 1 + decoration + visible 1 + } + + + itemDef + { + name leaveConfirm + text @MENUS_YES + group grpConfirm + type 1 + style 0 + rect 2 35 152 30 + textalign ITEM_ALIGN_CENTER + textalignx 76 + textaligny 0 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + uiScript leave + } + mouseEnter + { + show button2 + } + mouseExit + { + hide button2 + } + } + + itemDef + { + name leaveConfirm + text @MENUS_NO + group grpConfirm + type 1 + style 0 + rect 2 65 152 30 + textalign ITEM_ALIGN_CENTER + textalignx 76 + textaligny 0 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + hide grpConfirm ; + show grpMenu + } + mouseEnter + { + show button3 + } + mouseExit + { + hide button3 + } + } + + + + //--------------------------------- + // RESTART MATCH CONFIRM + //--------------------------------- + itemDef + { + name restartConfirm + text @MENUS_MATCH + group grpConfirm + style 2 + rect 2 5 152 30 + textalign ITEM_ALIGN_CENTER + textalignx 76 + textaligny 0 + font 2 + textscale 1 + forecolor .549 .854 1 1 + decoration + visible 1 + } + + itemDef + { + name restartConfirm + text @MENUS_YES + group grpConfirm + type 1 + rect 2 35 152 30 + textalign ITEM_ALIGN_CENTER + textalignx 76 + textaligny 0 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + exec "map_restart" ; + close ingame_leave ; + close ingame + } + mouseEnter + { + show button2 + } + mouseExit + { + hide button2 + } + } + + itemDef + { + name restartConfirm + text @MENUS_NO + group grpConfirm + type 1 + rect 2 65 152 30 + textalign ITEM_ALIGN_CENTER + textalignx 76 + textaligny 0 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + hide grpConfirm ; + show grpMenu + } + mouseEnter + { + show button3 + } + mouseExit + { + hide button3 + } + } + + + + //--------------------------------- + // RESTART MATCH CONFIRM + //--------------------------------- + itemDef + { + name quitConfirm + text @MENUS_PROGRAM + group grpConfirm + style 2 + rect 2 5 152 30 + textalign ITEM_ALIGN_CENTER + textalignx 76 + textaligny 0 + font 2 + textscale 1 + forecolor .549 .854 1 1 + decoration + visible 1 + } + + itemDef + { + name quitConfirm + text @MENUS_YES + group grpConfirm + type 1 + rect 2 35 152 30 + textalign ITEM_ALIGN_CENTER + textalignx 76 + textaligny 0 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + uiScript quit + } + mouseEnter + { + show button2 + } + mouseExit + { + hide button2 + } + } + + itemDef + { + name quitConfirm + text @MENUS_NO + group grpConfirm + type 1 + rect 2 65 152 30 + textalign ITEM_ALIGN_CENTER + textalignx 76 + textaligny 0 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + hide grpConfirm ; + show grpMenu + } + mouseEnter + { + show button3 + } + mouseExit + { + hide button3 + } + } + } +} \ No newline at end of file diff --git a/base/ui/jamp/ingame_objectives.menu b/base/ui/jamp/ingame_objectives.menu new file mode 100644 index 0000000..27578cc --- /dev/null +++ b/base/ui/jamp/ingame_objectives.menu @@ -0,0 +1,2957 @@ +//-------------------------------------------------------------------------------------------- +// uberScreen +// +// cvars used (at least some of them +// siege_mapgraphic - the name of the graphic of the map of the level. +// currentObjButton - the menu item name of currently active objective button +// +// +//-------------------------------------------------------------------------------------------- +{ + menuDef + { + name "ingame_objectives" + fullScreen 0 + visible 0 + outOfBoundsClick + rect 0 0 322 480 + focusColor 1 1 1 1 + style 1 + descX 480 + descY 434 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + backColor .05 .07 .09 1 + disablecolor 1 1 1 1 + onClose + { + hide minidesc + hide obj_longdesc + hide objective_pic + } + + onOpen + { + setcvar currentObjButton "null" + + exec "siegeCompleteCvarUpdate" + + setitembackground mappic "*siege_mapgraphic" + + // set tm_icon fields to the proper mapicon graphic + uiscript updatesiegeobjgraphics + + setitembackground team1_symbol "*team1_icon" + setitembackground team2_symbol "*team2_icon" + setitembackground team1_button "*team1_icon" + setitembackground team2_button "*team2_icon" + + // Enable team buttons, in case they'd been shut off + disable team_button 0 + disable autoteam 0 + disable team1_button 0 + disable team2_button 0 + + // and reset colors + setitemcolor team1_button backcolor .8 .48 0 1 + setitemcolor team2_button backcolor .8 .48 0 1 + setitemcolor team1name forecolor .8 .48 0 1 + setitemcolor team2name forecolor .8 .48 0 1 + setitemcolor team1_count forecolor .8 .48 0 1 + setitemcolor team2_count forecolor .8 .48 0 1 + setitemcolor siegeclassconfigtitle forecolor 1 .68 0 1 + + // + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + setitemcolor team1obj_buttons forecolor 1 1 1 1 + setitemcolor team2obj_buttons forecolor 1 1 1 1 + + disable team1obj_buttons 0 + disable team2obj_buttons 0 + + hide grey_button + hide class_portrait + + // Show first objective + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and stext of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_1 + + //change text of long desc + setitemtext obj_longdesc "*team1_objective1_longdesc" + + // change objective pic + setitembackground objective_pic "*team1_objective1_gfx" + + // Show new map icon + setitembackground tm1_icon1 "*team1_objective1_mapicon" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + + setitemcolor mapicons bordercolor 0 0 0 0 + + // Disable current button and give it a border + setitemcolor team1obj1_button bordercolor 1 1 1 1 + setitemcolor team1obj1_button backcolor 1 0 0 1 + + // Set the map icon picture to the updated graphic + uiscript setsiegeobjbuttons tm1_icon1 team1_objective1_mapicon team1_objective1_litmapicon + } + + onESC + { + hide minidesc + hide fulldesc + hide objective_pic + close all; + } + + //------------------------------------------------------------ + // Window backdrop + //------------------------------------------------------------ + itemDef + { + name background_pic + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/menu_box_ingame" + forecolor 1 1 1 1 + visible 0 + decoration + } + + // Title of objective section + itemDef + { + name objectivetitle + style WINDOW_STYLE_FILLED + backcolor .05 .13 .25 1 + text @MENUS_MISSION_OBJECTIVES + rect 7 7 308 20 + textalign ITEM_ALIGN_CENTER + textalignx 160 + textaligny -1 + font 3 + textscale 0.9 + forecolor 1 .68 0 1 + visible 1 + decoration + } + + // Border around the objective half of the screen + itemDef + { + name border + group none + type ITEM_TYPE_TEXT + rect 5 5 310 370 +// forecolor 1 1 1 .6 + visible 1 + border 1 + bordercolor 1 1 1 1 + decoration + } + + + itemDef + { + name mapname + group time + style WINDOW_STYLE_EMPTY +// text @MENUS_MISSION + cvar siege_missionname + maxChars 0 + rect 70 28 180 18 + textalign ITEM_ALIGN_CENTER + textalignx 90 + font 3 + textscale .7 + forecolor 1 1 1 1 + visible 1 + decoration + } + + //------------------------------------------------------------ + // Map picture + //------------------------------------------------------------ + itemDef + { + name mappic + group none + style WINDOW_STYLE_SHADER + rect 70 46 180 320 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor .38 .51 .59 1 + decoration + background "*siege_mapgraphic" + } + + +//---------------------------------------------------------------------------------------------- +// TEAM SYMBOLS +//---------------------------------------------------------------------------------------------- + itemDef + { + name team1_symbol + style WINDOW_STYLE_SHADER + rect 12 60 45 45 + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name team2_symbol + style WINDOW_STYLE_SHADER + rect 265 60 45 45 + forecolor 1 1 1 1 + visible 1 + decoration + } + +//------------------------------------------- +// TEAM1 - OBJECTIVE BUTTON 1 +//------------------------------------------- + itemDef + { + name team1obj1_button + group team1obj_buttons + rect 22 120 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_1 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor 1 0 0 1 + forecolor .75 .75 .75 1 + visible 1 + border 1 + bordercolor 0 0 0 0 + mouseEnter + { + setitemcolor team1obj1_button forecolor 1 1 1 1 + setitemcolor team1obj1_button backcolor 1 0 0 1 + } + mouseExit + { + setitemcolor team1obj1_button forecolor .75 .75 .75 1 + setitemcolor team1obj1_button backcolor .7 0 0 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change text of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_1 + + //change text of long desc + setitemtext obj_longdesc "*team1_objective1_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team1_objective1_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button and give it a border + setcvar currentObjButton "team1obj1_button" + setitemcolor team1obj1_button bordercolor 1 1 1 1 + setitemcolor team1obj1_button backcolor 1 0 0 1 + + // Completed text + hide completed_text + show text_tm1_obj1 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm1_icon1 team1_objective1_mapicon team1_objective1_litmapicon + } + } + +//---------------------------------------------------------------------------------------------- +// TEAM1 - OBJECTIVE BUTTON 2 +//---------------------------------------------------------------------------------------------- + itemDef + { + name team1obj2_button + group team1obj_buttons + rect 22 150 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_2 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor .7 0 0 1 + forecolor .75 .75 .75 1 + visible 1 + border 1 + bordercolor 0 0 0 1 + cvartest "team1_objective2_inuse" + showcvar + { + "1"; "2" + } + mouseEnter + { + setitemcolor team1obj2_button forecolor 1 1 1 1 + setitemcolor team1obj2_button backcolor 1 0 0 1 + } + mouseExit + { + setitemcolor team1obj2_button forecolor .75 .75 .75 1 + setitemcolor team1obj2_button backcolor .7 0 0 1 + } + + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and text of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_2 + + //change text of long desc + setitemtext obj_longdesc "*team1_objective2_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team1_objective2_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team1obj2_button" + setitemcolor team1obj2_button bordercolor 1 1 1 1 + setitemcolor team1obj2_button backcolor 1 0 0 1 + + // Completed text + hide completed_text + show text_tm1_obj2 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm1_icon2 team1_objective2_mapicon team1_objective2_litmapicon + + } + } + + itemDef + { + name team1obj3_button + group team1obj_buttons + rect 22 180 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_3 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor .7 0 0 1 + forecolor .75 .75 .75 1 + visible 1 + border 1 + bordercolor 0 0 0 1 + cvartest "team1_objective3_inuse" + showcvar + { + "1"; "2" + } + mouseEnter + { + setitemcolor team1obj3_button forecolor 1 1 1 1 + setitemcolor team1obj3_button backcolor 1 0 0 1 + } + mouseExit + { + setitemcolor team1obj3_button forecolor .75 .75 .75 1 + setitemcolor team1obj3_button backcolor .7 0 0 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and stext of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_3 + + //change text of long desc + setitemtext obj_longdesc "*team1_objective3_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team1_objective3_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team1obj3_button" + setitemcolor team1obj3_button bordercolor 1 1 1 1 + setitemcolor team1obj3_button backcolor 1 0 0 1 + + // Completed text + hide completed_text + show text_tm1_obj3 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm1_icon3 team1_objective3_mapicon team1_objective3_litmapicon + } + } + + itemDef + { + name team1obj4_button + group team1obj_buttons + rect 22 210 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_4 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor .7 0 0 1 + forecolor .75 .75 .75 1 + visible 1 + border 1 + bordercolor 0 0 0 1 + cvartest "team1_objective4_inuse" + showcvar + { + "1"; "2" + } + mouseEnter + { + setitemcolor team1obj4_button forecolor 1 1 1 1 + setitemcolor team1obj4_button backcolor 1 0 0 1 + } + mouseExit + { + setitemcolor team1obj4_button forecolor .75 .75 .75 1 + setitemcolor team1obj4_button backcolor .7 0 0 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and stext of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_4 + + //change text of long desc + setitemtext obj_longdesc "*team1_objective4_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team1_objective4_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team1obj4_button" + setitemcolor team1obj4_button bordercolor 1 1 1 1 + setitemcolor team1obj4_button backcolor 1 0 0 1 + + // Completed text + hide completed_text + show text_tm1_obj4 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm1_icon4 team1_objective4_mapicon team1_objective4_litmapicon + } + } + + itemDef + { + name team1obj5_button + group team1obj_buttons + rect 22 240 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_5 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor .7 0 0 1 + forecolor .75 .75 .75 1 + visible 1 + border 1 + bordercolor 0 0 0 1 + cvartest "team1_objective5_inuse" + showcvar + { + "1"; "2" + } + mouseEnter + { + setitemcolor team1obj5_button forecolor 1 1 1 1 + setitemcolor team1obj5_button backcolor 1 0 0 1 + } + mouseExit + { + setitemcolor team1obj5_button forecolor .75 .75 .75 1 + setitemcolor team1obj5_button backcolor .7 0 0 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and stext of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_5 + + //change text of long desc + setitemtext obj_longdesc "*team1_objective5_longdesc" + + + // change pic to match objective + setitembackground objective_pic "*team1_objective5_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team1obj5_button" + setitemcolor team1obj5_button bordercolor 1 1 1 1 + setitemcolor team1obj5_button backcolor 1 0 0 1 + + // Completed text + hide completed_text + show text_tm1_obj5 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm1_icon5 team1_objective5_mapicon team1_objective5_litmapicon + } + } + + itemDef + { + name team1obj6_button + group team1obj_buttons + rect 22 270 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_6 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor .7 0 0 1 + forecolor .75 .75 .75 1 + visible 1 + border 1 + bordercolor 0 0 0 1 + cvartest "team1_objective6_inuse" + showcvar + { + "1"; "2" + } + mouseEnter + { + setitemcolor team1obj6_button forecolor 1 1 1 1 + setitemcolor team1obj6_button backcolor 1 0 0 1 + } + mouseExit + { + setitemcolor team1obj6_button forecolor .75 .75 .75 1 + setitemcolor team1obj6_button backcolor .7 0 0 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and stext of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_6 + + //change text of long desc + setitemtext obj_longdesc "*team1_objective6_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team1_objective6_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team1obj6_button" + setitemcolor team1obj6_button bordercolor 1 1 1 1 + setitemcolor team1obj6_button backcolor 1 0 0 1 + + // Completed text + hide completed_text + show text_tm1_obj6 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm1_icon6 team1_objective6_mapicon team1_objective6_litmapicon + } + } + + itemDef + { + name team1obj7_button + group team1obj_buttons + rect 22 300 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_7 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor .7 0 0 1 + forecolor .75 .75 .75 1 + visible 1 + border 1 + bordercolor 0 0 0 1 + cvartest "team1_objective7_inuse" + showcvar + { + "1"; "2" + } + mouseEnter + { + setitemcolor team1obj7_button forecolor 1 1 1 1 + setitemcolor team1obj7_button backcolor 1 0 0 1 + } + mouseExit + { + setitemcolor team1obj7_button forecolor .75 .75 .75 1 + setitemcolor team1obj7_button backcolor .7 0 0 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and stext of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_7 + + //change text of long desc + setitemtext obj_longdesc "*team1_objective7_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team1_objective7_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team1obj7_button" + setitemcolor team1obj7_button bordercolor 1 1 1 1 + setitemcolor team1obj7_button backcolor 1 0 0 1 + + // Completed text + hide completed_text + show text_tm1_obj7 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm1_icon7 team1_objective7_mapicon team1_objective7_litmapicon + } + } + + itemDef + { + name team1obj8_button + group team1obj_buttons + rect 22 330 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_8 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor .7 0 0 1 + forecolor .75 .75 .75 1 + visible 1 + border 1 + bordercolor 0 0 0 1 + cvartest "team1_objective8_inuse" + showcvar + { + "1"; "2" + } + mouseEnter + { + setitemcolor team1obj8_button forecolor 1 1 1 1 + setitemcolor team1obj8_button backcolor 1 0 0 1 + } + mouseExit + { + setitemcolor team1obj8_button forecolor .75 .75 .75 1 + setitemcolor team1obj8_button backcolor .7 0 0 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and stext of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_8 + + //change text of long desc + setitemtext obj_longdesc "*team1_objective8_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team1_objective8_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team1obj8_button" + setitemcolor team1obj8_button bordercolor 1 1 1 1 + setitemcolor team1obj8_button backcolor 1 0 0 1 + + // Completed text + hide completed_text + show text_tm1_obj8 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm1_icon8 team1_objective8_mapicon team1_objective8_litmapicon + } + } + +//---------------------------------------------------------------------------------------------- +// TEAM1 - MET OBJECTIVES BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name team1_met_obj1 + group none + style WINDOW_STYLE_SHADER + rect 22 120 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective1" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team1_met_obj2 + group none + style WINDOW_STYLE_SHADER + rect 22 150 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective2" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team1_met_obj3 + group none + style WINDOW_STYLE_SHADER + rect 22 180 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective3" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team1_met_obj4 + group none + style WINDOW_STYLE_SHADER + rect 22 210 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective4" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team1_met_obj5 + group none + style WINDOW_STYLE_SHADER + rect 22 240 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective5" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team1_met_obj6 + group none + style WINDOW_STYLE_SHADER + rect 22 270 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective6" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team1_met_obj7 + group none + style WINDOW_STYLE_SHADER + rect 22 300 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective7" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team1_met_obj8 + group none + style WINDOW_STYLE_SHADER + rect 22 330 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective8" + decoration + showcvar + { + "1" + } + } + +//---------------------------------------------------------------------------------------------- +// TEAM2 - PRIMARY OBJECTIVE BUTTON +//---------------------------------------------------------------------------------------------- + itemDef + { + name team2obj1_button + group team2obj_buttons + rect 273 120 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_1 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor 0 0 1 1 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 0 0 0 0 + mouseEnter + { + setitemcolor team2obj1_button forecolor 1 1 1 1 + setitemcolor team2obj1_button backcolor 0 0 1 1 + } + mouseExit + { + setitemcolor team2obj1_button forecolor .75 .75 .75 1 + setitemcolor team2obj1_button backcolor 0 0 .7 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and stext of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_1 + + //change text of long desc + setitemtext obj_longdesc "*team2_objective1_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team2_objective1_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team2obj1_button" + setitemcolor team2obj1_button bordercolor 1 1 1 1 + setitemcolor team2obj1_button backcolor 0 0 1 1 + + // Completed text + hide completed_text + show text_tm2_obj1 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm2_icon1 team2_objective1_mapicon team2_objective1_litmapicon + } + } + +//---------------------------------------------------------------------------------------------- +// TEAM2 - SECONDARY OBJECTIVE BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name team2obj2_button + group team2obj_buttons + rect 273 150 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_2 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor 0 0 1 1 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 0 0 0 0 + cvartest "team2_objective2_inuse" + showcvar + { + "1"; "2" + } + mouseEnter + { + setitemcolor team2obj2_button forecolor 1 1 1 1 + setitemcolor team2obj2_button backcolor 0 0 1 1 + } + mouseExit + { + setitemcolor team2obj2_button forecolor .75 .75 .75 1 + setitemcolor team2obj2_button backcolor 0 0 .7 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and stext of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_2 + + //change text of long desc + setitemtext obj_longdesc "*team2_objective2_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team2_objective2_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team2obj2_button" + setitemcolor team2obj2_button bordercolor 1 1 1 1 + setitemcolor team2obj2_button backcolor 0 0 1 1 + + // Completed text + hide completed_text + show text_tm2_obj2 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm2_icon2 team2_objective2_mapicon team2_objective2_litmapicon + } + } + + itemDef + { + name team2obj3_button + group team2obj_buttons + rect 273 180 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_3 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor 0 0 1 1 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 0 0 0 0 + cvartest "team2_objective3_inuse" + showcvar + { + "1"; "2" + } + mouseEnter + { + setitemcolor team2obj3_button forecolor 1 1 1 1 + setitemcolor team2obj3_button backcolor 0 0 1 1 + } + mouseExit + { + setitemcolor team2obj3_button forecolor .75 .75 .75 1 + setitemcolor team2obj3_button backcolor 0 0 .7 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and stext of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_3 + + //change text of long desc + setitemtext obj_longdesc "*team2_objective3_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team2_objective3_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team2obj3_button" + setitemcolor team2obj3_button bordercolor 1 1 1 1 + setitemcolor team2obj3_button backcolor 0 0 1 1 + + // Completed text + hide completed_text + show text_tm2_obj3 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm2_icon3 team2_objective3_mapicon team2_objective3_litmapicon + } + } + + itemDef + { + name team2obj4_button + group team2obj_buttons + rect 273 210 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_4 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor 0 0 1 1 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 0 0 0 0 + cvartest "team2_objective4_inuse" + showcvar + { + "1"; "2" + } + mouseEnter + { + setitemcolor team2obj4_button forecolor 1 1 1 1 + setitemcolor team2obj4_button backcolor 0 0 1 1 + } + mouseExit + { + setitemcolor team2obj4_button forecolor .75 .75 .75 1 + setitemcolor team2obj4_button backcolor 0 0 .7 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and text of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_4 + + //change text of long desc + setitemtext obj_longdesc "*team2_objective4_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team2_objective4_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team2obj4_button" + setitemcolor team2obj4_button bordercolor 1 1 1 1 + setitemcolor team2obj4_button backcolor 0 0 1 1 + + // Completed text + hide completed_text + show text_tm2_obj4 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm2_icon4 team2_objective4_mapicon team2_objective4_litmapicon + } + } + + itemDef + { + name team2obj5_button + group team2obj_buttons + rect 273 240 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_5 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor 0 0 1 1 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 0 0 0 0 + cvartest "team2_objective5_inuse" + showcvar + { + "1"; "2" + } + mouseEnter + { + setitemcolor team2obj5_button forecolor 1 1 1 1 + setitemcolor team2obj5_button backcolor 0 0 1 1 + } + mouseExit + { + setitemcolor team2obj5_button forecolor .75 .75 .75 1 + setitemcolor team2obj5_button backcolor 0 0 .7 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and text of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_5 + + //change text of long desc + setitemtext obj_longdesc "*team2_objective5_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team2_objective5_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team2obj5_button" + setitemcolor team2obj5_button bordercolor 1 1 1 1 + setitemcolor team2obj5_button backcolor 0 0 1 1 + + // Completed text + hide completed_text + show text_tm2_obj5 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm2_icon5 team2_objective5_mapicon team2_objective5_litmapicon + } + } + + itemDef + { + name team2obj6_button + group team2obj_buttons + rect 273 270 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_6 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor 0 0 1 1 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 0 0 0 0 + cvartest "team2_objective6_inuse" + showcvar + { + "1"; "2" + } + mouseEnter + { + setitemcolor team2obj6_button forecolor 1 1 1 1 + setitemcolor team2obj6_button backcolor 0 0 1 1 + } + mouseExit + { + setitemcolor team2obj6_button forecolor .75 .75 .75 1 + setitemcolor team2obj6_button backcolor 0 0 .7 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and text of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_6 + + //change text of long desc + setitemtext obj_longdesc "*team2_objective6_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team2_objective6_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team2obj6_button" + setitemcolor team2obj6_button bordercolor 1 1 1 1 + setitemcolor team2obj6_button backcolor 0 0 1 1 + + // Completed text + hide completed_text + show text_tm2_obj6 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm2_icon6 team2_objective6_mapicon team2_objective6_litmapicon + } + } + + itemDef + { + name team2obj7_button + group team2obj_buttons + rect 273 300 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_7 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor 0 0 1 1 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 0 0 0 0 + cvartest "team2_objective7_inuse" + showcvar + { + "1"; "2" + } + mouseEnter + { + setitemcolor team2obj7_button forecolor 1 1 1 1 + setitemcolor team2obj7_button backcolor 0 0 1 1 + } + mouseExit + { + setitemcolor team2obj7_button forecolor .75 .75 .75 1 + setitemcolor team2obj7_button backcolor 0 0 .7 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and text of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_7 + + //change text of long desc + setitemtext obj_longdesc "*team2_objective7_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team2_objective7_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team2obj7_button" + setitemcolor team2obj7_button bordercolor 1 1 1 1 + setitemcolor team2obj7_button backcolor 0 0 1 1 + + // Completed text + hide completed_text + show text_tm2_obj7 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm2_icon7 team2_objective7_mapicon team2_objective7_litmapicon + } + } + + itemDef + { + name team2obj8_button + group team2obj_buttons + rect 273 330 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_8 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor 0 0 1 1 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 0 0 0 0 + cvartest "team2_objective8_inuse" + showcvar + { + "1"; "2" + } + mouseEnter + { + setitemcolor team2obj8_button forecolor 1 1 1 1 + setitemcolor team2obj8_button backcolor 0 0 1 1 + } + mouseExit + { + setitemcolor team2obj8_button forecolor .75 .75 .75 1 + setitemcolor team2obj8_button backcolor 0 0 .7 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and text of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_8 + + //change text of long desc + setitemtext obj_longdesc "*team2_objective8_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team2_objective8_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team2obj8_button" + setitemcolor team2obj8_button bordercolor 1 1 1 1 + setitemcolor team2obj8_button backcolor 0 0 1 1 + + // Completed text + hide completed_text + show text_tm2_obj8 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm2_icon8 team2_objective8_mapicon team2_objective8_litmapicon + } + } + + +//---------------------------------------------------------------------------------------------- +// TEAM2 - MET OBJECTIVES +//---------------------------------------------------------------------------------------------- + itemDef + { + name team2_met_obj1 + group none + style WINDOW_STYLE_SHADER + rect 273 120 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective1" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team2_met_obj2 + group none + style WINDOW_STYLE_SHADER + rect 273 150 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective2" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team2_met_obj3 + group none + style WINDOW_STYLE_SHADER + rect 273 180 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective3" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team2_met_obj4 + group none + style WINDOW_STYLE_SHADER + rect 273 210 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective4" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team2_met_obj5 + group none + style WINDOW_STYLE_SHADER + rect 273 240 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective5" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team2_met_obj6 + group none + style WINDOW_STYLE_SHADER + rect 273 270 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective6" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team2_met_obj7 + group none + style WINDOW_STYLE_SHADER + rect 273 300 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective7" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team2_met_obj8 + group none + style WINDOW_STYLE_SHADER + rect 273 330 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective8" + decoration + showcvar + { + "1" + } + } + + +//---------------------------------------------------------------------------------------------- +// TEAM1 MAP ICONS - position for these is set in the on open of the menu +//---------------------------------------------------------------------------------------------- + itemDef + { + name tm1_icon1 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team1_objective1_inuse" + hidecvar + { + "0" + } + } + + itemDef + { + name tm1_icon2 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team1_objective2_inuse" + hidecvar + { + "0" + } + } + + itemDef + { + name tm1_icon3 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team1_objective3_inuse" + hidecvar + { + "0" + } + } + + itemDef + { + name tm1_icon4 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team1_objective4_inuse" + hidecvar + { + "0" + } + } + + itemDef + { + name tm1_icon5 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team1_objective5_inuse" + hidecvar + { + "0" + } + } + + itemDef + { + name tm1_icon6 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team1_objective6_inuse" + hidecvar + { + "0" + } + } + + itemDef + { + name tm1_icon7 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team1_objective7_inuse" + hidecvar + { + "0" + } + } + + itemDef + { + name tm1_icon8 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team1_objective8_inuse" + hidecvar + { + "0" + } + } + + +//---------------------------------------------------------------------------------------------- +// TEAM2 MAP ICONS - position for these is set in the on open of the menu +//---------------------------------------------------------------------------------------------- + itemDef + { + name tm2_icon1 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team2_objective1_inuse" + hidecvar + { + "0" + } + } + + itemDef + { + name tm2_icon2 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team2_objective2_inuse" + hidecvar + { + "0" + } + } + + itemDef + { + name tm2_icon3 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team2_objective3_inuse" + hidecvar + { + "0" + } + } + + itemDef + { + name tm2_icon4 + group mapicons + //rectcvar "siege_objective3_mappos" + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team2_objective4_inuse" + hidecvar + { + "0" + } + } + + itemDef + { + name tm2_icon5 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team2_objective5_inuse" + hidecvar + { + "0" + } + } + + itemDef + { + name tm2_icon6 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team2_objective6_inuse" + hidecvar + { + "0" + } + } + + itemDef + { + name tm2_icon7 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team2_objective7_inuse" + hidecvar + { + "0" + } + } + + itemDef + { + name tm2_icon8 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team2_objective8_inuse" + hidecvar + { + "0" + } + } + +//---------------------------------------------------------------------------------------------- +// TEAM1 - MET OBJECTIVES MAP ICONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name team1_met_map1 + group none + style WINDOW_STYLE_SHADER + rectcvar team1_objective1_mappos + forecolor 1 1 1 1 + visible 1 + background "*team1_objective1_donemapicon" + visible 1 + cvartest "team1_objective1" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team1_met_map2 + group none + style WINDOW_STYLE_SHADER + rectcvar team1_objective2_mappos + forecolor 1 1 1 1 + visible 1 + background "*team1_objective2_donemapicon" + visible 1 + cvartest "team1_objective2" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team1_met_map3 + group none + style WINDOW_STYLE_SHADER + rectcvar team1_objective3_mappos + forecolor 1 1 1 1 + visible 1 + background "*team1_objective3_donemapicon" + visible 1 + cvartest "team1_objective3" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team1_met_map4 + group none + style WINDOW_STYLE_SHADER + rectcvar team1_objective4_mappos + forecolor 1 1 1 1 + visible 1 + background "*team1_objective4_donemapicon" + visible 1 + cvartest "team1_objective4" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team1_met_map5 + group none + style WINDOW_STYLE_SHADER + rectcvar team1_objective5_mappos + forecolor 1 1 1 1 + visible 1 + background "*team1_objective5_donemapicon" + visible 1 + cvartest "team1_objective5" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team1_met_map6 + group none + style WINDOW_STYLE_SHADER + rectcvar team1_objective6_mappos + forecolor 1 1 1 1 + visible 1 + background "*team1_objective6_donemapicon" + visible 1 + cvartest "team1_objective6" + decoration + showcvar + { + "1" + } + } + + + itemDef + { + name team1_met_map7 + group none + style WINDOW_STYLE_SHADER + rectcvar team1_objective7_mappos + forecolor 1 1 1 1 + visible 1 + background "*team1_objective7_donemapicon" + visible 1 + cvartest "team1_objective7" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team1_met_map8 + group none + style WINDOW_STYLE_SHADER + rectcvar team1_objective8_mappos + forecolor 1 1 1 1 + visible 1 + background "*team1_objective8_donemapicon" + visible 1 + cvartest "team1_objective8" + decoration + showcvar + { + "1" + } + } + +//---------------------------------------------------------------------------------------------- +// TEAM2 - MET OBJECTIVES MAP ICONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name team2_met_map1 + group none + style WINDOW_STYLE_SHADER + rectcvar team2_objective1_mappos + forecolor 1 1 1 1 + visible 1 + background "*team2_objective1_donemapicon" + visible 1 + cvartest "team1_objective1" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team2_met_map2 + group none + style WINDOW_STYLE_SHADER + rectcvar team2_objective2_mappos + forecolor 1 1 1 1 + visible 1 + background "*team2_objective2_donemapicon" + visible 1 + cvartest "team1_objective2" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team2_met_map3 + group none + style WINDOW_STYLE_SHADER + rectcvar team2_objective3_mappos + forecolor 1 1 1 1 + visible 1 + background "*team2_objective3_donemapicon" + visible 1 + cvartest "team1_objective3" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team2_met_map4 + group none + style WINDOW_STYLE_SHADER + rectcvar team2_objective4_mappos + forecolor 1 1 1 1 + visible 1 + background "*team2_objective4_donemapicon" + visible 1 + cvartest "team1_objective4" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team2_met_map5 + group none + style WINDOW_STYLE_SHADER + rectcvar team2_objective5_mappos + forecolor 1 1 1 1 + visible 1 + background "*team2_objective5_donemapicon" + visible 1 + cvartest "team1_objective5" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team2_met_map6 + group none + style WINDOW_STYLE_SHADER + rectcvar team2_objective6_mappos + forecolor 1 1 1 1 + visible 1 + background "*team2_objective6_donemapicon" + visible 1 + cvartest "team1_objective6" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team2_met_map7 + group none + style WINDOW_STYLE_SHADER + rectcvar team2_objective7_mappos + forecolor 1 1 1 1 + visible 1 + background "*team2_objective7_donemapicon" + visible 1 + cvartest "team1_objective7" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team2_met_map8 + group none + style WINDOW_STYLE_SHADER + rectcvar team2_objective8_mappos + forecolor 1 1 1 1 + visible 1 + background "*team2_objective8_donemapicon" + visible 1 + cvartest "team1_objective8" + decoration + showcvar + { + "1" + } + } + + //------------------------------------------- + // OBJECTIVE MINI-DESCRIPTIONS + //------------------------------------------- + itemDef + { + name obj_minidesc + rect 7 378 308 20 + style WINDOW_STYLE_FILLED + backcolor .05 .13 .25 1 + text @MENUS_PRIMARY_OBJECTIVES + font 2 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 300 + forecolor 1 .68 0 1 + visible 0 + decoration + } + + //------------------------------------------- + // OBJECTIVE LONG DESCRIPTION + //------------------------------------------- + itemDef + { + name obj_longdesc + rect 16 403 270 76 + type ITEM_TYPE_TEXT + font 4 + textscale .8 + textalign ITEM_ALIGN_LEFT + forecolor 1 1 1 1 + visible 1 + autowrapped + decoration + } + + + //------------------------------------------- + // OBJECTIVE PICTURE + //------------------------------------------- + itemDef + { + name objective_pic + rect 208 398 107 78 + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + } + + //------------------------------------------- + // COMPLETED TEXT + //------------------------------------------- + itemDef + { + name text_tm1_obj1 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team1_objective1" + showcvar + { + "1" + } + + } + + itemDef + { + name text_tm1_obj2 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team1_objective2" + showcvar + { + "1" + } + } + + + itemDef + { + name text_tm1_obj3 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team1_objective3" + showcvar + { + "1" + } + } + + + itemDef + { + name text_tm1_obj4 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team1_objective4" + showcvar + { + "1" + } + } + + + itemDef + { + name text_tm1_obj5 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team1_objective5" + showcvar + { + "1" + } + } + + + itemDef + { + name text_tm1_obj6 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team1_objective6" + showcvar + { + "1" + } + } + + + itemDef + { + name text_tm1_obj7 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team1_objective7" + showcvar + { + "1" + } + } + + itemDef + { + name text_tm1_obj8 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team1_objective8" + showcvar + { + "1" + } + } + + itemDef + { + name text_tm2_obj1 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team2_objective1" + showcvar + { + "1" + } + } + + itemDef + { + name text_tm2_obj2 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team2_objective2" + showcvar + { + "1" + } + } + + + itemDef + { + name text_tm2_obj3 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team2_objective3" + showcvar + { + "1" + } + } + + + itemDef + { + name text_tm2_obj4 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team2_objective4" + showcvar + { + "1" + } + } + + + itemDef + { + name text_tm2_obj5 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team2_objective5" + showcvar + { + "1" + } + } + + + itemDef + { + name text_tm2_obj6 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team2_objective6" + showcvar + { + "1" + } + } + + + itemDef + { + name text_tm2_obj7 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team2_objective7" + showcvar + { + "1" + } + } + + itemDef + { + name text_tm2_obj8 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team2_objective8" + showcvar + { + "1" + } + } + + + // Border around the objective text and pic (lower left section of screen) + itemDef + { + name objtext_border + group none + type ITEM_TYPE_TEXT + rect 5 378 310 98 + visible 1 + border 1 + bordercolor 1 1 1 1 + decoration + } + + +//---------------------------------------------------------------------------------------------- +// TEAM1 LARGE MAP ICONS - position for these is set in the on open of the menu +//---------------------------------------------------------------------------------------------- + itemDef + { + name tm1_lp_icon + group largemapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + border 1 + bordercolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name tm1_l_icon1 + group largemapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + border 1 + bordercolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name tm1_l_icon2 + group largemapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + border 1 + bordercolor 1 1 1 1 + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name tm1_l_icon3 + group largemapicons + //rectcvar "siege_objective3_mappos" + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + border 1 + bordercolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name tm1_l_icon4 + group largemapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + border 1 + bordercolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name tm1_l_icon5 + group largemapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + border 1 + bordercolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name tm1_l_icon6 + group largemapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + border 1 + bordercolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name tm1_l_icon7 + group largemapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + border 1 + bordercolor 1 1 1 1 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// TEAM2 LARGE MAP ICONS - position for these is set in the on open of the menu +//---------------------------------------------------------------------------------------------- + itemDef + { + name tm2_lp_icon + group largemapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + border 1 + bordercolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name tm2_l_icon1 + group largemapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + border 1 + bordercolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name tm2_l_icon2 + group largemapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + border 1 + bordercolor 1 1 1 1 + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name tm2_l_icon3 + group largemapicons + //rectcvar "siege_objective3_mappos" + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + border 1 + bordercolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name tm2_l_icon4 + group largemapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + border 1 + bordercolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name tm2_l_icon5 + group largemapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + border 1 + bordercolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name tm2_l_icon6 + group largemapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + border 1 + bordercolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name tm2_l_icon7 + group largemapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + border 1 + bordercolor 1 1 1 1 + visible 0 + decoration + } + + //----------------------------------------------- + // OKAY BUTTON + //----------------------------------------------- + itemDef + { + name okay + text @MENUS_DONE + type 1 + textscale .8 + group grpControlbutton + type ITEM_TYPE_BUTTON + rect 105 456 150 26 + textalign ITEM_ALIGN_CENTER + textalignx 50 + forecolor 1 .682 0 1 + backcolor .37 .1 .1 1 + visible 1 + action + { + play "sound/interface/button1.wav" + close all + } + } + } +} \ No newline at end of file diff --git a/base/ui/jamp/ingame_orders.menu b/base/ui/jamp/ingame_orders.menu new file mode 100644 index 0000000..63376bb --- /dev/null +++ b/base/ui/jamp/ingame_orders.menu @@ -0,0 +1,386 @@ +{ +\\ SETUP MENU \\ +{ + menuDef + { + name "ingame_orders" + visible 0 + fullscreen 0 + rect 45 30 200 240 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + focusColor 1 .75 0 1 + style 1 + border 1 + disableColor .5 .5 .5 1 + onopen + { + hide grpicon ; + show attack + } + + itemDef + { + name window + rect 10 15 180 225 + style 1 + backcolor 0 .1 0 1 + visible 1 + decoration + } + + itemDef + { + name orders + group grporders + text @MENUS_NAME + style 0 + ownerdraw UI_SELECTEDPLAYER + // As cycle through playerlist selected player in HUD cycles // + rect 10 20 200 20 + textalign 0 + textalignx 10 + textaligny 2 + textscale .25 + forecolor 1 1 1 1 + visible 1 + } + + + // GIVE ORDERS TO OTHERS // + itemDef + { + name orders + group grporders + text @MENUS_YOU_DECIDE + rect 0 80 200 20 + type 1 + textalign 1 + textalignx 100 + textaligny 2 + textscale .25 + forecolor 1 1 1 1 + visible 1 + mouseenter + { + hide grpicon + } + action + { + uiScript voiceOrders "cmd bot_order %d 0" + } + ownerdrawflag UI_SHOW_LEADER + } + + itemDef + { + name orders + group grporders + type 1 + text @MENUS_ATTACK_THE_ENEMY_S_BASE + rect 0 100 200 20 + textalign 1 + textalignx 100 + textaligny 2 + textscale .25 + forecolor 1 1 1 1 + visible 1 + cvarTest "g_gametype" + hideCvar + { + "5" ; + "6" + } + mouseenter + { + hide grpicon + } + action + { + uiScript voiceOrders "cmd bot_order %d 1" + } + ownerdrawflag UI_SHOW_LEADER + } + + itemDef + { + name orders + group grporders + type 1 + text @MENUS_DEFEND_OUR_BASE + rect 0 120 200 20 + textalign 1 + textalignx 100 + textaligny 2 + textscale .25 + forecolor 1 1 1 1 + visible 1 + cvarTest "g_gametype" + hideCvar + { + "5" ; + "6" + } + mouseenter + { + hide grpicon + } + action + { + uiScript voiceOrders "cmd bot_order %d 2" + } + ownerdrawflag UI_SHOW_LEADER + } + + itemDef + { + name orders + group grporders + type 1 + text @MENUS_GET_OUR_FLAG_BACK + rect 0 140 200 20 + textalign 1 + textalignx 100 + textaligny 2 + textscale .25 + forecolor 1 1 1 1 + visible 1 + cvarTest "g_gametype" + hideCvar + { + "5" ; + "6" + } + mouseenter + { + hide grpicon + } + action + { + uiScript voiceOrders "cmd bot_order %d 3" + } + ownerdrawflag UI_SHOW_LEADER + } + + itemDef + { + name orders + group grporders + text @MENUS_GUARD_OUR_FLAG_CARRIER + type 1 + rect 0 160 200 20 + textalign 1 + textalignx 100 + textaligny 2 + textscale .25 + forecolor 1 1 1 1 + visible 1 + cvarTest "g_gametype" + hideCvar + { + "5" ; + "6" + } + mouseenter + { + hide grpicon + } + action + { + uiScript voiceOrders "cmd bot_order %d 4" + } + ownerdrawflag UI_SHOW_LEADER + } + + itemDef + { + name orders + group grporders + type 1 + text @MENUS_GET_ENEMY_FLAG_BACK_TO + rect 0 180 200 20 + textalign 1 + textalignx 100 + textaligny 2 + textscale .25 + forecolor 1 1 1 1 + visible 1 + cvarTest "g_gametype" + hideCvar + { + "5" ; + "6" + } + mouseenter + { + hide grpicon + } + action + { + uiScript voiceOrders "cmd bot_order %d 5" + } + ownerdrawflag UI_SHOW_LEADER + } + + itemDef + { + name orders + group grporders + type 1 + text @MENUS_COMPLETE_THE_CURRENT + rect 0 100 200 20 + textalign 1 + textalignx 100 + textaligny 2 + textscale .25 + forecolor 1 1 1 1 + visible 1 + cvarTest "g_gametype" + hideCvar + { + "5" ; + "7" + } + mouseenter + { + hide grpicon + } + action + { + uiScript voiceOrders "cmd bot_order %d 1" + } + ownerdrawflag UI_SHOW_LEADER + } + + itemDef + { + name orders + group grporders + type 1 + text @MENUS_PREVENT_THE_ENEMY_FROM + rect 0 120 200 20 + textalign 1 + textalignx 100 + textaligny 2 + textscale .25 + forecolor 1 1 1 1 + visible 1 + cvarTest "g_gametype" + hideCvar + { + "5" ; + "7" + } + mouseenter + { + hide grpicon + } + action + { + uiScript voiceOrders "cmd bot_order %d 2" + } + ownerdrawflag UI_SHOW_LEADER + } + + itemDef + { + name orders + group grporders + type 1 + text @MENUS_FOLLOW_ME + rect 0 100 200 20 + textalign 1 + textalignx 100 + textaligny 2 + textscale .25 + forecolor 1 1 1 1 + visible 1 + cvarTest "g_gametype" + hideCvar + { + "6" ; + "7" + } + mouseenter + { + hide grpicon + } + action + { + uiScript voiceOrders "cmd bot_order %d 1" + } + ownerdrawflag UI_SHOW_LEADER + } + + itemDef + { + name orders + group grporders + type 1 + text @MENUS_ASSIST_ME + rect 0 120 200 20 + textalign 1 + textalignx 100 + textaligny 2 + textscale .25 + forecolor 1 1 1 1 + visible 1 + cvarTest "g_gametype" + hideCvar + { + "6" ; + "7" + } + mouseenter + { + hide grpicon + } + action + { + uiScript voiceOrders "cmd bot_order %d 2" + } + ownerdrawflag UI_SHOW_LEADER + } + + itemDef + { + name orders + group grporders + type 1 + text @MENUS_REGROUP + rect 0 140 200 20 + textalign 1 + textalignx 100 + textaligny 2 + textscale .25 + forecolor 1 1 1 1 + visible 1 + cvarTest "g_gametype" + hideCvar + { + "6" ; + "7" + } + mouseenter + { + hide grpicon + } + action + { + uiScript voiceOrders "cmd bot_order %d 3" + } + ownerdrawflag UI_SHOW_LEADER + } + } +} + + + + + + + + + + + + diff --git a/base/ui/jamp/ingame_player.menu b/base/ui/jamp/ingame_player.menu new file mode 100644 index 0000000..d6a758a --- /dev/null +++ b/base/ui/jamp/ingame_player.menu @@ -0,0 +1,1173 @@ +//------------------------------------------------------------------------------------------------ +// PLAYER SETUP MENU - ingame_player +// +// Choose player skin, name +// Choose light saber +// Allocate force powers +// +// g_gametypes +// "Free For All" 0 +// "Duel" 3 +// "Power Duel" 4 +// "Team FFA" 6 +// "Siege" 7 +// "Capture the Flag" 8 +// +// ui_net_gametype +// 0 = FFA +// 1 = DUEL +// 2 = POWER DUEL +// 3 = TEAM FFA +// 4 = SIEGE +// 5 = CTF +//------------------------------------------------------------------------------------------------ +{ + menuDef + { + name "ingame_player" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 20 25 600 440 + focusColor 1 1 1 1 // Focus color for text and items + style 1 + border 1 + descX 320 + descY 428 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + onOpen + { + uiScript update "ui_GetName" + uiScript updateForceStatus + hide highlights + } + onClose + { + uiScript update "ui_SetName" + uiScript updateForceStatus + hide highlights + } + +//------------------------------------------------------------------------------------------------ +// Overall window backdrop +//------------------------------------------------------------------------------------------------ + itemDef + { + name background_pic + group none + style WINDOW_STYLE_SHADER + rect 0 0 600 440 + background "gfx/menus/menu_box_ingame" + forecolor 1 1 1 1 + visible 1 + decoration + } + + + // Button background at bottom of screen + itemDef + { + name background + group none + style WINDOW_STYLE_FILLED + rect 0 420 600 20 + backcolor .298 .305 .690 1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + +//------------------------------------------------------------------------------------------------ +// Player Configuration +//------------------------------------------------------------------------------------------------ +// Player Configuration title + itemDef + { + name playerconfigtitle_glow + group none + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_buttonback" // Frame around button + rect 20 3 560 30 + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name playerconfigtitle + style WINDOW_STYLE_EMPTY + text @MENUS_PLAYER_CONFIGURATION + rect 20 5 560 28 + textalign ITEM_ALIGN_CENTER + textalignx 280 + textaligny 2 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + font 3 + textscale 1 + forecolor .549 .854 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + } + +//------------------------------------------------------------------------------------------------ +// Name entry field +//------------------------------------------------------------------------------------------------ + itemDef + { + name nameglow + group mods + style WINDOW_STYLE_SHADER + rect 25 31 300 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name namefield + type ITEM_TYPE_EDITFIELD + style 0 + text @MENUS_NAME1 + cvar "ui_Name" + maxchars 26 + rect 20 33 300 20 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -5 + font 2 + textscale 1 + forecolor 1 .682 0 1 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + border 0 + bordercolor 0 0 0 0 + descText @MENUS_ENTER_YOUR_NAME_HERE + visible 1 + action + { + play "sound/interface/button1" + } + mouseenter + { + show nameglow + } + mouseexit + { + hide nameglow + } + } + +//------------------------------------------------------------------------------------------------ +// Player Model label +//------------------------------------------------------------------------------------------------ + // Box around character models + itemDef + { + name background + group none + style WINDOW_STYLE_EMPTY + rect 15 65 570 230 + border 1 + bordercolor .298 .305 .690 1 + bordersize 2 + forecolor 1 1 1 1 + visible 1 + decoration + } + + // Title box for character models + itemDef + { + name background + group none + style WINDOW_STYLE_FILLED + rect 17 57 570 20 + backcolor .298 .305 .690 1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + itemDef + { + name modeltitle + style 0 + text @MENUS_CHARACTER_MODEL + rect 3 52 570 0 + textalign ITEM_ALIGN_CENTER + textalignx 285 +// textaligny 12 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 +// font 4 +// textscale 1 + font 2 + textscale 1 + forecolor .549 .854 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1" + } + } + +//------------------------------------------------------------------------------------------------ +// Skin/Team Color Chooser +//------------------------------------------------------------------------------------------------ + itemDef + { + name setcolor + style 0 + text @MENUS_TEAM_COLOR + ownerdraw UI_SKIN_COLOR + rect 50 78 160 20 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -5 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + font 2 + textscale .8 + forecolor 1 .682 0 1 + border 0 + bordercolor 0 0 0 0 + descText @MENUS_CHOOSE_THE_COLOR_FOR + cvarTest "ui_about_gametype" + hideCvar + { + "6" ; + "7" ; + "8" ; + "9" + } + visible 1 + action + { + play "sound/interface/button1" + } + } + +// Skin/Team Color Chooser + itemDef + { + name setcolor + style 0 + text @MENUS_TEAM_COLOR + ownerdraw UI_SKIN_COLOR + rect 50 78 160 20 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -5 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + font 2 + textscale .8 + forecolor 0.7 0.7 0.7 1 + border 0 + bordercolor 0 0 0 0 + descText @MENUS_CHOOSE_THE_COLOR_FOR + cvarTest "ui_about_gametype" + showCvar + { + "6" ; + "7" ; + "8" ; + "9" + } + visible 1 + decoration + action + { + play "sound/interface/button1" + } + } + +//------------------------------------------------------------------------------------------------ +// Scroll box with portraits. +//------------------------------------------------------------------------------------------------ + itemDef + { + name headlist +// rect 20 90 388 82 + rect 20 90 404 194 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 64 + elementheight 64 + elementtype LISTBOX_IMAGE + feeder FEEDER_Q3HEADS +// horizontalscroll + backcolor 0 0 0 1 + border 1 + bordercolor 1 .682 0 1 + forecolor 1 1 1 1 + descText @MENUS_CHOOSE_THE_MODEL_FOR + visible 1 + textscale 0.7 + action + { + play "sound/interface/button1" + } + mouseenter + { + setitemcolor headlist bordercolor 1 0 0 1 + } + mouseexit + { + setitemcolor headlist bordercolor 1 .682 0 .7 + } + } + +//------------------------------------------------------------------------------------------------ +// Custom skin +//------------------------------------------------------------------------------------------------ + itemDef + { + name customtitle + style 0 + text @MENUS_CUSTOM + rect 425 130 150 26 + textalign ITEM_ALIGN_CENTER + textalignx 75 + textaligny -3 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + font 2 + textscale 1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + itemDef + { + name custom + group none + background "gfx/mp/custom_mp_default" + descText @MENUS_CUSTOMPLAYER_DESC + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_SHADER + rect 465 160 75 75 + font 3 + textscale 1 + textaligny -1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + forecolor .5 .5 .5 1 + visible 1 + mouseEnter + { + setitemcolor custom forecolor 1 1 1 1 + } + mouseExit + { + setitemcolor custom forecolor .5 .5 .5 1 + } + action + { + play "sound/interface/button1.wav" + uiScript updateForceStatus + close ingame_player + open ingame_player2 + } + } + +//------------------------------------------------------------------------------------------------ +// Saber Setup +//------------------------------------------------------------------------------------------------ + // Box for force powers + itemDef + { + name background + group none + style WINDOW_STYLE_EMPTY + rect 15 299 410 100 + border 1 + bordercolor .298 .305 .690 1 + bordersize 2 + forecolor 1 1 1 1 + visible 1 + decoration + } + // Title box for force powers + itemDef + { + name background + group none + style WINDOW_STYLE_FILLED + rect 17 300 410 18 + backcolor .298 .305 .690 1 + forecolor 1 1 1 1 + visible 1 + decoration + } + + // Box for saber setup + itemDef + { + name background + group none + style WINDOW_STYLE_EMPTY + rect 430 299 155 100 + border 1 + bordercolor .298 .305 .690 1 + bordersize 2 + forecolor 1 1 1 1 + visible 1 + decoration + } + + // Title box for saber setup + itemDef + { + name background + group none + style WINDOW_STYLE_FILLED + rect 432 300 155 18 + backcolor .298 .305 .690 1 + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name sabertitle + style 0 + text @MENUS_SABER_TITLE + rect 430 297 150 26 + textalign ITEM_ALIGN_CENTER + textalignx 75 + textaligny -3 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + font 2 + textscale 1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + itemDef + { + name saber + group none + background "gfx/menus/saberonly" + descText @MENUS_SABER_TITLE_DESC + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_SHADER + rect 465 322 75 75 + font 3 + textscale 1 + textalignx 65 + textaligny -1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + forecolor .5 .5 .5 1 + visible 1 + mouseEnter + { + setitemcolor saber forecolor 1 1 1 1 + } + mouseExit + { + setitemcolor saber forecolor .5 .5 .5 1 + } + action + { + play "sound/interface/button1.wav" + close ingame_player + open ingame_saber + } + } + + +//------------------------------------------------------------------------------------------------ +// FORCE POWER INFO (If normal server) +//------------------------------------------------------------------------------------------------ +// The Force title + itemDef + { + name forcetitle + group yesforce + style 0 + text @MENUS_THE_FORCE + rect 220 298 0 0 + textalign ITEM_ALIGN_CENTER + textalignx 0 + textaligny -4 + outlinecolor 1 .5 .5 .5 + font 2 + textscale 1 + forecolor .549 .854 1 1 + visible 1 + cvarTest "ui_about_gametype" + hideCvar + { + "1" ; + "2" + } + decoration + } + + + +// Force Rank display + itemDef + { + name rankdisplay + group "yesforce" + style 0 + text @MENUS_FORCE_MASTERY + ownerdraw UI_FORCE_RANK + rect 20 320 175 16 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny 0 + font 4 + textscale 1 + forecolor 1 .682 0 .8 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + visible 1 + decoration + cvarTest "ui_about_gametype" + hideCvar + { + "1" ; + "2" + } + } + +// Force Side Chooser + itemDef + { + name setside + group "yesforce" + style 0 + text @MENUS_FORCE_SIDE + ownerdraw UI_FORCE_SIDE + rect 20 340 175 16 + textalign ITEM_ALIGN_LEFT + textalignx 0 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + textaligny 0 + font 4 + textscale 1 + forecolor 1 .682 0 .8 + visible 1 + cvarTest "ui_about_gametype" + hideCvar + { + "1" ; + "2" + } + decoration + action + { + play "sound/interface/button1" + } + + } + +// Force pointsdisplay + itemDef + { + name setpoints + group "yesforce" + style 0 + text @MENUS_POINTS_REMAINING + ownerdraw UI_FORCE_POINTS + rect 20 360 175 16 + textalign ITEM_ALIGN_LEFT + textalignx 0 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + textaligny 0 + font 4 + textscale 1 + forecolor 1 .682 0 .8 + visible 1 + cvarTest "ui_about_gametype" + hideCvar + { + "1" ; + "2" + } + decoration + } + +// Jedi/Non-Jedi Chooser + itemDef + { + name jedinonjedi + group jedinonjedi + style 0 + text @MENUS_JEDI_NONJEDI + ownerdraw UI_JEDI_NONJEDI + rect 183 370 105 32 + textalign ITEM_ALIGN_LEFT + textalignx 0 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + textaligny 0 + font 4 + textscale 1 + forecolor 1 1 1 1 + border 0 + bordercolor 0 0 0 0 + descText @MENUS_CHOOSE_JEDI_NONJEDI + visible 1 + action + { + uiScript updateForceStatus + } + } + +//------------------------------------------------------------------------------------------------ +// Configure force button +//------------------------------------------------------------------------------------------------ + itemDef + { + name configforcebutton + group "yesforce" + type 1 + style WINDOW_STYLE_SHADER + background "gfx/menus/configforce" + rect 275 320 75 75 + textalign ITEM_ALIGN_CENTER + textalignx 97 + textaligny 2 + font 2 + textscale 1 + forecolor .5 .5 .5 1 + descText @MENUS_SET_UP_THE_FORCE_ABILITIES + visible 1 + cvarTest "ui_about_gametype" + hideCvar + { + "1" ; + "2" + } + action + { + play "sound/interface/button1" + close ingame_player + open ingame_playerforce + hide highlights + } + mouseEnter + { + setitemcolor configforcebutton forecolor 1 1 1 1 + } + mouseExit + { + setitemcolor configforcebutton forecolor .5 .5 .5 1 + } + } + + +//---------------------------------------- +// DISABLED FORCE POWER (If g_forcepowerdisable) +//---------------------------------------- +// The Force title + itemDef + { + name forcetitle + group noforce + style 0 + text @MENUS_NOFORCE_DISABLED_0 + rect 220 298 0 0 + textalign ITEM_ALIGN_CENTER + textalignx 0 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + textaligny -4 + font 2 + textscale 1 + forecolor 1 1 1 1 + visible 1 + cvarTest "ui_about_gametype" + hideCvar + { + "1" ; + "2" + } + decoration + } + + + itemDef + { + name text2 + group "noforce" + style 0 + text @MENUS_NOFORCE_DISABLED_1 + rect 20 320 400 20 + textalign ITEM_ALIGN_CENTER + textalignx 200 + textaligny 0 + font 4 + textscale 1 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + forecolor 1 .682 0 .8 + visible 1 + cvarTest "ui_about_gametype" + hideCvar + { + "1" ; + "2" + } + decoration + } + +//------------------------------------------------------------------------------------------------ +// HOLOCRON INFO +//------------------------------------------------------------------------------------------------ +// The Force title + itemDef + { + name forcetitle + group none + style 0 + text @MENUS_NOFORCE_HOLO_0 + rect 220 298 0 0 + textalign ITEM_ALIGN_CENTER + textalignx 0 + backcolor 0 0 0 0 + textaligny -4 + font 2 + textscale 1 + forecolor 1 1 1 1 + cvarTest "ui_about_gametype" + showCvar + { + "1" + } + visible 1 + decoration + } + + itemDef + { + name text1 + group none + style 0 + text @MENUS_NOFORCE_HOLO_1 + rect 20 330 400 20 + textalign ITEM_ALIGN_CENTER + textalignx 200 + textaligny 0 + font 4 + textscale 1 + forecolor 1 .682 0 .8 + outlinecolor 1 .5 .5 .5 + cvarTest "ui_about_gametype" + showCvar + { + "1" + } + visible 1 + decoration + } + + itemDef + { + name text2 + group none + style 0 + text @MENUS_NOFORCE_HOLO_2 + rect 20 350 400 20 + textalign ITEM_ALIGN_CENTER + textalignx 200 + textaligny 0 + font 4 + textscale 1 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + forecolor 1 .682 0 .8 + cvarTest "ui_about_gametype" + showCvar + { + "1" + } + visible 1 + decoration + } + + itemDef + { + name text3 + group none + style 0 + text @MENUS_NOFORCE_HOLO_3 + rect 20 370 400 20 + textalign ITEM_ALIGN_CENTER + textalignx 200 + textaligny 0 + font 4 + textscale 1 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + forecolor 1 .682 0 .8 + cvarTest "ui_about_gametype" + showCvar + { + "1" + } + visible 1 + decoration + } + +//------------------------------------------------------------------------------------------------ +// JEDI MASTER INFO +//------------------------------------------------------------------------------------------------ + // The Force title + itemDef + { + name forcetitle + group none + style 0 + text @MENUS_NOFORCE_JEDI_0 + rect 220 298 0 0 + textalign ITEM_ALIGN_CENTER + textalignx 0 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + textaligny -4 + font 2 + textscale 1 + forecolor 1 1 1 1 + cvarTest "ui_about_gametype" + showCvar + { + "2" + } + visible 1 + decoration + } + + itemDef + { + name text1 + group none + style 0 + text @MENUS_NOFORCE_JEDI_1 + rect 20 330 400 20 + textalign ITEM_ALIGN_CENTER + textalignx 200 + textaligny 0 + font 4 + textscale 1 + forecolor 1 .682 0 .8 + outlinecolor 1 .5 .5 .5 + cvarTest "ui_about_gametype" + showCvar + { + "2" + } + visible 1 + decoration + } + + itemDef + { + name text2 + group none + style 0 + text @MENUS_NOFORCE_JEDI_2 + rect 20 350 400 20 + textalign ITEM_ALIGN_CENTER + textalignx 200 + textaligny 0 + font 4 + textscale 1 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + forecolor 1 .682 0 .8 + cvarTest "ui_about_gametype" + showCvar + { + "2" + } + visible 1 + decoration + } + + itemDef + { + name text3 + group none + style 0 + text @MENUS_NOFORCE_JEDI_3 + rect 20 370 400 20 + textalign ITEM_ALIGN_CENTER + textalignx 200 + textaligny 0 + font 4 + textscale 1 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + forecolor 1 .682 0 .8 + cvarTest "ui_about_gametype" + showCvar + { + "2" + } + visible 1 + decoration + } + +//--------------------------------------------- +// APPLY BUTTON +//--------------------------------------------- +// APPLY, already on a team + itemDef + { + name applyjoinButton + group highlights + style WINDOW_STYLE_SHADER + rect 5 412 105 32 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + appearance_slot 3 + } + + itemDef + { + name applycurrent + group "playerapply" + text @MENUS_APPLY + type 1 + style WINDOW_STYLE_EMPTY + rect 5 412 105 32 + textalign ITEM_ALIGN_CENTER + textalignx 52 + textaligny 2 + font 2 + textscale 1 + forecolor 1 .682 0 1 + descText @MENUS_APPLY_CHANGES_AND_JOIN + visible 1 + action + { + play "sound/interface/button1" + uiScript setForce "none" + hide highlights + uiScript closeingame + } + mouseEnter + { + show applyjoinButton + } + mouseExit + { + hide applyjoinButton + } + } + + // APPLY Free + itemDef + { + name applyjoin + group "playerforcejoin" + text @MENUS_JOIN_GAME + type 1 + style WINDOW_STYLE_EMPTY + rect 5 412 105 32 + textalign ITEM_ALIGN_CENTER + textalignx 52 + textaligny 2 + font 2 + textscale 1 + forecolor 1 .682 0 1 + descText @MENUS_APPLY_CHANGES_AND_JOIN + visible 1 + action + { + play "sound/interface/button1" + uiScript setForce "free" + hide highlights + uiScript closeingame + } + mouseEnter + { + show applyjoinButton + } + mouseExit + { + hide applyjoinButton + } + } + +// APPLY RED + itemDef + { + name applyredButton + group highlights + style WINDOW_STYLE_SHADER + rect 110 412 105 32 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name applyred + group "playerforcered" + text @MENUS_JOIN_RED + type 1 + style WINDOW_STYLE_EMPTY + rect 110 412 105 32 + textalign ITEM_ALIGN_CENTER + textalignx 52 + textaligny 2 + font 2 + textscale 1 + forecolor 1 .682 0 1 + cvarTest "ui_about_gametype" + hideCvar + { + "0" ; + "1" ; + "2" ; + "3" ; + "4" + } + descText @MENUS_CHANGES_AND_JOIN_THE + visible 1 + action + { + play "sound/interface/button1" + uiScript setForce "red" + hide highlights + uiScript closeingame + } + mouseEnter + { + show applyredButton + } + mouseExit + { + hide applyredButton + } + } + + // APPLY BLUE + itemDef + { + name applyblueButton + group highlights + style WINDOW_STYLE_SHADER + rect 215 412 105 32 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name applyblue + group "playerforceblue" + text @MENUS_JOIN_BLUE + type 1 + style WINDOW_STYLE_EMPTY + rect 215 412 105 32 + textalign ITEM_ALIGN_CENTER + textalignx 52 + textaligny 2 + font 2 + textscale 1 + forecolor 1 .682 0 1 + cvarTest "ui_about_gametype" + hideCvar + { + "0" ; + "1" ; + "2" ; + "3" ; + "4" + } + descText @MENUS_AND_JOIN_THE_BLUE_TEAM + visible 1 + action + { + play "sound/interface/button1" + uiScript setForce "blue" + hide highlights + uiScript closeingame + } + mouseEnter + { + show applyblueButton + } + mouseExit + { + hide applyblueButton + } + } + +// APPLY SPECTATOR + itemDef + { + name applyspectateButton + group highlights + style WINDOW_STYLE_SHADER + rect 320 412 105 32 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name applyspectate + group "playerforcespectate" + text @MENUS_SPECTATE + type 1 + style WINDOW_STYLE_EMPTY + rect 320 412 105 32 + textalign ITEM_ALIGN_CENTER + textalignx 52 + textaligny 2 + font 2 + textscale 1 + forecolor 1 .682 0 1 + descText @MENUS_APPLY_CHANGES_BUT_REMAIN + visible 1 + action + { + play "sound/interface/button1" + uiScript setForce "s" + hide highlights + uiScript closeingame + } + mouseEnter + { + show applyspectateButton + } + mouseExit + { + hide applyspectateButton + } + } + } +} diff --git a/base/ui/jamp/ingame_player2.menu b/base/ui/jamp/ingame_player2.menu new file mode 100644 index 0000000..dab2e10 --- /dev/null +++ b/base/ui/jamp/ingame_player2.menu @@ -0,0 +1,558 @@ +//----------------------------------- +// Custom Player +//----------------------------------- +{ + menuDef + { + name "ingame_player2" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 105 40 430 425 + focusColor 1 1 1 1 // Focus color for text and items + style 1 + border 1 + descX 320 + descY 450 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + onOpen + { + uiScript "getcharcvars" + uiScript "character" + uiScript updateForceStatus + hide highlights + } + onClose + { + uiScript updateForceStatus + hide highlights + } + +// Overall window backdrop + itemDef + { + name background_pic + group none + style WINDOW_STYLE_SHADER + rect 0 0 430 425 + background "gfx/menus/menu_box_ingame" + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------- +// Player Configuration +//---------------------------------------- +// Player Configuration title + itemDef + { + name playerconfigtitle + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_CUSTOM_CHARACTER + rect 35 5 360 28 + textalign ITEM_ALIGN_CENTER + textalignx 180 + textaligny 2 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + font 3 + textscale 0.9 + forecolor .549 .854 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + } + +// Character model + itemDef + { + name character + group models + type ITEM_TYPE_MODEL + rect 270 84 200 225 + model_g2anim "BOTH_WALK1" + asset_model "ui_char_model" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + model_g2mins -30 -15 -14 + model_g2maxs 20 15 30 + model_rotation 50 + model_fovx 50 + model_fovy 50 + isCharacter 1 + visible 1 + decoration + } + +////////////////// +// SPECIES BUTTON +////////////////// + + itemDef + { + name species + group none + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 15 48 140 24 + forecolor .549 .854 1 1 + text @MENUS_SPECIES + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + font 3 + textscale 1 + visible 1 + decoration + } + + itemDef + { + name speciesbut_glow + group none + style WINDOW_STYLE_SHADER + rect 161 52 150 16 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name speciesbut + group none + text " " + descText @MENUS_CHOOSE_SPECIES + type ITEM_TYPE_MULTI + style WINDOW_STYLE_EMPTY + rect 161 52 150 16 + font 2 + textscale .9 + textaligny -5 + textalign ITEM_ALIGN_LEFT + textstyle 0 + textalignx 0 + backcolor 0 0 0 0 + forecolor .615 .615 .956 1 + feeder 19 //FEEDER_PLAYER_SPECIES + cvar "ui_char_model" + cvarStrList feeder + + visible 1 + + mouseEnter + { + show speciesbut_glow + } + mouseExit + { + hide speciesbut_glow + } + action + { + play "sound/interface/button1.wav" + uiScript "characterchanged" + uiScript "resetcharacterlistboxes" + } + } + +//////////////////// +// COLOR TINT AREA +//////////////////// + + + itemDef + { + name color + group none + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 15 80 160 24 + forecolor .549 .854 1 1 + text @MENUS_COLOR + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + font 3 + textscale 1 + visible 1 + decoration + } + + itemDef + { + name colorbox + group tints + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 32 + elementheight 32 + elementtype 1 //LISTBOX_IMAGE + feeder 23 //FEEDER_COLORCHOICES + horizontalscroll + border 1 + bordersize 1 + backcolor .66 .66 1 .25 + bordercolor .66 .66 1 1 + rect 15 104 292 48 + visible 1 + action + { + play "sound/interface/choose_color.wav" + } + } + +/////////////////////// +//APPEARANCE +////////////////////// + + itemDef + { + name appear + group none + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 15 160 180 24 + forecolor .549 .854 1 1 + text @MENUS_APPEARANCE + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + font 3 + textscale 1 + visible 1 + decoration + } + + // HEAD BUTTON + itemDef + { + name headbut_glow + group none + style WINDOW_STYLE_SHADER + rect 15 184 90 16 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name headbut + group none + text @MENUS_HEAD + descText @MENUS_SELECT_HEAD + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 15 184 90 16 + font 2 + textscale .9 + textaligny -5 + textalign ITEM_ALIGN_LEFT + textstyle 0 + textalignx 0 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show headbut_glow + } + mouseExit + { + hide headbut_glow + } + action + { + play "sound/interface/button1.wav" + show heads + hide torso + hide lower + } + } + + + // TORSO BUTTON + itemDef + { + name torsobut_glow + group none + style WINDOW_STYLE_SHADER + rect 111 184 90 16 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name torsobut + group none + text @MENUS_TORSO + descText @MENUS_SELECT_TORSO + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 111 184 90 16 + font 2 + textscale .9 + textaligny -5 + textalign ITEM_ALIGN_LEFT + textstyle 0 + textalignx 0 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show torsobut_glow + } + mouseExit + { + hide torsobut_glow + } + action + { + play "sound/interface/button1.wav" + show torso + hide heads + hide lower + } + } + + // LEGS BUTTON + itemDef + { + name legsbut_glow + group none + style WINDOW_STYLE_SHADER + rect 209 184 90 16 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name legsbut + group none + text @MENUS_LEGS + descText @MENUS_SELECT_LEGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 209 184 90 16 + font 2 + textscale .9 + textaligny -5 + textalign ITEM_ALIGN_LEFT + textstyle 0 + textalignx 0 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show legsbut_glow + } + mouseExit + { + hide legsbut_glow + } + action + { + play "sound/interface/button1.wav" + show lower + hide heads + hide torso + } + } + +////////////////////// +//LISTBOXES +////////////////////// + + itemDef + { + name headlistbox + group heads + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 72 + elementheight 72 + elementtype 1 //LISTBOX_IMAGE + feeder 20 //FEEDER_PLAYER_SKIN_HEAD + horizontalscroll + border 1 + bordersize 1 + backcolor .66 .66 1 .25 + bordercolor .66 .66 1 1 + forecolor -1 //use playercolor + rect 15 206 292 93 + visible 1 + action + { + play "sound/interface/choose_head.wav" + uiScript "char_skin" + } + } + + itemDef + { + name torsolistbox + group torso + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 72 + elementheight 72 + elementtype 1 //LISTBOX_IMAGE + feeder 21 //FEEDER_PLAYER_SKIN_TORSO + horizontalscroll + border 1 + bordersize 1 + backcolor .66 .66 1 .25 + bordercolor .66 .66 1 1 + forecolor -1 //use playercolor + rect 15 206 292 93 + visible 0 + action + { + play "sound/interface/choose_torso.wav" + uiScript "char_skin" + } + } + + itemDef + { + name lowerlistbox + group lower + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 72 + elementheight 72 + elementtype 1 //LISTBOX_IMAGE + feeder 22 //FEEDER_PLAYER_SKIN_LEGS + horizontalscroll + border 1 + bordersize 1 + backcolor .66 .66 1 .25 + bordercolor .66 .66 1 1 + forecolor -1 //use playercolor + rect 15 206 292 93 + visible 0 + action + { + play "sound/interface/choose_head.wav" + uiScript "char_skin" + } + } + + itemDef + { + name backButton + group highlights + style WINDOW_STYLE_SHADER + rect 30 370 110 32 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + // BACK button + itemDef + { + name backmenu_button + text @MENUS_BACK + descText @MENUS_RETURN_PREVIOUS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 30 370 110 32 + font 2 + textscale .9 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 55 + textaligny 2 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show backButton + } + mouseExit + { + hide backButton + } + + action + { + play "sound/interface/esc.wav" ; + close ingame_player2 ; + open ingame_player ; + } + + } + +//--------------------------------------------- +// APPLY BUTTON +//--------------------------------------------- +// APPLY, already on a team + itemDef + { + name applyjoinButton + group highlights + style WINDOW_STYLE_SHADER + rect 290 370 110 32 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name applycurrent + group "playerapply" + text @MENUS_APPLY + type 1 + style WINDOW_STYLE_EMPTY + rect 290 370 110 32 + textalign ITEM_ALIGN_CENTER + textalignx 55 + textaligny 2 + font 2 + textscale .9 + forecolor 1 .682 0 1 + descText @MENUS_APPLY_CHANGES_AND_JOIN + visible 1 + action + { + play "sound/interface/button1" + uiScript "updatecharmodel" + hide highlights + close ingame_player2 + open ingame_player + } + mouseEnter + { + show applyjoinButton + } + mouseExit + { + hide applyjoinButton + } + } + + } +} diff --git a/base/ui/jamp/ingame_playerforce.menu b/base/ui/jamp/ingame_playerforce.menu new file mode 100644 index 0000000..0728519 --- /dev/null +++ b/base/ui/jamp/ingame_playerforce.menu @@ -0,0 +1,1575 @@ +//----------------------------------- +// SETUP MENU +//----------------------------------- +{ + menuDef + { + name "ingame_playerforce" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 105 40 430 425 + focusColor 1 1 1 1 // Focus color for text and items + style 1 + border 1 + descX 320 + descY 450 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + onOpen + { + uiScript setForce "none" + } + onClose + { + uiScript setForce "none" + // open ingame_player + } + onEsc + { + close ingame_playerforce ; + } + + // Overall window backdrop + itemDef + { + name background_pic + group none + style WINDOW_STYLE_SHADER + rect 0 0 430 425 + background "gfx/menus/menu_box_ingame" + forecolor 1 1 1 1 + visible 1 + decoration + } + + //---------------------------------------- + // Force Configuration + //---------------------------------------- + // Player Configuration title + itemDef + { + name playerconfigtitle + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_CHOOSE_YOUR_FORCE_TRAINING + rect 20 5 390 28 + textalign ITEM_ALIGN_CENTER + textalignx 195 + textaligny 2 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + font 3 + textscale 0.9 + forecolor .549 .854 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + decoration + } + + // Force Rank display + itemDef + { + name siderank + group "playersettingforcegroup" + style 0 + text @MENUS_FORCE_MASTERY + ownerdraw UI_FORCE_RANK + rect 220 40 0 0 + textalign ITEM_ALIGN_CENTER + textalignx 0 + textaligny -6 + font 2 + textscale 1 + forecolor 1 .682 0 1 + backcolor 0 0 0 0 + visible 1 + decoration + } + + // Force Configuration title + itemDef + { + name playerconfigtitle + style 0 + text @MENUS_SPEND_YOUR_POINTS_BY + rect 220 60 0 0 + textalign ITEM_ALIGN_CENTER + textalignx 0 + textaligny 0 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + font 4 + textscale 1 + forecolor 1 .682 0 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + decoration + } + + // Force background light + itemDef + { + name forcedivlight + group lightpowers + style WINDOW_STYLE_SHADER + rect 0 85 225 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 1 + decoration + } + + // Force background dark + itemDef + { + name forcedivdark + group darkpowers + style WINDOW_STYLE_SHADER + rect 00 85 225 20 + background "gfx/menus/menu_blendboxr" + forecolor 1 1 1 1 + visible 1 + decoration + } + + + // Force Side Chooser + itemDef + { + name setside + group "playersettingforcegroup" + style 0 + text @MENUS_FORCE_SIDE + ownerdraw UI_FORCE_SIDE + rect 26 85 175 16 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -5 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + font 2 + textscale 1 + forecolor .615 .615 .956 1 + border 0 + bordercolor 0 0 0 0 + descText @MENUS_CHOOSE_THE_PATH_OF_THE + visible 1 + action + { + play "sound/interface/button1.wav" ; + } + } + + // Force points remaining + itemDef + { + name siderank + group "playersettingforcegroup" + style 0 + text @MENUS_POINTS_REMAINING + ownerdraw UI_FORCE_POINTS + rect 250 85 0 0 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny -5 + font 2 + textscale 1 + forecolor .549 .854 1 1 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + border 0 + bordercolor 0 0 0 0 + visible 1 + decoration + } + + + + //---------------------------------------- + // FORCE TEMPLATES + //---------------------------------------- + // Force Template title + itemDef + { + name fcflist + group "playersettingforcegroup" + style 0 + text @MENUS_FORCE_TEMPLATES + rect 16 113 0 0 + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 0 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + font 4 + textscale 1 + forecolor .549 .854 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + decoration + } + + // Force Template picker + itemDef + { + name fcflist + rect 16 130 185 110 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 155 + elementheight 17 + font 2 + textscale .75 + elementtype LISTBOX_TEXT + feeder FEEDER_FORCECFG + textstyle 6 + textalign 3 + textaligny 2 + border 1 + bordercolor .5 .5 .5 1 + forecolor .615 .615 .956 1 + backcolor 0 0 .5 .25 + outlinecolor .25 .464 .578 .5 + descText @MENUS_CHOOSE_A_PRE_MADE_ALLOCATION + visible 1 + columns 1 2 190 250 + mouseenter + { + setitemcolor fcflist bordercolor 1 0 0 1 + } + mouseexit + { + setitemcolor fcflist bordercolor .5 .5 .5 1 + } + action + { + play "sound/interface/button1.wav" ; + } + } + + + //---------------------------------------- + // SAVE TEMPLATE + //---------------------------------------- + + //Save template title entry field + itemDef + { + name namefield + type ITEM_TYPE_EDITFIELD + style 0 + text @MENUS_FILENAME + cvar "ui_SaveFCF" + maxchars 12 + rect 5 250 185 32 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + border 0 + bordercolor 0 0 0 0 + descText @MENUS_ENTER_THE_TITLE_FOR_YOUR + visible 1 + } + + //Save template button + itemDef + { + name templatesavebutton + group "playerforcetemplatesave" + style WINDOW_STYLE_SHADER + rect 16 280 185 32 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + decoration + visible 0 + } + + //Save template button + itemDef + { + name templatesavetext + group "playerforcetemplatesave" + style WINDOW_STYLE_EMPTY + textalign ITEM_ALIGN_LEFT + rect 16 320 185 32 + forecolor 1 .682 0 .8 + font 4 + textscale 1 + text @MENUS_MATCHING_NAMES + decoration + visible 0 + } + + itemDef + { + name templatesave + group "playerforcetemplatesave" + text @MENUS_SAVE_FILE + type 1 + style WINDOW_STYLE_EMPTY + rect 16 280 185 32 + textalign 1 + textalignx 92 + textaligny 2 + font 2 + textscale 1 + forecolor 1 .682 0 1 + descText @MENUS_SAVE_CURRENT_FORCE_SETUP + visible 1 + action + { + play "sound/interface/button1.wav" ; + uiScript saveTemplate; + } + mouseEnter + { + show templatesavetext + show templatesavebutton + } + mouseExit + { + hide templatesavetext + hide templatesavebutton + } + } + + //---------------------------------------- + // FORCE POWER HEADERS + //---------------------------------------- + + //---------------------------------------- + // NEUTRAL POWERS + //---------------------------------------- + + // Force Ranks title + itemDef + { + name forceranktitle + group "playersettingforcegroup" + style 0 + text @MENUS_POWER + rect 230 112 0 0 + textalign ITEM_ALIGN_RIGHT + textalignx 104 + textaligny 0 + outlinecolor 1 .5 .5 .5 + backcolor 0.3 0.3 0.3 1 + font 4 + textscale 1 + forecolor .549 .854 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + decoration + } + + itemDef + { + name forceranktitle2 + group "playersettingforcegroup" + style 0 + text @MENUS_1_2_3 + rect 230 112 0 0 + textalign ITEM_ALIGN_LEFT + textalignx 115 + textaligny 0 + outlinecolor 1 .5 .5 .5 + backcolor 0.3 0.3 0.3 1 + font 4 + textscale 1 + forecolor .549 .854 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + decoration + } + + // Force Jump Title + itemDef + { + name setfp_jump + group "playersettingforcegroup" + style 0 + text @MENUS_FORCE_JUMP + //descText @MENUS_DESCRIPTION_OF_A_FORCE + rect 230 130 110 15 + textalign ITEM_ALIGN_RIGHT + textalignx 105 + textaligny 0 + font 4 + textscale 1 + forecolor 0.8 0.8 0.8 1 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + border 0 + bordercolor 0 0 0 0 + visible 1 + decoration + } + + // Force Jump Dots + itemDef + { + name setfp_jump + group "playersettingforcegroup" + style 0 + ownerdraw UI_FORCE_RANK_LEVITATION + rect 230 130 175 15 + textalign ITEM_ALIGN_LEFT + textalignx 115 + textaligny -6 + textscale .25 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + forecolor 0.8 0.8 0.8 1 + border 0 + bordercolor 0 0 0 0 + descText @MENUS_LEAP_TO_AMAZING_HEIGHTS + visible 1 + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + setitemcolor setfp_jump forecolor 1 1 1 1 + } + mouseexit + { + setitemcolor setfp_jump forecolor 0.8 0.8 0.8 1 + } + } + + // Force Push title + itemDef + { + name setfp_push + group "playersettingforcegroup" + style 0 + text @MENUS_FORCE_PUSH + //descText @MENUS_DESCRIPTION_OF_A_FORCE + rect 230 147 110 15 + textalign ITEM_ALIGN_RIGHT + textalignx 105 + textaligny 0 + font 4 + textscale 1 + forecolor 0.8 0.8 0.8 1 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + border 0 + bordercolor 0 0 0 0 + visible 1 + decoration + } + + // Force Push Assign + itemDef + { + name setfp_push + group "playersettingforcegroup" + style 0 + ownerdraw UI_FORCE_RANK_PUSH + rect 230 147 175 15 + textalign ITEM_ALIGN_LEFT + textalignx 115 + textaligny -6 + textscale .25 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + forecolor 0.8 0.8 0.8 1 + border 0 + bordercolor 0 0 0 0 + descText @MENUS_PUSH_YOUR_FOES_AWAY_AND + visible 1 + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + setitemcolor setfp_push forecolor 1 1 1 1 + } + mouseexit + { + setitemcolor setfp_push forecolor 0.8 0.8 0.8 1 + } + } + + // Force Pull title + itemDef + { + name setfp_pull + group "playersettingforcegroup" + style 0 + text @MENUS_FORCE_PULL + //descText @MENUS_DESCRIPTION_OF_A_FORCE + rect 230 164 110 15 + textalign ITEM_ALIGN_RIGHT + textalignx 105 + textaligny 0 + font 4 + textscale 1 + forecolor 0.8 0.8 0.8 1 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + border 0 + bordercolor 0 0 0 0 + visible 1 + decoration + } + + // Force Pull assign + itemDef + { + name setfp_pull + group "playersettingforcegroup" + style 0 + ownerdraw UI_FORCE_RANK_PULL + rect 230 164 175 15 + textalign ITEM_ALIGN_LEFT + textalignx 115 + textaligny -6 + textscale .25 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + forecolor 0.8 0.8 0.8 1 + border 0 + bordercolor 0 0 0 0 + descText @MENUS_PULL_YOUR_FOES_TO_YOU + visible 1 + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + setitemcolor setfp_pull forecolor 1 1 1 1 + } + mouseexit + { + setitemcolor setfp_pull forecolor 0.8 0.8 0.8 1 + } + } + + // Force Speed Title + itemDef + { + name setfp_speed + group "playersettingforcegroup" + style 0 + text @MENUS_FORCE_SPEED + //descText @MENUS_DESCRIPTION_OF_A_FORCE + rect 230 181 110 15 + textalign ITEM_ALIGN_RIGHT + textalignx 105 + textaligny 0 + font 4 + textscale 1 + forecolor 0.8 0.8 0.8 1 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + border 0 + bordercolor 0 0 0 0 + visible 1 + decoration + } + + // Force Speed Assign + itemDef + { + name setfp_speed + group "playersettingforcegroup" + style 0 + ownerdraw UI_FORCE_RANK_SPEED + rect 230 181 175 15 + textalign ITEM_ALIGN_LEFT + textalignx 115 + textaligny -6 + textscale .25 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + forecolor 0.8 0.8 0.8 1 + border 0 + bordercolor 0 0 0 0 + descText @MENUS_MOVE_AT_AN_ACCELERATED + visible 1 + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + setitemcolor setfp_speed forecolor 1 1 1 1 + } + mouseexit + { + setitemcolor setfp_speed forecolor 0.8 0.8 0.8 1 + } + } + + // Force Sight title + itemDef + { + name setfp_see + group "playersettingforcegroup" + style 0 + text @MENUS_FORCE_SIGHT + rect 230 198 110 15 + textalign ITEM_ALIGN_RIGHT + textalignx 105 + textaligny 0 + font 4 + textscale 1 + forecolor 0.8 0.8 0.8 1 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + border 0 + bordercolor 0 0 0 0 + visible 1 + decoration + } + + // Force Sight assign + itemDef + { + name setfp_see + group "playersettingforcegroup" + style 0 + ownerdraw UI_FORCE_RANK_SEE + rect 230 198 175 15 + textalign ITEM_ALIGN_LEFT + textalignx 115 + textaligny -6 + textscale .25 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + forecolor 0.8 0.8 0.8 1 + border 0 + bordercolor 0 0 0 0 + descText @MENUS_SEE_ENEMIES_AT_ALL_TIMES + visible 1 + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + setitemcolor setfp_see forecolor 1 1 1 1 + } + mouseexit + { + setitemcolor setfp_see forecolor 0.8 0.8 0.8 1 + } + } + + //---------------------------------------- + // LIGHTSIDE POWERS + //---------------------------------------- + + // Force Absorb title + itemDef + { + name setfp_absorb + group lightpowers + style 0 + text @MENUS_FORCE_ABSORB + rect 230 223 110 15 + textalign ITEM_ALIGN_RIGHT + textalignx 105 + textaligny 0 + font 4 + textscale 1 + forecolor 0.5 0.5 1 1 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + border 0 + bordercolor 0 0 0 0 + visible 1 + decoration + } + + // Force Absorb assign + itemDef + { + name setfp_absorb + group lightpowers + style 0 + ownerdraw UI_FORCE_RANK_ABSORB + rect 230 223 175 15 + textalign ITEM_ALIGN_LEFT + textalignx 115 + textaligny -6 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + forecolor 0.5 0.5 1 1 + border 0 + bordercolor 0 0 0 0 + descText @MENUS_PROTECT_AGAINST_FORCE + visible 1 + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + setitemcolor setfp_absorb forecolor 0.75 0.75 1 1 + } + mouseexit + { + setitemcolor setfp_absorb forecolor 0.5 0.5 1 1 + } + } + + // Force Heal title + itemDef + { + name setfp_healself + group lightpowers + style 0 + text @MENUS_FORCE_HEAL + //descText @MENUS_DESCRIPTION_OF_A_FORCE + rect 230 240 110 15 + textalign ITEM_ALIGN_RIGHT + textalignx 105 + textaligny 0 + font 4 + textscale 1 + forecolor 0.5 0.5 1 1 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + border 0 + bordercolor 0 0 0 0 + visible 1 + decoration + } + + // Force Heal title + itemDef + { + name setfp_healself + group lightpowers + style 0 + ownerdraw UI_FORCE_RANK_HEAL + rect 230 240 175 15 + textalign ITEM_ALIGN_LEFT + textalignx 115 + textaligny -6 + textscale .9 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + forecolor 0.5 0.5 1 1 + border 0 + bordercolor 0 0 0 0 + descText @MENUS_HEAL_YOUR_BODY_WITH_THE + visible 1 + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + setitemcolor setfp_healself forecolor 0.75 0.75 1 1 + } + mouseexit + { + setitemcolor setfp_healself forecolor 0.5 0.5 1 1 + } + } + + // Force Protection title + itemDef + { + name setfp_protect + group lightpowers + style 0 + text @MENUS_FORCE_PROTECT + rect 230 257 110 15 + textalign ITEM_ALIGN_RIGHT + textalignx 105 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + textaligny 0 + font 4 + textscale 1 + forecolor 0.5 0.5 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + decoration + } + + // Force Protection assign + itemDef + { + name setfp_protect + group lightpowers + style 0 + ownerdraw UI_FORCE_RANK_PROTECT + rect 230 257 175 15 + textalign ITEM_ALIGN_LEFT + textalignx 115 + textaligny -6 + textscale .25 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + forecolor 0.5 0.5 1 1 + border 0 + bordercolor 0 0 0 0 + descText @MENUS_CREATE_AN_AURA_THAT_PROTECTS + visible 1 + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + setitemcolor setfp_protect forecolor 0.75 0.75 1 1 + } + mouseexit + { + setitemcolor setfp_protect forecolor 0.5 0.5 1 1 + } + } + + // Force Mind Trick title + itemDef + { + name setfp_mindtrick + group lightpowers + style 0 + text @MENUS_FORCE_MINDTRICK + rect 230 274 110 15 + textalign ITEM_ALIGN_RIGHT + textalignx 105 + textaligny 0 + font 4 + textscale 1 + forecolor 0.5 0.5 1 1 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + border 0 + bordercolor 0 0 0 0 + visible 1 + decoration + } + + // Force Mind Trick assign + itemDef + { + name setfp_mindtrick + group lightpowers + style 0 + ownerdraw UI_FORCE_RANK_TELEPATHY + rect 230 274 175 15 + textalign ITEM_ALIGN_LEFT + textalignx 115 + textaligny -6 + textscale .9 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + forecolor 0.5 0.5 1 1 + border 0 + bordercolor 0 0 0 0 + descText @MENUS_RENDER_YOURSELF_INVISIBLE + visible 1 + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + setitemcolor setfp_mindtrick forecolor 0.75 0.75 1 1 + } + mouseexit + { + setitemcolor setfp_mindtrick forecolor 0.5 0.5 1 1 + } + } + + // Force Team Heal title + itemDef + { + name setfp_teamheal + group lightpowers_team + style 0 + text @MENUS_FORCE_TEAM_HEAL + rect 230 291 110 15 + textalign ITEM_ALIGN_RIGHT + textalignx 105 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + textaligny 0 + font 4 + textscale 1 + forecolor 0.5 0.5 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + decoration + cvarTest "ui_about_gametype" + hideCvar + { + "0" ; + "1" ; + "2" ; + "3" ; + "4" + } + } + + // Force Team Heal assign + itemDef + { + name setfp_teamheal + group lightpowers_team + style 0 + ownerdraw UI_FORCE_RANK_TEAM_HEAL + rect 230 291 175 15 + textalign ITEM_ALIGN_LEFT + textalignx 115 + textaligny -6 + textscale .25 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + forecolor 0.5 0.5 1 1 + border 0 + bordercolor 0 0 0 0 + descText @MENUS_CHANNEL_THE_FORCE_TO + visible 1 + cvarTest "ui_about_gametype" + hideCvar + { + "0" ; + "1" ; + "2" ; + "3" ; + "4" + } + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + setitemcolor setfp_teamheal forecolor 0.75 0.75 1 1 + } + mouseexit + { + setitemcolor setfp_teamheal forecolor 0.5 0.5 1 1 + } + } + + //---------------------------------------- + // DARKSIDE POWERS + //---------------------------------------- + + // Force Grip title + itemDef + { + name setfp_grip + group darkpowers + style 0 + text @MENUS_FORCE_GRIP + //descText @MENUS_DESCRIPTION_OF_A_FORCE + rect 230 223 110 15 + textalign ITEM_ALIGN_RIGHT + textalignx 105 + textaligny 0 + font 4 + textscale 1 + forecolor 1 0.2 0.2 1 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + border 0 + bordercolor 0 0 0 0 + visible 1 + decoration + } + + // Force Grip assign + itemDef + { + name setfp_grip + group darkpowers + style 0 + ownerdraw UI_FORCE_RANK_GRIP + rect 230 223 175 15 + textalign ITEM_ALIGN_LEFT + textalignx 115 + textaligny -6 + textscale .25 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + forecolor 1 0.2 0.2 1 + border 0 + bordercolor 0 0 0 0 + descText @MENUS_IMMOBILIZE_OPPONENTS + visible 1 + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + setitemcolor setfp_grip forecolor 1 0.7 0.7 1 + } + mouseexit + { + setitemcolor setfp_grip forecolor 1 0.2 0.2 1 + } + } + + // Force Drain title + itemDef + { + name setfp_drain + group darkpowers + style 0 + text @MENUS_FORCE_DRAIN + //descText @MENUS_DESCRIPTION_OF_A_FORCE + rect 230 240 110 15 + textalign ITEM_ALIGN_RIGHT + textalignx 105 + textaligny 0 + font 4 + textscale 1 + forecolor 1 0.2 0.2 1 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + border 0 + bordercolor 0 0 0 0 + visible 1 + decoration + } + + // Force Drain assign + itemDef + { + name setfp_drain + group darkpowers + style 0 + ownerdraw UI_FORCE_RANK_DRAIN + rect 230 240 175 15 + textalign ITEM_ALIGN_LEFT + textalignx 115 + textaligny -6 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + forecolor 1 0.2 0.2 1 + border 0 + bordercolor 0 0 0 0 + descText @MENUS_DRAIN_THE_FORCE_POWER + visible 1 + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + setitemcolor setfp_drain forecolor 1 0.7 0.7 1 + } + mouseexit + { + setitemcolor setfp_drain forecolor 1 0.2 0.2 1 + } + } + + // Force Lightning title + itemDef + { + name setfp_lightning + group darkpowers + style 0 + text @MENUS_FORCE_LIGHTNING + //descText @MENUS_DESCRIPTION_OF_A_FORCE + rect 230 257 110 15 + textalign ITEM_ALIGN_RIGHT + textalignx 105 + textaligny 0 + font 4 + textscale 1 + forecolor 1 0.2 0.2 1 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + border 0 + bordercolor 0 0 0 0 + visible 1 + decoration + } + + // Force Lightning assign + itemDef + { + name setfp_lightning + group darkpowers + style 0 + ownerdraw UI_FORCE_RANK_LIGHTNING + rect 230 257 175 15 + textalign ITEM_ALIGN_LEFT + textalignx 115 + textaligny -6 + textscale .25 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + forecolor 1 0.2 0.2 1 + border 0 + bordercolor 0 0 0 0 + descText @MENUS_UNLEASH_DEADLY_ELECTRICAL + visible 1 + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + setitemcolor setfp_lightning forecolor 1 0.7 0.7 1 + } + mouseexit + { + setitemcolor setfp_lightning forecolor 1 0.2 0.2 1 + } + } + + // Force Rage title + itemDef + { + name setfp_rage + group darkpowers + style 0 + text @MENUS_DARK_RAGE + //descText @MENUS_DESCRIPTION_OF_A_FORCE + rect 230 274 110 15 + textalign ITEM_ALIGN_RIGHT + textalignx 105 + textaligny 0 + font 4 + textscale 1 + forecolor 1 0.2 0.2 1 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + border 0 + bordercolor 0 0 0 0 + visible 1 + decoration + } + + // Force Rage assign + itemDef + { + name setfp_rage + group darkpowers + style 0 + ownerdraw UI_FORCE_RANK_RAGE + rect 230 274 175 15 + textalign ITEM_ALIGN_LEFT + textalignx 115 + textaligny -6 + textscale .25 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + forecolor 1 0.2 0.2 1 + border 0 + bordercolor 0 0 0 0 + descText @MENUS_BECOME_A_NEARLY_UNSTOPPABLE + visible 1 + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + setitemcolor setfp_rage forecolor 1 0.7 0.7 1 + } + mouseexit + { + setitemcolor setfp_rage forecolor 1 0.2 0.2 1 + } + } + + // Force Team Energize title + itemDef + { + name setfp_powerother + group darkpowers_team + style 0 + text @MENUS_FORCE_TEAM_REPLENISH + //descText @MENUS_DESCRIPTION_OF_A_FORCE + rect 230 291 110 15 + textalign ITEM_ALIGN_RIGHT + textalignx 105 + textaligny 0 + font 4 + textscale 1 + forecolor 1 0.2 0.2 1 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + border 0 + bordercolor 0 0 0 0 + visible 1 + decoration + cvarTest "ui_about_gametype" + hideCvar + { + "0" ; + "1" ; + "2" ; + "3" ; + "4" + } + } + + // Force Team Energize assign + itemDef + { + name setfp_powerother + group darkpowers_team + style 0 + ownerdraw UI_FORCE_RANK_TEAM_FORCE + rect 230 291 175 15 + textalign ITEM_ALIGN_LEFT + textalignx 115 + textaligny -6 + textscale .25 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + forecolor 1 0.2 0.2 1 + border 0 + bordercolor 0 0 0 0 + descText @MENUS_THE_FORCE_TO_BOOST_THE + visible 1 + cvarTest "ui_about_gametype" + hideCvar + { + "0" ; + "1" ; + "2" ; + "3" ; + "4" + } + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + setitemcolor setfp_powerother forecolor 1 0.7 0.7 1 + } + mouseexit + { + setitemcolor setfp_powerother forecolor 1 0.2 0.2 1 + } + } + + //---------------------------------------- + // SABER POWERS + //---------------------------------------- + + // Saber attack title + itemDef + { + name setfp_saberattack + group "playersettingforcegroup" + style 0 + text @MENUS_SABER_ATTACK + //descText @MENUS_DESCRIPTION_OF_A_FORCE + rect 230 316 110 15 + textalign ITEM_ALIGN_RIGHT + textalignx 105 + textaligny 0 + font 4 + textscale 1 + forecolor 0.8 0.8 0.8 1 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + border 0 + bordercolor 0 0 0 0 + visible 1 + decoration + } + + // Saber attack assign + itemDef + { + name setfp_saberattack + group "playersettingforcegroup" + style 0 + ownerdraw UI_FORCE_RANK_SABERATTACK + rect 230 316 175 15 + textalign ITEM_ALIGN_LEFT + textalignx 115 + textaligny -6 + textscale .25 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + forecolor 0.8 0.8 0.8 1 + border 0 + bordercolor 0 0 0 0 + descText @MENUS_USE_MORE_POWERFUL_LIGHTSABER + visible 1 + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + setitemcolor setfp_saberattack forecolor 1 1 1 1 + } + mouseexit + { + setitemcolor setfp_saberattack forecolor 0.8 0.8 0.8 1 + } + } + + // Saber Defend title + itemDef + { + name setfp_saberdefend + group "playersettingforcegroup" + style 0 + text @MENUS_SABER_DEFEND + //descText @MENUS_DESCRIPTION_OF_A_FORCE + rect 230 333 110 15 + textalign ITEM_ALIGN_RIGHT + textalignx 105 + textaligny 0 + font 4 + textscale 1 + forecolor 0.8 0.8 0.8 1 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + border 0 + bordercolor 0 0 0 0 + visible 1 + decoration + } + + // Saber Defend assign + itemDef + { + name setfp_saberdefend + group "playersettingforcegroup" + style 0 + ownerdraw UI_FORCE_RANK_SABERDEFEND + rect 230 333 175 15 + textalign ITEM_ALIGN_LEFT + textalignx 115 + textaligny -6 + textscale .25 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + forecolor 0.8 0.8 0.8 1 + border 0 + bordercolor 0 0 0 0 + descText @MENUS_USE_THE_LIGHTSABER_TO + visible 1 + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + setitemcolor setfp_saberdefend forecolor 1 1 1 1 + } + mouseexit + { + setitemcolor setfp_saberdefend forecolor 0.8 0.8 0.8 1 + } + } + + // Saber Throw title + itemDef + { + name setfp_saberthrow + group "playersettingforcegroup" + style 0 + text @MENUS_SABER_THROW + //descText @MENUS_DESCRIPTION_OF_A_FORCE + rect 230 350 110 15 + textalign ITEM_ALIGN_RIGHT + textalignx 105 + textaligny 0 + font 4 + textscale 1 + forecolor 0.8 0.8 0.8 1 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + border 0 + bordercolor 0 0 0 0 + visible 1 + decoration + } + + // Saber Throw assign + itemDef + { + name setfp_saberthrow + group "playersettingforcegroup" + style 0 + ownerdraw UI_FORCE_RANK_SABERTHROW + rect 230 350 175 15 + textalign ITEM_ALIGN_LEFT + textalignx 115 + textaligny -6 + textscale .25 + outlinecolor 1 .5 .5 .5 + background "forcecirclegray" + backcolor 0 0 0 0 + forecolor 0.8 0.8 0.8 1 + border 0 + bordercolor 0 0 0 0 + descText @MENUS_THROW_YOUR_LIGHTSABER + visible 1 + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + setitemcolor setfp_saberthrow forecolor 1 1 1 1 + } + mouseexit + { + setitemcolor setfp_saberthrow forecolor 0.8 0.8 0.8 1 + } + } + + itemDef + { + name nosaber + group "playersettinggroup" + text @MENUS_NO_LIGHTSABER + type 1 + style 0 + rect 253 338 0 0 + textalign ITEM_ALIGN_CENTER + textalignx 65 + textaligny 0 + font 4 + textscale 1 + forecolor 0.5 0.5 0.5 1 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + border 0 + bordercolor 0 0 0 0 + descText @MENUS_MUST_ACQUIRE_A_MINIMUM + visible 0 + decoration + } + + // Add Saber Attack for saber + itemDef + { + name nosaber + group "playersettinggroup" + text @MENUS__REQUIRES_SABER_ATTACK + type 1 + style 0 + rect 253 355 0 0 + textalign ITEM_ALIGN_CENTER + textalignx 65 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + textaligny 0 + font 4 + textscale 1 + forecolor 0.5 0.5 0.5 1 + border 0 + bordercolor 0 0 0 0 + descText @MENUS_MUST_ACQUIRE_A_MINIMUM + visible 0 + decoration + } + + // Invisible description box + itemDef + { + name nosaber + group "playersettinggroup" + style 0 + rect 230 338 175 34 + forecolor .7 .7 .7 1 + decoration + descText @MENUS_MUST_ACQUIRE_A_MINIMUM + visible 0 + } + + //--------------------------------------------- + // APPLY BUTTON + //--------------------------------------------- + itemDef + { + name applyjoinbutton + group "playerforcejoin" + style WINDOW_STYLE_SHADER + rect 140 370 150 32 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name applyjoin + group "playerforcejoin" + text @MENUS_APPLY_POWERS + type 1 + style WINDOW_STYLE_EMPTY + rect 140 370 150 32 + textalign 1 + textalignx 75 + textaligny 2 + font 2 + textscale 1 + forecolor 1 .682 0 1 + descText @MENUS_MAKE_THESE_CHANGES_TO + visible 1 + action + { + play "sound/interface/button1.wav" ; + uiScript setForce "same" + close ingame_playerforce ; +// uiScript updateForceStatus ; + open ingame_player + } + mouseEnter + { + show applyjoinbutton + } + mouseExit + { + hide applyjoinbutton + } + } + } +} + \ No newline at end of file diff --git a/base/ui/jamp/ingame_saber.menu b/base/ui/jamp/ingame_saber.menu new file mode 100644 index 0000000..4e336ee --- /dev/null +++ b/base/ui/jamp/ingame_saber.menu @@ -0,0 +1,1040 @@ +{ + menuDef + { + name "ingame_saber" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 105 40 430 425 + focusColor 1 1 1 1 // Focus color for text and items + style 1 + border 1 + descX 320 + descY 440 + descScale 1 + descColor 1 .682 0 1 // Focus color for text and items + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + hide highlights + uiScript "getsabercvars" + uiScript "saber_hilt" + uiScript "saber_color" + uiScript "saber2_hilt" + uiScript "saber2_color" + setitemcolor typebut_single forecolor .65 .65 1 1 + setitemcolor typebut_dual forecolor .65 .65 1 1 + setitemcolor typebut_staff forecolor .65 .65 1 1 + uiScript getsaberhiltinfo + } + onClose + { + hide highlights + } + +// Overall window backdrop + itemDef + { + name background_pic + group none + style WINDOW_STYLE_SHADER + rect 0 0 430 425 + background "gfx/menus/menu_box_ingame" + forecolor 1 1 1 1 + visible 1 + decoration + } + +// Screen title + itemDef + { + name playerconfigtitle + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_LIGHTSABER_CREATION + rect 20 5 390 28 + textalign ITEM_ALIGN_CENTER + textalignx 195 + textaligny 2 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + font 3 + textscale 0.9 + forecolor 1 1 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + } + +//---------------------------------------------------------------------------------------------- +// SABER TYPE BUTTONS (standard, dual, two handed) +//---------------------------------------------------------------------------------------------- + itemDef + { + name typebut + group none + text @MENUS_SABER_TYPE + descText @MENUS_SABER_TYPE_DESC + style WINDOW_STYLE_EMPTY + rect 15 38 160 24 + font 3 + textscale .9 + textstyle 0 + textalignx 0 + textaligny 0 + textalign ITEM_ALIGN_LEFT + backcolor 0 0 0 0 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + itemDef + { + name typebut_single_glow + group none + style WINDOW_STYLE_SHADER + rect 15 72 180 16 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + + //cvarTest ui_saber_type + //showCvar { "single" } + } + + itemDef + { + name typebut_dual_glow + group none + style WINDOW_STYLE_SHADER + rect 15 88 180 16 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name typebut_staff_glow + group none + style WINDOW_STYLE_SHADER + rect 15 104 180 16 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name typebut_single + group none + text @MENUS_SINGLESABER + descText @MENUS_SINGLESABER_DESC + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 15 72 160 16 + font 4 + textscale 1 + textstyle 0 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny 0 + forecolor 1 1 1 1 + visible 1 + mouseEnter + { + show typebut_single_glow + } + mouseExit + { + hide typebut_single_glow + } + action + { + play "sound/interface/choose_saber.wav" + setcvar ui_saber_type "single" + uiScript "saber_type" + setcvar ui_saber "single_1" + setcvar ui_saber2 "none" + uiScript "saber_hilt" + uiScript "saber_color" + uiScript "saber2_hilt" + uiScript "saber2_color" + setitemcolor typebut_single forecolor 1 1 1 1 + setitemcolor typebut_dual forecolor .65 .65 1 1 + setitemcolor typebut_staff forecolor .65 .65 1 1 + show sabstyle + transition2 saber 0 "0" 430 430 20 10 + } + } + + itemDef + { + name typebut_dual + group none + text @MENUS_DUALSABERS + descText @MENUS_DUALSABERS_DESC + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 15 88 160 16 + font 4 + textscale 1 + textstyle 0 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny 0 + forecolor 1 1 1 1 + visible 1 + mouseEnter + { + show typebut_dual_glow + } + mouseExit + { + hide typebut_dual_glow + } + action + { + play "sound/interface/choose_saber.wav" + setcvar ui_saber_type "dual" + uiScript "saber_type" + setcvar ui_saber "single_1" + setcvar ui_saber2 "single_1" + uiScript "saber_hilt" + uiScript "saber_color" + uiScript "saber2_hilt" + uiScript "saber2_color" + setitemcolor typebut_single forecolor .65 .65 1 1 + setitemcolor typebut_dual forecolor 1 1 1 1 + setitemcolor typebut_staff forecolor .65 .65 1 1 + hide sabstyle + transition2 saber 0 "-20" 430 430 20 5 + } + } + + itemDef + { + name typebut_staff + group none + text @MENUS_SABERSTAFF + descText @MENUS_SABERSTAFF_DESC + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 15 104 160 16 + font 4 + textscale 1 + textstyle 0 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny 0 + forecolor 1 1 1 1 + visible 1 + mouseEnter + { + show typebut_staff_glow + } + mouseExit + { + hide typebut_staff_glow + } + action + { + play "sound/interface/choose_saber.wav" + setcvar ui_saber_type "staff" + uiScript "saber_type" + setcvar ui_saber "dual_1" + setcvar ui_saber2 "none" + uiScript "saber_hilt" + uiScript "saber_color" + uiScript "saber2_hilt" + uiScript "saber2_color" + setitemcolor typebut_single forecolor .65 .65 1 1 + setitemcolor typebut_dual forecolor .65 .65 1 1 + setitemcolor typebut_staff forecolor 1 1 1 1 + hide sabstyle + transition2 saber 0 "0" 430 430 20 10 + } + } + +//---------------------------------------------------------------------------------------------- +//HILTS +//---------------------------------------------------------------------------------------------- + itemDef + { + name hilttype + group none + text @MENUS_HILT1 + descText @MENUS_SABER_HILTS_DESC + style WINDOW_STYLE_EMPTY + rect 200 34 160 24 + font 3 + textscale .9 + textstyle 0 + textalignx 0 + textaligny 0 + textalign ITEM_ALIGN_LEFT + backcolor 0 0 0 0 + forecolor .549 .854 1 1 + visible 1 + cvarTest ui_saber_type + hideCvar { "dual" } + decoration + } + + itemDef + { + name hilttype + group none + text @MENUS_HILT1 + descText @MENUS_SABER_HILTS_DESC + style WINDOW_STYLE_EMPTY + rect 200 34 160 24 + font 3 + textscale .7 + textstyle 0 + textalignx 0 + textaligny 0 + textalign ITEM_ALIGN_LEFT + backcolor 0 0 0 0 + forecolor .549 .854 1 1 + visible 1 + cvarTest ui_saber_type + hideCvar { "staff" ; "single" } + decoration + } + + itemDef + { + name hilttype + group none + text @MENUS_HILT2 + descText @MENUS_SABER_HILTS_DESC + style WINDOW_STYLE_EMPTY + rect 200 105 160 24 + font 3 + textscale .7 + textstyle 0 + textalignx 0 + textaligny 0 + textalign ITEM_ALIGN_LEFT + backcolor 0 0 0 0 + forecolor .549 .854 1 1 + visible 1 + cvarTest ui_saber_type + hideCvar { "staff" ; "single" } + decoration + } + + // HILT BUTTON 1 - SINGLE or DUAL + itemDef + { + name hiltbut_glow + group none + style WINDOW_STYLE_SHADER + rect 200 72 190 16 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + + + + // HILT BUTTON 1 - SINGLE + itemDef + { + name hiltbut + group none + rect 200 56 160 120 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_EMPTY + elementwidth 120 + elementheight 16 + font 4 + textaligny 16 + textscale 1 + border 1 + bordersize 1 + bordercolor 0 0 .8 1 + forecolor .615 .615 .956 1 + backcolor 0 0 .5 .25 + outlinecolor .5 .5 .5 .5 + elementtype LISTBOX_TEXT + feeder FEEDER_SABER_SINGLE_INFO + + descText @MENUS_HILT1_DESC + elementtype LISTBOX_TEXT + textalign ITEM_ALIGN_LEFT + + cvarTest ui_saber_type + hideCvar { "staff" ; "dual" } + + visible 1 + action + { + play "sound/interface/choose_hilt.wav" + uiScript "setscreensaberhilt" + uiScript "saber_hilt" + } + } + + // HILT BUTTON 1 - STAVES + itemDef + { + name hiltbut_staves + group none + rect 200 56 160 120 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_EMPTY + elementwidth 120 + elementheight 16 + font 4 + textaligny 16 + textscale 1 + border 1 + bordersize 1 + bordercolor 0 0 .8 1 + forecolor .615 .615 .956 1 + backcolor 0 0 .5 .25 + outlinecolor .5 .5 .5 .5 + elementtype LISTBOX_TEXT + feeder FEEDER_SABER_STAFF_INFO + + descText @MENUS_HILT1_DESC + + cvarTest ui_saber_type + hideCvar { "single"; "dual" } + + visible 1 + action + { + play "sound/interface/choose_hilt.wav" + uiScript "setscreensaberstaff" + uiScript "saber_hilt" + } + } + + // HILT BUTTON 1 - DUAL + itemDef + { + name hiltbut1 + group none + rect 200 50 160 55 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_EMPTY + elementwidth 120 + elementheight 16 + font 4 + textaligny 16 + textscale 1 + border 1 + bordersize 1 + bordercolor 0 0 .8 1 + forecolor .615 .615 .956 1 + backcolor 0 0 .5 .25 + outlinecolor .5 .5 .5 .5 + elementtype LISTBOX_TEXT + feeder FEEDER_SABER_SINGLE_INFO + +// text @MENUS_HILT1 + descText @MENUS_HILT1_DESC + elementtype LISTBOX_TEXT + textalign ITEM_ALIGN_LEFT + + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + + visible 1 + action + { + play "sound/interface/choose_hilt.wav" + uiScript "setscreensaberhilt1" + uiScript "saber_hilt" + } + } + + // HILT BUTTON 2 - DUAL + itemDef + { + name hiltbut2 + group none + rect 200 120 160 55 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_EMPTY + elementwidth 120 + elementheight 16 + font 4 + textaligny 16 + textscale 1 + border 1 + bordersize 1 + bordercolor 0 0 .8 1 + forecolor .615 .615 .956 1 + backcolor 0 0 .5 .25 + outlinecolor .5 .5 .5 .5 + elementtype LISTBOX_TEXT + feeder FEEDER_SABER_SINGLE_INFO + + +// text @MENUS_HILT2 + descText @MENUS_HILT2_DESC + forecolor .615 .615 .956 1 + + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + + visible 1 + action + { + play "sound/interface/choose_hilt.wav" + uiScript "setscreensaberhilt2" + uiScript "saber2_hilt" + } + } + + +//---------------------------------------------------------------------------------------------- +//BLADE COLORS +//---------------------------------------------------------------------------------------------- + itemDef + { + name bladecolortitle + group none + text @MENUS_BLADE_COLOR + descText @MENUS_BLADE_COLOR_DESC + style WINDOW_STYLE_EMPTY + rect 15 181 160 24 + font 2 + textscale .8 + textstyle 0 + textalignx 0 + textaligny -4 + textalign ITEM_ALIGN_LEFT + backcolor 0 0 0 0 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + itemDef + { + name blueicon + group sabericons + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 15 197 24 24 + background "gfx/menus/saber_icon_blue" + forecolor .75 .75 .75 1 + descText @MENUS_BLADE_COLOR_DESC + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + mouseEnter + { + setitemcolor blueicon forecolor 1 1 1 1 + setitemcolor blueicon bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor blueicon forecolor .75 .75 .75 1 + setitemcolor blueicon bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + setcvar ui_saber_color "blue" + } + } + + itemDef + { + name greenicon + group sabericons + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 40 197 24 24 + background "gfx/menus/saber_icon_green" + forecolor .75 .75 .75 1 + descText @MENUS_BLADE_COLOR_DESC + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + mouseEnter + { + setitemcolor greenicon forecolor 1 1 1 1 + setitemcolor greenicon bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor greenicon forecolor .75 .75 .75 1 + setitemcolor greenicon bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + setcvar ui_saber_color "green" + } + } + + itemDef + { + name orangeicon + group sabericons + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 65 197 24 24 + background "gfx/menus/saber_icon_orange" + forecolor .75 .75 .75 1 + descText @MENUS_BLADE_COLOR_DESC + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + mouseEnter + { + setitemcolor orangeicon forecolor 1 1 1 1 + setitemcolor orangeicon bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor orangeicon forecolor .75 .75 .75 1 + setitemcolor orangeicon bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + setcvar ui_saber_color "orange" + } + } + + itemDef + { + name purpleicon + group sabericons + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 90 197 24 24 + background "gfx/menus/saber_icon_purple" + forecolor .75 .75 .75 1 + descText @MENUS_BLADE_COLOR_DESC + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + mouseEnter + { + setitemcolor purpleicon forecolor 1 1 1 1 + setitemcolor purpleicon bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor purpleicon forecolor .75 .75 .75 1 + setitemcolor purpleicon bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + setcvar ui_saber_color "purple" + } + } + + itemDef + { + name yellowicon + group sabericons + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 115 197 24 24 + background "gfx/menus/saber_icon_yellow" + forecolor .75 .75 .75 1 + descText @MENUS_BLADE_COLOR_DESC + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + mouseEnter + { + setitemcolor yellowicon forecolor 1 1 1 1 + setitemcolor yellowicon bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor yellowicon forecolor .75 .75 .75 1 + setitemcolor yellowicon bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + setcvar ui_saber_color "yellow" + } + } + + itemDef + { + name redicon + group sabericons + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 140 197 24 24 + background "gfx/menus/saber_icon_red" + descText @MENUS_BLADE_COLOR_DESC + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + mouseEnter + { + setitemcolor redicon forecolor 1 1 1 1 + setitemcolor redicon bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor redicon forecolor .75 .75 .75 1 + setitemcolor redicon bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + setcvar ui_saber_color "red" + } + } + + // COLOR 2 BUTTON + itemDef + { + name colorbut2 + group none + text @MENUS_COLOR2 + descText @MENUS_COLOR2_DESC + //type ITEM_TYPE_MULTI + style WINDOW_STYLE_EMPTY + rect 270 181 160 16 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -4 + forecolor .549 .854 1 1 + visible 1 + decoration + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + } + + itemDef + { + name blueicon2 + group sabericons2 + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 270 197 24 24 + background "gfx/menus/saber_icon_blue" + forecolor .75 .75 .75 1 + descText @MENUS_COLOR2_DESC + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + mouseEnter + { + setitemcolor blueicon2 forecolor 1 1 1 1 + setitemcolor blueicon2 bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor blueicon2 forecolor .75 .75 .75 1 + setitemcolor blueicon2 bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + setcvar ui_saber2_color "blue" + } + } + + itemDef + { + name greenicon2 + group sabericons2 + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 295 197 24 24 + background "gfx/menus/saber_icon_green" + forecolor .75 .75 .75 1 + descText @MENUS_COLOR2_DESC + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + mouseEnter + { + setitemcolor greenicon2 forecolor 1 1 1 1 + setitemcolor greenicon2 bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor greenicon2 forecolor .75 .75 .75 1 + setitemcolor greenicon2 bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + setcvar ui_saber2_color "green" + } + } + + itemDef + { + name orangeicon2 + group sabericons2 + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 320 197 24 24 + background "gfx/menus/saber_icon_orange" + forecolor .75 .75 .75 1 + descText @MENUS_COLOR2_DESC + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + mouseEnter + { + setitemcolor orangeicon2 forecolor 1 1 1 1 + setitemcolor orangeicon2 bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor orangeicon2 forecolor .75 .75 .75 1 + setitemcolor orangeicon2 bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + setcvar ui_saber2_color "orange" + } + } + + itemDef + { + name purpleicon2 + group sabericons2 + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 345 197 24 24 + background "gfx/menus/saber_icon_purple" + forecolor .75 .75 .75 1 + descText @MENUS_COLOR2_DESC + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + mouseEnter + { + setitemcolor purpleicon2 forecolor 1 1 1 1 + setitemcolor purpleicon2 bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor purpleicon2 forecolor .75 .75 .75 1 + setitemcolor purpleicon2 bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + setcvar ui_saber2_color "purple" + } + } + + itemDef + { + name yellowicon2 + group sabericons2 + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 370 197 24 24 + background "gfx/menus/saber_icon_yellow" + forecolor .75 .75 .75 1 + descText @MENUS_COLOR2_DESC + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + mouseEnter + { + setitemcolor yellowicon2 forecolor 1 1 1 1 + setitemcolor yellowicon2 bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor yellowicon2 forecolor .75 .75 .75 1 + setitemcolor yellowicon2 bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + setcvar ui_saber2_color "yellow" + } + } + + itemDef + { + name redicon2 + group sabericons2 + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 395 197 24 24 + background "gfx/menus/saber_icon_red" + forecolor .75 .75 .75 1 + descText @MENUS_COLOR2_DESC + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + mouseEnter + { + setitemcolor redicon2 forecolor 1 1 1 1 + setitemcolor redicon2 bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor redicon2 forecolor .75 .75 .75 1 + setitemcolor redicon2 bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + setcvar ui_saber2_color "red" + } + } + +//////////////////////// +//SABER MODELS +//////////////////////// + + //FIRST SABER + itemDef + { + name saber + group models + type ITEM_TYPE_MODEL + rect 0 -20 430 430 + asset_model "models/weapons2/saber_reborn/saber_w.glm" + isSaber 1 + model_angle 180 + model_rotation 20 + model_g2mins 0 0 0 + model_g2maxs 20 20 20 + model_fovx 75 + model_fovy 75 + visible 1 + decoration + } + + //SECOND SABER + itemDef + { + name saber2 + group models + type ITEM_TYPE_MODEL + rect 0 40 430 430 + asset_model "models/weapons2/saber_reborn/saber_w.glm" + isSaber2 1 + model_angle 180 + model_rotation 20 + model_g2mins 0 0 0 + model_g2maxs 20 20 20 + model_fovx 75 + model_fovy 75 + visible 1 + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + + decoration + } + +//--------------------------------------------- +// APPLY BUTTON +//--------------------------------------------- + itemDef + { + name applyjoinButton + group highlights + style WINDOW_STYLE_SHADER + rect 160 360 110 32 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name applyjoinBorder + group none + style WINDOW_STYLE_EMPTY + rect 140 360 150 32 + forecolor 1 1 1 1 + decoration + border 1 + bordercolor 1 .682 0 1 + visible 1 + } + + + itemDef + { + name applycurrent + group "playerapply" + text @MENUS_APPLY_CHANGES + type 1 + style WINDOW_STYLE_EMPTY + rect 160 360 110 32 + textalign ITEM_ALIGN_CENTER + textalignx 55 + textaligny 2 + font 2 + textscale 1 + forecolor 1 .682 0 1 + descText @MENUS_APPLY_CHANGES_AND_JOIN + visible 1 + action + { + play "sound/interface/button1.wav" + uiScript "updatesabercvars" + hide highlights + close ingame_saber + } + mouseEnter + { + show applyjoinButton + } + mouseExit + { + hide applyjoinButton + } + } + } +} + diff --git a/base/ui/jamp/ingame_setup.menu b/base/ui/jamp/ingame_setup.menu new file mode 100644 index 0000000..e568962 --- /dev/null +++ b/base/ui/jamp/ingame_setup.menu @@ -0,0 +1,2271 @@ +//-------------------------------------------------------------- +// +// SETUP MENU +// +//-------------------------------------------------------------- +{ + menuDef + { + name "ingame_setup" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 45 35 550 335 + focusColor 1 1 1 1 // Focus color for text and items + style 1 + border 1 + descX 305 + descY 347 + descScale 1 + descColor 1 .682 0 .8 // Focus color for text and items + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + uiScript getvideosetup // Get video settings + + show setup_background + show video + hide applyChanges + hide video2 + hide vidrestart + hide sound + hide options + hide mods + hide defaults + hide default_glow + hide highlight12 + + setitemcolor setup_submenu forecolor 1 .682 0 1 + setitemcolor videomenubutton forecolor 1 1 1 1 + } + + onESC + { + play "sound/interface/button1" + + defer VideoSetup videowarningMenu + hide highlights + close ingame_setup + } + + + // Overall window backdrop + itemDef + { + name background_pic + group none + style WINDOW_STYLE_SHADER + rect 0 0 570 335 + background "gfx/menus/menu_box_ingame" + forecolor 1 1 1 1 + visible 1 + decoration + } + itemDef + { + name playerconfigtitle + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_SETUP + rect 20 5 510 28 + textalign ITEM_ALIGN_CENTER + textalignx 255 + textaligny 2 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + font 3 + textscale 0.9 + forecolor .549 .854 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + } + + // video1 button + itemDef + { + name video1button_glow + style WINDOW_STYLE_SHADER + rect 20 43 185 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + decoration + } + + itemDef + { + name video1menubutton + group setup_submenu + text @MENUS_VIDEO + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 20 43 170 30 + font 3 + textscale 0.9 + textalignx 170 + textaligny 5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_VIDEO_SETTINGS + + mouseEnter + { + show video1button_glow + } + mouseExit + { + hide video1button_glow + } + action + { + play "sound/interface/button1" + + 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 + + setitemcolor setup_submenu forecolor 1 .682 0 1 + setitemcolor video1menubutton forecolor 1 1 1 1 + } + } + + // video2 button + itemDef + { + name video2button_glow + style WINDOW_STYLE_SHADER + rect 20 73 185 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + decoration + } + + itemDef + { + name video2menubutton + group setup_submenu + text @MENUS_MORE_VIDEO + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 20 73 170 30 + font 3 + textscale 0.9 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGUE_MORE_VIDEO_SETTINGS + + mouseEnter + { + show video2button_glow + } + mouseExit + { + hide video2button_glow + } + action + { + play "sound/interface/button1" + + defer VideoSetup videowarningMenu + + show setup_background + hide video + hide applyChanges + show video2 + hide vidrestart + hide sound + hide options + hide mods + hide defaults + + setitemcolor setup_submenu forecolor 1 .682 0 1 + setitemcolor video2menubutton forecolor 1 1 1 1 + } + } + + // sound button + itemDef + { + name soundbutton_glow + style WINDOW_STYLE_SHADER + rect 20 103 185 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + decoration + } + + itemDef + { + name soundmenubutton + group setup_submenu + text @MENUS_SOUND + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 20 103 170 30 + font 3 + textscale 0.9 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_SOUND_SETTINGS + + mouseEnter + { + show soundbutton_glow + } + mouseExit + { + hide soundbutton_glow + } + action + { + play "sound/interface/button1" + + defer VideoSetup videowarningMenu + + show setup_background + hide video + hide applyChanges + hide video2 + hide vidrestart + show sound + hide options + hide mods + hide defaults + + setitemcolor setup_submenu forecolor 1 .682 0 1 + setitemcolor soundmenubutton forecolor 1 1 1 1 + } + } + + // gameoptions button + itemDef + { + name gameoptionsbutton_glow + style WINDOW_STYLE_SHADER + rect 20 133 185 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + decoration + } + + itemDef + { + name gameoptionmenubutton + group setup_submenu + text @MENUS_OPTIONS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 20 133 170 30 + font 3 + textscale 0.9 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_GAME_OPTIONS + + mouseEnter + { + show gameoptionsbutton_glow + } + mouseExit + { + hide gameoptionsbutton_glow + } + action + { + play "sound/interface/button1" + + defer VideoSetup videowarningMenu + + show setup_background + hide video + hide applyChanges + hide video2 + hide vidrestart + hide sound + show options + hide langapply + hide mods + hide defaults + + setitemcolor setup_submenu forecolor 1 .682 0 1 + setitemcolor gameoptionmenubutton forecolor 1 1 1 1 + } + } + + // mods button + itemDef + { + name modsbutton_glow + style WINDOW_STYLE_SHADER + rect 20 163 185 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + decoration + } + + + // gamedefaults button + itemDef + { + name gamedefaultsbutton_glow + style WINDOW_STYLE_SHADER + rect 20 163 185 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + decoration + } + + itemDef + { + name gamedefaultsmenubutton + group setup_submenu + text @MENUS_DEFAULTS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 20 163 170 30 + font 3 + textscale 0.9 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_RESTORE_DEFAULT_SETTINGS + + mouseEnter + { + show gamedefaultsbutton_glow + } + mouseExit + { + hide gamedefaultsbutton_glow + } + action + { + play "sound/interface/button1" + + defer VideoSetup videowarningMenu + + show setup_background + hide video + hide applyChanges + hide video2 + hide vidrestart + hide sound + hide options + hide mods + show defaults + + setitemcolor setup_submenu forecolor 1 .682 0 1 + setitemcolor gamedefaultsmenubutton forecolor 1 1 1 1 + } + } + + itemDef + { + name setup_background + group none + style WINDOW_STYLE_FILLED + rect 210 41 350 250 + backcolor 0 0 .6 .5 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .6 1 + visible 0 + decoration + } + + + //---------------------------------------------------------------------------------------------- + // + // HIGHLIGHT BARS + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name highlight1 + group highlights + style WINDOW_STYLE_SHADER + rect 220 43 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 220 63 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 220 83 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 220 103 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 220 123 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 220 143 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 220 163 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 220 183 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 220 203 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 220 223 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 220 243 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 220 263 300 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight13 + group highlights + style WINDOW_STYLE_SHADER + rect 365 283 120 32 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + //---------------------------------------------------------------------------------------------- + // + // VIDEO 1 MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name graphics + group video + text @MENUS_VIDEO_QUALITY + type ITEM_TYPE_MULTI + rect 220 41 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + style WINDOW_STYLE_FILLED + forecolor .615 .615 .956 1 + descText @MENUS_SELECT_PRESET_GRAPHIC + + visible 0 + + cvar "ui_r_glCustom" + cvarFloatList + { + @MENUS_HIGH_QUALITY 0 + @MENUS_NORMAL 1 + @MENUS_FAST 2 + @MENUS_FASTEST 3 + @MENUS_CUSTOM 4 + } + + mouseenter + { + show highlight1 + } + mouseexit + { + hide highlight1 + } + action + { + play "sound/interface/button1" + uiScript update "ui_r_glCustom" + setcvar ui_r_modified 1 + show applyChanges + } + } + + itemDef + { + name video_mode + group video + type ITEM_TYPE_MULTI + text @MENUS_VIDEO_MODE + cvarFloatList { @MENUS_640_X_480 3 @MENUS_800_X_600 4 @MENUS_1024_X_768 6 @MENUS_1152_X_864 7 @MENUS_1280_X_1024 8 @MENUS_1600_X_1200 9 @MENUS_2048_X_1536 10 @MENUS_2400_X_600 12 } + cvar "ui_r_mode" + + rect 220 83 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + descText @MENUS_CHANGE_THE_DISPLAY_RESOLUTION + + visible 0 + + mouseenter + { + show highlight3 + } + mouseexit + { + hide highlight3 + } + action + { + play "sound/interface/button1" + uiScript glCustom + setcvar ui_r_modified 1 + show applyChanges + } + } + + itemDef + { + name color_depth + group video + type ITEM_TYPE_MULTI + text @MENUS_COLOR_DEPTH + rect 220 103 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + + cvarFloatList { @MENUS_DEFAULT 0 @MENUS_16_BIT 16 @MENUS_32_BIT 32 } + descText @MENUS_CHANGE_THE_NUMBER_OF + cvar "ui_r_colorbits" + + visible 0 + + mouseenter + { + show highlight4 + } + mouseexit + { + hide highlight4 + } + action + { + play "sound/interface/button1" + uiScript glCustom + uiScript update "ui_r_colorbits" + setcvar ui_r_modified 1 + show applyChanges + } + } + + itemDef + { + name fullscreen + group video + type ITEM_TYPE_MULTI + text @MENUS_FULL_SCREEN + rect 220 123 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + descText @MENUS_TOGGLE_BETWEEN_FULL_SCREEN + cvar "ui_r_fullscreen" + + visible 0 + + mouseenter + { + show highlight5 + } + mouseexit + { + hide highlight5 + } + action + { + play "sound/interface/button1" + uiScript glCustom + setcvar ui_r_modified 1 + show applyChanges + } + } + + itemDef + { + name geometric_detail + group video + type ITEM_TYPE_MULTI + text @MENUS_GEOMETRIC_DETAIL + rect 220 143 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + cvarFloatList { @MENUS_LOW 2 @MENUS_MEDIUM 1 @MENUS_HIGH 0 } + descText @MENUS_ADJUST_THE_NUMBER_OF + cvar "ui_r_lodbias" + + visible 0 + + mouseenter + { + show highlight6 + } + mouseexit + { + hide highlight6 + } + action + { + play "sound/interface/button1" + 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 @MENUS_TEXTURE_DETAIL + rect 220 163 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + cvarFloatList { @MENUS_LOW 3 @MENUS_MEDIUM 2 @MENUS_HIGH 1 @MENUS_VERY_HIGH 0 } + descText @MENUS_SELECT_THE_RESOLUTION + cvar "ui_r_picmip" + + visible 0 + + mouseenter + { + show highlight7 + } + mouseexit + { + hide highlight7 + } + action + { + play "sound/interface/button1" + uiScript glCustom + setcvar ui_r_modified 1 + show applyChanges + } + } + + itemDef + { + name texture_quality + group video + type ITEM_TYPE_MULTI + text @MENUS_TEXTURE_QUALITY + rect 220 183 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + cvarFloatList { @MENUS_DEFAULT 0 @MENUS_16_BIT 16 @MENUS_32_BIT 32 } + descText @MENUS_SELECT_THE_NUMBER_OF + cvar "ui_r_texturebits" + + visible 0 + + mouseenter + { + show highlight8 + } + mouseexit + { + hide highlight8 + } + 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 @MENUS_TEXTURE_FILTER + rect 220 203 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + cvarStrList { @MENUS_BILINEAR , "GL_LINEAR_MIPMAP_NEAREST" , @MENUS_TRILINEAR , "GL_LINEAR_MIPMAP_LINEAR" } + descText @MENUS_ADJUST_HOW_WELL_THE_TEXTURES + cvar "ui_r_texturemode" + + visible 0 + + mouseenter + { + show highlight9 + } + mouseexit + { + hide highlight9 + } + 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 @MENUS_DETAILED_SHADERS + rect 220 223 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + descText @MENUS_HIDE_OR_UNHIDE_TEXTURES + cvar "ui_r_detailtextures" + + visible 0 + + mouseenter + { + show highlight10 + } + mouseexit + { + hide highlight10 + } + action + { + play "sound/interface/button1" + uiScript glCustom + setcvar ui_r_modified 1 + show applyChanges + } + } + + itemDef + { + name VIDEO_SYNC + group video + type ITEM_TYPE_MULTI + text @MENUS_VIDEO_SYNC + cvar "r_swapInterval" + cvarFloatList + { + @MENUS_OFF 0 + @MENUS_ON 1 + } + rect 220 243 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 1 + descText @MENUS_VIDEO_SYNC_DESC + action + { + play "sound/interface/button1" + } + + mouseenter + { + show highlight11 + } + mouseexit + { + hide highlight11 + } + } + + itemDef + { + name compress_textures + group video_obsolete + type ITEM_TYPE_MULTI + text @MENUS_COMPRESSED_TEXTURES + rect 220 243 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + descText @MENUS_TAKE_ADVANTAGE_OF_3D + cvar "ui_r_ext_compress_textures" + + visible 0 + + mouseenter + { + show highlight11 + } + mouseexit + { + hide highlight11 + } + action + { + play "sound/interface/button1" + uiScript glCustom + setcvar ui_r_modified 1 + show applyChanges + } + } + + // APPLY CHANGES BUTTON + itemDef + { + name applybutton_glow + style WINDOW_STYLE_SHADER + rect 260 265 200 18 + background "gfx/menus/menu_blendbox" + forecolor 1 0.5 0.5 1 + visible 0 + // appearance_slot 1 + decoration + } + + itemDef + { + name applyChanges + text @MENUS_APPLY_CHANGES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 260 260 200 30 + font 4 + textscale 1 + textalignx 100 + textaligny 5 + textalign ITEM_ALIGN_CENTER + 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" + 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 210 41 302 252 + background "gfx/menus/menu_boxred" // Frame + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name vidrestart_text1 + group vidrestart + text @MENUS_THIS_WILL_APPLY_VIDEO + text2 @MENUS_AND_RETURNTO_GAME + rect 210 100 300 20 + textalign ITEM_ALIGN_CENTER + text2aligny 18 + textalignx 150 + font 2 + textscale 1 + forecolor 1 1 0 1 + visible 0 + decoration + } + + itemDef + { + name vidrestart_text2 + group vidrestart + text @MENUS_VID_RESTART3 + rect 210 160 256 20 + textalign ITEM_ALIGN_CENTER + textalignx 150 + font 2 + textscale 1 + forecolor 1 1 0 1 + visible 0 + } + + + + itemDef + { + name vidrestart_yes_button + style WINDOW_STYLE_SHADER + rect 367 241 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 @MENUS_YES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 367 241 120 32 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny 0 + descText @MENUS_APPLY_CHANGES_AND_THEN + forecolor 1 .682 0 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 + style WINDOW_STYLE_SHADER + rect 240 241 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 @MENUS_NO + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 240 241 120 32 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny -1 + descText @MENUS_DO_NOT_APPLY_CHANGES + forecolor 1 .682 0 1 + visible 0 + // appearance_slot 6 + action + { + play "sound/interface/button1" + 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 220 63 260 36 + background "gfx/menus/greyscale" // greyscale + forecolor 1 1 1 1 + visible 0 + decoration + // appearance_slot 1 + } + + + + itemDef + { + name bright_text + group video2 + text @MENUS_ADJUST_BRIGHTNESS_SLIDER + text2 @MENUS_THE_NUMBER_6_CAN_BARELY + text2aligny 14 + textalignx 128 + textaligny 0 + font 4 + textscale 1 + rect 220 103 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 @MENUS_VIDEO_BRIGHTNESS + cvarfloat "r_gamma" 1 .5 3 + rect 220 141 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 120 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 3 + descText @MENUS_ADJUST_THE_BRIGHTNESS + action + { + play "sound/interface/button1" + } + + mouseenter + { + show highlight6 + } + mouseexit + { + hide highlight6 + } + } + + + itemDef + { + name dynamic_light + group video2 + type ITEM_TYPE_MULTI + text @MENUS_DYNAMIC_LIGHTS + cvar "r_dynamiclight" + cvarFloatList + { + @MENUS_OFF 0 + @MENUS_ON 1 + } + rect 220 183 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 1 + descText @MENUS_TOGGLE_TO_TURN_ON_MOVING + action + { + play "sound/interface/button1" + } + + mouseenter + { + show highlight8 + } + mouseexit + { + hide highlight8 + } + } + + itemDef + { + name wall_marks + group video2 + type ITEM_TYPE_MULTI + text @MENUS_WALL_MARKS + cvar "cg_marks" + cvarFloatList + { + @MENUS_OFF 0 + @MENUS_ON 1 + } + rect 220 203 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 1 + descText @MENUS_TOGGLE_TO_DISPLAY_SCORCH + action + { + play "sound/interface/button1" + } + + mouseenter + { + show highlight9 + } + mouseexit + { + hide highlight9 + } + } + + itemDef + { + name video_mode + group video2 + type ITEM_TYPE_SLIDER + text @MENUS_ANISOTROPIC_FILTERING + cvarTest r_ext_texture_filter_anisotropic_avail + disableCvar { 0 } + cvarfloat r_ext_texture_filter_anisotropic 1 .5 16 + rect 220 223 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 5 + + descText @MENUS_TOGGLE_ADVANCED_TEXTURE + action + { + play "sound/interface/button1" + } + + mouseenter + { + show highlight10 + } + mouseexit + { + hide highlight10 + } + } + + itemDef + { + name light_flares + group video2_obsolete + type ITEM_TYPE_MULTI + text @MENUS_LIGHT_FLARES + cvar "r_flares" + cvarFloatList + { + @MENUS_OFF 0 + @MENUS_ON 1 + } + rect 220 263 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 1 + descText @MENUS_TOGGLE_TO_SHOW_HALOS + action + { + play "sound/interface/button1" + } + + mouseenter + { + show highlight12 + } + mouseexit + { + hide highlight12 + } + } + + //---------------------------------------------------------------------------------------------- + // + // SOUND FIELDS + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name effects_volume + group sound + type ITEM_TYPE_SLIDER + text @MENUS_EFFECTS_VOLUME + cvarfloat "s_volume" 0 0 1 + rect 220 61 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 120 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 1 + descText @MENUS_ADJUST_VOLUME_FOR_SOUND + action + { + play "sound/interface/button1" + } + + mouseenter + { + show highlight2 + } + mouseexit + { + hide highlight2 + } + } + + itemDef + { + name music_volume + group sound + type ITEM_TYPE_SLIDER + text @MENUS_MUSIC_VOLUME + cvarfloat "s_musicvolume" 0 0 1 + rect 220 81 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 120 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 2 + descText @MENUS_ADJUST_VOLUME_FOR_MUSIC + action + { + play "sound/interface/button1" + } + + mouseenter + { + show highlight3 + } + mouseexit + { + hide highlight3 + } + } + + itemDef + { + name voice_volume + group sound + type ITEM_TYPE_SLIDER + text @MENUS_VOICE_VOLUME + cvarfloat "s_volumeVoice" 0 0 1 + rect 220 101 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 120 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_VOICE_VOLUME_DESC + action + { + play "sound/interface/button1" + } + + mouseenter + { + show highlight4 + } + mouseexit + { + hide highlight4 + } + } + + + itemDef + { + name sound_quality + group sound + type ITEM_TYPE_MULTI + text @MENUS_SOUND_QUALITY + cvar "s_khz" + cvarFloatList { @MENUS_LOW 11 @MENUS_HIGH 22 } + rect 220 141 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_TRADE_CLARITY_OF_SOUND + cvarTest "s_UseOpenAL" + hideCvar { 1 } + + mouseenter + { + show highlight6 + } + mouseexit + { + hide highlight6 + } + action + { + play "sound/interface/button1" + uiScript update "s_khz" + } + } + itemDef + { + name eax + group sound + type ITEM_TYPE_MULTI + cvar "s_UseOpenAL" + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + text @MENUS_EAX + rect 220 181 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 120 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_EAX_DESC + action + { + play "sound/interface/button1.wav" + uiScript update s_khz + } + + mouseenter + { + show highlight8 + } + mouseexit + { + hide highlight8 + } + } + + itemDef + { + name eax_icon + group sound + style WINDOW_STYLE_SHADER + rect 297 201 128 64 + background "gfx/menus/eax" + forecolor 1 1 1 1 + visible 1 + decoration + cvarTest "s_UseOpenAL" + hideCvar { 0 } + } + + //---------------------------------------------------------------------------------------------- + // + // OPTION FIELDS + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name draw_crosshair + group options + type ITEM_TYPE_MULTI + text @MENUS_DRAW_CROSSHAIR + cvar "cg_drawcrosshair" + cvarFloatList + { + @MENUS_OFF 0 + @MENUS_ON 1 + } + rect 220 41 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 1 + descText @MENUS_TOGGLE_TO_SHOW_OR_HIDE + action + { + play "sound/interface/button1" + } + + mouseenter + { + show highlight1 + } + mouseexit + { + hide highlight1 + } + } + + + itemDef + { + name identifytarget + group options + type ITEM_TYPE_MULTI + text @MENUS_IDENTIFY_TARGET + // cvar "cg_crosshairIdentifyTarget" + cvar "cg_drawCrosshairNames" + cvarFloatList + { + @MENUS_OFF 0 + @MENUS_ON 1 + } + rect 220 61 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + // appearance_slot 1 + descText @MENUS_TOGGLE_TO_HAVE_THE_CROSSHAIR + action + { + play "sound/interface/button1" + } + + mouseenter + { + show highlight2 + } + mouseexit + { + hide highlight2 + } + } + + itemDef + { + name forcemodels + group options + type ITEM_TYPE_MULTI + text @MENUS_FORCE_PLAYER_MODELS + cvar "cg_forceModel" + cvarFloatList + { + @MENUS_OFF 0 + @MENUS_ON 1 + } + rect 220 81 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_FORCE_ALL_PLAYER_MODELS + action + { + play "sound/interface/button1" + } + + mouseenter + { + show highlight3 + } + mouseexit + { + hide highlight3 + } + } + + itemDef + { + name defermodels + group options + type ITEM_TYPE_MULTI + text @MENUS_DEFER_PLAYER_MODELS + cvar "cg_deferPlayers" + cvarFloatList + { + @MENUS_OFF 0 + @MENUS_ON 1 + } + rect 220 101 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_DEFERS_LOADING_OF_NEW + action + { + play "sound/interface/button1" + } + + mouseenter + { + show highlight4 + } + mouseexit + { + hide highlight4 + } + } + + itemDef + { + name teamchatsonly + group options + type ITEM_TYPE_MULTI + text @MENUS_TEAM_CHATS_ONLY + cvar "cg_teamChatsOnly" + cvarFloatList + { + @MENUS_NO 0 + @MENUS_YES 1 + } + rect 220 121 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_IGNORE_NON_TEAM_CHATS + action + { + play "sound/interface/button1" + } + + mouseenter + { + show highlight5 + } + mouseexit + { + hide highlight5 + } + } + + itemDef + { + name simpleitems + group options + type ITEM_TYPE_MULTI + text @MENUS_SIMPLE_ITEMS + cvar "cg_simpleItems" + cvarFloatList + { + @MENUS_OFF 0 + @MENUS_ON 1 + } + rect 220 141 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_RENDER_ICONS_FOR_ITEMS + action + { + play "sound/interface/button1" + } + + mouseenter + { + show highlight6 + } + mouseexit + { + hide highlight6 + } + } + + itemDef + { + name teamoverlay + group options + type ITEM_TYPE_MULTI + text @MENUS_TEAM_OVERLAY + cvar "cg_drawTeamOverlay" + cvarFloatList + { + @MENUS_OFF 0 + @MENUS_ON 1 + } + rect 220 161 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_DRAW_OVERLAY_SHOWING + action + { + play "sound/interface/button1" + } + + 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 @MENUS_VIEW_SWAYING + descText @MENUS_VIEW_SWAYING_DESC + cvar "ui_disableWeaponSway" + cvarFloatList + { + @MENUS_ON 0 + @MENUS_OFF 1 + } + cvarTest "ui_disableWeaponSway" + showCvar + { + "0" + } + rect 220 181 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + + action + { + play "sound/interface/button1" + exec "exec noMotion.cfg" + show weaponswayoff + setfocus weaponswayoff + } + mouseenter + { + show highlight8 + } + mouseexit + { + hide highlight8 + } + } + + itemDef + { + name weaponswayoff + group options + type ITEM_TYPE_MULTI + text @MENUS_VIEW_SWAYING + descText @MENUS_VIEW_SWAYING_DESC + cvar "ui_disableWeaponSway" + cvarFloatList + { + @MENUS_ON 0 + @MENUS_OFF 1 + } + cvarTest "ui_disableWeaponSway" + hideCvar + { + "0" + } + rect 220 181 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + + action + { + play "sound/interface/button1" + exec "exec restoreMotion.cfg" + show weaponswayon + setfocus weaponswayon + } + mouseenter + { + show highlight8 + } + mouseexit + { + hide highlight8 + } + } + + itemDef + { + name footsteps + group options + type ITEM_TYPE_MULTI + text @MENUS_FOOTSTEPS + desctext @MENUS_FOOTSTEPS_DESC + cvar "cg_footsteps" + cvarFloatList + { + @MENUS_OFF 0 + @MENUS_SOUNDS 1 + @MENUS_SOUNDS_AND_EFFECTS 2 + @MENUS_SOUNDS_EFFECTS_GRAPHICS 3 + } + rect 220 201 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + action + { + play "sound/interface/button1.wav" + } + mouseenter + { + show highlight9 + } + mouseexit + { + hide highlight9 + } + } + + itemDef + { + name text + group options + type ITEM_TYPE_MULTI + text @MENUS_TEXT + cvar "se_language" + feeder 40 + cvarStrList feeder + rect 220 221 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_CHOOSE_THE_LANGUAGE_FOR + action + { + play "sound/interface/button1.wav" + show langapply + } + + mouseenter + { + show highlight10 + } + mouseexit + { + hide highlight10 + } + } + + itemDef + { + name voice + group options + type ITEM_TYPE_MULTI + text @MENUS_VOICE + cvar "s_language" + cvarStrList + { + English english + @MENUS_LANG_FRENCH francais + Deutsch deutsch + "Español" espanol + } + rect 220 241 300 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_CHOOSE_THE_LANGUAGE_TO + + action + { + play "sound/interface/button1.wav" + show langapply + } + mouseenter + { + show highlight11 + } + mouseexit + { + hide highlight11 + } + } + + + // APPLY CHANGES button + itemDef + { + name langapply + group options + text @MENUS_SET_LANGUAGE + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 365 261 120 32 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny 0 + descText @MENUS_SET_LANGUAGE_INFO + forecolor 1 .682 0 1 + visible 0 + // appearance_slot 5 + + action + { + play "sound/interface/button1" + exec "ui_load ; snd_restart" + hide langapply + } + mouseEnter + { + show highlight12 + } + mouseExit + { + hide highlight12 + } + + } + + //---------------------------------------------------------------------------------------------- + // + // RESET DEFAULTS + // + //---------------------------------------------------------------------------------------------- + // Faint red box + itemDef + { + name vidrestart_background + group defaults + style WINDOW_STYLE_SHADER + rect 210 41 352 252 + background "gfx/menus/menu_boxred" // Frame + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name options + group defaults + text @MENUS_WARNING + rect 210 61 352 20 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 176 + forecolor 1 .682 0 1 + visible 0 + decoration + } + + itemDef + { + name options + group defaults + text @MENUS_THIS_WILL_SET_ALL_GAME + rect 210 101 352 20 + text2aligny 20 + font 2 + textscale .9 + textalign ITEM_ALIGN_CENTER + textalignx 176 + forecolor 1 .682 0 1 + visible 0 + decoration + } + + itemDef + { + name options + group defaults + text @MENUS_TO_THEIR_FACTORY_SETTINGS + rect 210 131 352 20 + text2aligny 20 + font 2 + textscale .9 + textalign ITEM_ALIGN_CENTER + textalignx 176 + forecolor 1 .682 0 1 + visible 0 + decoration + } + + itemDef + { + name options + group defaults + text @MENUS_VID_RESTART3 + rect 220 191 352 20 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 176 + forecolor 1 .682 0 1 + visible 0 + decoration + } + + + itemDef + { + name default_yes_button + group default_glow + style WINDOW_STYLE_SHADER + rect 430 241 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 @MENUS_YES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 430 241 120 32 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 60 + textaligny 0 + descText @MENUS_USE_DEFAULT_SETTINGS + forecolor 1 .682 0 1 + visible 0 + // appearance_slot 5 + + action + { + play "sound/interface/button1" + close all + uiscript resetdefaults + } + mouseEnter + { + show default_yes_button + } + mouseExit + { + hide default_yes_button + } + + } + + itemDef + { + name default_no_button + group default_glow + style WINDOW_STYLE_SHADER + rect 220 241 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 @MENUS_NO + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 220 241 120 32 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 60 + textaligny 0 + descText @MENUS_DO_NOT_RESET_DEFAULT + forecolor 1 .682 0 1 + visible 0 + // appearance_slot 6 + action + { + play "sound/interface/button1" + uiscript clearmouseover default_no + hide defaults + hide default_glow + close all + open ingame_setup + } + mouseEnter + { + show default_no_button + } + mouseExit + { + hide default_no_button + } + } + } +} diff --git a/base/ui/jamp/ingame_siegeobjectives.menu b/base/ui/jamp/ingame_siegeobjectives.menu new file mode 100644 index 0000000..8a1655d --- /dev/null +++ b/base/ui/jamp/ingame_siegeobjectives.menu @@ -0,0 +1,987 @@ +{ + menuDef + { + name "ingame_siegeobjectives" + visible 0 + fullscreen 0 + outOfBoundsClick + //rect 105 40 430 425 + rect 15 40 610 425 + focusColor 1 1 1 1 + style 1 + border 1 + descX 320 + descY 438 + descScale 0.7 + descColor .79 .64 .22 .7 + descAlignment ITEM_ALIGN_CENTER + onClose + { + hide seconddescA + hide seconddescB + hide seconddescC + hide seconddescD + hide seconddescE + hide seconddescF + hide seconddescG + hide secondpicA + hide secondpicB + hide secondpicC + hide secondpicD + hide secondpicE + hide secondpicF + hide secondpicG + hide secondpic_text + hide missionpics + } + onOpen + { + show primeicon + hide seconddescA + hide seconddescB + hide seconddescC + hide seconddescD + hide seconddescE + hide seconddescF + hide seconddescG + hide secondpicA + hide secondpicB + hide secondpicC + hide secondpicD + hide secondpicE + hide secondpicF + hide secondpicG + exec "siegeCvarUpdate" + setitembackground mappic "*siege_mapgraphic" + setitembackground primeicon "*siege_primobj_mapicon" + setitembackground primepic "*siege_primobj_gfx" + setitembackground secondpicA "*siege_objective1_gfx" + setitembackground secondpicB "*siege_objective2_gfx" + setitembackground secondpicC "*siege_objective3_gfx" + setitembackground secondpicD "*siege_objective4_gfx" + setitembackground secondpicE "*siege_objective5_gfx" + setitembackground secondpicF "*siege_objective6_gfx" + setitembackground secondpicG "*siege_objective7_gfx" + setitembackground secondiconA "*siege_objective1_mapicon" + setitembackground secondiconB "*siege_objective2_mapicon" + setitembackground secondiconC "*siege_objective3_mapicon" + setitembackground secondiconD "*siege_objective4_mapicon" + setitembackground secondiconE "*siege_objective5_mapicon" + setitembackground secondiconF "*siege_objective6_mapicon" + setitembackground secondiconG "*siege_objective7_mapicon" + setitemrectcvar primeicon "siege_primobj_mappos" + setitemrectcvar secondiconA "siege_objective1_mappos" + setitemrectcvar secondiconB "siege_objective2_mappos" + setitemrectcvar secondiconC "siege_objective3_mappos" + setitemrectcvar secondiconD "siege_objective4_mappos" + setitemrectcvar secondiconE "siege_objective5_mappos" + setitemrectcvar secondiconF "siege_objective6_mappos" + setitemrectcvar secondiconG "siege_objective7_mappos" + } + onESC + { + hide seconddescA + hide seconddescB + hide seconddescC + hide seconddescD + hide seconddescE + hide seconddescF + hide seconddescG + hide secondpicA + hide secondpicB + hide secondpicC + hide secondpicD + hide secondpicE + hide secondpicF + hide secondpicG + hide secondpic_text + hide missionpics + close all; + } + + // Overall window backdrop + itemDef + { + name background_pic + group none + style WINDOW_STYLE_SHADER + rect 0 0 610 425 + background "gfx/menus/menu_box_ingame" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name mappic + group none + style WINDOW_STYLE_SHADER + rect 420 42 180 348 + forecolor 1 1 1 .6 + visible 1 + border 1 + bordercolor .2 .3 .7 1 + decoration + background "*siege_mapgraphic" + } + + itemDef + { + name objectivetitle + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_MISSION_OBJECTIVES + rect 120 5 390 28 + textalign ITEM_ALIGN_CENTER + textalignx 195 + textaligny 2 + outlinecolor 1 .5 .5 .5 + font 3 + textscale 0.9 + forecolor 1 1 1 1 + visible 1 + decoration + } + +//------------------------------------------- +// +// PRIMARY OBJECTIVE +// +//------------------------------------------- + + itemDef + { + name primaryobj + rect 10 42 200 24 + type ITEM_TYPE_TEXT + style WINDOW_STYLE_FILLED + text @MENUS_PRIMARY_OBJECTIVES + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_LEFT + textalignx 5 + textaligny -2 + backcolor .2 .3 .7 1 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor .79 .64 .22 1 + decoration + } + + itemDef + { + name primedesc + rect 10 68 402 76 + type ITEM_TYPE_TEXT + cvar "siege_primobj_desc" + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_LEFT + textalignx 6 + forecolor 1 1 1 1 + visible 1 + autowrapped + decoration + } + +//------------------------------------------- +// +// SECONDARY OBJECTIVES +// +//------------------------------------------- + + //------------------------------------------- + // TITLE + //------------------------------------------- + + itemDef + { + name secondobj + rect 10 150 200 24 + type ITEM_TYPE_TEXT + style WINDOW_STYLE_FILLED + text @MENUS_SECONDARY_OBJECTIVES + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_LEFT + textalignx 5 + textaligny -2 + backcolor .2 .3 .7 1 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor .79 .64 .22 1 + decoration + } + + //------------------------------------------- + // OBJECTIVES + //------------------------------------------- + + itemDef + { + name secondobjA + rect 215 150 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_1 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor .2 .3 .7 1 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor .79 .64 .22 1 + cvartest "siege_objective1_inuse" + showcvar + { + "2" + } + action + { + show secondpic_text + show seconddescA + hide seconddescB + hide seconddescC + hide seconddescD + hide seconddescE + hide seconddescF + hide seconddescG + show secondpicA + hide secondpicB + hide secondpicC + hide secondpicD + hide secondpicE + hide secondpicF + hide secondpicG + show secondiconA + hide secondiconB + hide secondiconC + hide secondiconD + hide secondiconE + hide secondiconF + hide secondiconG + } + } + + itemDef + { + name secondobjB + rect 244 150 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_2 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor .2 .3 .7 1 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor .79 .64 .22 1 + cvartest "siege_objective2_inuse" + showcvar + { + "2" + } + action + { + show secondpic_text + hide seconddescA + show seconddescB + hide seconddescC + hide seconddescD + hide seconddescE + hide seconddescF + hide seconddescG + hide secondpicA + show secondpicB + hide secondpicC + hide secondpicD + hide secondpicE + hide secondpicF + hide secondpicG + hide secondiconA + show secondiconB + hide secondiconC + hide secondiconD + hide secondiconE + hide secondiconF + hide secondiconG + } + } + + itemDef + { + name secondobjC + rect 273 150 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_3 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor .2 .3 .7 1 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor .79 .64 .22 1 + cvartest "siege_objective3_inuse" + showcvar + { + "2" + } + action + { + show secondpic_text + hide seconddescA + hide seconddescB + show seconddescC + hide seconddescD + hide seconddescE + hide seconddescF + hide seconddescG + hide secondpicA + hide secondpicB + show secondpicC + hide secondpicD + hide secondpicE + hide secondpicF + hide secondpicG + hide secondiconA + hide secondiconB + show secondiconC + hide secondiconD + hide secondiconE + hide secondiconF + hide secondiconG + } + } + + itemDef + { + name secondobjD + rect 302 150 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_4 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor .2 .3 .7 1 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor .79 .64 .22 1 + cvartest "siege_objective4_inuse" + showcvar + { + "2" + } + action + { + show secondpic_text + hide seconddescA + hide seconddescB + hide seconddescC + show seconddescD + hide seconddescE + hide seconddescF + hide seconddescG + hide secondpicA + hide secondpicB + hide secondpicC + show secondpicD + hide secondpicE + hide secondpicF + hide secondpicG + hide secondiconA + hide secondiconB + hide secondiconC + show secondiconD + hide secondiconE + hide secondiconF + hide secondiconG + } + } + + itemDef + { + name secondobjE + rect 331 150 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_5 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor .2 .3 .7 1 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor .79 .64 .22 1 + cvartest "siege_objective5_inuse" + showcvar + { + "2" + } + action + { + show secondpic_text + hide seconddescA + hide seconddescB + hide seconddescC + hide seconddescD + show seconddescE + hide seconddescF + hide seconddescG + hide secondpicA + hide secondpicB + hide secondpicC + hide secondpicD + show secondpicE + hide secondpicF + hide secondpicG + hide secondiconA + hide secondiconB + hide secondiconC + hide secondiconD + show secondiconE + hide secondiconF + hide secondiconG + } + } + + itemDef + { + name secondobjF + rect 360 150 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_6 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor .2 .3 .7 1 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor .79 .64 .22 1 + cvartest "siege_objective6_inuse" + showcvar + { + "2" + } + action + { + show secondpic_text + hide seconddescA + hide seconddescB + hide seconddescC + hide seconddescD + hide seconddescE + show seconddescF + hide seconddescG + hide secondpicA + hide secondpicB + hide secondpicC + hide secondpicD + hide secondpicE + show secondpicF + hide secondpicG + hide secondiconA + hide secondiconB + hide secondiconC + hide secondiconD + hide secondiconE + show secondiconF + hide secondiconG + } + } + + itemDef + { + name secondobjG + rect 389 150 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_7 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor .2 .3 .7 1 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor .79 .64 .22 1 + cvartest "siege_objective7_inuse" + showcvar + { + "2" + } + action + { + show secondpic_text + hide seconddescA + hide seconddescB + hide seconddescC + hide seconddescD + hide seconddescE + hide seconddescF + show seconddescG + hide secondpicA + hide secondpicB + hide secondpicC + hide secondpicD + hide secondpicE + hide secondpicF + show secondpicG + hide secondiconA + hide secondiconB + hide secondiconC + hide secondiconD + hide secondiconE + hide secondiconF + show secondiconG + } + } + +//------------------------------------------- +// +// SECONDARY OBJECTIVES DESCRIPTIONS +// +//------------------------------------------- + + itemDef + { + name seconddescA + rect 10 176 402 76 + type ITEM_TYPE_TEXT + cvar "siege_objective1_desc" + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_LEFT + textalignx 6 + forecolor 1 1 1 1 + visible 0 + autowrapped + decoration + } + + itemDef + { + name seconddescB + rect 10 176 402 76 + type ITEM_TYPE_TEXT + cvar "siege_objective2_desc" + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_LEFT + textalignx 6 + forecolor 1 1 1 1 + visible 0 + autowrapped + decoration + } + + itemDef + { + name seconddescC + rect 10 176 402 76 + type ITEM_TYPE_TEXT + cvar "siege_objective3_desc" + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_LEFT + textalignx 6 + forecolor 1 1 1 1 + visible 0 + autowrapped + decoration + } + + itemDef + { + name seconddescD + rect 10 176 402 76 + type ITEM_TYPE_TEXT + cvar "siege_objective4_desc" + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_LEFT + textalignx 6 + forecolor 1 1 1 1 + visible 0 + autowrapped + decoration + } + + itemDef + { + name seconddescE + rect 10 176 402 76 + type ITEM_TYPE_TEXT + cvar "siege_objective5_desc" + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_LEFT + textalignx 6 + forecolor 1 1 1 1 + visible 0 + autowrapped + decoration + } + + itemDef + { + name seconddescF + rect 10 176 402 76 + type ITEM_TYPE_TEXT + cvar "siege_objective6_desc" + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_LEFT + textalignx 6 + forecolor 1 1 1 1 + visible 0 + autowrapped + decoration + } + + itemDef + { + name seconddescG + rect 10 176 402 76 + type ITEM_TYPE_TEXT + cvar "siege_objective7_desc" + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_LEFT + textalignx 6 + forecolor 1 1 1 1 + visible 0 + autowrapped + decoration + } + +//------------------------------------------- +// +// MAP ICONS +// +//------------------------------------------- + + itemDef + { + name primeicon + group missionpics + //rectcvar "siege_primobj_mappos" + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name secondiconA + group missionpics + //rectcvar "siege_objective1_mappos" + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name secondiconB + group missionpics + //rectcvar "siege_objective2_mappos" + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name secondiconC + group missionpics + //rectcvar "siege_objective3_mappos" + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name secondiconD + group missionpics + //rectcvar "siege_objective4_mappos" + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name secondiconE + group missionpics + //rectcvar "siege_objective5_mappos" + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name secondiconF + group missionpics + //rectcvar "siege_objective6_mappos" + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name secondiconG + group missionpics + //rectcvar "siege_objective7_mappos" + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 0 + decoration + } + +//------------------------------------------- +// +// OBJECTIVE PICTURES +// +//------------------------------------------- + + itemDef + { + name primepic_text + rect 10 382 192 14 + type ITEM_TYPE_TEXT + text @MENUS_PRIMARY_OBJECTIVES + font 2 + textscale .6 + textstyle 0 + textalign ITEM_ALIGN_LEFT + textalignx 2 + forecolor .79 .64 .22 1 + visible 1 + autowrapped + decoration + } + + itemDef + { + name secondpic_text + rect 212 382 192 14 + type ITEM_TYPE_TEXT + text @MENUS_SECONDARY_OBJECTIVES + font 2 + textscale .6 + textstyle 0 + textalign ITEM_ALIGN_LEFT + textalignx 2 + forecolor .79 .64 .22 1 + visible 0 + autowrapped + decoration + } + + itemDef + { + name primepic + group primepic + rect 10 254 192 128 + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + border 1 + bordercolor .79 .64 .22 1 + visible 1 + decoration + } + + itemDef + { + name secondpicA + group missionpics + rect 212 254 192 128 + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + border 1 + bordercolor .79 .64 .22 1 + visible 0 + decoration + } + + itemDef + { + name secondpicB + group missionpics + rect 212 254 192 128 + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + border 1 + bordercolor .79 .64 .22 1 + visible 0 + decoration + } + + itemDef + { + name secondpicC + group missionpics + rect 212 254 192 128 + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + border 1 + bordercolor .79 .64 .22 1 + visible 0 + decoration + } + + itemDef + { + name secondpicD + group missionpics + rect 212 254 192 128 + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + border 1 + bordercolor .79 .64 .22 1 + visible 0 + decoration + } + + itemDef + { + name secondpicE + group missionpics + rect 212 254 192 128 + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + border 1 + bordercolor .79 .64 .22 1 + visible 0 + decoration + } + + itemDef + { + name secondpicF + group missionpics + rect 212 254 192 128 + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + border 1 + bordercolor .79 .64 .22 1 + visible 0 + decoration + } + + itemDef + { + name secondpicG + group missionpics + rect 212 254 192 128 + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + border 1 + bordercolor .79 .64 .22 1 + visible 0 + decoration + } + + + itemDef + { + name exit + text @MENUS_OKAY + type 1 + textscale 1 + group grpControlbutton + type ITEM_TYPE_BUTTON + rect 160 392 300 26 + textalign ITEM_ALIGN_CENTER + textalignx 150 + forecolor .79 .64 .22 1 + backcolor .37 .1 .1 1 + visible 1 + action + { + play "sound/misc/nomenu.wav" ; + hide missionpics + close ingame_siegeobjectives ; + } + mouseEnter + { + setitemcolor 1 1 1 1 + } + mouseExit + { + setitemcolor .79 .64 .22 1 + } + } + + } +} \ No newline at end of file diff --git a/base/ui/jamp/ingame_voicechat.menu b/base/ui/jamp/ingame_voicechat.menu new file mode 100644 index 0000000..9fd238b --- /dev/null +++ b/base/ui/jamp/ingame_voicechat.menu @@ -0,0 +1,1178 @@ +//---------------------------------------------------------------------------------------------- +// VOICECHAT BOX +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "ingame_voicechat" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 10 100 180 260 + focusColor 1 1 1 1 + style 1 + border 1 + onESC + { + hide att_grp + hide def_grp + hide req_grp + hide rep_grp + hide spot_grp + hide tac_grp + hide main + close all + } + onClose + { + hide att_grp + hide def_grp + hide req_grp + hide rep_grp + hide spot_grp + hide tac_grp + hide main + } + + onOpen + { + disable main 0 + disable att_grp 0 + disable def_grp 0 + disable req_grp 0 + disable rep_grp 0 + disable spot_grp 0 + disable tac_grp 0 + setFocus attack + show main + } + + // Overall window backdrop + itemDef + { + name background_pic + group none + style WINDOW_STYLE_SHADER + rect 0 0 180 260 + background "gfx/menus/menu_box_ingame" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name title_small_background + rect 0 5 180 26 + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + visible 1 + decoration + } + + itemDef + { + name title_big_background + rect 0 5 180 48 + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + visible 0 + decoration + } + + itemDef + { + name title + rect 0 5 180 26 + style WINDOW_STYLE_EMPTY + type 4 + text @MENUS_VC_TITLE + textalign ITEM_ALIGN_CENTER + textalignx 90 + textaligny 2 + font 3 + textscale .9 + forecolor .549 .854 1 1 + visible 1 + decoration + } + +//----------------------------------- +// +// MAIN VOICE GROUPS +// +//----------------------------------- + itemDef + { + name attack + group main + rect 10 45 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_ATT + textalign ITEM_ALIGN_LEFT + ownerdraw UI_CHAT_MAIN + textalignx 4 + textaligny -2 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 1 + action + { + hide title_small_background + show title_big_background + hide def_grp + hide req_grp + hide rep_grp + hide spot_grp + hide tac_grp + hide main + show att_grp + setFocus att_01 + } + + } + + + itemDef + { + name defend + group main + rect 10 75 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_DEF + textalign ITEM_ALIGN_LEFT + ownerdraw UI_CHAT_MAIN + textalignx 4 + textaligny -2 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 1 + action + { + hide title_small_background + show title_big_background + disable main 1 + hide att_grp + hide req_grp + hide rep_grp + hide spot_grp + hide tac_grp + hide main + show def_grp + setFocus def_01 + } + } + + itemDef + { + name request + group main + rect 10 105 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_REQ + textalign ITEM_ALIGN_LEFT + ownerdraw UI_CHAT_MAIN + textalignx 4 + textaligny -2 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 1 + action + { + hide title_small_background + show title_big_background + disable main 1 + hide att_grp + hide def_grp + hide req_grp + hide spot_grp + hide tac_grp + hide main + show req_grp + setFocus req_01 + } + } + + itemDef + { + name reply + group main + rect 10 135 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_REPLY + textalign ITEM_ALIGN_LEFT + ownerdraw UI_CHAT_MAIN + textalignx 4 + textaligny -2 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 1 + action + { + hide title_small_background + show title_big_background + disable main 1 + hide att_grp + hide def_grp + hide req_grp + hide spot_grp + hide tac_grp + hide main + show rep_grp + setFocus rep_01 + } + } + + itemDef + { + name spot + group main + rect 10 165 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_SPOT + textalign ITEM_ALIGN_LEFT + ownerdraw UI_CHAT_MAIN + textalignx 4 + textaligny -2 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 1 + action + { + hide title_small_background + show title_big_background + disable main 1 + hide att_grp + hide def_grp + hide req_grp + hide rep_grp + hide tac_grp + hide main + show spot_grp + setFocus spot_01 + } + } + + itemDef + { + name tactics + group main + rect 10 195 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_TACTIC + textalign ITEM_ALIGN_LEFT + ownerdraw UI_CHAT_MAIN + textalignx 4 + textaligny -2 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 1 + action + { + hide title_small_background + show title_big_background + disable main 1 + hide att_grp + hide def_grp + hide req_grp + hide rep_grp + hide spot_grp + hide main + show tac_grp + setFocus tac_01 + } + } + + itemDef + { + name cancel + group none + rect 10 235 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_CANCEL + textalign ITEM_ALIGN_CENTER + textalignx 80 + textaligny -2 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 1 + action + { + hide att_grp + hide def_grp + hide req_grp + hide rep_grp + hide spot_grp + hide tac_grp + show main + close all + } + } + +//----------------------------------- +// +// ATTACK COMMANDS +// +//----------------------------------- + itemDef + { + name title + group att_grp + rect 0 25 180 26 + style WINDOW_STYLE_EMPTY + type 4 + text @MENUS_ATTACK_TITLE + textalign ITEM_ALIGN_CENTER + textalignx 90 + textaligny 2 + font 3 + textscale .9 + forecolor .549 .854 1 1 + visible 0 + decoration + } + + itemDef + { + name att_01 + group att_grp + rect 10 45 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_ATT_PRIMARY + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + ownerdraw UI_CHAT_ATTACK + action + { + disable att_grp 1 + exec "voice_cmd att_primary" + hide att_grp + show main + close all + } + } + + itemDef + { + name att_02 + group att_grp + rect 10 75 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_ATT_SECONDARY + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + ownerdraw UI_CHAT_ATTACK + action + { + disable att_grp 1 + exec "voice_cmd att_second" + hide att_grp + show main + close all + } + } + + itemDef + { + name att_03 + group att_grp + rect 10 105 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_ATT_POSITION + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + ownerdraw UI_CHAT_ATTACK + action + { + disable att_grp 1 + exec "voice_cmd att_attack" + hide att_grp + show main + close all + } + } + +//----------------------------------- +// +// DEFEND COMMANDS +// +//----------------------------------- + itemDef + { + name title + group def_grp + rect 0 25 180 26 + style WINDOW_STYLE_EMPTY + type 4 + text @MENUS_DEFEND_TITLE + textalign ITEM_ALIGN_CENTER + textalignx 90 + textaligny 2 + font 3 + textscale .9 + forecolor .549 .854 1 1 + visible 0 + decoration + } + + itemDef + { + name def_01 + group def_grp + rect 10 45 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_DEF_PRIMARY + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + ownerdraw UI_CHAT_DEFEND + action + { + disable def_grp 1 + exec "voice_cmd def_primary" + hide def_grp + show main + close all + } + } + + itemDef + { + name def_02 + group def_grp + rect 10 75 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_DEF_SECONDARY + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + ownerdraw UI_CHAT_DEFEND + action + { + disable def_grp 1 + exec "voice_cmd def_second" + hide def_grp + show main + close all + } + } + + itemDef + { + name def_03 + group def_grp + rect 10 105 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_DEF_POSITION + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + ownerdraw UI_CHAT_DEFEND + action + { + disable def_grp 1 + exec "voice_cmd def_position" + hide def_grp + show main + close all + } + } + + itemDef + { + name def_04 + group def_grp + rect 10 135 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_DEF_GUNS + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + ownerdraw UI_CHAT_DEFEND + action + { + disable def_grp 1 + exec "voice_cmd def_guns" + hide def_grp + show main + close all + } + } + +//----------------------------------- +// +// REQUEST COMMANDS +// +//----------------------------------- + itemDef + { + name title + group req_grp + rect 0 25 180 26 + style WINDOW_STYLE_EMPTY + type 4 + text @MENUS_REQUEST_TITLE + textalign ITEM_ALIGN_CENTER + textalignx 90 + textaligny 2 + font 3 + textscale .9 + forecolor .549 .854 1 1 + visible 0 + decoration + } + + itemDef + { + name req_01 + group req_grp + rect 10 45 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_REQ_ASSIST + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + ownerdraw UI_CHAT_REQUEST + action + { + disable req_grp 1 + exec "voice_cmd req_assist" + hide req_grp + show main + close all + } + } + + itemDef + { + name req_02 + group req_grp + rect 10 75 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_REQ_MEDIC + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + ownerdraw UI_CHAT_REQUEST + action + { + disable req_grp 1 + exec "voice_cmd req_medic" + hide req_grp + show main + close all + } + } + + itemDef + { + name req_03 + group req_grp + rect 10 105 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_REQ_SUPPLY + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + ownerdraw UI_CHAT_REQUEST + action + { + disable req_grp 1 + exec "voice_cmd req_sup" + hide req_grp + show main + close all + } + } + + itemDef + { + name req_04 + group req_grp + rect 10 135 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_REQ_TECH + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + ownerdraw UI_CHAT_REQUEST + action + { + disable req_grp 1 + exec "voice_cmd req_tech" + hide req_grp + show main + close all + } + } + + itemDef + { + name req_05 + group req_grp + rect 10 165 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_REQ_HVY + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + ownerdraw UI_CHAT_REQUEST + action + { + disable req_grp 1 + exec "voice_cmd req_hvy" + hide req_grp + show main + close all + } + } + + itemDef + { + name req_06 + group req_grp + rect 10 195 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_REQ_DEMO + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + ownerdraw UI_CHAT_REQUEST + action + { + disable req_grp 1 + exec "voice_cmd req_demo" + hide req_grp + show main + close all + } + } + +//----------------------------------- +// +// REPLY COMMANDS +// +//----------------------------------- + itemDef + { + name title + group rep_grp + rect 0 25 180 26 + style WINDOW_STYLE_EMPTY + type 4 + text @MENUS_REPLY_TITLE + textalign ITEM_ALIGN_CENTER + textalignx 90 + textaligny 2 + font 3 + textscale .9 + forecolor .549 .854 1 1 + visible 0 + decoration + } + + itemDef + { + name rep_01 + group rep_grp + rect 10 45 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_REPLY_YES + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + ownerdraw UI_CHAT_REPLY + action + { + disable rep_grp 1 + exec "voice_cmd reply_yes" + hide rep_grp + show main + close all + } + } + + itemDef + { + name rep_02 + group rep_grp + rect 10 75 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_REPLY_NO + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + ownerdraw UI_CHAT_REPLY + action + { + disable rep_grp 1 + exec "voice_cmd reply_no" + hide rep_grp + show main + close all + } + } + + itemDef + { + name rep_03 + group rep_grp + rect 10 105 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_REPLY_COMING + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + ownerdraw UI_CHAT_REPLY + action + { + disable rep_grp 1 + exec "voice_cmd reply_coming" + hide rep_grp + show main + close all + } + } + + itemDef + { + name rep_04 + group rep_grp + rect 10 135 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_REPLY_GO + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + ownerdraw UI_CHAT_REPLY + action + { + disable rep_grp 1 + exec "voice_cmd reply_go" + hide rep_grp + show main + close all + } + } + + itemDef + { + name rep_05 + group rep_grp + rect 10 165 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_REPLY_STAY + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + ownerdraw UI_CHAT_REPLY + action + { + disable rep_grp 1 + exec "voice_cmd reply_stay" + hide rep_grp + show main + close all + } + } + +//----------------------------------- +// +// SPOT COMMANDS +// +//----------------------------------- + itemDef + { + name title + group spot_grp + rect 0 25 180 26 + style WINDOW_STYLE_EMPTY + type 4 + text @MENUS_SPOTTED_TITLE + textalign ITEM_ALIGN_CENTER + textalignx 90 + textaligny 2 + font 3 + textscale .9 + forecolor .549 .854 1 1 + visible 0 + decoration + } + + itemDef + { + name spot_01 + group spot_grp + rect 10 45 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_SPOT_DEF + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + ownerdraw UI_CHAT_SPOT + action + { + disable spot_grp 1 + exec "voice_cmd spot_defenses" + hide spot_grp + show main + close all + } + } + + itemDef + { + name spot_02 + group spot_grp + rect 10 75 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_SPOT_TROOP + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + ownerdraw UI_CHAT_SPOT + action + { + disable spot_grp 1 + exec "voice_cmd spot_troops" + hide spot_grp + show main + close all + } + } + + itemDef + { + name spot_03 + group spot_grp + rect 10 105 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_SPOT_SNIPER + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + ownerdraw UI_CHAT_SPOT + action + { + disable spot_grp 1 + exec "voice_cmd spot_sniper" + hide spot_grp + show main + close all + } + } + + itemDef + { + name spot_04 + group spot_grp + rect 10 135 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_SPOT_EMPLACED + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + ownerdraw UI_CHAT_SPOT + action + { + disable spot_grp 1 + exec "voice_cmd spot_emplaced" + hide spot_grp + show main + close all + } + } + +//----------------------------------- +// +// TACTICS COMMANDS +// +//----------------------------------- + itemDef + { + name title + group tac_grp + rect 0 25 180 26 + style WINDOW_STYLE_EMPTY + type 4 + text @MENUS_TACTICS_TITLE + textalign ITEM_ALIGN_CENTER + textalignx 90 + textaligny 2 + font 3 + textscale .9 + forecolor .549 .854 1 1 + visible 0 + decoration + } + + itemDef + { + name tac_01 + group tac_grp + rect 10 45 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_TAC_COVER + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + ownerdraw UI_CHAT_TACTICAL + action + { + disable tac_grp 1 + exec "voice_cmd tac_cover" + hide tac_grp + show main + close all + } + } + + itemDef + { + name tac_02 + group tac_grp + rect 10 75 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_TAC_HOLD + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + ownerdraw UI_CHAT_TACTICAL + action + { + disable tac_grp 1 + exec "voice_cmd tac_hold" + hide tac_grp + show main + close all + } + } + + itemDef + { + name tac_03 + group tac_grp + rect 10 105 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_TAC_FOLLOW + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + ownerdraw UI_CHAT_TACTICAL + action + { + disable tac_grp 1 + exec "voice_cmd tac_follow" + hide tac_grp + show main + close all + } + } + + itemDef + { + name tac_04 + group tac_grp + rect 10 135 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_TAC_FALLBACK + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + ownerdraw UI_CHAT_TACTICAL + action + { + disable tac_grp 1 + exec "voice_cmd tac_fallback" + hide tac_grp + show main + close all + } + } + + itemDef + { + name tac_05 + group tac_grp + rect 10 165 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_TAC_TOGETHER + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + ownerdraw UI_CHAT_TACTICAL + action + { + disable tac_grp 1 + exec "voice_cmd tac_together" + hide tac_grp + show main + close all + } + } + + itemDef + { + name tac_06 + group tac_grp + rect 10 195 160 20 + type ITEM_TYPE_BUTTON + text @MENUS_VC_TAC_SPLIT + textalign ITEM_ALIGN_LEFT + textalignx 4 + textaligny 12 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + ownerdraw UI_CHAT_TACTICAL + action + { + disable tac_grp 1 + exec "voice_cmd tac_split" + hide tac_grp + show main + close all + } + } + + } +} + + + + + + + + + + + + + + + + + + + + diff --git a/base/ui/jamp/ingame_vote.menu b/base/ui/jamp/ingame_vote.menu new file mode 100644 index 0000000..83e2efa --- /dev/null +++ b/base/ui/jamp/ingame_vote.menu @@ -0,0 +1,112 @@ +// SERVER INFO MENU +{ + menuDef + { + name "ingame_vote" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 430 40 80 68 + focusColor 1 1 1 1 + style 1 + border 1 + + // Overall window backdrop + itemDef + { + name background_pic + group none + style WINDOW_STYLE_SHADER + rect 0 0 80 68 + background "gfx/menus/menu_box_ingame" + forecolor 1 1 1 1 + visible 1 + decoration + } + + + itemDef + { + name button1 + group buttons + style WINDOW_STYLE_SHADER + rect 2 4 76 30 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name yes + text @MENUS_YES + type 1 + style 2 + rect 2 4 76 30 + textalign ITEM_ALIGN_CENTER + textalignx 38 + textaligny 0 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + exec "vote yes" ; + uiScript closeingame + } + mouseEnter + { + show button1 + } + mouseExit + { + hide button1 + } + } + + itemDef + { + name button2 + group buttons + style WINDOW_STYLE_SHADER + rect 2 34 76 30 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name no + text @MENUS_NO + type 1 + style 2 + rect 2 34 76 30 + textalign ITEM_ALIGN_CENTER + textalignx 38 + textaligny 0 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + exec "vote no" ; + uiScript closeingame + } + mouseEnter + { + show button2 + } + mouseExit + { + hide button2 + } + } + } +} diff --git a/base/ui/jamp/joinserver.menu b/base/ui/jamp/joinserver.menu new file mode 100644 index 0000000..d77b69d --- /dev/null +++ b/base/ui/jamp/joinserver.menu @@ -0,0 +1,1224 @@ +//---------------------------------------------------------------------------------------------- +// Join a Server +// Allows user to view a list of available servers and choose which one to join. +// +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "joinserver" + visible 0 + fullscreen 1 + rect 0 0 640 480 + outOfBoundsClick + focusColor 1 1 1 1 // Focus color for text and items + descX 320 + descY 424 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + uiScript UpdateFilter + } + + onEsc + { + play "sound/interface/esc.wav" ; + uiScript closeJoin + open multiplayermenu + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + forecolor 1 1 1 1 + visible 1 + decoration + } + + // Setup background box (upper right) + itemDef + { + name setup_background + group none + style WINDOW_STYLE_FILLED + rect 240 24 384 60 + backcolor 0 0 .6 .5 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .6 1 + visible 1 + decoration + } + + // Secondard menus background box (lower) + itemDef + { + name secondary_background + group none + style WINDOW_STYLE_FILLED + rect 5 398 630 22 + backcolor 0 0 .6 .5 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .6 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// Join Server title +//---------------------------------------------------------------------------------------------- + itemDef + { + name join_title + group none + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_JOIN_A_GAME_IN_PROGRESS + rect 50 4 540 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 270 + textaligny -1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name button_glow2 + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_blendbox_extended" + forecolor 1 1 1 1 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// Top buttons +//---------------------------------------------------------------------------------------------- + // GET NEW LIST + itemDef + { + name getnewlist_button + group none + text @MENUS_GET_NEW_LIST + descText @MENUS_GET_UPDATED_SERVER_LIST + type ITEM_TYPE_BUTTON + textscale 1 + style WINDOW_STYLE_FILLED + rect 15 26 180 26 + textalign ITEM_ALIGN_LEFT + textalignx 0 // center + textaligny 0 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" + uiScript RefreshServers + } + mouseEnter + { + show button_glow2 + setitemrect button_glow2 10 27 220 26 + } + mouseExit + { + hide button_glow2 + } + } + + // REFRESH LIST + itemDef + { + name refreshFilter_button + text @MENUS_REFRESH_LIST + descText @MENUS_REFRESH_SERVER_LIST + textscale 1 + style WINDOW_STYLE_FILLED + type ITEM_TYPE_BUTTON + rect 15 54 180 26 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny 0 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" + uiScript RefreshFilter + } + mouseEnter + { + show button_glow2 + setitemrect button_glow2 10 55 220 26 + } + mouseExit + { + hide button_glow2 + } + } + +//---------------------------------------------------------------------------------------------- +// Selectors (top right box - left column) +//---------------------------------------------------------------------------------------------- + // Source selector + itemDef + { + name netsource + style 0 + //text @MENUS_SOURCE + descText @MENUS_CHOOSE_SOURCE_OF_SERVERS + ownerdraw UI_NETSOURCE + rect 250 26 180 18 + font 4 + textscale 1 + textalignx 0 + textaligny 0 + textalign ITEM_ALIGN_LEFT + textstyle 3 + forecolor .615 .615 .956 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + } + mouseEnter + { + show button_glow2 + setitemrect button_glow2 242 24 200 20 + } + mouseExit + { + hide button_glow2 + } + } + + // Filter selector + itemDef + { + name netfilter + style 0 + //text @MENUS_GAME + descText @MENUS_SET_FILTER_FOR_SPECIFIC + ownerdraw UI_NETFILTER + rect 250 44 180 18 + font 4 + textscale 1 + textalignx 0 + textaligny 0 + textalign ITEM_ALIGN_LEFT + textstyle 3 + forecolor .615 .615 .956 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + } + mouseEnter + { + show button_glow2 + setitemrect button_glow2 243 42 200 20 + } + mouseExit + { + hide button_glow2 + } + } + + // Game type selector + itemDef + { + name gametypefilter + style 0 + text @MENUS_GAME_TYPE + descText @MENUS_FILTER_FOR_SPECIFIC_GAME + ownerdraw UI_JOINGAMETYPE + rect 250 62 180 18 + font 4 + textscale 1 + textalignx 0 + textaligny 0 + textalign ITEM_ALIGN_LEFT + textstyle 3 + forecolor .615 .615 .956 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + } + mouseEnter + { + show button_glow2 + setitemrect button_glow2 242 60 200 20 + } + mouseExit + { + hide button_glow2 + } + } + +//---------------------------------------------------------------------------------------------- +// Selectors (top right box - rightt column) +//---------------------------------------------------------------------------------------------- + // view empty selector + itemDef + { + name viewEmpty + type ITEM_TYPE_YESNO + text @MENUS_VIEW_EMPTY + descText @MENUS_INCLUDE_EMPTY_SERVERS + cvar "ui_browserShowEmpty" + font 4 + textscale 1 + rect 430 26 180 18 + textalignx 0 + textaligny 0 + textalign ITEM_ALIGN_LEFT + forecolor .615 .615 .956 1 + visible 1 + action + { + play "sound/interface/button1.wav" + uiScript RefreshFilter + } + mouseEnter + { + show button_glow2 + setitemrect button_glow2 422 24 200 20 + } + mouseExit + { + hide button_glow2 + } + } + + // View Full selector + itemDef + { + name viewFull + type 11 + text @MENUS_VIEW_FULL + descText @MENUS_INCLUDE_FULL_SERVERS + cvar "ui_browserShowFull" + font 4 + textscale 1 + rect 430 44 180 18 + textalignx 0 + textaligny 0 + textalign ITEM_ALIGN_LEFT + forecolor .615 .615 .956 1 + visible 1 + action + { + play "sound/interface/button1.wav" + uiScript RefreshFilter + } + mouseEnter + { + show button_glow2 + setitemrect button_glow2 422 42 200 20 + } + mouseExit + { + hide button_glow2 + } + } + + // Data Rate selector + itemDef + { + name datarate + type ITEM_TYPE_MULTI + text @MENUS_DATA_RATE + descText @MENUS_DATA_RATE_DESC + cvar "rate" + cvarFloatList + { + "@MENUS_56K" 4000 + "@MENUS_ISDN" 5000 + "@MENUS_LAN/CABLE" 25000 + } + textscale 1 + rect 430 62 180 18 + font 4 + textalignx 0 + textaligny 0 + textalign ITEM_ALIGN_LEFT + forecolor .615 .615 .956 1 + visible 1 + action + { + play "sound/interface/button1.wav" + uiScript update ui_setRate + } + mouseEnter + { + show button_glow2 + setitemrect button_glow2 422 60 200 20 + } + mouseExit + { + hide button_glow2 + } + } + +//---------------------------------------------------------------------------------------------- +// COLUMN HEADINGS/SORT TABS +//---------------------------------------------------------------------------------------------- + itemDef + { + name server + group grpTabs + text @MENUS_SERVER_NAME + descText @MENUS_SORT_BY_SERVER_NAME + type ITEM_TYPE_BUTTON + textscale 1 + style WINDOW_STYLE_EMPTY + rect 10 88 265 26 + textalign ITEM_ALIGN_LEFT + textalignx 4 // center + textaligny 0 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" + uiScript ServerSort 0 + setitemcolor grpTabs backcolor 0.6 0.6 0.6 1 + setitemcolor server backcolor 1 1 1 1 + setitemcolor grpTabs forecolor .79 .64 .22 1 + setitemcolor server forecolor 1 1 1 1 + setitemcolor grpColumn backcolor 0 0 0 0 + setitemcolor serverColumn backcolor 0.1 0.1 0.5 0.5 + } + mouseEnter + { + show button_glow2 + setitemrect button_glow2 7 90 265 24 + setitemcolor serverColumn bordercolor .79 .64 .22 1 + } + + mouseExit + { + hide button_glow2 + setitemcolor serverColumn bordercolor 0.2 0.2 0.5 0.5 + } + } + + itemDef + { + name map + group grpTabs + type ITEM_TYPE_BUTTON + text @MENUS_MAP_NAME_1 + descText @MENUS_SORT_BY_MAP_NAME + textscale 1 + style WINDOW_STYLE_EMPTY + rect 275 88 125 26 + textalign ITEM_ALIGN_LEFT + textalignx 4 // center + textaligny 0 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" + uiScript ServerSort 1 + setitemcolor grpTabs backcolor 0.6 0.6 0.6 1 + setitemcolor map backcolor 1 1 1 1 + setitemcolor grpTabs forecolor .79 .64 .22 1 + setitemcolor map forecolor 1 1 1 1 + setitemcolor grpColumn backcolor 0 0 0 0 + setitemcolor mapColumn backcolor 0.1 0.1 0.5 0.5 + } + mouseEnter + { + show button_glow2 + setitemrect button_glow2 272 90 134 24 + setitemcolor mapColumn bordercolor .79 .64 .22 1 + } + mouseExit + { + setitemcolor mapColumn bordercolor 0.2 0.2 0.5 0.5 + } + } + + itemDef + { + name Players + group grpTabs + text @MENUS_PLYRS + descText @MENUS_SORT_BY_NUMBER_OF_PLAYERS + type ITEM_TYPE_BUTTON + textscale 1 + style WINDOW_STYLE_EMPTY + background "gfx/menus/menu_blendbox3" // Frame around button + rect 400 88 60 26 + textalign ITEM_ALIGN_LEFT + textalignx 4 // center + textaligny 0 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" + uiScript ServerSort 2 + setitemcolor grpTabs backcolor 0.6 0.6 0.6 1 + setitemcolor Players backcolor 1 1 1 1 + setitemcolor grpTabs forecolor .79 .64 .22 1 + setitemcolor Players forecolor 1 1 1 1 + setitemcolor grpColumn backcolor 0 0 0 0 + setitemcolor playerColumn backcolor 0.1 0.1 0.5 0.5 + } + mouseEnter + { + show button_glow2 + setitemrect button_glow2 397 90 68 24 + setitemcolor playerColumn bordercolor .79 .64 .22 1 + } + mouseExit + { + setitemcolor playerColumn bordercolor 0.2 0.2 0.5 0.5 + } + } + + itemDef + { + name Type + group grpTabs + text @MENUS_SORT_TYPE + descText @MENUS_SORT_BY_GAME_TYPE + textscale 1 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + background "gfx/menus/menu_blendbox3" // Frame around button + rect 460 88 60 26 + textalign ITEM_ALIGN_LEFT + textalignx 4 // center + textaligny 0 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" + uiScript ServerSort 3 + setitemcolor grpTabs backcolor 0.6 0.6 0.6 1 + setitemcolor Type backcolor 1 1 1 1 + setitemcolor grpTabs forecolor .79 .64 .22 1 + setitemcolor Type forecolor 1 1 1 1 + setitemcolor grpColumn backcolor 0 0 0 0 + setitemcolor typeColumn backcolor 0.1 0.1 0.5 0.5 + } + mouseEnter + { + show button_glow2 + setitemrect button_glow2 457 90 110 24 + setitemcolor typeColumn bordercolor .79 .64 .22 1 + } + mouseExit + { + hide button_glow2 + setitemcolor typeColumn bordercolor 0.2 0.2 0.5 0.5 + } + } + + + itemDef + { + name Ping + group grpTabs + text @MENUS_PING + descText @MENUS_SORT_BY_PING_TIME + type ITEM_TYPE_BUTTON + textscale 1 + style WINDOW_STYLE_EMPTY + background "gfx/menus/menu_blendbox3" // Frame around button + rect 560 88 52 26 + textalign ITEM_ALIGN_LEFT + textalignx 4 // center + textaligny 0 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" + uiScript ServerSort 4 + setitemcolor grpTabs backcolor 0.6 0.6 0.6 1 + setitemcolor Ping backcolor 1 1 1 1 + setitemcolor grpTabs forecolor .79 .64 .22 1 + setitemcolor Ping forecolor 1 1 1 1 + setitemcolor grpColumn backcolor 0 0 0 0 ; + setitemcolor pingColumn backcolor 0.1 0.1 0.5 0.5 + } + mouseEnter + { + show button_glow2 + setitemrect button_glow2 557 90 60 24 + setitemcolor pingColumn bordercolor .79 .64 .22 1 + } + mouseExit + { + hide button_glow2 + setitemcolor pingColumn bordercolor 0.2 0.2 0.5 0.5 + } + } + +//---------------------------------------------------------------------------------------------- +// HORIZONTAL SEPARATORS +//---------------------------------------------------------------------------------------------- + itemDef + { + name horizontalseparators + rect 10 116 604 26 + style WINDOW_STYLE_FILLED + border 0 + backcolor 0.1 0.1 0.3 0.5 + visible 1 + decoration + } + + itemDef + { + name horizontalseparators + rect 10 142 604 26 + style WINDOW_STYLE_FILLED + border 0 + backcolor 0 0 0.2 0.5 + visible 1 + decoration + } + + itemDef + { + name horizontalseparators + rect 10 168 604 26 + style WINDOW_STYLE_FILLED + border 0 + backcolor 0.1 0.1 0.3 0.5 + visible 1 + decoration + } + + itemDef + { + name horizontalseparators + rect 10 194 604 26 + style WINDOW_STYLE_FILLED + border 0 + backcolor 0 0 0.2 0.5 + visible 1 + decoration + } + + itemDef + { + name horizontalseparators + rect 10 220 604 26 + style WINDOW_STYLE_FILLED + border 0 + backcolor 0.1 0.1 0.3 0.5 + visible 1 + decoration + } + + itemDef + { + name horizontalseparators + rect 10 246 604 26 + style WINDOW_STYLE_FILLED + border 0 + backcolor 0 0 0.2 0.5 + visible 1 + decoration + } + + itemDef + { + name horizontalseparators + rect 10 272 604 26 + style WINDOW_STYLE_FILLED + border 0 + backcolor 0.1 0.1 0.3 0.5 + visible 1 + decoration + } + + itemDef + { + name horizontalseparators + rect 10 298 604 26 + style WINDOW_STYLE_FILLED + border 0 + backcolor 0 0 0.2 0.5 + visible 1 + decoration + } + + itemDef + { + name horizontalseparators + rect 10 324 604 26 + style WINDOW_STYLE_FILLED + border 0 + backcolor 0.1 0.1 0.3 0.5 + visible 1 + decoration + } + + itemDef + { + name horizontalseparators + rect 10 350 604 26 + style WINDOW_STYLE_FILLED + border 0 + backcolor 0 0 0.2 0.5 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// COLUMN LINES +//---------------------------------------------------------------------------------------------- + itemDef + { + name serverColumn + group grpColumn + rect 10 112 265 264 + style WINDOW_STYLE_FILLED + border 1 + backcolor 0 0 0 0 + bordersize 1 + bordercolor 0.2 0.2 0.5 0.5 + visible 1 + decoration + } + + itemDef + { + name mapColumn + group grpColumn + rect 275 112 125 264 + style WINDOW_STYLE_FILLED + border 1 + backcolor 0 0 0 0 + bordersize 1 + bordercolor 0.2 0.2 0.5 0.5 + visible 1 + decoration + } + + itemDef + { + name playerColumn + group grpColumn + rect 400 112 60 264 + style WINDOW_STYLE_FILLED + border 1 + backcolor 0 0 0 0 + bordersize 1 + bordercolor 0.2 0.2 0.5 0.5 + visible 1 + decoration + } + + itemDef + { + name typeColumn + group grpColumn + rect 460 112 100 264 + style WINDOW_STYLE_FILLED + border 1 + backcolor 0 0 0 0 + bordersize 1 + bordercolor 0.2 0.2 0.5 0.5 + visible 1 + decoration + } + + itemDef + { + name pingColumn + group grpColumn + rect 560 112 52 264 + style WINDOW_STYLE_FILLED + border 1 + backcolor 0 0 0 0 + bordersize 1 + bordercolor 0.2 0.2 0.5 0.5 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// SERVER LIST WINDOW +//---------------------------------------------------------------------------------------------- + itemDef + { + name serverlist + rect 10 112 620 264 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 120 + elementheight 26 + font 4 + textscale 1 + textaligny 6 + elementtype LISTBOX_TEXT + feeder FEEDER_SERVERS + border 1 + bordercolor 0.2 0.2 0.5 0.5 //Color of border + forecolor 1 1 1 1 //Color of text + backcolor 0.25 0.25 0.8 .25 //Background color of listbox + outlinecolor 1 1 1 .25 //Highlight when item is selected. + visible 1 + columns 5 2 40 258 270 40 104 388 5 64 450 20 100 560 20 47 + mouseenter + { + setitemcolor serverlist bordercolor .79 .64 .22 1 + } + mouseexit + { + setitemcolor serverlist bordercolor 0.2 0.2 0.5 0.5 + } + doubleClick + { + + uiScript checkpassword + // uiScript JoinServer + // close joinserver + //open forcealloc + } + } + + // DATE AND TIME + itemDef + { + name refreshdate + ownerdraw UI_SERVERREFRESHDATE + font 4 + textscale 1 + rect 10 376 285 20 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny 0 + forecolor .79 .64 .22 .7 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// ADDITIONAL SCREENS BUTTONS +//---------------------------------------------------------------------------------------------- + + // PASSWORD + itemDef + { + name passwordText + text @MENUS_PASSWORD + descText @MENUS_INPUT_PASSWORD + type ITEM_TYPE_BUTTON + font 4 + textscale 1 + style WINDOW_STYLE_FILLED + rect 10 402 120 20 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny 0 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + open password_popmenu + } + mouseenter + { + show button_glow + setitemrect button_glow 7 400 150 20 + } + mouseexit + { + hide button_glow + } + } + + // NEW FAVORITE + itemDef + { + name createFavoriteText + text @MENUS_NEW_FAVORITE + descText @MENUS_ENTER_IP_ADDRESS_OF_FAVORITE + type ITEM_TYPE_BUTTON + font 4 + textscale 1 + style WINDOW_STYLE_FILLED + rect 135 402 120 20 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny 0 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + open createfavorite_popmenu + } + mouseenter + { + show button_glow + setitemrect button_glow 132 400 150 20 + } + mouseexit + { + hide button_glow + } + } + + // ADD/DELETE FAVORITE + itemDef + { + name addFavorite + text @MENUS_ADD_FAVORITE + descText @MENUS_ADD_SELECTED_SERVER_TO + type ITEM_TYPE_BUTTON + font 4 + textscale 1 + style WINDOW_STYLE_FILLED + ownerdrawFlag UI_SHOW_NOTFAVORITESERVERS + rect 260 402 120 20 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny 0 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" + uiScript addFavorite + } + mouseenter + { + show button_glow + setitemrect button_glow 257 400 150 20 + } + mouseexit + { + hide button_glow + } + } + + itemDef + { + name delfavorite + text @MENUS_DEL_FAVORITE + descText @MENUS_DELETE_SELECTED_SERVER + type ITEM_TYPE_BUTTON + font 4 + textscale 1 + style WINDOW_STYLE_FILLED + ownerdrawFlag UI_SHOW_FAVORITESERVERS + rect 260 402 120 20 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny 0 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" + uiScript DeleteFavorite + uiScript UpdateFilter + } + mouseenter + { + show button_glow + setitemrect button_glow 257 400 150 20 + } + mouseexit + { + hide button_glow + } + } + + // SERVER INFO + itemDef + { + name serverinfoText + text @MENUS_GET_SERVER_INFO + descText @MENUS_DISPLAY_SERVER_INFORMATION + type ITEM_TYPE_BUTTON + font 4 + textscale 1 + style WINDOW_STYLE_FILLED + rect 385 402 120 20 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny 0 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + open serverinfo_popmenu + } + mouseenter + { + show button_glow + setitemrect button_glow 382 400 150 20 + } + mouseexit + { + hide button_glow + } + } + + // FIND PLAYER + itemDef + { + name findplayerText + text @MENUS_FIND_PLAYER + descText @MENUS_SEARCH_CURRENT_SERVER + type ITEM_TYPE_BUTTON + font 4 + textscale 1 + style WINDOW_STYLE_FILLED + rect 510 402 120 20 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny 0 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + open findplayer_popmenu + hide findPlayerButton + } + mouseenter + { + show button_glow + setitemrect button_glow 507 400 150 20 + } + mouseexit + { + hide button_glow + } + } + +//---------------------------------------------------------------------------------------------- +// VERY BOTTOM ROW BUTTONS +//---------------------------------------------------------------------------------------------- + // BACK BUTTON + itemDef + { + name back + text @MENUS_BACK + descText @MENUS_BACKUP_ONE_MENU + type ITEM_TYPE_BUTTON + font 3 + textscale 1.1 + textstyle 0 + style WINDOW_STYLE_FILLED + rect 59 444 130 24 + textalign 1 + textalignx 65 + textaligny -1 + textalign ITEM_ALIGN_CENTER + visible 1 + forecolor 1 .682 0 1 + action + { + play "sound/interface/esc.wav" ; + close joinserver ; + open multiplayermenu + } + mouseEnter + { + show button_glow + setitemrect button_glow 30 441 190 30 + } + mouseExit + { + hide button_glow + } + } + + // EXIT button + itemDef + { + name exitgamebutton + group othermain + text @MENUS_EXIT + descText @MENUS_LEAVE_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 255 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 235 441 190 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/weapons/saber/saberoff.mp3"; + close all ; + open quitMenu + } + } + + // JOIN BUTTON + itemDef + { + name join_button + text @MENUS_JOIN + descText @MENUS_JOIN_CHOSEN_SERVER + type ITEM_TYPE_BUTTON + font 3 + textscale 1 + textstyle 0 + style WINDOW_STYLE_FILLED + rect 455 444 200 32 + textalign 1 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + action + { + play "sound/interface/button1.wav" + uiScript checkpassword + // uiScript JoinServer + // close joinserver + } + + mouseEnter + { + show button_glow + setitemrect button_glow 425 441 190 30 + } + mouseExit + { + hide button_glow + } + } + } +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/base/ui/jamp/main.menu b/base/ui/jamp/main.menu new file mode 100644 index 0000000..91989c2 --- /dev/null +++ b/base/ui/jamp/main.menu @@ -0,0 +1,523 @@ +//---------------------------------------------------------------------------------------------- +// +// MULTIPLAYER - MAIN MENU +// +// Opening menu. Called when game is first started. +// +//---------------------------------------------------------------------------------------------- +{ + assetGlobalDef + { + font "ergoec" 18 // font + smallFont "aurabesh" 18 // font + bigFont "anewhope" 20 // font + small2Font "arialnb" 14 + cursor "cursor" // cursor + gradientBar "ui/assets/gradientbar2.tga" // gradient bar + itemFocusSound "sound/interface/menuroam.wav" // sound for item getting focus (via keyboard or mouse ) + + fadeClamp 1.0 // sets the fadeup alpha + fadeCycle 1 // how often fade happens in milliseconds + fadeAmount 0.1 // amount to adjust alpha per cycle + + moveRollSound "sound/player/roll1" + moveJumpSound "sound/weapons/force/jump" + + shadowColor 0.1 0.1 0.1 0.25 // shadow color + focuscolor 0 0 1 1 + precacheSound + { + "sound/interface/choose_color.wav" ; + "sound/interface/choose_head.wav" ; + "sound/interface/choose_torso.wav" ; + "sound/interface/choose_saber.wav" ; + "sound/interface/choose_hilt.wav" ; + "sound/interface/choose_blade.wav" ; + "sound/interface/transition.wav" ; + "sound/interface/esc.wav" ; + "sound/interface/sub_select.wav" ; + } + } + + menuDef + { + name "main" + fullScreen 1 + 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 320 + descY 424 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + exec "music music/t2_dpred/ImpBaseB_Action" ; + } + + onESC + { + play "sound/interface/esc.wav" + close all + open quitMenu + } + onClose + { + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name background_video + group none + style WINDOW_STYLE_SHADER + rect 200 144 256 256 + background "gfx/menus/videologo" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name ring + group none + style WINDOW_STYLE_SHADER + rect 193 145 256 256 + background "gfx/menus/main_ring" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name centerwindow + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerwindow" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name leftwindow + group none + style WINDOW_STYLE_SHADER + rect 0 150 320 240 + background "gfx/menus/main_leftwindow" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name rightwindow + group none + style WINDOW_STYLE_SHADER + rect 320 150 320 240 + background "gfx/menus/main_rightwindow" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 107 8 428 112 + background "gfx/menus/jediacademy" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name multiplayer_title + style WINDOW_STYLE_EMPTY + rect 200 120 240 24 + text @MENUS_MULTIPLAYER + font 2 + textscale 1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 120 + forecolor .695 .760 .861 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// TOP MENU BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name playbutton_undertext + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 36 194 130 24 + text @MENUS_NEW + font 1 + textscale .7 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor .02 0 .33 1 + visible 0 + decoration + } + + itemDef + { + name playbutton + group main_button + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 36 212 130 24 + text @MENUS_PLAY + descText @MENUS_START_PLAYING_NOW + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 16 210 210 32 + show playbutton_undertext + } + mouseExit + { + hide button_glow + hide playbutton_undertext + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open multiplayermenu + } + } + + // Big button "PLAYER PROFILE" + itemDef + { + name profilebutton_undertext + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 36 293 130 24 + text @MENUS_LOAD + font 1 + textscale .7 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor .02 0 .33 1 + visible 0 + decoration + } + + itemDef + { + name profilebutton + group main_button + text @MENUS_PROFILE + descText @MENUS_PROFILE_DESC + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 36 310 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 16 308 210 32 + show profilebutton_undertext + } + mouseExit + { + hide button_glow + hide profilebutton_undertext + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open playerMenu + } + } + + // Big button "CONTROLS" + itemDef + { + name controlsbutton_undertext + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 448 194 146 24 + text @MENUS_CONTROLS2 + font 1 + textscale .7 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor .02 0 .33 1 + visible 0 + decoration + } + + itemDef + { + name controlsbutton + group main_button + text @MENUS_CONTROLS2 + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 441 212 160 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 416 210 210 32 + show controlsbutton_undertext + } + mouseExit + { + hide button_glow + hide controlsbutton_undertext + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open controlsMenu ; + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton_undertext + group none + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 456 292 130 24 + text @MENUS_SETUP + font 1 + textscale .7 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor .02 0 .33 1 + visible 0 + decoration + } + + itemDef + { + name setupbutton + group main_button + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 456 310 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 416 308 210 32 + show setupbutton_undertext + } + mouseExit + { + hide button_glow + hide setupbutton_undertext + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open setup_menu + } + } + +//---------------------------------------------------------------------------------------------- +// OTHER MAIN MENU BUTTONS +//---------------------------------------------------------------------------------------------- + // Credits hidden button + itemDef + { + name creditsbutton + group othermain +// text @CREDITS + descText @MENUS_SHOW_GAME_CREDITS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 200 144 256 256 + 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 + { + } + mouseExit + { + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open creditsMenu + } + } + + itemDef + { + name exitgamebutton + group othermain + text @MENUS_EXIT + descText @MENUS_LEAVE_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 255 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 215 440 210 32 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/weapons/saber/saberoff.mp3"; + close all ; + open quitMenu + } + } + } +} + + + + + + + + + + diff --git a/base/ui/jamp/menudef.h b/base/ui/jamp/menudef.h new file mode 100644 index 0000000..54c1721 --- /dev/null +++ b/base/ui/jamp/menudef.h @@ -0,0 +1,388 @@ + + +#define CT_LTBLUE1 0.367 0.261 0.722 +#define CT_DKBLUE1 0.199 0.0 0.398 + +#define CT_LTCYAN 0 0.5 0.5 +#define CT_DKCYAN 0 0.25 0.25 + +#define ITEM_TYPE_TEXT 0 // simple text +#define ITEM_TYPE_BUTTON 1 // button, basically text with a border +#define ITEM_TYPE_RADIOBUTTON 2 // toggle button, may be grouped +#define ITEM_TYPE_CHECKBOX 3 // check box +#define ITEM_TYPE_EDITFIELD 4 // editable text, associated with a cvar +#define ITEM_TYPE_COMBO 5 // drop down list +#define ITEM_TYPE_LISTBOX 6 // scrollable list +#define ITEM_TYPE_MODEL 7 // model +#define ITEM_TYPE_OWNERDRAW 8 // owner draw, name specs what it is +#define ITEM_TYPE_NUMERICFIELD 9 // editable text, associated with a cvar +#define ITEM_TYPE_SLIDER 10 // mouse speed, volume, etc. +#define ITEM_TYPE_YESNO 11 // yes no cvar setting +#define ITEM_TYPE_MULTI 12 // multiple list setting, enumerated +#define ITEM_TYPE_BIND 13 // multiple list setting, enumerated +#define ITEM_TYPE_TEXTSCROLL 14 // scrolls text + +#define ITEM_ALIGN_LEFT 0 // left alignment +#define ITEM_ALIGN_CENTER 1 // center alignment +#define ITEM_ALIGN_RIGHT 2 // right alignment + +#define ITEM_TEXTSTYLE_NORMAL 0 // normal text +#define ITEM_TEXTSTYLE_BLINK 1 // fast blinking +#define ITEM_TEXTSTYLE_PULSE 2 // slow pulsing +#define ITEM_TEXTSTYLE_SHADOWED 3 // drop shadow ( need a color for this ) +#define ITEM_TEXTSTYLE_OUTLINED 4 // drop shadow ( need a color for this ) +#define ITEM_TEXTSTYLE_OUTLINESHADOWED 5 // drop shadow ( need a color for this ) +#define ITEM_TEXTSTYLE_SHADOWEDMORE 6 // drop shadow ( need a color for this ) + +#define WINDOW_BORDER_NONE 0 // no border +#define WINDOW_BORDER_FULL 1 // full border based on border color ( single pixel ) +#define WINDOW_BORDER_HORZ 2 // horizontal borders only +#define WINDOW_BORDER_VERT 3 // vertical borders only +#define WINDOW_BORDER_KCGRADIENT 4 // horizontal border using the gradient bars + +#define WINDOW_STYLE_EMPTY 0 // no background +#define WINDOW_STYLE_FILLED 1 // filled with background color +#define WINDOW_STYLE_GRADIENT 2 // gradient bar based on background color +#define WINDOW_STYLE_SHADER 3 // gradient bar based on background color +#define WINDOW_STYLE_TEAMCOLOR 4 // team color +#define WINDOW_STYLE_CINEMATIC 5 // cinematic + +#define MENU_TRUE 1 // uh.. true +#define MENU_FALSE 0 // and false + +#define HUD_VERTICAL 0x00 +#define HUD_HORIZONTAL 0x01 + +// list box element types +#define LISTBOX_TEXT 0x00 +#define LISTBOX_IMAGE 0x01 + +// list feeders +//#define FEEDER_HEADS 0x00 // model heads +#define FEEDER_MAPS 0x01 // text maps based on game type +#define FEEDER_SERVERS 0x02 // servers +//#define FEEDER_CLANS 0x03 // clan names +#define FEEDER_ALLMAPS 0x04 // all maps available, in graphic format +#define FEEDER_REDTEAM_LIST 0x05 // red team members +#define FEEDER_BLUETEAM_LIST 0x06 // blue team members +#define FEEDER_PLAYER_LIST 0x07 // players +#define FEEDER_TEAM_LIST 0x08 // team members for team voting +#define FEEDER_MODS 0x09 // team members for team voting +#define FEEDER_DEMOS 0x0a // team members for team voting +#define FEEDER_SCOREBOARD 0x0b // team members for team voting +#define FEEDER_Q3HEADS 0x0c // model heads +#define FEEDER_SERVERSTATUS 0x0d // server status +#define FEEDER_FINDPLAYER 0x0e // find player +#define FEEDER_CINEMATICS 0x0f // cinematics + +#define FEEDER_FORCECFG 0x10 // force config list + +#define FEEDER_SIEGE_TEAM1 0x11 // siege class list for team1 +#define FEEDER_SIEGE_TEAM2 0x12 // siege class list for team2 + +#define FEEDER_PLAYER_SPECIES 0x13 // models/player/* +#define FEEDER_PLAYER_SKIN_HEAD 0x14 // head*.skin files in species folder +#define FEEDER_PLAYER_SKIN_TORSO 0x15 // torso*.skin files in species folder +#define FEEDER_PLAYER_SKIN_LEGS 0x16 // lower*.skin files in species folder +#define FEEDER_COLORCHOICES 0x17 // special hack to feed text/actions from playerchoice.txt in species folder + +#define FEEDER_TEAM1_INFANTRY 0x18 // for siege team choice +#define FEEDER_TEAM1_VANGUARD 0x19 // for siege team choice +#define FEEDER_TEAM1_SUPPORT 0x1a // for siege team choice +#define FEEDER_TEAM1_JEDI 0x1b // for siege team choice +#define FEEDER_TEAM1_DEMO 0x1c // for siege team choice +#define FEEDER_TEAM1_HEAVY 0x1d // for siege team choice + +#define FEEDER_TEAM2_INFANTRY 0x1e // for siege team choice +#define FEEDER_TEAM2_VANGUARD 0x1f // for siege team choice +#define FEEDER_TEAM2_SUPPORT 0x20 // for siege team choice +#define FEEDER_TEAM2_JEDI 0x21 // for siege team choice +#define FEEDER_TEAM2_DEMO 0x22 // for siege team choice +#define FEEDER_TEAM2_HEAVY 0x23 // for siege team choice + +#define FEEDER_SIEGE_BASE_CLASS 0x24 // for siege team choice +#define FEEDER_SIEGE_CLASS_WEAPONS 0x25 // for siege team choice +#define FEEDER_SIEGE_CLASS_INVENTORY 0x26 // for siege team choice +#define FEEDER_SIEGE_CLASS_FORCE 0x27 // for siege team choice +#define FEEDER_LANGUAGES 0x28 // for language choice +#define FEEDER_MOVES 0x29 // moves for the data pad moves screen +#define FEEDER_MOVES_TITLES 0x2a // move titles for the data pad moves screen +#define FEEDER_SABER_SINGLE_INFO 0x2b // saber single +#define FEEDER_SABER_STAFF_INFO 0x2c // saber staff + + +// Xbox specific, hope no one minds +#define FEEDER_XBL_ACCOUNTS 0xA0 // list of available XBL accounts +#define FEEDER_XBL_PLAYERS 0xA1 // players (current and recent) +#define FEEDER_XBL_FRIENDS 0xA2 // friends +#define FEEDER_XBL_SERVERS 0xA3 // results of an optimatch query + +// display flags +#define CG_SHOW_BLUE_TEAM_HAS_REDFLAG 0x00000001 +#define CG_SHOW_RED_TEAM_HAS_BLUEFLAG 0x00000002 +#define CG_SHOW_ANYTEAMGAME 0x00000004 +#define CG_SHOW_HARVESTER 0x00000008 +#define CG_SHOW_ONEFLAG 0x00000010 +#define CG_SHOW_CTF 0x00000020 +#define CG_SHOW_OBELISK 0x00000040 +#define CG_SHOW_HEALTHCRITICAL 0x00000080 +#define CG_SHOW_SINGLEPLAYER 0x00000100 +#define CG_SHOW_TOURNAMENT 0x00000200 +#define CG_SHOW_DURINGINCOMINGVOICE 0x00000400 +#define CG_SHOW_IF_PLAYER_HAS_FLAG 0x00000800 +#define CG_SHOW_LANPLAYONLY 0x00001000 +#define CG_SHOW_MINED 0x00002000 +#define CG_SHOW_HEALTHOK 0x00004000 +#define CG_SHOW_TEAMINFO 0x00008000 +#define CG_SHOW_NOTEAMINFO 0x00010000 +#define CG_SHOW_OTHERTEAMHASFLAG 0x00020000 +#define CG_SHOW_YOURTEAMHASENEMYFLAG 0x00040000 +#define CG_SHOW_ANYNONTEAMGAME 0x00080000 +#define CG_SHOW_2DONLY 0x10000000 + + +#define UI_SHOW_LEADER 0x00000001 +#define UI_SHOW_NOTLEADER 0x00000002 +#define UI_SHOW_FAVORITESERVERS 0x00000004 +#define UI_SHOW_ANYNONTEAMGAME 0x00000008 +#define UI_SHOW_ANYTEAMGAME 0x00000010 +#define UI_SHOW_NEWHIGHSCORE 0x00000020 +#define UI_SHOW_DEMOAVAILABLE 0x00000040 +#define UI_SHOW_NEWBESTTIME 0x00000080 +#define UI_SHOW_FFA 0x00000100 +#define UI_SHOW_NOTFFA 0x00000200 +#define UI_SHOW_NETANYNONTEAMGAME 0x00000400 +#define UI_SHOW_NETANYTEAMGAME 0x00000800 +#define UI_SHOW_NOTFAVORITESERVERS 0x00001000 + + + + +// owner draw types +// ideally these should be done outside of this file but +// this makes it much easier for the macro expansion to +// convert them for the designers ( from the .menu files ) +#define CG_OWNERDRAW_BASE 1 +#define CG_PLAYER_ARMOR_ICON 1 +#define CG_PLAYER_ARMOR_VALUE 2 +#define CG_PLAYER_HEAD 3 +#define CG_PLAYER_HEALTH 4 +#define CG_PLAYER_AMMO_ICON 5 +#define CG_PLAYER_AMMO_VALUE 6 +#define CG_SELECTEDPLAYER_HEAD 7 +#define CG_SELECTEDPLAYER_NAME 8 +#define CG_SELECTEDPLAYER_LOCATION 9 +#define CG_SELECTEDPLAYER_STATUS 10 +#define CG_SELECTEDPLAYER_WEAPON 11 +#define CG_SELECTEDPLAYER_POWERUP 12 + +#define CG_FLAGCARRIER_HEAD 13 +#define CG_FLAGCARRIER_NAME 14 +#define CG_FLAGCARRIER_LOCATION 15 +#define CG_FLAGCARRIER_STATUS 16 +#define CG_FLAGCARRIER_WEAPON 17 +#define CG_FLAGCARRIER_POWERUP 18 + +#define CG_PLAYER_ITEM 19 +#define CG_PLAYER_SCORE 20 + +#define CG_BLUE_FLAGHEAD 21 +#define CG_BLUE_FLAGSTATUS 22 +#define CG_BLUE_FLAGNAME 23 +#define CG_RED_FLAGHEAD 24 +#define CG_RED_FLAGSTATUS 25 +#define CG_RED_FLAGNAME 26 + +#define CG_BLUE_SCORE 27 +#define CG_RED_SCORE 28 +#define CG_RED_NAME 29 +#define CG_BLUE_NAME 30 +#define CG_HARVESTER_SKULLS 31 // only shows in harvester +#define CG_ONEFLAG_STATUS 32 // only shows in one flag +#define CG_PLAYER_LOCATION 33 +#define CG_TEAM_COLOR 34 +#define CG_CTF_POWERUP 35 + +#define CG_AREA_POWERUP 36 +#define CG_AREA_LAGOMETER 37 // painted with old system +#define CG_PLAYER_HASFLAG 38 +#define CG_GAME_TYPE 39 // not done + +#define CG_SELECTEDPLAYER_ARMOR 40 +#define CG_SELECTEDPLAYER_HEALTH 41 +#define CG_PLAYER_STATUS 42 +#define CG_FRAGGED_MSG 43 // painted with old system +#define CG_PROXMINED_MSG 44 // painted with old system +#define CG_AREA_FPSINFO 45 // painted with old system +#define CG_AREA_SYSTEMCHAT 46 // painted with old system +#define CG_AREA_TEAMCHAT 47 // painted with old system +#define CG_AREA_CHAT 48 // painted with old system +#define CG_GAME_STATUS 49 +#define CG_KILLER 50 +#define CG_PLAYER_ARMOR_ICON2D 51 +#define CG_PLAYER_AMMO_ICON2D 52 +#define CG_ACCURACY 53 +#define CG_ASSISTS 54 +#define CG_DEFEND 55 +#define CG_EXCELLENT 56 +#define CG_IMPRESSIVE 57 +#define CG_PERFECT 58 +#define CG_GAUNTLET 59 +#define CG_SPECTATORS 60 +#define CG_TEAMINFO 61 +#define CG_VOICE_HEAD 62 +#define CG_VOICE_NAME 63 +#define CG_PLAYER_HASFLAG2D 64 +#define CG_HARVESTER_SKULLS2D 65 // only shows in harvester +#define CG_CAPFRAGLIMIT 66 +#define CG_1STPLACE 67 +#define CG_2NDPLACE 68 +#define CG_CAPTURES 69 +#define CG_PLAYER_FORCE_VALUE 70 + + + + +#define UI_OWNERDRAW_BASE 200 +#define UI_HANDICAP 200 +#define UI_EFFECTS 201 +#define UI_PLAYERMODEL 202 +#define UI_CLANNAME 203 +#define UI_CLANLOGO 204 +#define UI_GAMETYPE 205 +#define UI_MAPPREVIEW 206 +#define UI_SKILL 207 +#define UI_BLUETEAMNAME 208 +#define UI_REDTEAMNAME 209 +#define UI_BLUETEAM1 210 +#define UI_BLUETEAM2 211 +#define UI_BLUETEAM3 212 +#define UI_BLUETEAM4 213 +#define UI_BLUETEAM5 214 +#define UI_REDTEAM1 215 +#define UI_REDTEAM2 216 +#define UI_REDTEAM3 217 +#define UI_REDTEAM4 218 +#define UI_REDTEAM5 219 +#define UI_NETSOURCE 220 +#define UI_NETMAPPREVIEW 221 +#define UI_NETFILTER 222 +#define UI_TIER 223 +#define UI_OPPONENTMODEL 224 +#define UI_TIERMAP1 225 +#define UI_TIERMAP2 226 +#define UI_TIERMAP3 227 +#define UI_PLAYERLOGO 228 +#define UI_OPPONENTLOGO 229 +#define UI_PLAYERLOGO_METAL 230 +#define UI_OPPONENTLOGO_METAL 231 +#define UI_PLAYERLOGO_NAME 232 +#define UI_OPPONENTLOGO_NAME 233 +#define UI_TIER_MAPNAME 234 +#define UI_TIER_GAMETYPE 235 +#define UI_ALLMAPS_SELECTION 236 +#define UI_OPPONENT_NAME 237 +#define UI_VOTE_KICK 238 +#define UI_BOTNAME 239 +#define UI_BOTSKILL 240 +#define UI_REDBLUE 241 +#define UI_CROSSHAIR 242 +#define UI_SELECTEDPLAYER 243 +#define UI_MAPCINEMATIC 244 +#define UI_NETGAMETYPE 245 +#define UI_NETMAPCINEMATIC 246 +#define UI_SERVERREFRESHDATE 247 +#define UI_SERVERMOTD 248 +#define UI_GLINFO 249 +#define UI_KEYBINDSTATUS 250 +#define UI_CLANCINEMATIC 251 +#define UI_MAP_TIMETOBEAT 252 +#define UI_JOINGAMETYPE 253 +#define UI_PREVIEWCINEMATIC 254 +#define UI_STARTMAPCINEMATIC 255 +#define UI_MAPS_SELECTION 256 +#define UI_FORCE_SIDE 257 +#define UI_FORCE_RANK 258 +#define UI_FORCE_RANK_HEAL 259 +#define UI_FORCE_RANK_LEVITATION 260 +#define UI_FORCE_RANK_SPEED 261 +#define UI_FORCE_RANK_PUSH 262 +#define UI_FORCE_RANK_PULL 263 +#define UI_FORCE_RANK_TELEPATHY 264 +#define UI_FORCE_RANK_GRIP 265 +#define UI_FORCE_RANK_LIGHTNING 266 +#define UI_FORCE_RANK_RAGE 267 +#define UI_FORCE_RANK_PROTECT 268 +#define UI_FORCE_RANK_ABSORB 269 +#define UI_FORCE_RANK_TEAM_HEAL 270 +#define UI_FORCE_RANK_TEAM_FORCE 271 +#define UI_FORCE_RANK_DRAIN 272 +#define UI_FORCE_RANK_SEE 273 +#define UI_FORCE_RANK_SABERATTACK 274 +#define UI_FORCE_RANK_SABERDEFEND 275 +#define UI_FORCE_RANK_SABERTHROW 276 +#define UI_VERSION 277 +#define UI_TOTALFORCESTARS 278 +#define UI_AUTOSWITCHLIST 279 + +//How handy it would be if this were an enum. +#define UI_BLUETEAM6 280 +#define UI_BLUETEAM7 281 +#define UI_BLUETEAM8 282 +#define UI_REDTEAM6 283 +#define UI_REDTEAM7 284 +#define UI_REDTEAM8 285 + +// Yes it would be handy +#define UI_FORCE_MASTERY_SET 286 +#define UI_SKIN_COLOR 287 +#define UI_FORCE_POINTS 288 + +//extra, for patch +#define UI_JEDI_NONJEDI 289 + +// Xbox-only, for complicated passcode entry screen. Sorry. +#define UI_XBOX_PASSCODE 290 + +#define UI_CHAT_MAIN 291 +#define UI_CHAT_ATTACK 292 +#define UI_CHAT_DEFEND 293 +#define UI_CHAT_REQUEST 294 +#define UI_CHAT_REPLY 295 +#define UI_CHAT_SPOT 296 +#define UI_CHAT_TACTICAL 297 + +#define VOICECHAT_GETFLAG "getflag" // command someone to get the flag +#define VOICECHAT_OFFENSE "offense" // command someone to go on offense +#define VOICECHAT_DEFEND "defend" // command someone to go on defense +#define VOICECHAT_DEFENDFLAG "defendflag" // command someone to defend the flag +#define VOICECHAT_PATROL "patrol" // command someone to go on patrol (roam) +#define VOICECHAT_CAMP "camp" // command someone to camp (we don't have sounds for this one) +#define VOICECHAT_FOLLOWME "followme" // command someone to follow you +#define VOICECHAT_RETURNFLAG "returnflag" // command someone to return our flag +#define VOICECHAT_FOLLOWFLAGCARRIER "followflagcarrier" // command someone to follow the flag carrier +#define VOICECHAT_YES "yes" // yes, affirmative, etc. +#define VOICECHAT_NO "no" // no, negative, etc. +#define VOICECHAT_ONGETFLAG "ongetflag" // I'm getting the flag +#define VOICECHAT_ONOFFENSE "onoffense" // I'm on offense +#define VOICECHAT_ONDEFENSE "ondefense" // I'm on defense +#define VOICECHAT_ONPATROL "onpatrol" // I'm on patrol (roaming) +#define VOICECHAT_ONCAMPING "oncamp" // I'm camping somewhere +#define VOICECHAT_ONFOLLOW "onfollow" // I'm following +#define VOICECHAT_ONFOLLOWCARRIER "onfollowcarrier" // I'm following the flag carrier +#define VOICECHAT_ONRETURNFLAG "onreturnflag" // I'm returning our flag +#define VOICECHAT_INPOSITION "inposition" // I'm in position +#define VOICECHAT_IHAVEFLAG "ihaveflag" // I have the flag +#define VOICECHAT_BASEATTACK "baseattack" // the base is under attack +#define VOICECHAT_ENEMYHASFLAG "enemyhasflag" // the enemy has our flag (CTF) +#define VOICECHAT_STARTLEADER "startleader" // I'm the leader +#define VOICECHAT_STOPLEADER "stopleader" // I resign leadership +#define VOICECHAT_TRASH "trash" // lots of trash talk +#define VOICECHAT_WHOISLEADER "whoisleader" // who is the team leader +#define VOICECHAT_WANTONDEFENSE "wantondefense" // I want to be on defense +#define VOICECHAT_WANTONOFFENSE "wantonoffense" // I want to be on offense +#define VOICECHAT_KILLINSULT "kill_insult" // I just killed you +#define VOICECHAT_TAUNT "taunt" // I want to taunt you +#define VOICECHAT_DEATHINSULT "death_insult" // you just killed me +#define VOICECHAT_KILLGAUNTLET "kill_gauntlet" // I just killed you with the gauntlet +#define VOICECHAT_PRAISE "praise" // you did something good diff --git a/base/ui/jamp/multiplayer.menu b/base/ui/jamp/multiplayer.menu new file mode 100644 index 0000000..8e67bc0 --- /dev/null +++ b/base/ui/jamp/multiplayer.menu @@ -0,0 +1,571 @@ +//---------------------------------------------------------------------------------------------- +// +// MULTIPLAYER MENU +// +// Allows player to start a game or join one in progress +// +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "multiplayermenu" + fullScreen 1 + 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 320 + descY 426 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onESC + { + play "sound/interface/esc.wav" ; + close all; + open mainMenu + } + + onOpen + { + setfocus quickserver_button + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 107 8 428 112 + background "gfx/menus/jediacademy" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name left_frame + group lf_fr + style WINDOW_STYLE_SHADER + rect 0 50 320 160 + background "gfx/menus/menu_boxes_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name right_frame + group rt_fr + style WINDOW_STYLE_SHADER + rect 320 50 320 160 + background "gfx/menus/menu_boxes_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// TOP MENU BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + // Big button "PLAY" + itemDef + { + name playbutton + group toprow + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 7 126 130 24 + text @MENUS_PLAY + descText @MENUS_START_PLAYING_NOW + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + forecolor 1 1 1 1 + visible 1 + + action + { + } + } + + // Big button "PLAYER PROFILE" + itemDef + { + name profilebutton + group toprow + text @MENUS_PROFILE + descText @MENUS_PROFILE_DESC + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 126 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 120 124 230 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open playerMenu + } + } + + // Big button "CONTROLS" + itemDef + { + name controlsbutton + group toprow + text @MENUS_CONTROLS2 + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 290 124 230 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open controlsMenu ; + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton + group toprow + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 502 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 452 124 230 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open setup_menu + } + } + +//---------------------------------------------------------------------------------------------- +// MULTIPLAYER MENU SPECIFIC +//---------------------------------------------------------------------------------------------- + itemDef + { + name title_glow + group none + style WINDOW_STYLE_SHADER + rect 150 162 340 20 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name title + group none + text @MENUS_START_PLAYING + style WINDOW_STYLE_EMPTY + rect 225 164 190 16 + font 3 + textscale .7 + textalign ITEM_ALIGN_CENTER + textalignx 95 + textaligny -1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + // QUICK START + itemDef + { + name quickserver_button + group none + text @MENUS_SOLO_GAME + descText @MENUS_QUICKSTART_DESC + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 225 191 190 36 + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 95 + textaligny 8 + forecolor 1 .682 0 1 + visible 1 + mouseEnter + { + show button_glow + setitemrect button_glow 175 197 300 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + close multiplayermenu ; + open quickgame + } + } + + // JOIN SERVER + itemDef + { + name joinserver_button + group none + text @MENUS_JOIN_SERVER_CAPS + descText @MENUS_SEARCH_FOR_SERVERS_TO + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 225 226 190 36 + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 95 + textaligny 8 + forecolor 1 .682 0 1 + visible 1 + mouseEnter + { + show button_glow + setitemrect button_glow 175 232 300 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + close multiplayermenu ; + open joinserver + } + } + + // CREATE SERVER + itemDef + { + name startserver_button + group none + text @MENUS_CREATE_SERVER_CAPS + descText @MENUS_CREATE_YOUR_OWN_SERVER + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 225 261 190 36 + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 95 + textaligny 8 + forecolor 1 .682 0 1 + visible 1 + mouseEnter + { + show button_glow + setitemrect button_glow 175 267 300 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + close multiplayermenu ; + open createserver + } + } + + // PLAY DEMO FILE + itemDef + { + name playdemo_button + group none + text @MENUS_PLAY_DEMO_CAPS + descText @MENUS_PLAY_BACK_A_RECORDED + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 225 296 190 36 + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 95 + textaligny 8 + forecolor 1 .682 0 1 + visible 1 + mouseEnter + { + show button_glow + setitemrect button_glow 175 302 300 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + close multiplayermenu ; + open demo + } + } + + // GAME RULES + itemDef + { + name rules_button + group none + text @MENUS_RULES + descText @MENUS_RULES_DESC + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 225 331 190 36 + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 95 + textaligny 8 + forecolor 1 .682 0 1 + visible 1 + mouseEnter + { + show button_glow + setitemrect button_glow 175 337 300 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + close multiplayermenu ; + open rulesMenu + } + } + +//---------------------------------------------------------------------------------------------- +// BOTTOM BUTTONS +//---------------------------------------------------------------------------------------------- + // BACK button + itemDef + { + name backbutton + group fade_buttons + text @MENUS_BACK + descText @MENUS_BACKTOMAIN + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 59 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 30 441 190 30 + } + mouseExit + { + hide button_glow + } + + action + { + play "sound/interface/esc.wav" ; + close all ; + open mainMenu + } + + } + + // EXIT button + itemDef + { + name exitgamebutton + group othermain + text @MENUS_EXIT + descText @MENUS_LEAVE_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 255 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 225 441 190 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/weapons/saber/saberoff.mp3"; + close all ; + open quitMenu + } + } + } +} + + + + + + + + + + + + + + + + + diff --git a/base/ui/jamp/password.menu b/base/ui/jamp/password.menu new file mode 100644 index 0000000..e141dca --- /dev/null +++ b/base/ui/jamp/password.menu @@ -0,0 +1,140 @@ +//---------------------------------------------------------------------------------------------- +// +// PASSWORD POPUP MENU +// +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "password_popmenu" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 200 150 240 180 + focusColor 1 1 1 1 // Focus color for text and items + style 1 + border 1 + descX 320 + descY 312 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + popup + + onESC + { + play "sound/interface/esc.wav" ; + close password_popmenu + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name setup_background + group none + style WINDOW_STYLE_FILLED + rect 0 0 240 180 + backcolor 0 0 .35 .9 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .8 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// PASSWORD +//---------------------------------------------------------------------------------------------- + itemDef + { + name passwordTitle + text @MENUS_ENTER_PASSWORD + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + rect 10 5 220 20 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 110 + textaligny 1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + itemDef + { + name passwordEntry + style 1 + descText @MENUS_INPUT_PASSWORD_1 + text @MENUS_BLANK_1 + maxchars 15 + font 2 + textscale .8 + TYPE 4 + cvar "password" + rect 20 50 200 30 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny 3 + forecolor 1 1 1 1 + backcolor .25 .25 .25 .5 + visible 1 + border 1 + bordercolor .79 .64 .22 1 + mouseenter + { + setitemcolor passwordEntry backcolor .25 .25 .25 .75 + } + mouseexit + { + setitemcolor passwordEntry backcolor .25 .25 .25 .5 + } + } + + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name doneText + text @MENUS_DONE + descText @MENUS_FINISHED_INPUTTING_INFO + type 1 + font 3 + textscale .8 + style WINDOW_STYLE_FILLED + rect 20 110 200 30 + textalign ITEM_ALIGN_CENTER + textalignx 100 + textaligny 5 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" + close password_popmenu + } + mouseEnter + { + show button_glow + setitemrect button_glow 10 113 240 26 + } + mouseExit + { + hide button_glow + } + } + } +} diff --git a/base/ui/jamp/password_request.menu b/base/ui/jamp/password_request.menu new file mode 100644 index 0000000..cc9eba3 --- /dev/null +++ b/base/ui/jamp/password_request.menu @@ -0,0 +1,173 @@ +//---------------------------------------------------------------------------------------------- +// +// PASSWORD POPUP MENU +// +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "password_request" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 200 150 240 180 + focusColor 1 1 1 1 // Focus color for text and items + style 1 + border 1 + descX 320 + descY 312 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + popup + + onESC + { + play "sound/interface/esc.wav" ; + close password_request + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name setup_background + group none + style WINDOW_STYLE_FILLED + rect 0 0 240 180 + backcolor 0 0 .35 .9 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .8 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// PASSWORD +//---------------------------------------------------------------------------------------------- + itemDef + { + name passwordTitle + text @MENUS_ENTER_PASSWORD + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + rect 10 5 220 20 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 110 + textaligny 1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + itemDef + { + name passwordEntry + style 1 + descText @MENUS_INPUT_PASSWORD_1 + text @MENUS_BLANK_1 + maxchars 15 + font 2 + textscale .8 + TYPE 4 + cvar "password" + rect 20 50 200 30 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny 3 + forecolor 1 1 1 1 + backcolor .25 .25 .25 .5 + visible 1 + border 1 + bordercolor .79 .64 .22 1 + mouseenter + { + setitemcolor passwordEntry backcolor .25 .25 .25 .75 + } + mouseexit + { + setitemcolor passwordEntry backcolor .25 .25 .25 .5 + } + } + + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name doneText + text @MENUS_DONE + descText @MENUS_FINISHED_INPUTTING_INFO + type 1 + font 3 + textscale .8 + style WINDOW_STYLE_FILLED + rect 20 90 200 30 + textalign ITEM_ALIGN_CENTER + textalignx 100 + textaligny 5 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" + uiscript JoinServer + close password_request + } + mouseEnter + { + show button_glow + setitemrect button_glow 10 93 240 26 + } + mouseExit + { + hide button_glow + } + } + + + itemDef + { + name cancel + text @MENUS_VC_CANCEL + descText @MP_SVGAME_CANCEL_PASSWORD + type 1 + font 3 + textscale .8 + style WINDOW_STYLE_FILLED + rect 20 125 200 30 + textalign ITEM_ALIGN_CENTER + textalignx 100 + textaligny 5 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" + close password_request + } + mouseEnter + { + show button_glow + setitemrect button_glow 10 128 240 26 + } + mouseExit + { + hide button_glow + } + } + } +} diff --git a/base/ui/jamp/player.menu b/base/ui/jamp/player.menu new file mode 100644 index 0000000..7c95b1d --- /dev/null +++ b/base/ui/jamp/player.menu @@ -0,0 +1,638 @@ +// CHARACTER CREATION MENU +{ + + menuDef + { + name "playerMenu" + fullScreen 1 + rect 0 0 640 480 + focusColor 1 1 1 1 + descX 320 + descY 430 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + uiScript update "ui_GetName" + } + + onESC + { + play "sound/interface/menuroam.wav" + close playerMenu + open mainMenu + } + + onClose + { + uiScript update "ui_SetName" + } + + + //---------------------------------------------------------------------------------------------- + // + // MENU BACKGROUND + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + //background "gfx/menus/charmenu" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 107 8 428 112 + background "gfx/menus/jediacademy" + forecolor 1 1 1 1 + visible 1 + decoration + } + + + itemDef + { + name left_frame + group lf_fr + style WINDOW_STYLE_SHADER + rect 0 50 320 160 + background "gfx/menus/menu_boxes_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name right_frame + group rt_fr + style WINDOW_STYLE_SHADER + rect 320 50 320 160 + background "gfx/menus/menu_boxes_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + // Box around character models + itemDef + { + name background + group none + style WINDOW_STYLE_EMPTY + rect 13 186 610 245 + border 1 + bordercolor .298 .305 .690 1 + bordersize 2 + forecolor 1 1 1 1 + visible 1 + decoration + } + + // Title box for character models + itemDef + { + name background + group none + style WINDOW_STYLE_FILLED + rect 15 186 610 20 + backcolor .298 .305 .690 1 + forecolor 1 1 1 1 + visible 1 + decoration + } + + //---------------------------------------------------------------------------------------------- + // + // TOP MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + // Big button "NEW" + itemDef + { + name newgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 7 126 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 7 126 130 24 + text @MENUS_PLAY + descText @MENUS_START_PLAYING_NOW + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show newgamebutton_glow + } + mouseExit + { + hide newgamebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open multiplayermenu + } + } + + // Big button "PLAYER PROFILE" + itemDef + { + name profilebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 170 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name profilebutton + group toprow + text @MENUS_PROFILE + descText @MENUS_PROFILE_DESC + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 126 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + forecolor 1 1 1 1 + visible 1 + + mouseEnter + { + //show profilebutton_glow + } + mouseExit + { + //hide profilebutton_glow + } + } + + // Big button "CONTROLS" + itemDef + { + name controlsbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 340 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name controlsbutton + group toprow + text @MENUS_CONTROLS2 + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show controlsbutton_glow + } + mouseExit + { + hide controlsbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open controlsmenu + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 502 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name setupbutton + group toprow + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 502 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show setupbutton_glow + } + mouseExit + { + hide setupbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open setup_menu + } + } + +//---------------------------------------------------------------------------------------------- +// +// OTHER MAIN MENU BUTTONS +// +//---------------------------------------------------------------------------------------------- + +// EXIT button in lower left corner + itemDef + { + name exitgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 59 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 exit + text @MENUS_EXIT + descText @MENUS_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 59 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show exitgamebutton_glow + } + mouseExit + { + hide exitgamebutton_glow + } + action + { + play "sound/weapons/saber/saberoff.mp3" + close all + open quitMenu + } + } + + + +//------------------------------- +// +// PLAYER MENU SPECIFIC STUFF +// +//------------------------------- + +// Name entry field + itemDef + { + name nameglow + group mods + style WINDOW_STYLE_SHADER + rect 20 156 300 32 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name namefield + type ITEM_TYPE_EDITFIELD + style 0 + text @MENUS_NAME1 + cvar "ui_Name" + maxchars 26 + rect 15 163 300 28 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -5 + font 2 + textscale 1 + forecolor .615 .615 .956 1 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + border 0 + bordercolor 0 0 0 0 + descText @MENUS_ENTER_YOUR_NAME_HERE + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseenter + { + show nameglow + } + mouseexit + { + hide nameglow + } + } + +// Player Model label + itemDef + { + name modeltitle + style 0 + text @MENUS_CHARACTER_MODEL + rect 320 184 0 0 + textalign ITEM_ALIGN_CENTER + textalignx 0 + textaligny -3 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + font 2 + textscale 1 + forecolor .549 .854 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1.wav" ; + } + } + +// Skin/Team Color Chooser + itemDef + { + name setcolor + style 0 + text @MENUS_TEAM_COLOR + ownerdraw UI_SKIN_COLOR + rect 50 209 160 20 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -5 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + font 2 + textscale .9 + forecolor .615 .615 .956 1 + border 0 + bordercolor 0 0 0 0 + descText @MENUS_CHOOSE_THE_COLOR_FOR + visible 1 + action + { + play "sound/interface/button1.wav" ; + } + } + +// Scroll box with portraits. + itemDef + { + name headlist + rect 30 224 404 194 +// rect 126 215 80 200 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 64 + elementheight 64 + elementtype LISTBOX_IMAGE + feeder FEEDER_Q3HEADS +// horizontalscroll + backcolor 0 0 0 1 + border 1 + bordercolor .5 .5 .5 1 + forecolor 1 1 1 1 + descText @MENUS_CHOOSE_THE_MODEL_FOR + visible 1 + textscale 0.7 + action + { + play "sound/interface/button1.wav" ; + } + mouseenter + { + setitemcolor headlist bordercolor 1 0 0 1 + } + mouseexit + { + setitemcolor headlist bordercolor .5 .5 .5 1 + } + } + +// Custom skin + + itemDef + { + name customtitle + style 0 + text @MENUS_CUSTOM + rect 425 250 200 26 + textalign ITEM_ALIGN_CENTER + textalignx 100 + textaligny -3 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + font 2 + textscale 1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + itemDef + { + name custom + group none + background "gfx/mp/custom_mp_default" + descText @MENUS_CUSTOMPLAYER_DESC + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_SHADER + rect 480 280 96 96 + font 3 + textscale 1 + textalignx 65 + textaligny -1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + forecolor .5 .5 .5 1 + visible 1 + mouseenter + { + setitemcolor custom forecolor 1 1 1 1 + } + mouseexit + { + setitemcolor custom forecolor .5 .5 .5 1 + } + action + { + play "sound/interface/button1.wav" + close playerMenu + open playerMenu2 + } + } + + + itemDef + { + name next_glow + group mods + style WINDOW_STYLE_SHADER + rect 455 444 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + decoration + } + + itemDef + { + name next + group none + text @MENUS_APPLY_CAPS + descText @MENUS_APPLY_PLAYER_SABER + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 455 444 130 24 + font 3 + textscale 1 + textalignx 65 + textaligny -1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" + close all +// uiScript "updatecharmodel" + +// uiScript "updatecharcvars" + open saberMenu +// open mainMenu + } + mouseEnter + { + show next_glow + } + mouseExit + { + hide next_glow + } + } + } +} \ No newline at end of file diff --git a/base/ui/jamp/player2.menu b/base/ui/jamp/player2.menu new file mode 100644 index 0000000..4389dde --- /dev/null +++ b/base/ui/jamp/player2.menu @@ -0,0 +1,821 @@ +// CHARACTER CREATION MENU +{ + + menuDef + { + name "playerMenu2" + fullScreen 1 + rect 0 0 640 480 + visible 1 + focusColor 1 1 1 1 + descX 320 + descY 430 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + + onOpen + { + uiScript "getcharcvars" + uiScript "character" + } + + onESC + { + play "sound/interface/menuroam.wav" + close playerMenu2 + open playerMenu + } + + +//---------------------------------------------------------------------------------------------- +// +// MENU BACKGROUND +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 +// background "gfx/menus/main_background" + background "gfx/menus/charmenu" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name left_frame + group lf_fr + style WINDOW_STYLE_SHADER + rect 0 -60 320 160 + background "gfx/menus/menu_boxes_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name right_frame + group rt_fr + style WINDOW_STYLE_SHADER + rect 320 -60 320 160 + background "gfx/menus/menu_boxes_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + + // CREATION title + itemDef + { + name creation_title + group title + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_CHARACTER_CREATION + rect 100 54 440 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + itemDef + { + name character + group models + type ITEM_TYPE_MODEL + //rect 95 84 820 1000 + rect 52 84 900 1000 + model_g2anim "BOTH_WALK1" + asset_model "ui_char_model" + model_angle 180 + //mins maxs format is apparently z x y (hmmm... y x z?) + //model_g2mins -20 -15 -10 + //model_g2maxs 10 15 20 + model_g2mins -10 -15 -10 + model_g2maxs 20 15 30 + model_rotation 50 + //model_fovx 75 + model_fovx 50 + //model_fovy 75 + model_fovy 50 + isCharacter 1 + visible 1 + decoration + } + + itemDef + { + name background2 + group none + style WINDOW_STYLE_SHADER + rect 320 360 320 120 + background "gfx/menus/charmenu_bottom" + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// +// TOP MAIN MENU BUTTONS +// +//---------------------------------------------------------------------------------------------- + +// Big button "NEW" + itemDef + { + name newbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 7 16 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name newgamebutton + group nbut + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 7 16 130 24 + text @MENUS_PLAY + descText @MENUS_START_PLAYING_NOW + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show newgamebutton_glow + } + mouseExit + { + hide newgamebutton_glow + } + action + { + close all ; + open multiplayermenu + } + } + + +// Big button "PROFILE" + itemDef + { + name profilebutton + group lbut + text @MENUS_PROFILE + descText @MENUS_PROFILE_DESC + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 16 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + forecolor 1 1 1 1 + visible 1 + + mouseEnter + { + } + mouseExit + { + } + action + { + } + } + +// Big button "CONTROLS" + itemDef + { + name controlsbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 340 16 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name controlsbutton + group cbut + text @MENUS_CONTROLS2 + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 16 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show controlsbutton_glow + } + mouseExit + { + hide controlsbutton_glow + } + action + { + close all ; + open controlsMenu ; + } + } + +// Big button "SETUP" + itemDef + { + name setupbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 502 16 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name setupbutton + group sbut + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 502 16 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show setupbutton_glow + } + mouseExit + { + hide setupbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open setup_menu + } + } + +//---------------------------------------------------------------------------------------------- +// +// CHARACTER MENU specific stuff +// +//---------------------------------------------------------------------------------------------- + + + +////////////////// +// SPECIES BUTTON +////////////////// + + itemDef + { + name species + group none + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 30 88 140 24 + forecolor .549 .854 1 1 + text @MENUS_SPECIES + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + font 3 + textscale 1 + visible 1 + decoration + } + + itemDef + { + name speciesbut_glow + group none + style WINDOW_STYLE_SHADER + rect 176 92 150 16 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name speciesbut + group none + text " " + descText @MENUS_CHOOSE_SPECIES + type ITEM_TYPE_MULTI + style WINDOW_STYLE_EMPTY + rect 176 92 150 16 + font 2 + textscale .9 + textaligny -5 + textalign ITEM_ALIGN_LEFT + textstyle 0 + textalignx 0 + backcolor 0 0 0 0 + forecolor .615 .615 .956 1 + feeder 19 //FEEDER_PLAYER_SPECIES + cvar "ui_char_model" + cvarStrList feeder + + visible 1 + + mouseEnter + { + show speciesbut_glow + } + mouseExit + { + hide speciesbut_glow + } + action + { + play "sound/interface/button1.wav" + uiScript "characterchanged" + uiScript "resetcharacterlistboxes" + } + } + +//////////////////// +// COLOR TINT AREA +//////////////////// + + + itemDef + { + name color + group none + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 30 144 160 24 + text @MENUS_COLOR + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + font 3 + textscale 1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + itemDef + { + name colorbox + group tints + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 32 + elementheight 32 + elementtype 1 //LISTBOX_IMAGE + feeder 23 //FEEDER_COLORCHOICES + horizontalscroll + border 1 + bordersize 1 + backcolor .66 .66 1 .25 + bordercolor .66 .66 1 1 + rect 30 168 292 48 + visible 1 + action + { + play "sound/interface/choose_color.wav" + } + } + +/////////////////////// +//APPEARANCE +////////////////////// + + itemDef + { + name appear + group none + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 30 252 180 24 + forecolor .549 .854 1 1 + text @MENUS_APPEARANCE + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -1 + font 3 + textscale 1 + visible 1 + decoration + } + + // HEAD BUTTON + itemDef + { + name headbut_glow + group none + style WINDOW_STYLE_SHADER + rect 30 280 90 16 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name headbut + group none + text @MENUS_HEAD + descText @MENUS_SELECT_HEAD + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 30 280 90 16 + font 2 + textscale .9 + textaligny -5 + textalign ITEM_ALIGN_LEFT + textstyle 0 + textalignx 0 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show headbut_glow + } + mouseExit + { + hide headbut_glow + } + action + { + play "sound/interface/button1.wav" + show heads + hide torso + hide lower + transition2 character 52 84 900 1000 20 25 + } + } + + + // TORSO BUTTON + itemDef + { + name torsobut_glow + group none + style WINDOW_STYLE_SHADER + rect 126 280 90 16 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name torsobut + group none + text @MENUS_TORSO + descText @MENUS_SELECT_TORSO + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 126 280 90 16 + font 2 + textscale .9 + textaligny -5 + textalign ITEM_ALIGN_LEFT + textstyle 0 + textalignx 0 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show torsobut_glow + } + mouseExit + { + hide torsobut_glow + } + action + { + play "sound/interface/button1.wav" + show torso + hide heads + hide lower + transition2 character 355 84 300 340 20 25 + } + } + + // LEGS BUTTON + itemDef + { + name legsbut_glow + group none + style WINDOW_STYLE_SHADER + rect 224 280 90 16 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name legsbut + group none + text @MENUS_LEGS + descText @MENUS_SELECT_LEGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 224 280 90 16 + font 2 + textscale .9 + textaligny -5 + textalign ITEM_ALIGN_LEFT + textstyle 0 + textalignx 0 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show legsbut_glow + } + mouseExit + { + hide legsbut_glow + } + action + { + play "sound/interface/button1.wav" + show lower + hide heads + hide torso + transition2 character 355 84 300 340 20 25 + } + } + +////////////////////// +//LISTBOXES +////////////////////// + + itemDef + { + name headlistbox + group heads + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 72 + elementheight 72 + elementtype 1 //LISTBOX_IMAGE + feeder 20 //FEEDER_PLAYER_SKIN_HEAD + horizontalscroll + border 1 + bordersize 1 + backcolor .66 .66 1 .25 + bordercolor .66 .66 1 1 + forecolor -1 //use playercolor + rect 30 306 292 93 + visible 1 + action + { + play "sound/interface/choose_head.wav" + uiScript "char_skin" + } + } + + itemDef + { + name torsolistbox + group torso + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 72 + elementheight 72 + elementtype 1 //LISTBOX_IMAGE + feeder 21 //FEEDER_PLAYER_SKIN_TORSO + horizontalscroll + border 1 + bordersize 1 + backcolor .66 .66 1 .25 + bordercolor .66 .66 1 1 + forecolor -1 //use playercolor + rect 30 306 292 93 + visible 0 + action + { + play "sound/interface/choose_torso.wav" + uiScript "char_skin" + } + } + + itemDef + { + name lowerlistbox + group lower + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 72 + elementheight 72 + elementtype 1 //LISTBOX_IMAGE + feeder 22 //FEEDER_PLAYER_SKIN_LEGS + horizontalscroll + border 1 + bordersize 1 + backcolor .66 .66 1 .25 + bordercolor .66 .66 1 1 + forecolor -1 //use playercolor + rect 30 306 292 93 + visible 0 + action + { + play "sound/interface/choose_head.wav" + uiScript "char_skin" + } + } + + // EXIT button in lower left corner + itemDef + { + name exitgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 59 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 exit + text @MENUS_BACK + descText @MENUS_BACK_2_PROFILE + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 59 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show exitgamebutton_glow + } + mouseExit + { + hide exitgamebutton_glow + } + action + { + play "sound/weapons/saber/saberoff.mp3" + close playerMenu2 + open playerMenu + } + } + + itemDef + { + name next_glow + group mods + style WINDOW_STYLE_SHADER + rect 455 444 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + decoration + } + + itemDef + { + name next + group none + text @MENUS_APPLY_CAPS + descText @MENUS_APPLY_PLAYER_SABER + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 455 444 130 24 + font 3 + textscale 1 + textalignx 65 + textaligny -1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" + close all + uiScript "updatecharmodel" + +// uiScript "updatecharcvars" + open saberMenu +// open mainMenu + } + mouseEnter + { + show next_glow + } + mouseExit + { + hide next_glow + } + } + } +} \ No newline at end of file diff --git a/base/ui/jamp/quickbots.menu b/base/ui/jamp/quickbots.menu new file mode 100644 index 0000000..76111ad --- /dev/null +++ b/base/ui/jamp/quickbots.menu @@ -0,0 +1,652 @@ +//---------------------------------------------------------------------------------------------- +// QUICK GAME BOT MENU - +// Set up the roster of bots and humans for a game. Called from Quick Game2 menu. +// +//ui_net_gametype +// 0 = FFA +// 1 = DUEL +// 2 = POWER DUEL +// 3 = TEAM FFA +// 4 = SIEGE +// 5 = CTF +// +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "quickbots" + fullScreen MENU_FALSE + rect 100 50 440 380 // Size and position of the menu + visible MENU_FALSE // Visible on open + focusColor 1 1 1 1 // Focus color for text and items + descX 320 + descY 380 + descScale 1 + descColor 1 .682 0 1 // Focus color for text and items + descAlignment ITEM_ALIGN_CENTER + popup + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + + onESC + { + play "sound/interface/esc.wav" ; + close quickbots ; + open quickgame2 ; + } + + itemDef + { + name frame_pic + group none + style WINDOW_STYLE_SHADER + rect 0 0 440 380 + background "gfx/menus/menu_box_ingame" + forecolor 1 1 1 1 + decoration + border 1 + bordercolor .265 .824 .886 .25 + bordersize 3 + visible 1 + } + +//---------------------------------------------------------------------------------------------- +// TITLE +//---------------------------------------------------------------------------------------------- + // Bots title + itemDef + { + name title + group none + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_BOTS + rect 55 5 330 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 165 + textaligny -1 + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// BOT LIST FOR NON-TEAMGAMES +//---------------------------------------------------------------------------------------------- + itemDef + { + name botlist_slot + style 0 + text @MENUS_1_1 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_BLUETEAM1 + rect 20 55 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny -4 + font 2 + textscale 1 + forecolor 0.65 0.65 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show button_glow + setitemrect button_glow 0 51 250 28 + } + mouseExit + { + hide button_glow + } + } + + itemDef + { + name botlist_slot + style 0 + text @MENUS_2_1 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_REDTEAM1 + rect 20 75 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny -4 + font 2 + textscale 1 + forecolor 1 0.2 0.2 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show button_glow + setitemrect button_glow 0 71 250 28 + } + mouseExit + { + hide button_glow + } + } + + itemDef + { + name botlist_slot + style 0 + text @MENUS_3_1 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_BLUETEAM2 + rect 20 95 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny -4 + font 2 + textscale 1 + forecolor 0.65 0.65 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show button_glow + setitemrect button_glow 0 91 250 28 + } + mouseExit + { + hide button_glow + } + } + + itemDef + { + name botlist_slot + style 0 + text @MENUS_4_1 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_REDTEAM2 + rect 20 115 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny -4 + font 2 + textscale 1 + forecolor 1 0.2 0.2 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show button_glow + setitemrect button_glow 0 111 250 28 + } + mouseExit + { + hide button_glow + } + } + + itemDef + { + name botlist_slot + style 0 + text @MENUS_5_1 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_BLUETEAM3 + rect 20 135 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny -4 + font 2 + textscale 1 + forecolor 0.65 0.65 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show button_glow + setitemrect button_glow 0 131 250 28 + } + mouseExit + { + hide button_glow + } + } + + itemDef + { + name botlist_slot + style 0 + text @MENUS_6_1 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_REDTEAM3 + rect 20 155 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny -4 + font 2 + textscale 1 + forecolor 1 0.2 0.2 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show button_glow + setitemrect button_glow 0 151 250 28 + } + mouseExit + { + hide button_glow + } + } + + itemDef + { + name botlist_slot + style 0 + text @MENUS_7_1 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_BLUETEAM4 + rect 20 175 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny -4 + font 2 + textscale 1 + forecolor 0.65 0.65 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show button_glow + setitemrect button_glow 0 171 250 28 + } + mouseExit + { + hide button_glow + } + } + + itemDef + { + name botlist_slot + style 0 + text @MENUS_8_1 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_REDTEAM4 + rect 20 195 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny -4 + font 2 + textscale 1 + forecolor 1 0.2 0.2 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show button_glow + setitemrect button_glow 0 191 250 28 + } + mouseExit + { + hide button_glow + } + } + + itemDef + { + name botlist_slot + style 0 + text @MENUS_9 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_BLUETEAM5 + rect 220 55 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 20 + textaligny -4 + font 2 + textscale 1 + forecolor 0.65 0.65 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show button_glow + setitemrect button_glow 200 51 250 28 + } + mouseExit + { + hide button_glow + } + } + + itemDef + { + name botlist_slot + style 0 + text @MENUS_10 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_REDTEAM5 + rect 220 75 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 10 + textaligny -4 + font 2 + textscale 1 + forecolor 1 0.2 0.2 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show button_glow + setitemrect button_glow 200 71 250 28 + } + mouseExit + { + hide button_glow + } + } + + itemDef + { + name botlist_slot + style 0 + text @MENUS_11 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_BLUETEAM6 + rect 220 95 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 10 + textaligny -4 + font 2 + textscale 1 + forecolor 0.65 0.65 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show button_glow + setitemrect button_glow 200 91 250 28 + } + mouseExit + { + hide button_glow + } + } + + itemDef + { + name botlist_slot + style 0 + text @MENUS_12 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_REDTEAM6 + rect 220 115 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 10 + textaligny -4 + font 2 + textscale 1 + forecolor 1 0.2 0.2 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show button_glow + setitemrect button_glow 200 111 250 28 + } + mouseExit + { + hide button_glow + } + } + + itemDef + { + name botlist_slot + style 0 + text @MENUS_13 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_BLUETEAM7 + rect 220 135 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 10 + textaligny -4 + font 2 + textscale 1 + forecolor 0.65 0.65 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show button_glow + setitemrect button_glow 200 131 250 28 + } + mouseExit + { + hide button_glow + } + } + + itemDef + { + name botlist_slot + style 0 + text @MENUS_14 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_REDTEAM7 + rect 220 155 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 10 + textaligny -4 + font 2 + textscale 1 + forecolor 1 0.2 0.2 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show button_glow + setitemrect button_glow 200 151 250 28 + } + mouseExit + { + hide button_glow + } + } + + itemDef + { + name botlist_slot + style 0 + text @MENUS_15 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_BLUETEAM8 + rect 220 175 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 10 + textaligny -4 + font 2 + textscale 1 + forecolor 0.65 0.65 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show button_glow + setitemrect button_glow 200 171 250 28 + } + mouseExit + { + hide button_glow + } + } + + itemDef + { + name botlist_slot + style 0 + text @MENUS_16 + descText @MENUS_CLICK_FOR_HUMAN_BOTS + ownerdraw UI_REDTEAM8 + rect 220 195 196 20 + textalign ITEM_ALIGN_LEFT + textalignx 10 + textaligny -4 + font 2 + textscale 1 + forecolor 1 0.2 0.2 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show button_glow + setitemrect button_glow 200 191 250 28 + } + mouseExit + { + hide button_glow + } + } + +//---------------------------------------------------------------------------------------------- +// DONE +//---------------------------------------------------------------------------------------------- + itemDef + { + name done + text @MENUS_DONE + descText @MENUS_RETURN_PREVIOUS + type ITEM_TYPE_BUTTON + font 3 + textscale 1 + style WINDOW_STYLE_EMPTY + rect 140 352 160 30 + textalignx 80 // Center + textaligny 0 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + close quickbots ; + } + mouseEnter + { + show button_glow + setitemrect button_glow 130 350 200 34 + } + mouseExit + { + hide button_glow + } + } + + } +} + + + + + + + + + + + + + + + + diff --git a/base/ui/jamp/quickgame.menu b/base/ui/jamp/quickgame.menu new file mode 100644 index 0000000..1aa88b4 --- /dev/null +++ b/base/ui/jamp/quickgame.menu @@ -0,0 +1,431 @@ +//---------------------------------------------------------------------------------------------- +// +// MULTIPLAYER QUICK SERVER MENU +// +// Allows player to quickly create a server +// This is the first screen which allows you to choose a map. +// The next screen lets you set up the rules. +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "quickgame" + fullScreen 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 320 + descY 424 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onEsc + { + play "sound/interface/esc.wav" ; + close quickgame ; + open multiplayermenu + } + + onOpen + { + uiScript loadArenas ; + uiScript checkforsiege ; + hide accept_alt ; + show accept ; + hide back_alt ; + show back ; + hide grpmessage + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + forecolor 1 1 1 1 + visible 1 + decoration + } + + // Quick Game title + itemDef + { + name title_glow + group none + style WINDOW_STYLE_SHADER + rect 150 11 340 30 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name title + group none + style WINDOW_STYLE_EMPTY + background "gfx/menus/menu_blendbox" + text @MENUS_SOLO_GAME + rect 50 14 540 16 + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 270 + textaligny -1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// GAME TYPE SELECTION +//---------------------------------------------------------------------------------------------- + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + // GAME TYPE SELECTION FIELD + // Do NOT change the name of this item - it's been hacked in code + // so that if you hit siege it hops over it to the next game type. + itemDef + { + name solo_gametypefield + style WINDOW_STYLE_EMPTY + ownerdraw UI_NETGAMETYPE + text @MENUS_GAME_TYPE + descText @MENUS_ALLOWS_YOU_TO_SELECT + textstyle 0 + rect 170 60 300 32 + textalign ITEM_ALIGN_RIGHT + textalignx 85 + textaligny -1 + font 2 + textscale 1 + forecolor .615 .615 .956 1 + visible 1 + border 0 + bordercolor 1 1 1 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show button_glow + setitemrect button_glow 125 57 400 38 + } + mouseExit + { + hide button_glow + } + } + +//---------------------------------------------------------------------------------------------- +// MAP LISTING BOX +//---------------------------------------------------------------------------------------------- + itemDef + { + name create_title + group none + style WINDOW_STYLE_EMPTY + text @MENUS_MAP_LISTING + rect 30 105 200 24 + font 3 + textscale .9 + textalign ITEM_ALIGN_CENTER + textalignx 100 + textaligny -1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + itemDef + { + name maplist + rect 35 125 194 250 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 120 + elementheight 20 + font 4 + textscale 1 + elementtype LISTBOX_TEXT + feeder FEEDER_ALLMAPS + textstyle 6 + textalign 3 + textaligny 2 + border 1 + bordercolor .79 .64 .22 .5 + forecolor .615 .615 .956 1 + backcolor 0 0 .5 .75 + outlinecolor .25 .464 .578 .5 + descText @MENUS_CHOOSE_YOUR_GAME + visible 1 + columns 1 2 190 172 + action + { + play "sound/interface/button1.wav" ; + } + mouseEnter + { + setitemcolor maplist bordercolor .79 .64 .22 1 + } + mouseExit + { + setitemcolor maplist bordercolor .79 .64 .22 .5 + } + } + +//---------------------------------------------------------------------------------------------- +// MAP SCREENSHOT +//---------------------------------------------------------------------------------------------- + itemDef + { + name setup_background + group none + style WINDOW_STYLE_FILLED + rect 280 104 340 280 + backcolor 0 0 .6 .5 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .6 1 + visible 1 + decoration + } + + itemDef + { + name mappreview + style 0 + ownerdraw UI_STARTMAPCINEMATIC + rect 290 124 320 240 + border 1 + bordercolor .265 .824 .886 .25 + visible 1 + } + + itemDef + { + name mappreview + style WINDOW_STYLE_FILLED + rect 289 123 322 242 + border 1 + bordercolor .265 .824 .886 .25 + visible 1 + } + +//---------------------------------------------------------------------------------------------- +// BOTTOM BUTTONS +//---------------------------------------------------------------------------------------------- + // BACK button + itemDef + { + name backbutton + group fade_buttons + text @MENUS_BACK + descText @MENUS_BACKUP_ONE_MENU + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 59 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 30 441 190 30 + } + mouseExit + { + hide button_glow + } + + action + { + play "sound/interface/esc.wav" ; + close all ; + open multiplayermenu + } + + } + + // EXIT button + itemDef + { + name exitgamebutton + group othermain + text @MENUS_EXIT + descText @MENUS_LEAVE_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 255 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 225 441 190 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/weapons/saber/saberoff.mp3"; + close all ; + open quitMenu + } + } + + // NEXT button + itemDef + { + name next_button + text @MENUS_NEXT + descText @MENUS_CHOOSE_RULES + type ITEM_TYPE_BUTTON + font 3 + textscale 1.1 + textstyle 0 + style WINDOW_STYLE_FILLED + rect 455 444 200 32 + textalign 1 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + action + { + play "sound/interface/button1.wav" ; + close quickgame ; + open quickgame2 + } + + mouseEnter + { + show button_glow + setitemrect button_glow 425 441 190 30 + } + mouseExit + { + hide button_glow + } + } + } +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/base/ui/jamp/quickgame2.menu b/base/ui/jamp/quickgame2.menu new file mode 100644 index 0000000..689d3fc --- /dev/null +++ b/base/ui/jamp/quickgame2.menu @@ -0,0 +1,865 @@ +//---------------------------------------------------------------------------------------------- +// +// MULTIPLAYER QUICK SERVER MENU +// +// Allows player to choose quickly game server rules +// This is the second screen in the quick game series. +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "quickgame2" + fullScreen 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 320 + descY 424 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onEsc + { + play "sound/interface/esc.wav" ; + close quickgame2 ; + open quickgame + } + + onOpen + { + hide accept_alt ; + show accept ; + hide back_alt ; + show back ; + hide grpmessage + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// Create Server title +//---------------------------------------------------------------------------------------------- + // Quick Game title + itemDef + { + name title_glow + group none + style WINDOW_STYLE_SHADER + rect 150 11 340 30 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name title + group none + style WINDOW_STYLE_EMPTY + background "gfx/menus/menu_blendbox" + text @MENUS_SOLO_GAME + rect 50 14 540 16 + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 270 + textaligny -1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// GENERAL RULES +//---------------------------------------------------------------------------------------------- + itemDef + { + name rules_title + group none + text @MENUS_GENERAL_RULES + rect 5 110 240 20 + font 3 + textscale 0.8 + textalign ITEM_ALIGN_CENTER + textalignx 120 + textaligny -2 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + // LIGHTSABER ONLY + itemDef + { + name options + group grpOptions + type ITEM_TYPE_YESNO + text @MENUS_LIGHTSABER_ONLY + descText @MENUS_SABER_ONLY_INFO + cvar "g_weaponDisable" + rect 5 130 240 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale .9 + forecolor .615 .615 .956 1 + visible 1 + cvarTest "ui_netGameType" + //Hide in Duel/Power Duel + hideCvar + { + "1" ; + "2" + } + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show button_glow + setitemrect button_glow 0 127 260 30 + } + mouseExit + { + hide button_glow + } + } + + itemDef + { + name options + group grpOptions + type ITEM_TYPE_YESNO + text @MENUS_LIGHTSABER_ONLY + descText @MENUS_SABER_ONLY_INFO + cvar "g_duelWeaponDisable" + rect 5 130 240 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale .9 + forecolor .615 .615 .956 1 + visible 1 + cvarTest "ui_netGameType" + //hide in everthing but Duel/Power Duel + showCvar + { + "1" ; + "2" + } + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show button_glow + setitemrect button_glow 0 127 260 30 + } + mouseExit + { + hide button_glow + } + } + + // FORCE POWER DISABLE + itemDef + { + name options + group grpOptions + type ITEM_TYPE_YESNO + text @MENUS_DISABLE_FORCE + descText @MENUS_DISABLE_FORCE_INFO + cvar "g_forcePowerDisable" + cvarTest "ui_netGameType" + hideCvar + { + "4" + } + rect 5 150 240 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale .9 + forecolor .615 .615 .956 1 + visible 1 + action + { + uiScript forcePowersDisable ; + play "sound/interface/button1.wav" + } + mouseEnter + { + show button_glow + setitemrect button_glow 0 147 260 30 + } + mouseExit + { + hide button_glow + } + } + + + itemDef + { + name normal + group grpsettings + text @MENUS_FORCE_MASTERY + descText @MENUS_FORCE_MASTERY_INFO + ownerdraw UI_FORCE_MASTERY_SET + cvarTest "ui_netGameType" + hideCvar + { + "4" + } + rect 5 170 240 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny 0 + font 2 + textscale .9 + forecolor .615 .615 .956 1 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show button_glow + setitemrect button_glow 0 167 260 30 + } + mouseExit + { + hide button_glow + } + } + + +//---------------------------------------------------------------------------------------------- +// END GAME RULES TITLE +//---------------------------------------------------------------------------------------------- + itemDef + { + name end_game_title + group none + text @MENUS_ENDGAME_RULES + rect 5 200 240 20 + font 3 + textscale 0.8 + textalign ITEM_ALIGN_CENTER + textalignx 120 + textaligny -2 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + // TIME LIMIT + itemDef + { + name normal + group grpsettings + type ITEM_TYPE_NUMERICFIELD + text @MENUS_TIME_LIMIT + cvar "timelimit" + rect 5 220 240 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale .9 + maxchars 4 + forecolor .615 .615 .956 1 + visible 1 + descText @MENUS_THIS_VALUE_ADJUSTS_THE + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show button_glow + setitemrect button_glow 0 217 260 30 + } + mouseExit + { + hide button_glow + } + } + + // KILL LIMIT / CAPTURE LIMIT /DUEL LIMIT + itemDef + { + name normal + group grpsettings + type ITEM_TYPE_NUMERICFIELD + text @MENUS_KILL_LIMIT + cvar "fraglimit" + cvarTest "ui_netGameType" + showCvar + { + "0" ; + "3" ; + } + rect 5 240 240 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale .9 + maxchars 4 + forecolor .615 .615 .956 1 + visible 1 + descText @MENUS_ESTABLISH_THE_NUMBER + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show button_glow + setitemrect button_glow 0 237 260 30 + } + mouseExit + { + hide button_glow + } + } + + itemDef + { + name normal + group grpsettings + type ITEM_TYPE_NUMERICFIELD + text @MENUS_CAPTURE_LIMIT + cvar "capturelimit" + cvarTest "ui_netGameType" + showCvar + { + "5" ; + } + rect 5 240 240 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale .9 + maxchars 8 + forecolor .615 .615 .956 1 + visible 1 + descText @MENUS_THIS_IS_THE_NUMBER_OF + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show button_glow + setitemrect button_glow 0 237 260 30 + } + mouseExit + { + hide button_glow + } + } + + itemDef + { + name normal + group grpsettings + type ITEM_TYPE_NUMERICFIELD + text @MENUS_DUEL_LIMIT + descText @MENUS_VALUE_ADJUSTS_THE_TOTAL + cvar "duel_fraglimit" + cvarTest "ui_netGameType" + hideCvar + { + "0" ; + "3" ; + "4" ; + "5" ; + } + rect 5 240 240 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale .9 + maxchars 8 + forecolor .615 .615 .956 1 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show button_glow + setitemrect button_glow 0 237 260 30 + } + mouseExit + { + hide button_glow + } + } + +//---------------------------------------------------------------------------------------------- +// BOTS TITLE +//---------------------------------------------------------------------------------------------- + itemDef + { + name bots_title + group none + text @MENUS_BOTS + rect 5 280 240 20 + font 3 + textscale 0.8 + textalign ITEM_ALIGN_CENTER + textalignx 120 + textaligny -2 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + // MINIMUM BOTS/PLAYERS + itemDef + { + name expert_button + group grpsettings + type ITEM_TYPE_NUMERICFIELD + maxchars 4 + text @MENUS_PLAYERS + descText @MENUS_PLAYERS_INFO + cvar "bot_minplayers" + rect 5 300 240 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale .9 + forecolor .615 .615 .956 1 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show button_glow + setitemrect button_glow 0 297 260 30 + } + mouseExit + { + hide button_glow + } + } + + itemDef + { + name expert_button + group grpsettings + type ITEM_TYPE_NUMERICFIELD + text @MENUS_MAXIMUM_PLAYERS + cvar "sv_maxclients" + rect 5 320 240 20 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale .9 + forecolor .615 .615 .956 1 + maxchars 6 + visible 1 + descText @MENUS_SETS_THE_MAXIMUM_NUMBER + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show settingsButton1 + } + mouseExit + { + hide settingsButton1 + uiscript clampmaxplayers + } + } + + itemDef + { + name difficulty_button + style 0 + ownerdraw UI_SKILL + text @MENUS_SKILL + descText @MENUS_ADJUSTS_THE_DIFFICULTY + rect 5 340 240 20 + textstyle 0 + textalign ITEM_ALIGN_RIGHT + textalignx 165 + textaligny -2 + font 2 + textscale .9 + forecolor .615 .615 .956 1 + visible 1 + action + { + play "sound/interface/button1.wav" + } + mouseEnter + { + show button_glow + setitemrect button_glow 0 337 260 30 + } + mouseExit + { + hide button_glow + } + } + + itemDef + { + name custombots_button + text @MENUS_SELECT_BOTS + descText @MENUS_SELECT_BOTS_DESC + type ITEM_TYPE_BUTTON + font 2 + textscale .9 + textstyle 0 + style WINDOW_STYLE_FILLED + rect 5 360 240 20 + textalignx 120 + textaligny -2 + textalign ITEM_ALIGN_CENTER + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + open quickbots + } + mouseEnter + { + show button_glow + setitemrect button_glow 0 357 260 30 + } + mouseExit + { + hide button_glow + } + } + +//---------------------------------------------------------------------------------------------- +// MAP SCREENSHOT +//---------------------------------------------------------------------------------------------- + itemDef + { + name setup_background + group none + style WINDOW_STYLE_FILLED + rect 280 104 340 280 + backcolor 0 0 .6 .5 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .6 1 + visible 1 + decoration + } + + itemDef + { + name mappreview + style 0 + ownerdraw UI_STARTMAPCINEMATIC + rect 290 124 320 240 + border 1 + bordercolor .265 .824 .886 .25 + visible 1 + } + + itemDef + { + name mappreview + style WINDOW_STYLE_FILLED + rect 289 123 322 242 + border 1 + bordercolor .265 .824 .886 .25 + visible 1 + } + + +//---------------------------------------------------------------------------------------------- +// BOTTOM BUTTONS +//---------------------------------------------------------------------------------------------- + // BACK button + itemDef + { + name back_button + group fade_buttons + text @MENUS_BACK + descText @MENUS_BACKUP_ONE_MENU + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 59 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 30 441 190 30 + } + mouseExit + { + hide button_glow + } + + action + { + play "sound/interface/esc.wav" ; + close quickgame2 ; + open quickgame + } + + } + + // EXIT button + itemDef + { + name exitgame_button + group othermain + text @MENUS_EXIT + descText @MENUS_LEAVE_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 255 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 225 441 190 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/weapons/saber/saberoff.mp3"; + close all ; + open quitMenu + } + } + + // NEXT button + itemDef + { + name next_button + text @MENUS_NEXT + descText @MENUS_START_SERVER + type ITEM_TYPE_BUTTON + font 3 + textscale 1.1 + textstyle 0 + style WINDOW_STYLE_FILLED + rect 455 444 200 32 + textalign 1 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 425 441 190 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + uiScript weaponDisable ; //update the weapondisable cvar for duel or non-duel + setcvar ui_singlePlayerActive "1" + uiScript StartServer ; + close quickgame2 ; + } + } + } +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/base/ui/jamp/quit.menu b/base/ui/jamp/quit.menu new file mode 100644 index 0000000..d8d0a5b --- /dev/null +++ b/base/ui/jamp/quit.menu @@ -0,0 +1,505 @@ + //---------------------------------------------------------------------------------------------- + // + // QUIT MENU + // + //---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "quitMenu" + visible 0 + fullScreen 1 // MENU_TRUE + rect 0 0 640 480 // Size and position of the menu + focusColor 1 1 1 1 // Focus color for text and items + appearanceIncrement 100 // In miliseconds + descX 320 + descY 424 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + appearanceIncrement 100 // In miliseconds + + onESC + { + play "sound/interface/button1.wav" ; + close quitMenu ; + open mainMenu ; + } + + onOpen + { + setfocus quitgame_cancel + } + + //---------------------------------------------------------------------------------------------- + // + // MENU BACKGROUND + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 107 8 428 112 + background "gfx/menus/jediacademy" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name left_frame + group lf_fr + style WINDOW_STYLE_SHADER + rect 0 50 320 160 + background "gfx/menus/menu_boxes_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name right_frame + group rt_fr + style WINDOW_STYLE_SHADER + rect 320 50 320 160 + background "gfx/menus/menu_boxes_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + //---------------------------------------------------------------------------------------------- + // + // TOP MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + + // Big button "NEW" + itemDef + { + name newgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 7 126 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 7 126 130 24 + text @MENUS_PLAY + descText @MENUS_START_PLAYING_NOW + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show newgamebutton_glow + } + mouseExit + { + hide newgamebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open multiplayermenu + } + } + + // Big button "PLAYER PROFILE" + itemDef + { + name profilebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 170 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name profilebutton + group toprow + text @MENUS_PROFILE + descText @MENUS_PROFILE_DESC + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 126 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show profilebutton_glow + } + mouseExit + { + hide profilebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open playerMenu + } + } + + // Big button "CONTROLS" + itemDef + { + name controlsbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 340 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name controlsbutton + group toprow + text @MENUS_CONTROLS2 + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show controlsbutton_glow + } + mouseExit + { + hide controlsbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open controlsMenu ; + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 502 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name setupbutton + group toprow + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 502 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show setupbutton_glow + } + mouseExit + { + hide setupbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open setup_menu + } + } + + + //---------------------------------------------------------------------------------------------- + // + // OTHER MAIN MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + // Credits hidden button + itemDef + { + name creditsbutton + group othermain +// text @CREDITS + descText @MENUS_SHOW_GAME_CREDITS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 200 144 256 256 + 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 + { + } + mouseExit + { + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open creditsMenu + } + } + + //---------------------------------------------------------------------------------------------- + // + // QUIT MENU specific stuff + // + //---------------------------------------------------------------------------------------------- + // Quitting title + itemDef + { + name quit_title + group none + text @MENUS_LEAVING_JEDI_KNIGHT_2 + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + rect 100 164 440 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + itemDef + { + name confirm + group none + text @MENUS_QUIT_JEDI_KNIGHT_II + font 2 + textscale 1 + textstyle 0 + rect 95 250 450 20 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny 0 + decoration + forecolor 1 .682 0 1 + visible 1 + } + + + itemDef + { + name quitgame_cancel_button + group none + style WINDOW_STYLE_SHADER + rect 59 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + // CANCEL button + itemDef + { + name quitgame_cancel + group none + text @MENUS_NO + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 59 444 130 24 + font 3 + textscale 1 + textalignx 65 + textaligny -1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + descText @MENUS_DO_NOT_LEAVE_JEDI_KNIGHT + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + close quitMenu ; + open mainMenu ; + } + mouseEnter + { + show quitgame_cancel_button + } + mouseExit + { + hide quitgame_cancel_button + } + } + + itemDef + { + name quitgame_yes_button + group none + style WINDOW_STYLE_SHADER + rect 454 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + // YES button + itemDef + { + name quitgame_yes + group none + text @MENUS_YES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 454 444 130 24 + font 3 + textscale 1 + textalignx 65 + textaligny -1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + descText @MENUS_JEDI_KNIGHT_II + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + uiScript Quit // Quit the game + } + mouseEnter + { + show quitgame_yes_button + } + mouseExit + { + hide quitgame_yes_button + } + } + + } +} + + + + + + + + + + + + + + + diff --git a/base/ui/jamp/rules.menu b/base/ui/jamp/rules.menu new file mode 100644 index 0000000..1c961ee --- /dev/null +++ b/base/ui/jamp/rules.menu @@ -0,0 +1,595 @@ +//---------------------------------------------------------------------------------------------- +// MULTIPLAYER RULES +// +// Rules main menu.From here you can get at any of the rules menus. +// +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "rulesMenu" + fullScreen 1 + rect 0 0 640 480 // Size and position of the menu + visible 0 + focusColor 1 1 1 1 // Focus color for text and items + descX 320 + descY 424 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + setcvar "ui_rules_backout" 0 ; + } + + onESC + { + play "sound/interface/esc.wav" ; + close rulesMenu ; + open multiplayerMenu ; + } + + + //---------------------------------------------------------------------------------------------- + // + // MENU BACKGROUND + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 107 8 428 112 + background "gfx/menus/jediacademy" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name left_frame + group lf_fr + style WINDOW_STYLE_SHADER + rect 0 50 320 160 + background "gfx/menus/menu_boxes_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name right_frame + group rt_fr + style WINDOW_STYLE_SHADER + rect 320 50 320 160 + background "gfx/menus/menu_boxes_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// TOP MENU BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + // Big button "PLAY" + itemDef + { + name playbutton + group toprow + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 7 126 130 24 + text @MENUS_PLAY + descText @MENUS_START_PLAYING_NOW + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 0 124 180 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open multiplayermenu + } + } + + // Big button "PLAYER PROFILE" + itemDef + { + name profilebutton + group toprow + text @MENUS_PROFILE + descText @MENUS_PROFILE_DESC + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 126 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 120 124 230 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open playerMenu + } + } + + // Big button "CONTROLS" + itemDef + { + name controlsbutton + group toprow + text @MENUS_CONTROLS2 + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 290 124 230 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open controlsMenu ; + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton + group toprow + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 502 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 452 124 230 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open setup_menu + } + } + +//---------------------------------------------------------------------------------------------- +// SECOND ROW MENU BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name title_glow + group none + style WINDOW_STYLE_SHADER + rect 150 162 340 20 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name default_rulesheader + group rulesheader + style WINDOW_STYLE_EMPTY + text @MENUS_RULES + rect 100 164 440 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + // GAMES + itemDef + { + name gamesmenubutton + group default_submenu + text @MENUS_GAMES + descText @MENUS_GAME_RULES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 225 190 190 40 + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 95 + textaligny 8 + forecolor 1 .682 0 1 + visible 1 + mouseEnter + { + show button_glow + setitemrect button_glow 175 196 300 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + + close "rulesMenu" ; + open "rulesMenu_games" ; + } + } + + // Games + itemDef + { + name forcemenubutton + group default_submenu + text @MENUS_FORCE_POWERS + descText @MENUS_FORCE_RULES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 225 230 190 40 + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 95 + textaligny 8 + forecolor 1 .682 0 1 + visible 1 + mouseEnter + { + show button_glow + setitemrect button_glow 175 236 300 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + close "rulesMenu" ; + open "rulesMenu_force" ; + } + } + + // Weapons + itemDef + { + name weaponmenubutton + group default_submenu + text @MENUS_WEAPONS + descText @MENUS_WEAPON_RULES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 225 270 190 40 + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 95 + textaligny 8 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + + close "rulesMenu" ; + open "rulesMenu_weapons" ; + } + mouseEnter + { + show button_glow + setitemrect button_glow 175 276 300 30 + } + mouseExit + { + hide button_glow + } + } + + // Items + itemDef + { + name itemmenubutton + group default_submenu + text @MENUS_ITEMS + descText @MENUS_ITEM_RULES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 225 310 190 40 + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 95 + textaligny 8 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + + close "rulesMenu" ; + open "rulesMenu_items" ; + } + mouseEnter + { + show button_glow + setitemrect button_glow 175 316 300 30 + } + mouseExit + { + hide button_glow + } + } + + // Move + itemDef + { + name itemmenubutton + group default_submenu + text @MENUS_MOVES + descText @MENUS_MOVE_RULES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 225 350 190 40 + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 95 + textaligny 8 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + + close "rulesMenu" ; + open "rulesMenu_moves" ; + } + mouseEnter + { + show button_glow + setitemrect button_glow 175 356 300 30 + } + mouseExit + { + hide button_glow + } + } + +//---------------------------------------------------------------------------------------------- +// BOTTOM BUTTONS +//---------------------------------------------------------------------------------------------- + // BACK button + itemDef + { + name backbutton + group fade_buttons + text @MENUS_BACK + descText @MENUS_BACKTOMAIN + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 59 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 30 441 190 30 + } + mouseExit + { + hide button_glow + } + + action + { + play "sound/interface/esc.wav" ; + close all ; + open mainMenu + } + + } + + // EXIT button + itemDef + { + name exitgamebutton + group othermain + text @MENUS_EXIT + descText @MENUS_LEAVE_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 255 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 225 441 190 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/weapons/saber/saberoff.mp3"; + close all ; + open quitMenu + } + } + } +} + + + + + + + + + + + + + + + + + + + + + + + diff --git a/base/ui/jamp/rules_force.menu b/base/ui/jamp/rules_force.menu new file mode 100644 index 0000000..48358bd --- /dev/null +++ b/base/ui/jamp/rules_force.menu @@ -0,0 +1,1830 @@ +//---------------------------------------------------------------------------------------------- +// RULES +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "rulesMenu_force" + fullScreen MENU_TRUE + rect 0 0 640 480 // Size and position of the menu + visible 0 + focusColor 1 1 1 1 // Focus color for text and items + descX 320 + descY 424 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + hide gamedesc ; + show jump_desc ; + + setitemcolor force_submenu forecolor 1 .682 0 1 ; + setitemcolor jumpmenubutton forecolor 1 1 1 1 ; + } + + onESC + { + play "sound/interface/button1.wav" ; + + close "rulesMenu_force" ; + open "rulesMenu" ; + } + + + //---------------------------------------------------------------------------------------------- + // + // MENU BACKGROUND + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 107 8 428 112 + background "gfx/menus/jediacademy" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name left_frame + group lf_fr + style WINDOW_STYLE_SHADER + rect 0 50 320 160 + background "gfx/menus/menu_boxes_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name right_frame + group rt_fr + style WINDOW_STYLE_SHADER + rect 320 50 320 160 + background "gfx/menus/menu_boxes_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + //---------------------------------------------------------------------------------------------- + // + // TOP MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + + // Big button "NEW" + itemDef + { + name newgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 7 126 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 7 126 130 24 + text @MENUS_PLAY + descText @MENUS_START_PLAYING_NOW + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show newgamebutton_glow + } + mouseExit + { + hide newgamebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open multiplayermenu + } + } + + // Big button "LOAD" + itemDef + { + name profilebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 170 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name profilebutton + group toprow + text @MENUS_PROFILE + descText @MENUS_PROFILE_DESC + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 126 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show profilebutton_glow + } + mouseExit + { + hide profilebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open playerMenu + } + } + + + // Big button "CONTROLS" + itemDef + { + name controlsbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 340 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name controlsbutton + group toprow + text @MENUS_CONTROLS2 + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show controlsbutton_glow + } + mouseExit + { + hide controlsbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open controlsMenu ; + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 502 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name setupbutton + group toprow + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 502 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show setupbutton_glow + } + mouseExit + { + hide setupbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open setup_menu + } + } + + //---------------------------------------------------------------------------------------------- + // + // OTHER MAIN MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + // Credits hidden button + itemDef + { + name creditsbutton + group othermain +// text @CREDITS + descText @MENUS_SHOW_GAME_CREDITS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 200 144 256 256 + font 2 + textscale 1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textalignx 46 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 0 + + mouseEnter + { + } + mouseExit + { + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open creditsMenu + } + } + + // BACK button + itemDef + { + name backbutton + group fade_buttons + text @MENUS_BACK + descText @MENUS_BACKTORULES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 59 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 30 441 190 30 + } + mouseExit + { + hide button_glow + } + + action + { + play "sound/interface/esc.wav" ; + close all ; + open rulesMenu + } + + } + + // EXIT button in lower left corner + itemDef + { + name exitgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 255 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 @MENUS_EXIT + descText @MENUS_LEAVE_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 255 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 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 + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name force_rulesheader + group rulesheader + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_FORCE_RULES_TITLE + rect 100 164 440 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + itemDef + { + name setup_background + group none + style WINDOW_STYLE_FILLED + rect 225 183 370 230 + backcolor 0 0 .6 .5 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .6 1 + visible 1 + decoration + } + + // Main small highlights + itemDef + { + group smallhighlight + name smallhighlight1 + style WINDOW_STYLE_SHADER + rect 40 185 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group smallhighlight + name smallhighlight2 + style WINDOW_STYLE_SHADER + rect 40 200 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group smallhighlight + name smallhighlight3 + style WINDOW_STYLE_SHADER + rect 40 215 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group smallhighlight + name smallhighlight4 + style WINDOW_STYLE_SHADER + rect 40 230 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group smallhighlight + name smallhighlight5 + style WINDOW_STYLE_SHADER + rect 40 245 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group smallhighlight + name smallhighlight6 + style WINDOW_STYLE_SHADER + rect 40 260 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group smallhighlight + name smallhighlight7 + style WINDOW_STYLE_SHADER + rect 40 275 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group smallhighlight + name smallhighlight8 + style WINDOW_STYLE_SHADER + rect 40 290 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group smallhighlight + name smallhighlight9 + style WINDOW_STYLE_SHADER + rect 40 305 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group smallhighlight + name smallhighlight10 + style WINDOW_STYLE_SHADER + rect 40 320 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group smallhighlight + name smallhighlight11 + style WINDOW_STYLE_SHADER + rect 40 335 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group smallhighlight + name smallhighlight12 + style WINDOW_STYLE_SHADER + rect 40 350 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group smallhighlight + name smallhighlight13 + style WINDOW_STYLE_SHADER + rect 40 365 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group smallhighlight + name smallhighlight14 + style WINDOW_STYLE_SHADER + rect 40 380 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group smallhighlight + name smallhighlight15 + style WINDOW_STYLE_SHADER + rect 40 395 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + //---------------------------------------------------------------------------------------------- + // + // FORCE RULES + // + //---------------------------------------------------------------------------------------------- + + // JUMP FORCE DESC + + itemDef + { + name jumpmenubutton + group force_submenu + text @MENUS_JUMP + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 185 170 15 + font 2 + textscale 0.8 + textalignx 170 + textaligny -5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_A_FORCE + + mouseEnter + { + show smallhighlight1 + } + mouseExit + { + hide smallhighlight1 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor force_submenu forecolor 1 .682 0 1 ; + setitemcolor jumpmenubutton forecolor 1 1 1 1 ; + + show setup_background; + + hide gamedesc ; + show jump_desc ; + } + } + + itemDef + { + name jump_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/mp/NEW_f_icon_jump" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name jump_desc + text @MENUS_DURATION_IMMEDIATE_NAREA + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 12 + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + lineHeight 15 + maxLineChars 45 + } + + // SPEED FORCE DESC + + itemDef + { + name speedmenubutton + group force_submenu + text @MENUS_SPEED + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 200 170 15 + font 2 + textscale 0.8 + textalignx 170 + textaligny -5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_A_FORCE + + mouseEnter + { + show smallhighlight2 + } + mouseExit + { + hide smallhighlight2 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor force_submenu forecolor 1 .682 0 1 ; + setitemcolor speedmenubutton forecolor 1 1 1 1 ; + + show setup_background; + + hide gamedesc ; + show speed_desc ; + } + } + + itemDef + { + name speed_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/mp/NEW_f_icon_speed" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name speed_desc + text @MENUS_DURATION_5_SECONDS_NAREA + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + // PUSH FORCE DESC + + itemDef + { + name pushmenubutton + group force_submenu + text @MENUS_PUSH + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 215 170 15 + font 2 + textscale 0.8 + textalignx 170 + textaligny -5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_A_FORCE + + mouseEnter + { + show smallhighlight3 + } + mouseExit + { + hide smallhighlight3 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor force_submenu forecolor 1 .682 0 1 ; + setitemcolor pushmenubutton forecolor 1 1 1 1 ; + + show setup_background; + + hide gamedesc ; + show push_desc ; + } + } + + itemDef + { + name push_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/mp/NEW_f_icon_push" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name push_desc + text @MENUS_DURATION_INSTANTANEOUS + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + // PULL FORCE DESC + + itemDef + { + name pullmenubutton + group force_submenu + text @MENUS_PULL + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 230 170 15 + font 2 + textscale 0.8 + textalignx 170 + textaligny -5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_A_FORCE + + mouseEnter + { + show smallhighlight4 + } + mouseExit + { + hide smallhighlight4 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor force_submenu forecolor 1 .682 0 1 ; + setitemcolor pullmenubutton forecolor 1 1 1 1 ; + + show setup_background; + + hide gamedesc ; + show pull_desc ; + } + } + + itemDef + { + name pull_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/mp/NEW_f_icon_pull" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name pull_desc + text @MENUS_INSTANTANEOUS_EFFECT_NAREA + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + // SIGHT FORCE DESC + + itemDef + { + name sightmenubutton + group force_submenu + text @MENUS_SIGHT + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 245 170 15 + font 2 + textscale 0.8 + textalignx 170 + textaligny -5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_A_FORCE + + mouseEnter + { + show smallhighlight5 + } + mouseExit + { + hide smallhighlight5 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor force_submenu forecolor 1 .682 0 1 ; + setitemcolor sightmenubutton forecolor 1 1 1 1 ; + + show setup_background; + + hide gamedesc ; + show sight_desc ; + } + } + + itemDef + { + name sight_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/mp/NEW_f_icon_sight" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name sight_desc + text @MENUS_EFFECT_NAREA_OF_EFFECT + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + // PROTECT FORCE DESC + + itemDef + { + name protectmenubutton + group force_submenu + text @MENUS_PROTECT + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 260 170 15 + font 2 + textscale 0.8 + textalignx 170 + textaligny -5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_A_FORCE + + mouseEnter + { + show smallhighlight6 + } + mouseExit + { + hide smallhighlight6 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor force_submenu forecolor 1 .682 0 1 ; + setitemcolor protectmenubutton forecolor 1 1 1 1 ; + + show setup_background; + + hide gamedesc ; + show protect_desc ; + } + } + + itemDef + { + name protect_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/mp/NEW_f_icon_lt_protect" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name protect_desc + text @MENUS_DURATION_VARIABLE_NAREA + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + // ABSORB FORCE DESC + + itemDef + { + name absorbmenubutton + group force_submenu + text @MENUS_ABSORB + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 275 170 15 + font 2 + textscale 0.8 + textalignx 170 + textaligny -5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_A_FORCE + + mouseEnter + { + show smallhighlight7 + } + mouseExit + { + hide smallhighlight7 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor force_submenu forecolor 1 .682 0 1 ; + setitemcolor absorbmenubutton forecolor 1 1 1 1 ; + + show setup_background; + + hide gamedesc ; + show absorb_desc ; + } + } + + itemDef + { + name absorb_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/mp/NEW_f_icon_lt_absorb" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name absorb_desc + text @MENUS_DURATION_CONTINUOUS_NAREA + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 1 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + // HEAL FORCE DESC + + itemDef + { + name healmenubutton + group force_submenu + text @MENUS_HEAL + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 290 170 15 + font 2 + textscale 0.8 + textalignx 170 + textaligny -5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_A_FORCE + + mouseEnter + { + show smallhighlight8 + } + mouseExit + { + hide smallhighlight8 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor force_submenu forecolor 1 .682 0 1 ; + setitemcolor healmenubutton forecolor 1 1 1 1 ; + + show setup_background; + + hide gamedesc ; + show heal_desc ; + } + } + + itemDef + { + name heal_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/mp/NEW_f_icon_lt_heal" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name heal_desc + text @MENUS_OF_EFFECT_JEDI_ONLY_NEFFECT + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 1 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + // MIND TRICK FORCE DESC + + itemDef + { + name trickmenubutton + group force_submenu + text @MENUS_MIND_TRICK + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 305 170 15 + font 2 + textscale 0.8 + textalignx 170 + textaligny -5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_A_FORCE + + mouseEnter + { + show smallhighlight9 + } + mouseExit + { + hide smallhighlight9 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor force_submenu forecolor 1 .682 0 1 ; + setitemcolor trickmenubutton forecolor 1 1 1 1 ; + + show setup_background; + + hide gamedesc ; + show mindtrick_desc ; + } + } + + itemDef + { + name mindtrick_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/mp/NEW_f_icon_lt_mind_trick" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name mindtrick_desc + text @MENUS_DURATION_VARIABLE_20 + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 1 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + // TEAM HEAL FORCE DESC + + itemDef + { + name thealmenubutton + group force_submenu + text @MENUS_TEAM_HEAL + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 320 170 15 + font 2 + textscale 0.8 + textalignx 170 + textaligny -5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_A_FORCE + + mouseEnter + { + show smallhighlight10 + } + mouseExit + { + hide smallhighlight10 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor force_submenu forecolor 1 .682 0 1 ; + setitemcolor thealmenubutton forecolor 1 1 1 1 ; + + show setup_background; + + hide gamedesc ; + show theal_desc ; + } + } + + itemDef + { + name theal_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/mp/NEW_f_icon_lt_healother" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name theal_desc + text @MENUS_OF_EFFECT_JEDI_ALLIES_NEFFECT + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + // GRIP FORCE DESC + + itemDef + { + name gripmenubutton + group force_submenu + text @MENUS_GRIP + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 335 170 15 + font 2 + textscale 0.8 + textalignx 170 + textaligny -5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_A_FORCE + + mouseEnter + { + show smallhighlight11 + } + mouseExit + { + hide smallhighlight11 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor force_submenu forecolor 1 .682 0 1 ; + setitemcolor gripmenubutton forecolor 1 1 1 1 ; + + show setup_background; + + hide gamedesc ; + show grip_desc ; + } + } + + itemDef + { + name grip_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/mp/NEW_f_icon_dk_grip" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name grip_desc + text @MENUS_DURATION_INSTANTANEOUS_NAREA + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + // DRAIN FORCE DESC + + itemDef + { + name drainmenubutton + group force_submenu + text @MENUS_DRAIN + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 350 170 15 + font 2 + textscale 0.8 + textalignx 170 + textaligny -5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_A_FORCE + + mouseEnter + { + show smallhighlight12 + } + mouseExit + { + hide smallhighlight12 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor force_submenu forecolor 1 .682 0 1 ; + setitemcolor drainmenubutton forecolor 1 1 1 1 ; + + show setup_background; + + hide gamedesc ; + show drain_desc ; + } + } + + itemDef + { + name drain_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/mp/NEW_f_icon_dk_drain" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name drain_desc + text @MENUS_VARIABLE_NAREA_OF_EFFECT + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + // LIGHTNING FORCE DESC + + itemDef + { + name lightmenubutton + group force_submenu + text @MENUS_LIGHTNING + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 365 170 15 + font 2 + textscale 0.8 + textalignx 170 + textaligny -5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_A_FORCE + + mouseEnter + { + show smallhighlight13 + } + mouseExit + { + hide smallhighlight13 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor force_submenu forecolor 1 .682 0 1 ; + setitemcolor lightmenubutton forecolor 1 1 1 1 ; + + show setup_background; + + hide gamedesc ; + show light_desc ; + } + } + + itemDef + { + name light_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/mp/NEW_f_icon_dk_l1" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group gamedesc + name light_desc + text @MENUS_OF_EFFECT_LIVING_PERSONS + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + // RAGE FORCE DESC + + itemDef + { + name ragemenubutton + group force_submenu + text @MENUS_RAGE_1 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 380 170 15 + font 2 + textscale 0.8 + textalignx 170 + textaligny -5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_A_FORCE + + mouseEnter + { + show smallhighlight14 + } + mouseExit + { + hide smallhighlight14 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor force_submenu forecolor 1 .682 0 1 ; + setitemcolor ragemenubutton forecolor 1 1 1 1 ; + + show setup_background; + + hide gamedesc ; + show rage_desc ; + } + } + + itemDef + { + name rage_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/mp/NEW_f_icon_dk_rage" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group gamedesc + name rage_desc + text @MENUS_DURATION_VARIABLE_10 + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + // TEAM POWER FORCE DESC + + itemDef + { + name powermenubutton + group force_submenu + text @MENUS_TEAM_POWER_1 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 395 170 15 + font 2 + textscale 0.8 + textalignx 170 + textaligny -5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_A_FORCE + + mouseEnter + { + show smallhighlight15 + } + mouseExit + { + hide smallhighlight15 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor force_submenu forecolor 1 .682 0 1 ; + setitemcolor powermenubutton forecolor 1 1 1 1 ; + + show setup_background; + + hide gamedesc ; + show power_desc ; + } + } + + itemDef + { + name power_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/mp/NEW_f_icon_dk_forceother" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group gamedesc + name power_desc + text @MENUS_EFFECT_JEDI_ALLIES_NEFFECT + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + } +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/base/ui/jamp/rules_games.menu b/base/ui/jamp/rules_games.menu new file mode 100644 index 0000000..8fe735c --- /dev/null +++ b/base/ui/jamp/rules_games.menu @@ -0,0 +1,963 @@ +//---------------------------------------------------------------------------------------------- +// RULES +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "rulesMenu_games" + fullScreen MENU_TRUE + rect 0 0 640 480 // Size and position of the menu + visible 0 + focusColor 1 1 1 1 // Focus color for text and items + descX 320 + descY 424 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + hide gamedesc ; + show ffa_desc ; + + setitemcolor game_submenu forecolor 1 .682 0 1; + setitemcolor ffamenubutton forecolor 1 1 1 1 ; + } + + onESC + { + play "sound/interface/button1.wav" ; + + close "rulesMenu_games" ; + open "rulesMenu" ; + } + + //---------------------------------------------------------------------------------------------- + // + // MENU BACKGROUND + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 107 8 428 112 + background "gfx/menus/jediacademy" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name left_frame + group lf_fr + style WINDOW_STYLE_SHADER + rect 0 50 320 160 + background "gfx/menus/menu_boxes_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name right_frame + group rt_fr + style WINDOW_STYLE_SHADER + rect 320 50 320 160 + background "gfx/menus/menu_boxes_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + //---------------------------------------------------------------------------------------------- + // + // TOP MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + + // Big button "NEW" + itemDef + { + name newgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 7 126 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 7 126 130 24 + text @MENUS_PLAY + descText @MENUS_START_PLAYING_NOW + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show newgamebutton_glow + } + mouseExit + { + hide newgamebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open multiplayermenu + } + } + + // Big button "PLAYER PROFILE" + itemDef + { + name profilebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 170 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name profilebutton + group toprow + text @MENUS_PROFILE + descText @MENUS_PROFILE_DESC + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 126 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show profilebutton_glow + } + mouseExit + { + hide profilebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open playerMenu + } + } + + // Big button "CONTROLS" + itemDef + { + name controlsbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 340 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name controlsbutton + group toprow + text @MENUS_CONTROLS2 + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show controlsbutton_glow + } + mouseExit + { + hide controlsbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open controlsMenu ; + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 502 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name setupbutton + group toprow + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 502 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show setupbutton_glow + } + mouseExit + { + hide setupbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open setup_menu + } + } + + //---------------------------------------------------------------------------------------------- + // + // OTHER MAIN MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + // Credits hidden button + itemDef + { + name creditsbutton + group othermain +// text @CREDITS + descText @MENUS_SHOW_GAME_CREDITS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 200 144 256 256 + 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 + { + } + mouseExit + { + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open creditsMenu + } + } + + // BACK button + itemDef + { + name backbutton + group fade_buttons + text @MENUS_BACK + descText @MENUS_BACKTORULES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 59 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 30 441 190 30 + } + mouseExit + { + hide button_glow + } + + action + { + play "sound/interface/esc.wav" ; + close all ; + open rulesMenu + } + + } + + // EXIT button in lower left corner + itemDef + { + name exitgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 255 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 @MENUS_EXIT + descText @MENUS_LEAVE_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 255 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 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 + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name game_rulesheader + group rulesheader + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_GAME_RULES_TITLE + rect 100 164 440 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + // Main highlights + itemDef + { + group mainhighlight + name mainhighlight1 + style WINDOW_STYLE_SHADER + rect 40 185 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group mainhighlight + name mainhighlight2 + style WINDOW_STYLE_SHADER + rect 40 215 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group mainhighlight + name mainhighlight3 + style WINDOW_STYLE_SHADER + rect 40 245 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group mainhighlight + name mainhighlight4 + style WINDOW_STYLE_SHADER + rect 40 275 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group mainhighlight + name mainhighlight5 + style WINDOW_STYLE_SHADER + rect 40 305 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group mainhighlight + name mainhighlight6 + style WINDOW_STYLE_SHADER + rect 40 335 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group mainhighlight + name mainhighlight7 + style WINDOW_STYLE_SHADER + rect 40 365 170 30 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + //---------------------------------------------------------------------------------------------- + // + // GAME RULES + // + //---------------------------------------------------------------------------------------------- + // ffa button + itemDef + { + name ffamenubutton + group game_submenu + text @MENUS_FFA_CAPS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 185 170 30 + font 2 + textscale 0.8 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 0 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_FREE_FOR_ALL_GAME_RULES + + mouseEnter + { + show mainhighlight1 + } + mouseExit + { + hide mainhighlight1 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor game_submenu forecolor 1 .682 0 1; + setitemcolor ffamenubutton forecolor 1 1 1 1 ; + + hide gamedesc ; + show ffa_desc ; + } + } + + + // ffa button + itemDef + { + name duelmenubutton + group game_submenu + text @MENUS_DUEL_CAPS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 215 170 30 + font 2 + textscale 0.8 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 0 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DUEL_GAMETYPE + + mouseEnter + { + show mainhighlight2 + } + mouseExit + { + hide mainhighlight2 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor game_submenu forecolor 1 .682 0 1; + setitemcolor duelmenubutton forecolor 1 1 1 1 ; + + hide gamedesc ; + show duel_desc ; + } + } + + itemDef + { + name pduelmenubutton + group game_submenu + text @MENUS_POWERDUEL_CAPS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 245 170 30 + font 2 + textscale 0.8 + textalignx 170 + textaligny 5 + textstyle 0 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_POWERDUEL_GAME_RULES + + mouseEnter + { + show mainhighlight3 + } + mouseExit + { + hide mainhighlight3 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor game_submenu forecolor 1 .682 0 1; + setitemcolor pduelmenubutton forecolor 1 1 1 1 ; + + hide gamedesc ; + show pduel_desc ; + } + } + + itemDef + { + name teamffamenubutton + group game_submenu + text @MENUS_TEAM_FFA_CAPS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 275 170 30 + font 2 + textscale 0.8 + textalignx 170 + textaligny 5 + textstyle 0 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_TEAM_FFA_GAMETYPE + + mouseEnter + { + show mainhighlight4 + } + mouseExit + { + hide mainhighlight4 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor game_submenu forecolor 1 .682 0 1; + setitemcolor teamffamenubutton forecolor 1 1 1 1 ; + + hide gamedesc ; + show teamffa_desc ; + } + } + + // force button + itemDef + { + name ctfmenubutton + group game_submenu + text @MENUS_CTF_CAPS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 305 170 30 + font 2 + textscale 0.8 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 0 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CAPTURE_THE_FLAG_RULES + + mouseEnter + { + show mainhighlight5 + } + mouseExit + { + hide mainhighlight5 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor game_submenu forecolor 1 .682 0 1; + setitemcolor ctfmenubutton forecolor 1 1 1 1 ; + + hide gamedesc ; + show ctf_desc ; + } + } + + // force button + itemDef + { + name siegemenubutton + group game_submenu + text @MENUS_SIEGE_CAPS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 335 170 30 + font 2 + textscale 0.8 + textalignx 170 + textaligny 5 + textalign ITEM_ALIGN_RIGHT + textstyle 0 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_SIEGE_GAME_RULES + + mouseEnter + { + show mainhighlight6 + } + mouseExit + { + hide mainhighlight6 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor game_submenu forecolor 1 .682 0 1 ; + setitemcolor siegemenubutton forecolor 1 1 1 1 ; + + hide gamedesc ; + show siege_desc ; + } + } + + itemDef + { + name setup_background + group none + style WINDOW_STYLE_FILLED + rect 225 183 370 230 + backcolor 0 0 .6 .5 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .6 1 + visible 1 + decoration + } + itemDef + { + group gamedesc + name duel_desc + text @MENUS_THE_GAME_OF_DUEL_IS_ALSO + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 187 360 225 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 12 + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + itemDef + { + group gamedesc + name teamffa_desc + text @MENUS_THIS_GAME_PITS_TWO_JEDI + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 187 360 225 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 12 + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + itemDef + { + group gamedesc + name ctf_desc + text @MENUS_IN_CAPTURE_THE_FLAG_CTF + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 187 360 225 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 12 + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + itemDef + { + group gamedesc + name siege_desc + text @MENUS_SIEGE_GAME_RULES_DESC + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 187 360 225 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 12 + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + itemDef + { + group gamedesc + name ffa_desc + text @MENUS_THIS_GAME_IS_BEST_SUMMED + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 187 360 225 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 12 + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + itemDef + { + group gamedesc + name pduel_desc + text @MENUS_POWERDUEL_GAME_RULES_DESC + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 187 360 225 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 12 + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + } +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/base/ui/jamp/rules_items.menu b/base/ui/jamp/rules_items.menu new file mode 100644 index 0000000..151a25a --- /dev/null +++ b/base/ui/jamp/rules_items.menu @@ -0,0 +1,1276 @@ +//---------------------------------------------------------------------------------------------- +// RULES +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "rulesMenu_items" + fullScreen MENU_TRUE + rect 0 0 640 480 // Size and position of the menu + visible 0 + focusColor 1 1 1 1 // Focus color for text and items + descX 320 + descY 424 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + hide gamedesc ; + show medpac_desc ; + + setitemcolor game_submenu forecolor 1 .682 0 1 ; + setitemcolor medpacmenubutton forecolor 1 1 1 1 ; + } + + onESC + { + play "sound/interface/button1.wav" ; + + close "rulesMenu_items" ; + open "rulesMenu" ; + } + + //---------------------------------------------------------------------------------------------- + // + // MENU BACKGROUND + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 107 8 428 112 + background "gfx/menus/jediacademy" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name left_frame + group lf_fr + style WINDOW_STYLE_SHADER + rect 0 50 320 160 + background "gfx/menus/menu_boxes_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name right_frame + group rt_fr + style WINDOW_STYLE_SHADER + rect 320 50 320 160 + background "gfx/menus/menu_boxes_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + //---------------------------------------------------------------------------------------------- + // + // TOP MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + + // Big button "NEW" + itemDef + { + name newgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 7 126 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 7 126 130 24 + text @MENUS_PLAY + descText @MENUS_START_PLAYING_NOW + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show newgamebutton_glow + } + mouseExit + { + hide newgamebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open multiplayermenu + } + } + + // Big button "PLAYER PROFILE" + itemDef + { + name profilebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 170 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name profilebutton + group toprow + text @MENUS_PROFILE + descText @MENUS_PROFILE_DESC + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 126 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show profilebutton_glow + } + mouseExit + { + hide profilebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open playerMenu + } + } + + + // Big button "CONTROLS" + itemDef + { + name controlsbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 340 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name controlsbutton + group toprow + text @MENUS_CONTROLS2 + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show controlsbutton_glow + } + mouseExit + { + hide controlsbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open controlsMenu ; + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 502 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name setupbutton + group toprow + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 502 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show setupbutton_glow + } + mouseExit + { + hide setupbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open setup_menu + } + } + + //---------------------------------------------------------------------------------------------- + // + // OTHER MAIN MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + // Credits hidden button + itemDef + { + name creditsbutton + group othermain +// text @CREDITS + descText @MENUS_SHOW_GAME_CREDITS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 200 144 256 256 + font 2 + textscale 1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textalignx 46 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 0 + + mouseEnter + { + } + mouseExit + { + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open creditsMenu + } + } + + // BACK button + itemDef + { + name backbutton + group fade_buttons + text @MENUS_BACK + descText @MENUS_BACKTORULES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 59 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 30 441 190 30 + } + mouseExit + { + hide button_glow + } + + action + { + play "sound/interface/esc.wav" ; + close all ; + open rulesMenu + } + + } + + // EXIT button in lower left corner + itemDef + { + name exitgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 255 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 @MENUS_EXIT + descText @MENUS_LEAVE_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 255 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 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 + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name game_rulesheader + group rulesheader + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_ITEM_RULES_TITLE + rect 100 164 440 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + // Main highlights + itemDef + { + group mainhighlight + name mainhighlight1 + style WINDOW_STYLE_SHADER + rect 40 185 170 20 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group mainhighlight + name mainhighlight2 + style WINDOW_STYLE_SHADER + rect 40 205 170 20 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group mainhighlight + name mainhighlight3 + style WINDOW_STYLE_SHADER + rect 40 225 170 20 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group mainhighlight + name mainhighlight4 + style WINDOW_STYLE_SHADER + rect 40 245 170 20 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group mainhighlight + name mainhighlight5 + style WINDOW_STYLE_SHADER + rect 40 265 170 20 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group mainhighlight + name mainhighlight6 + style WINDOW_STYLE_SHADER + rect 40 285 170 20 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group mainhighlight + name mainhighlight7 + style WINDOW_STYLE_SHADER + rect 40 305 170 20 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group mainhighlight + name mainhighlight8 + style WINDOW_STYLE_SHADER + rect 40 325 170 20 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group mainhighlight + name mainhighlight9 + style WINDOW_STYLE_SHADER + rect 40 345 170 20 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + //---------------------------------------------------------------------------------------------- + // + // ITEM RULES + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name medpacmenubutton + group game_submenu + text @MENUS_MEDPAC + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 185 170 20 + font 2 + textscale 0.8 + textalignx 170 + textaligny -1 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_ITEM_TYPE + + mouseEnter + { + show mainhighlight1 + } + mouseExit + { + hide mainhighlight1 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor game_submenu forecolor 1 .682 0 1 ; + setitemcolor medpacmenubutton forecolor 1 1 1 1 ; + + hide gamedesc ; + show medpac_desc ; + } + } + + itemDef + { + name bactamenubutton + group game_submenu + text @MENUS_BACTA_CAPS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 205 170 20 + font 2 + textscale 0.8 + textalignx 170 + textaligny -1 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_ITEM_TYPE + + mouseEnter + { + show mainhighlight2 + } + mouseExit + { + hide mainhighlight2 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor game_submenu forecolor 1 .682 0 1 ; + setitemcolor bactamenubutton forecolor 1 1 1 1 ; + + hide gamedesc ; + show bacta_desc ; + } + } + + itemDef + { + name seekermenubutton + group game_submenu + text @MENUS_SEEKER_CAPS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 225 170 20 + font 2 + textscale 0.8 + textalignx 170 + textaligny -1 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_ITEM_TYPE + + mouseEnter + { + show mainhighlight3 + } + mouseExit + { + hide mainhighlight3 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor game_submenu forecolor 1 .682 0 1 ; + setitemcolor seekermenubutton forecolor 1 1 1 1 ; + + hide gamedesc ; + show seeker_desc ; + } + } + + itemDef + { + name sentrymenubutton + group game_submenu + text @MENUS_SENTRY_CAPS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 245 170 20 + font 2 + textscale 0.8 + textalignx 170 + textaligny -1 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_ITEM_TYPE + + mouseEnter + { + show mainhighlight4 + } + mouseExit + { + hide mainhighlight4 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor game_submenu forecolor 1 .682 0 1 ; + setitemcolor sentrymenubutton forecolor 1 1 1 1 ; + + hide gamedesc ; + show sentry_desc ; + } + } + + itemDef + { + name ewebmenubutton + group game_submenu + text @MENUS_EWEB_CAPS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 265 170 20 + font 2 + textscale 0.8 + textalignx 170 + textaligny -1 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_ITEM_TYPE + + mouseEnter + { + show mainhighlight5 + } + mouseExit + { + hide mainhighlight5 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor game_submenu forecolor 1 .682 0 1 ; + setitemcolor ewebmenubutton forecolor 1 1 1 1 ; + + hide gamedesc ; + show eweb_desc ; + } + } + + itemDef + { + name stationarymenubutton + group game_submenu + text @MENUS_STATIONARY_SHIELD_CAPS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 285 170 20 + font 2 + textscale 0.8 + textalignx 170 + textaligny -1 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_ITEM_TYPE + + mouseEnter + { + show mainhighlight6 + } + mouseExit + { + hide mainhighlight6 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor game_submenu forecolor 1 .682 0 1 ; + setitemcolor stationarymenubutton forecolor 1 1 1 1 ; + + hide gamedesc ; + show stationary_desc ; + } + } + + itemDef + { + name personalmenubutton + group game_submenu + text @MENUS_PERSONAL_SHIELD_ARMOR + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 305 170 20 + font 2 + textscale 0.8 + textalignx 170 + textaligny -1 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_ITEM_TYPE + + mouseEnter + { + show mainhighlight7 + } + mouseExit + { + hide mainhighlight7 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor game_submenu forecolor 1 .682 0 1 ; + setitemcolor personalmenubutton forecolor 1 1 1 1 ; + + hide gamedesc ; + show personal_desc ; + } + } + + itemDef + { + name cloakmenubutton + group game_submenu + text @MENUS_CLOAK_CAPS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 325 170 20 + font 2 + textscale 0.8 + textalignx 170 + textaligny -1 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_ITEM_TYPE + + mouseEnter + { + show mainhighlight8 + } + mouseExit + { + hide mainhighlight8 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor game_submenu forecolor 1 .682 0 1 ; + setitemcolor cloakmenubutton forecolor 1 1 1 1 ; + + hide gamedesc ; + show cloak_desc ; + } + } + + itemDef + { + name jetpackmenubutton + group game_submenu + text @MENUS_JETPACK_CAPS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 345 170 20 + font 2 + textscale 0.8 + textalignx 170 + textaligny -1 + textalign ITEM_ALIGN_RIGHT + textstyle 3 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_ITEM_TYPE + + mouseEnter + { + show mainhighlight9 + } + mouseExit + { + hide mainhighlight9 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor game_submenu forecolor 1 .682 0 1 ; + setitemcolor jetpackmenubutton forecolor 1 1 1 1 ; + + hide gamedesc ; + show jetpack_desc ; + } + } + + itemDef + { + name setup_background + group none + style WINDOW_STYLE_FILLED + rect 225 183 370 230 + backcolor 0 0 .6 .5 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .6 1 + visible 1 + decoration + } + + itemDef + { + name medpac_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/hud/i_icon_medkit" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name medpac_desc + text @MENUS_THE_MEDPAC_IS_A_SMALL + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 12 + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + itemDef + { + name bacta_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 354 185 56 56 + background "gfx/hud/i_icon_bacta" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name bacta_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 410 185 56 56 + background "gfx/hud/i_icon_big_bacta" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name bacta_desc + text @MENUS_BACTA_CANISTERS_ARE_PORTABLE + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 12 + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + itemDef + { + name seeker_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/hud/i_icon_seeker" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name seeker_desc + text @MENUS_AN_ATTACK_DRONE_SIMILAR + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 12 + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + itemDef + { + name sentry_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/hud/i_icon_sentrygun" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name sentry_desc + text @MENUS_THIS_DEADLY_WEAPON_IS + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 12 + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + itemDef + { + name eweb_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/hud/i_icon_eweb" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name eweb_desc + text @MENUS_EWEB_DESC + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 12 + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + itemDef + { + name stationary_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/hud/i_icon_shieldwall" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name stationary_desc + text @MENUS_THIS_STATIONARY_ENERGY + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 12 + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + itemDef + { + name personal_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 360 185 120 56 + background "gfx/hud/i_icon_psd" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name personal_desc + text @MENUS_THE_PERSONAL_SHIELD_IS + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 12 + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + itemDef + { + name cloak_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/hud/i_icon_cloak" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name cloak_desc + text @MENUS_CLOAK_DESC + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 12 + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + itemDef + { + name jetpack_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/hud/i_icon_jetpack" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name jetpack_desc + text @MENUS_JETPACK_DESC + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 12 + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + } +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/base/ui/jamp/rules_moves.menu b/base/ui/jamp/rules_moves.menu new file mode 100644 index 0000000..9c36e8f --- /dev/null +++ b/base/ui/jamp/rules_moves.menu @@ -0,0 +1,461 @@ +//---------------------------------------------------------------------------------------------- +// +// MP - Rules Moves +// +//---------------------------------------------------------------------------------------------- +{ + + menuDef + { + name "rulesMenu_moves" + 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 320 + descY 424 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onESC + { + play "sound/interface/esc.wav" + close "rulesMenu_moves" ; + open "rulesMenu" ; + } + + onOpen + { + setcvar "ui_movesflag" 0 + setcvar "ui_move_title" 2 + uiScript setMoveCharacter + uiScript setMovesListDefault + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + forecolor 1 1 1 1 + visible 1 + decoration + } + + + itemDef + { + name left_frame + group lf_fr + style WINDOW_STYLE_SHADER + rect 0 50 320 160 + background "gfx/menus/menu_boxes_left" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + +//---------------------------------------------------------------------------------------------- +// MOVES BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name game_rulesheader + group rulesheader + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_MOVES + rect 100 5 440 24 + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// DATA +//---------------------------------------------------------------------------------------------- + itemDef + { + name move_titles_box + group none + style WINDOW_STYLE_FILLED + rect 25 47 255 23 + backcolor 0 0 .6 1 + visible 1 + decoration + } + itemDef + { + name move_titles_outline + group none + style WINDOW_STYLE_EMPTY + rect 24 68 255 30 + border 1 + bordersize 1 + bordercolor 0 0 .6 1 + visible 1 + decoration + } + + itemDef + { + name move_titles_title + type ITEM_TYPE_TEXT + rect 25 47 255 23 + text @MENUS_MOVE_TYPES + font 3 + forecolor .549 .854 1 1 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 125 + visible 1 + decoration + } + + itemDef + { + name move_titles + group none + text " " + descText @MENUS_CHOOSE_MOVE_DESC + type ITEM_TYPE_MULTI + style WINDOW_STYLE_EMPTY + rect 25 77 340 14 + font 2 + textscale .8 + textaligny -5 + textalign ITEM_ALIGN_LEFT + textstyle .8 + textalignx 0 + backcolor 0 0 0 0 + forecolor .615 .615 .956 1 + feeder 42 //FEEDER_MOVES_TITLES + cvar "ui_move_title" + cvarFloatList + { + "@MENUS_ACROBATICS" 0 + "@MENUS_SINGLE_FAST" 1 + "@MENUS_SINGLE_MEDIUM" 2 + "@MENUS_SINGLE_STRONG" 3 + "@MENUS_DUAL_SABERS" 4 + "@MENUS_SABER_STAFF" 5 + } + + + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 0 73 320 24 + } + mouseExit + { + hide button_glow + } + action + { + uiScript resetMovesList + play "sound/interface/button1.wav" + } + } + + itemDef + { + name moveslist_title_box + group none + style WINDOW_STYLE_FILLED + rect 26 110 253 23 + backcolor 0 0 .6 1 + visible 1 + decoration + } + + itemDef + { + name moveslist_title + type ITEM_TYPE_TEXT + rect 35 108 253 26 + text @MENUS_MOVES + font 3 + forecolor .549 .854 1 1 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 125 + visible 1 + decoration + } + + itemDef + { + name moveslist + group none + rect 25 130 253 250 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 120 + elementheight 16 + font 2 + textscale 0.7 + border 1 + bordersize 1 + bordercolor 0 0 .8 1 + forecolor .615 .615 .956 1 + backcolor 0 0 .5 .25 + outlinecolor .5 .5 .5 .5 + elementtype LISTBOX_TEXT + feeder 41 + desctext @MENUS_MOVE_DESC2 + notselectable + visible 1 + columns 1 2 55 225 + mouseEnter + { + setitemcolor moveslist bordercolor 1 1 1 1 + } + mouseExit + { + setitemcolor moveslist bordercolor 0 0 .8 1 + } + doubleclick + { + play sound/interface/button1.wav + } + } + + itemDef + { + name character_box + group none + style WINDOW_STYLE_EMPTY + rect 285 38 330 370 + border 1 + bordersize 2 + bordercolor 0 0 .6 1 + visible 1 + decoration + } + + itemDef + { + name character + group models + type ITEM_TYPE_MODEL + rect 295 -30 300 340 + + model_g2anim "BOTH_ROLL_F" + asset_model "ui_char_model" + model_angle 180 + model_g2mins -20 -15 -10 + model_g2maxs 20 15 45 + model_rotation 50 + model_fovx 50 + model_fovy 50 + isCharacter 1 + isSaber 1 + visible 1 + decoration + + } + + itemDef + { + name item_desc + type ITEM_TYPE_TEXTSCROLL + rect 295 300 320 90 + text " " + cvar ui_move_desc + font 4 + forecolor .549 .854 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 6 + visible 1 + lineHeight 13 + + } + + +//---------------------------------------------------------------------------------------------- +// OTHER MAIN MENU BUTTONS +//---------------------------------------------------------------------------------------------- + // Credits hidden button + itemDef + { + name creditsbutton + group othermain +// text @CREDITS + descText @MENUS_SHOW_GAME_CREDITS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 200 144 256 256 + font 2 + textscale 1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textalignx 46 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 0 + + mouseEnter + { + } + mouseExit + { + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open creditsMenu + } + } + + // BACK button + itemDef + { + name backbutton + group fade_buttons + text @MENUS_BACK + descText @MENUS_BACKTORULES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 59 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 30 441 190 30 + } + mouseExit + { + hide button_glow + } + + action + { + play "sound/interface/esc.wav" ; + close all ; + open rulesMenu + } + + } + + // EXIT button in lower left corner + itemDef + { + name exitgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 255 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 @MENUS_EXIT + descText @MENUS_LEAVE_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 255 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show exitgamebutton_glow + } + mouseExit + { + hide exitgamebutton_glow + } + action + { + play "sound/weapons/saber/saberoff.mp3"; + close all ; + open quitMenu + } + } + + } +} diff --git a/base/ui/jamp/rules_weapons.menu b/base/ui/jamp/rules_weapons.menu new file mode 100644 index 0000000..a864aa7 --- /dev/null +++ b/base/ui/jamp/rules_weapons.menu @@ -0,0 +1,1612 @@ +//---------------------------------------------------------------------------------------------- +// RULES +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "rulesMenu_weapons" + fullScreen MENU_TRUE + rect 0 0 640 480 // Size and position of the menu + visible 0 + focusColor 1 1 1 1 // Focus color for text and items + descX 320 + descY 424 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + hide gamedesc ; + show stun_desc ; + + setitemcolor weapon_submenu forecolor 1 .682 0 1 ; + setitemcolor stunmenubutton forecolor 1 1 1 1 ; + } + + onESC + { + play "sound/interface/button1.wav" ; + + close "rulesMenu_weapons" ; + open "rulesMenu" ; + } + + //---------------------------------------------------------------------------------------------- + // + // MENU BACKGROUND + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 107 8 428 112 + background "gfx/menus/jediacademy" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name left_frame + group lf_fr + style WINDOW_STYLE_SHADER + rect 0 50 320 160 + background "gfx/menus/menu_boxes_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name right_frame + group rt_fr + style WINDOW_STYLE_SHADER + rect 320 50 320 160 + background "gfx/menus/menu_boxes_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + //---------------------------------------------------------------------------------------------- + // + // TOP MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + // Big button "NEW" + itemDef + { + name newgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 7 126 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 7 126 130 24 + text @MENUS_PLAY + descText @MENUS_START_PLAYING_NOW + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show newgamebutton_glow + } + mouseExit + { + hide newgamebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open multiplayermenu + } + } + + // Big button "PLAYER PROFILE" + itemDef + { + name profilebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 170 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name profilebutton + group toprow + text @MENUS_PROFILE + descText @MENUS_PROFILE_DESC + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 126 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show profilebutton_glow + } + mouseExit + { + hide profilebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open playerMenu + } + } + + + // Big button "CONTROLS" + itemDef + { + name controlsbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 340 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name controlsbutton + group toprow + text @MENUS_CONTROLS2 + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show controlsbutton_glow + } + mouseExit + { + hide controlsbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open controlsMenu ; + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 502 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name setupbutton + group toprow + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 502 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show setupbutton_glow + } + mouseExit + { + hide setupbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open setup_menu + } + } + + //---------------------------------------------------------------------------------------------- + // + // OTHER MAIN MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + // Credits hidden button + itemDef + { + name creditsbutton + group othermain +// text @CREDITS + descText @MENUS_SHOW_GAME_CREDITS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 200 144 256 256 + font 2 + textscale 1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textalignx 46 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 0 + + mouseEnter + { + } + mouseExit + { + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open creditsMenu + } + } + + // BACK button + itemDef + { + name backbutton + group fade_buttons + text @MENUS_BACK + descText @MENUS_BACKTORULES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 59 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 30 441 190 30 + } + mouseExit + { + hide button_glow + } + + action + { + play "sound/interface/esc.wav" ; + close all ; + open rulesMenu + } + + } + + // EXIT button in lower left corner + itemDef + { + name exitgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 255 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 @MENUS_EXIT + descText @MENUS_LEAVE_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 255 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 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 + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name rules_title + group none + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_WEAPON_RULES_TITLE + rect 100 164 440 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + itemDef + { + name setup_background + group none + style WINDOW_STYLE_FILLED + rect 225 183 370 230 + backcolor 0 0 .6 .5 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .6 1 + visible 1 + decoration + } + + // Main small highlights + itemDef + { + group smallhighlight + name smallhighlight1 + style WINDOW_STYLE_SHADER + rect 40 185 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group smallhighlight + name smallhighlight2 + style WINDOW_STYLE_SHADER + rect 40 200 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group smallhighlight + name smallhighlight3 + style WINDOW_STYLE_SHADER + rect 40 215 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group smallhighlight + name smallhighlight4 + style WINDOW_STYLE_SHADER + rect 40 230 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group smallhighlight + name smallhighlight5 + style WINDOW_STYLE_SHADER + rect 40 245 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group smallhighlight + name smallhighlight6 + style WINDOW_STYLE_SHADER + rect 40 260 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group smallhighlight + name smallhighlight7 + style WINDOW_STYLE_SHADER + rect 40 275 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group smallhighlight + name smallhighlight8 + style WINDOW_STYLE_SHADER + rect 40 290 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group smallhighlight + name smallhighlight9 + style WINDOW_STYLE_SHADER + rect 40 305 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group smallhighlight + name smallhighlight10 + style WINDOW_STYLE_SHADER + rect 40 320 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group smallhighlight + name smallhighlight11 + style WINDOW_STYLE_SHADER + rect 40 335 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group smallhighlight + name smallhighlight12 + style WINDOW_STYLE_SHADER + rect 40 350 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group smallhighlight + name smallhighlight13 + style WINDOW_STYLE_SHADER + rect 40 365 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group smallhighlight + name smallhighlight14 + style WINDOW_STYLE_SHADER + rect 40 380 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group smallhighlight + name smallhighlight15 + style WINDOW_STYLE_SHADER + rect 40 395 170 15 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// +// WEAPON RULES +// +//---------------------------------------------------------------------------------------------- + + // LIGHT SABER FORCE DESC + + itemDef + { + name sabermenubutton + group weapon_submenu + text @MENUS_LIGHTSABER_CAPS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 185 170 15 + font 2 + textscale 0.8 + textalignx 170 + textaligny -5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_A_WEAPON + + mouseEnter + { + show smallhighlight1 + } + mouseExit + { + hide smallhighlight1 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor weapon_submenu forecolor 1 .682 0 1 ; + setitemcolor sabermenubutton forecolor 1 1 1 1 ; + + hide gamedesc ; + show saber_desc ; + } + } + + itemDef + { + name saber_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/hud/w_icon_lightsaber" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name saber_desc + text @MENUS_AN_ELEGANT_WEAPON_FOR + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 12 + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + lineHeight 15 + maxLineChars 45 + } + + // BLASTER PISTOL + + itemDef + { + name pistolmenubutton + group weapon_submenu + text @MENUS_BLASTER_PISTOL + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 200 170 15 + font 2 + textscale 0.8 + textalignx 170 + textaligny -5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_A_WEAPON + + mouseEnter + { + show smallhighlight2 + } + mouseExit + { + hide smallhighlight2 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor weapon_submenu forecolor 1 .682 0 1 ; + setitemcolor pistolmenubutton forecolor 1 1 1 1 ; + + hide gamedesc ; + show pistol_desc ; + } + } + + itemDef + { + name pistol_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/hud/w_icon_blaster_pistol" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name pistol_desc + text @MENUS_BLASTER_PISTOL_DESC + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 12 + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + lineHeight 15 + maxLineChars 45 + } + + // BLASTER RIFLE DESC + + itemDef + { + name briflemenubutton + group weapon_submenu + text @MENUS_BLASTER_RIFLE + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 215 170 15 + font 2 + textscale 0.8 + textalignx 170 + textaligny -5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_A_WEAPON + + mouseEnter + { + show smallhighlight3 + } + mouseExit + { + hide smallhighlight3 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor weapon_submenu forecolor 1 .682 0 1 ; + setitemcolor briflemenubutton forecolor 1 1 1 1 ; + + hide gamedesc ; + show brifle_desc ; + } + } + + itemDef + { + name brifle_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/hud/w_icon_blaster" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name brifle_desc + text @MENUS_THE_PRIMARY_WEAPON_OF + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 12 + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + // DISTRUPTER RIFLE DESC + + itemDef + { + name driflemenubutton + group weapon_submenu + text @MENUS_DISRUPTOR + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 230 170 15 + font 2 + textscale .8 + textalignx 170 + textaligny -5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + descText @MENUS_DESCRIPTION_OF_A_WEAPON + visible 1 + + mouseEnter + { + show smallhighlight4 + } + mouseExit + { + hide smallhighlight4 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor weapon_submenu forecolor 1 .682 0 1 ; + setitemcolor driflemenubutton forecolor 1 1 1 1 ; + + hide gamedesc ; + show drifle_desc ; + } + } + + itemDef + { + name drifle_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/hud/w_icon_disruptor" + forecolor 1 1 1 1 + decoration + } + + itemDef + { + name drifle_desc + group gamedesc + text @MENUS_THIS_NEFARIOUS_WEAPON + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 12 + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + // BOW CASTER DESC + + itemDef + { + name bowcastmenubutton + group weapon_submenu + text @MENUS_BOWCASTER_CAPS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 245 170 15 + font 2 + textscale 0.8 + textalignx 170 + textaligny -5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_A_WEAPON + visible 1 + + mouseEnter + { + show smallhighlight5 + } + mouseExit + { + hide smallhighlight5 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor weapon_submenu forecolor 1 .682 0 1 ; + setitemcolor bowcastmenubutton forecolor 1 1 1 1 ; + + hide gamedesc ; + show bowcast_desc ; + } + } + + itemDef + { + name bowcast_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/hud/w_icon_bowcaster" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name bowcast_desc + text @MENUS_THIS_ARCHAIC_LOOKING + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 12 + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + // REPEATER + + itemDef + { + name repeatermenubutton + group weapon_submenu + text @MENUS_REPEATER + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 260 170 15 + font 2 + textscale 0.8 + textalignx 170 + textaligny -5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 0 + descText @MENUS_DESCRIPTION_OF_A_WEAPON + visible 1 + + mouseEnter + { + show smallhighlight6 + } + mouseExit + { + hide smallhighlight6 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor weapon_submenu forecolor 1 .682 0 1 ; + setitemcolor repeatermenubutton forecolor 1 1 1 1 ; + + hide gamedesc ; + show repeater_desc ; + } + } + + itemDef + { + name repeater_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/hud/w_icon_repeater" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name repeater_desc + text @MENUS_THIS_DESTRUCTIVE_PROJECTILE + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 12 + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + // DEMP 2 + + itemDef + { + name demp2menubutton + group weapon_submenu + text @MENUS_DEMP_2_1 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 275 170 15 + font 2 + textscale 0.8 + textalignx 170 + textaligny -5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_A_WEAPON + + mouseEnter + { + show smallhighlight7 + } + mouseExit + { + hide smallhighlight7 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor weapon_submenu forecolor 1 .682 0 1 ; + setitemcolor demp2menubutton forecolor 1 1 1 1 ; + + hide gamedesc ; + show demp2_desc ; + } + } + + itemDef + { + name demp2_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/hud/w_icon_demp2" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name demp2_desc + text @MENUS_COMMONLY_REFERRED_TO + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 12 + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + // Flechette + + itemDef + { + name flechmenubutton + group weapon_submenu + text @MENUS_FLECHETTE_1 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 290 170 15 + font 2 + textscale 0.8 + textalignx 170 + textaligny -5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_A_WEAPON + + mouseEnter + { + show smallhighlight8 + } + mouseExit + { + hide smallhighlight8 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor weapon_submenu forecolor 1 .682 0 1 ; + setitemcolor flechmenubutton forecolor 1 1 1 1 ; + + hide gamedesc ; + show flechette_desc ; + } + } + + itemDef + { + name flechette_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/hud/w_icon_flechette" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name flechette_desc + text @MENUS_WIDELY_USED_BY_THE_CORPORATE + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 12 + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + // Concussion Rifle + + itemDef + { + name concmenubutton + group weapon_submenu + text @MENUS_CONC_RIFLE + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 305 170 15 + font 2 + textscale 0.8 + textalignx 170 + textaligny -5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_A_WEAPON + + mouseEnter + { + show smallhighlight9 + } + mouseExit + { + hide smallhighlight9 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor weapon_submenu forecolor 1 .682 0 1 ; + setitemcolor concmenubutton forecolor 1 1 1 1 ; + + hide gamedesc ; + show conc_desc ; + } + } + + itemDef + { + name conc_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/hud/w_icon_c_rifle" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name conc_desc + text @MENUS_CONC_RIFLE_DESC + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 12 + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + // MERRSONN + + itemDef + { + name merrmenubutton + group weapon_submenu + text @MENUS_MERRSONN + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 320 170 15 + font 2 + textscale 0.8 + textalignx 170 + textaligny -5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_A_WEAPON + + mouseEnter + { + show smallhighlight10 + } + mouseExit + { + hide smallhighlight10 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor weapon_submenu forecolor 1 .682 0 1 ; + setitemcolor merrmenubutton forecolor 1 1 1 1 ; + + hide gamedesc ; + show merr_desc ; + } + } + + itemDef + { + name merr_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/hud/w_icon_merrsonn" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name merr_desc + text @MENUS_THE_PLX_2M_IS_AN_EXTREMELY + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 12 + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + // THERMAL + + itemDef + { + name thermmenubutton + group weapon_submenu + text @MENUS_THERMAL_DETONATOR + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 335 170 15 + font 2 + textscale 0.8 + textalignx 170 + textaligny -5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_A_WEAPON + + mouseEnter + { + show smallhighlight11 + } + mouseExit + { + hide smallhighlight11 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor weapon_submenu forecolor 1 .682 0 1 ; + setitemcolor thermmenubutton forecolor 1 1 1 1 ; + + hide gamedesc ; + show therm_desc ; + } + } + + itemDef + { + name therm_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/hud/w_icon_thermal" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name therm_desc + text @MENUS_THE_THERMAL_DETONATOR + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 12 + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + // TRIP MINE + + itemDef + { + name tripmenubutton + group weapon_submenu + text @MENUS_TRIP_MINE + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 350 170 15 + font 2 + textscale 0.8 + textalignx 170 + textaligny -5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_A_WEAPON + + mouseEnter + { + show smallhighlight12 + } + mouseExit + { + hide smallhighlight12 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor weapon_submenu forecolor 1 .682 0 1 ; + setitemcolor tripmenubutton forecolor 1 1 1 1 ; + + hide gamedesc ; + show trip_desc ; + } + } + + itemDef + { + name trip_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/hud/w_icon_tripmine" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + group gamedesc + name trip_desc + text @MENUS_TRIP_MINES_CONSIST_OF + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 12 + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + + // DETPACK + + itemDef + { + name detpackmenubutton + group weapon_submenu + text @MENUS_DETPACK + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 40 365 170 15 + font 2 + textscale 0.8 + textalignx 170 + textaligny -5 + textstyle 3 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DESCRIPTION_OF_A_WEAPON + + mouseEnter + { + show smallhighlight13 + } + mouseExit + { + hide smallhighlight13 + } + action + { + play "sound/interface/button1.wav" ; + + setitemcolor weapon_submenu forecolor 1 .682 0 1 ; + setitemcolor detpackmenubutton forecolor 1 1 1 1 ; + + hide gamedesc ; + show detpack_desc ; + } + } + + itemDef + { + name detpack_desc + group gamedesc + style WINDOW_STYLE_SHADER + rect 382 185 56 56 + background "gfx/hud/w_icon_detpack" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + group gamedesc + name detpack_desc + text @MENUS_A_DETONATION_PACK_IS + type ITEM_TYPE_TEXTSCROLL + style WINDOW_STYLE_EMPTY + visible 0 + rect 235 254 360 148 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textaligny 12 + backcolor 0 0 1 0 + forecolor .549 .854 1 1 + + lineHeight 15 + maxLineChars 45 + } + } +} + diff --git a/base/ui/jamp/saber.menu b/base/ui/jamp/saber.menu new file mode 100644 index 0000000..9c6271b --- /dev/null +++ b/base/ui/jamp/saber.menu @@ -0,0 +1,1381 @@ +//---------------------------------------------------------------------------------------------- +// +// MP SABER CREATION MENU - called from main menu at the the start of a new game, +// and also when player is allowed to upgrade is style and choose a new saber +// +//---------------------------------------------------------------------------------------------- +{ + + menuDef + { + name "saberMenu" + 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 320 + descY 424 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + uiScript setsaberboxesandhilts + uiScript "getsabercvars" + uiScript "saber_hilt" + uiScript "saber_color" + uiScript "saber2_hilt" + uiScript "saber2_color" + setitemcolor typebut_single forecolor .65 .65 1 1 + setitemcolor typebut_dual forecolor .65 .65 1 1 + setitemcolor typebut_staff forecolor .65 .65 1 1 + uiScript getsaberhiltinfo + } + + onESC + { + play "sound/interface/menuroam.wav" + uiScript "updatesabercvars" + close saberMenu + open characterMenu + } + + +//---------------------------------------------------------------------------------------------- +// +// MENU BACKGROUND +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/sabermenu_back" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name box1 + group none + style WINDOW_STYLE_SHADER + rect 4 66 219 165 + background "gfx/menus/sabermenu_box" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name box2top + group none + style WINDOW_STYLE_SHADER + rect 212 66 219 60 + background "gfx/menus/sabermenu_box_top" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name box2middle + group none + style WINDOW_STYLE_SHADER + rect 212 126 219 0 + background "gfx/menus/sabermenu_box_middle" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name box2bottom + group none + style WINDOW_STYLE_SHADER + rect 212 126 219 60 + background "gfx/menus/sabermenu_box_bottom" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name box3top + group none + style WINDOW_STYLE_SHADER + rect 418 66 219 60 + background "gfx/menus/sabermenu_box_top" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name box3middle + group none + style WINDOW_STYLE_SHADER + rect 418 126 219 0 + background "gfx/menus/sabermenu_box_middle" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name box3bottom + group none + style WINDOW_STYLE_SHADER + rect 418 126 219 60 + background "gfx/menus/sabermenu_box_bottom" + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// +// TOP MAIN MENU BUTTONS +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name newgamebutton + group nbut + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 7 16 130 24 + text @MENUS_PLAY + descText @MENUS_START_PLAYING_NOW + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 7 14 130 30 + } + mouseExit + { + hide button_glow + } + action + { + close all ; + open multiplayermenu + } + } + +// Big button "PROFILE" + itemDef + { + name profilebutton + group lbut + text @MENUS_PROFILE + descText @MENUS_PROFILE_DESC + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 16 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + forecolor 1 1 1 1 + visible 1 + + mouseEnter + { + } + mouseExit + { + } + action + { + } + } + + // Big button "CONTROLS" + itemDef { + name controlsbutton + group cbut + text @MENUS_CONTROLS + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 16 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 340 14 130 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" + uiScript "updatesabercvars" + close all + open controlsMenu + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton + group sbut + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 502 16 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 502 14 130 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" + uiScript "updatesabercvars" + close all + open setupMenu + } + } + + +//---------------------------------------------------------------------------------------------- +// +// OTHER MAIN MENU BUTTONS +// +//---------------------------------------------------------------------------------------------- + + // EXIT button in lower left corner + itemDef + { + name exitgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 59 444 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name exitgamebutton + group exit + text @MENUS_EXIT + descText @MENUS_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 59 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show exitgamebutton_glow + } + mouseExit + { + hide exitgamebutton_glow + } + action + { + play "sound/weapons/saber/saberoff.mp3" + uiScript "updatesabercvars" + close all + open quitMenu + } + } + + itemDef + { + name left_frame + group lf_fr + style WINDOW_STYLE_SHADER + rect 0 -60 320 160 + background "gfx/menus/menu_boxes_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name right_frame + group rt_fr + style WINDOW_STYLE_SHADER + rect 320 -60 320 160 + background "gfx/menus/menu_boxes_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + //---------------------------------------------------------------------------------------------- + // + // SABER MENU specific stuff + // + //---------------------------------------------------------------------------------------------- + + // CREATION title + itemDef + { + name creation_title + group title + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_LIGHTSABER_CREATION + rect 100 54 440 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// SABER TYPE BUTTONS (standard, dual, two handed) +//---------------------------------------------------------------------------------------------- + itemDef + { + name typebut + group none + text @MENUS_SABER_TYPE + descText @MENUS_SABER_TYPE_DESC + style WINDOW_STYLE_EMPTY + rect 32 96 160 24 + font 3 + textscale 1 + textstyle 0 + textalignx 0 + textaligny 0 + textalign ITEM_ALIGN_LEFT + backcolor 0 0 0 0 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + itemDef + { + name typebut_single_glow + group none + style WINDOW_STYLE_SHADER + rect 32 132 180 16 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + + //cvarTest ui_saber_type + //showCvar { "single" } + } + + itemDef + { + name typebut_dual_glow + group none + style WINDOW_STYLE_SHADER + rect 32 152 180 16 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + + //cvarTest ui_saber_type + //showCvar { "dual" } + } + + itemDef + { + name typebut_staff_glow + group none + style WINDOW_STYLE_SHADER + rect 32 172 180 16 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + + //cvarTest ui_saber_type + //showCvar { "staff" } + } + + itemDef + { + name typebut_single + group none + text @MENUS_SINGLESABER + descText @MENUS_SINGLESABER_DESC + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 32 132 160 16 + font 4 + textscale 1 + textstyle 0 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny 0 + forecolor 1 1 1 1 + visible 1 + mouseEnter + { + show typebut_single_glow + } + mouseExit + { + hide typebut_single_glow + } + action + { + play "sound/interface/choose_saber.wav" + setcvar ui_saber_type "single" + uiScript "saber_type" + setcvar ui_saber "single_1" + setcvar ui_saber2 "none" + uiScript "saber_hilt" + uiScript "saber_color" + uiScript "saber2_hilt" + uiScript "saber2_color" + setitemcolor typebut_single forecolor 1 1 1 1 + setitemcolor typebut_dual forecolor .65 .65 1 1 + setitemcolor typebut_staff forecolor .65 .65 1 1 +// transition2 box2middle 212 126 219 0 20 5 +// transition2 box2bottom 212 126 219 60 20 5 + transition2 box3middle 418 126 219 0 20 5 + transition2 box3bottom 418 126 219 60 20 5 + show sabstyle + transition2 saber 12 "-80" 615 615 20 10 + } + } + + itemDef + { + name typebut_dual + group none + text @MENUS_DUALSABERS + descText @MENUS_DUALSABERS_DESC + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 32 152 160 16 + font 4 + textscale 1 + textstyle 0 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny 0 + forecolor 1 1 1 1 + visible 1 + mouseEnter + { + show typebut_dual_glow + } + mouseExit + { + hide typebut_dual_glow + } + action + { + play "sound/interface/choose_saber.wav" + setcvar ui_saber_type "dual" + uiScript "saber_type" + setcvar ui_saber "single_1" + setcvar ui_saber2 "single_1" + uiScript "saber_hilt" + uiScript "saber_color" + uiScript "saber2_hilt" + uiScript "saber2_color" + setitemcolor typebut_single forecolor .65 .65 1 1 + setitemcolor typebut_dual forecolor 1 1 1 1 + setitemcolor typebut_staff forecolor .65 .65 1 1 +// transition2 box2middle 212 126 219 44 20 5 +// transition2 box2bottom 212 170 219 60 20 5 + transition2 box3middle 418 126 219 44 20 5 + transition2 box3bottom 418 170 219 60 20 5 + hide sabstyle + transition2 saber 12 "-130" 615 615 20 5 + } + } + + itemDef + { + name typebut_staff + group none + text @MENUS_SABERSTAFF + descText @MENUS_SABERSTAFF_DESC + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 32 172 160 16 + font 4 + textscale 1 + textstyle 0 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny 0 + forecolor 1 1 1 1 + visible 1 + mouseEnter + { + show typebut_staff_glow + } + mouseExit + { + hide typebut_staff_glow + } + action + { + play "sound/interface/choose_saber.wav" + setcvar ui_saber_type "staff" + uiScript "saber_type" + setcvar ui_saber "dual_1" + setcvar ui_saber2 "none" + uiScript "saber_hilt" + uiScript "saber_color" + uiScript "saber2_hilt" + uiScript "saber2_color" + setitemcolor typebut_single forecolor .65 .65 1 1 + setitemcolor typebut_dual forecolor .65 .65 1 1 + setitemcolor typebut_staff forecolor 1 1 1 1 +// transition2 box2middle 212 126 219 44 20 5 +// transition2 box2bottom 212 170 219 60 20 5 + transition2 box3middle 418 126 219 44 20 5 + transition2 box3bottom 418 170 219 60 20 5 + hide sabstyle + transition2 saber 12 "-80" 615 615 20 10 + } + } + +//---------------------------------------------------------------------------------------------- +//HILTS +//---------------------------------------------------------------------------------------------- + itemDef + { + name hilttype + group none + text @MENUS_HILT1 + descText @MENUS_HILT1_DESC + style WINDOW_STYLE_EMPTY + rect 240 80 160 24 + font 3 + textscale .7 + textstyle 0 + textalignx 80 + textaligny 0 + textalign ITEM_ALIGN_CENTER + backcolor 0 0 0 0 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + // HILT BUTTON 1 - SINGLE + itemDef + { + name hiltbut + group none + rect 240 95 160 120 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_EMPTY + elementwidth 120 + elementheight 16 + font 4 + textaligny 16 + textscale 1 + border 1 + bordersize 1 + bordercolor 0 0 .8 1 + forecolor .615 .615 .956 1 + backcolor 0 0 .5 .25 + outlinecolor .5 .5 .5 .5 + elementtype LISTBOX_TEXT + feeder FEEDER_SABER_SINGLE_INFO + +// text @MENUS_HILT1 + descText @MENUS_HILT1_DESC + elementtype LISTBOX_TEXT + textalign ITEM_ALIGN_LEFT + + cvarTest ui_saber_type + hideCvar { "staff" ; "dual" } + + visible 1 + action + { + play "sound/interface/choose_hilt.wav" + uiScript "setscreensaberhilt" + uiScript "saber_hilt" + } + } + + // HILT BUTTON 1 - STAVES + itemDef + { + name hiltbut_staves + group none + rect 240 95 160 120 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_EMPTY + elementwidth 120 + elementheight 16 + font 4 + textaligny 16 + textscale 1 + border 1 + bordersize 1 + bordercolor 0 0 .8 1 + forecolor .615 .615 .956 1 + backcolor 0 0 .5 .25 + outlinecolor .5 .5 .5 .5 + elementtype LISTBOX_TEXT + feeder FEEDER_SABER_STAFF_INFO + + descText @MENUS_HILT1_DESC + + cvarTest ui_saber_type + hideCvar { "single"; "dual" } + + visible 1 + action + { + play "sound/interface/choose_hilt.wav" + uiScript "setscreensaberstaff" + uiScript "saber_hilt" + } + } + + itemDef + { + name hilttype + group none + text @MENUS_HILT2 + descText @MENUS_HILT2_DESC + style WINDOW_STYLE_EMPTY + rect 240 150 160 24 + font 3 + textscale .7 + textstyle 0 + textalignx 80 + textaligny 0 + textalign ITEM_ALIGN_CENTER + backcolor 0 0 0 0 + forecolor .549 .854 1 1 + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + visible 1 + decoration + } + + // HILT BUTTON 1 - DUAL + itemDef + { + name hiltbut1 + group none + rect 240 95 160 54 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_EMPTY + elementwidth 120 + elementheight 16 + font 4 + textaligny 16 + textscale 1 + border 1 + bordersize 1 + bordercolor 0 0 .8 1 + forecolor .615 .615 .956 1 + backcolor 0 0 .5 .25 + outlinecolor .5 .5 .5 .5 + elementtype LISTBOX_TEXT + feeder FEEDER_SABER_SINGLE_INFO + +// text @MENUS_HILT1 + descText @MENUS_HILT1_DESC + elementtype LISTBOX_TEXT + textalign ITEM_ALIGN_LEFT + + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + + visible 1 + action + { + play "sound/interface/choose_hilt.wav" + uiScript "setscreensaberhilt1" + uiScript "saber_hilt" + } + } + + // HILT BUTTON 2 - DUAL + itemDef + { + name hiltbut2 + group none + + rect 240 165 160 54 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_EMPTY + elementwidth 120 + elementheight 16 + font 4 + textaligny 16 + textscale 1 + border 1 + bordersize 1 + bordercolor 0 0 .8 1 + forecolor .615 .615 .956 1 + backcolor 0 0 .5 .25 + outlinecolor .5 .5 .5 .5 + elementtype LISTBOX_TEXT + feeder FEEDER_SABER_SINGLE_INFO + + +// text @MENUS_HILT2 + descText @MENUS_HILT2_DESC + forecolor .615 .615 .956 1 + + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + + visible 1 + action + { + play "sound/interface/choose_hilt.wav" + uiScript "setscreensaberhilt2" + uiScript "saber2_hilt" + } + } + +//---------------------------------------------------------------------------------------------- +//BLADE COLORS +//---------------------------------------------------------------------------------------------- + itemDef + { + name color_title + group none + text @MENUS_BLADE_COLOR + descText @MENUS_BLADE_COLOR_DESC + style WINDOW_STYLE_EMPTY + rect 446 96 160 24 + font 3 + textscale 1 + textstyle 0 + textalignx 0 + textaligny 0 + textalign ITEM_ALIGN_LEFT + backcolor 0 0 0 0 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + itemDef + { + name blueicon + group sabericons + descText @MENUS_COLOR1_DESC + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 446 124 24 24 + background "gfx/menus/saber_icon_blue" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + mouseEnter + { + setitemcolor blueicon forecolor 1 1 1 1 + setitemcolor blueicon bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor blueicon forecolor .75 .75 .75 1 + setitemcolor blueicon bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + setcvar ui_saber_color "blue" + } + } + + itemDef + { + name greenicon + group sabericons + descText @MENUS_COLOR1_DESC + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 473 124 24 24 + background "gfx/menus/saber_icon_green" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + mouseEnter + { + setitemcolor greenicon forecolor 1 1 1 1 + setitemcolor greenicon bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor greenicon forecolor .75 .75 .75 1 + setitemcolor greenicon bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + setcvar ui_saber_color "green" + } + } + + itemDef + { + name orangeicon + group sabericons + descText @MENUS_COLOR1_DESC + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 500 124 24 24 + background "gfx/menus/saber_icon_orange" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + mouseEnter + { + setitemcolor orangeicon forecolor 1 1 1 1 + setitemcolor orangeicon bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor orangeicon forecolor .75 .75 .75 1 + setitemcolor orangeicon bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + setcvar ui_saber_color "orange" + } + } + + itemDef + { + name purpleicon + group sabericons + descText @MENUS_COLOR1_DESC + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 527 124 24 24 + background "gfx/menus/saber_icon_purple" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + mouseEnter + { + setitemcolor purpleicon forecolor 1 1 1 1 + setitemcolor purpleicon bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor purpleicon forecolor .75 .75 .75 1 + setitemcolor purpleicon bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + setcvar ui_saber_color "purple" + } + } + + itemDef + { + name yellowicon + group sabericons + descText @MENUS_COLOR1_DESC + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 554 124 24 24 + background "gfx/menus/saber_icon_yellow" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + mouseEnter + { + setitemcolor yellowicon forecolor 1 1 1 1 + setitemcolor yellowicon bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor yellowicon forecolor .75 .75 .75 1 + setitemcolor yellowicon bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + setcvar ui_saber_color "yellow" + } + } + + itemDef + { + name redicon + group sabericons + descText @MENUS_COLOR1_DESC + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 581 124 24 24 + background "gfx/menus/saber_icon_red" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + mouseEnter + { + setitemcolor redicon forecolor 1 1 1 1 + setitemcolor redicon bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor redicon forecolor .75 .75 .75 1 + setitemcolor redicon bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + setcvar ui_saber_color "red" + } + } + + // COLOR 2 BUTTON + itemDef + { + name colorbut2 + group none + text @MENUS_COLOR2 + descText @MENUS_COLOR2_DESC + //type ITEM_TYPE_MULTI + style WINDOW_STYLE_EMPTY + rect 446 152 160 16 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -4 + forecolor .549 .854 1 1 + visible 1 + decoration + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + } + + itemDef + { + name blueicon2 + group sabericons2 + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 446 170 24 24 + background "gfx/menus/saber_icon_blue" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + mouseEnter + { + setitemcolor blueicon2 forecolor 1 1 1 1 + setitemcolor blueicon2 bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor blueicon2 forecolor .75 .75 .75 1 + setitemcolor blueicon2 bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + setcvar ui_saber2_color "blue" + } + } + + itemDef + { + name greenicon2 + group sabericons2 + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 473 170 24 24 + background "gfx/menus/saber_icon_green" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + mouseEnter + { + setitemcolor greenicon2 forecolor 1 1 1 1 + setitemcolor greenicon2 bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor greenicon2 forecolor .75 .75 .75 1 + setitemcolor greenicon2 bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + setcvar ui_saber2_color "green" + } + } + + itemDef + { + name orangeicon2 + group sabericons2 + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 500 170 24 24 + background "gfx/menus/saber_icon_orange" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + mouseEnter + { + setitemcolor orangeicon2 forecolor 1 1 1 1 + setitemcolor orangeicon2 bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor orangeicon2 forecolor .75 .75 .75 1 + setitemcolor orangeicon2 bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + setcvar ui_saber2_color "orange" + } + } + + itemDef + { + name purpleicon2 + group sabericons2 + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 527 170 24 24 + background "gfx/menus/saber_icon_purple" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + mouseEnter + { + setitemcolor purpleicon2 forecolor 1 1 1 1 + setitemcolor purpleicon2 bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor purpleicon2 forecolor .75 .75 .75 1 + setitemcolor purpleicon2 bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + setcvar ui_saber2_color "purple" + } + } + + itemDef + { + name yellowicon2 + group sabericons2 + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 554 170 24 24 + background "gfx/menus/saber_icon_yellow" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + mouseEnter + { + setitemcolor yellowicon2 forecolor 1 1 1 1 + setitemcolor yellowicon2 bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor yellowicon2 forecolor .75 .75 .75 1 + setitemcolor yellowicon2 bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + setcvar ui_saber2_color "yellow" + } + } + + itemDef + { + name redicon2 + group sabericons2 + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 581 170 24 24 + background "gfx/menus/saber_icon_red" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + mouseEnter + { + setitemcolor redicon2 forecolor 1 1 1 1 + setitemcolor redicon2 bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor redicon2 forecolor .75 .75 .75 1 + setitemcolor redicon2 bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + setcvar ui_saber2_color "red" + } + } + + + +//////////////////////// +//SABER MODELS +//////////////////////// + + //FIRST SABER + itemDef + { + name saber + group models + type ITEM_TYPE_MODEL + rect 12 -80 615 615 + asset_model "models/weapons2/saber_reborn/saber_w.glm" + isSaber 1 + model_angle 180 + model_rotation 20 + model_g2mins 0 0 0 + model_g2maxs 20 20 20 + model_fovx 75 + model_fovy 75 + visible 1 + decoration + } + + //SECOND SABER + itemDef + { + name saber2 + group models + type ITEM_TYPE_MODEL + rect 12 -50 615 615 + asset_model "models/weapons2/saber_reborn/saber_w.glm" + isSaber2 1 + model_angle 180 + model_rotation 20 + model_g2mins 0 0 0 + model_g2maxs 20 20 20 + model_fovx 75 + model_fovy 75 + visible 1 + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + + decoration + } + + //APPLY BUTTON + /*itemDef + { + name applybutton_glow + group none + style WINDOW_STYLE_SHADER + rect 255 444 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name apply + group none + text @MENUS_APPLY + descText @MENUS_APPLY + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 255 444 130 24 + font 3 + textscale 1 + textalignx 65 + textaligny -1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + forecolor 1 .682 0 1 + visible 1 + action + { + uiScript "updatesabercvars" + play "sound/interface/button1.wav" + close all + open mainMenu + } + mouseEnter + { + show applybutton_glow + } + mouseExit + { + hide applybutton_glow + } + }*/ + + //BEGIN GAME BUTTON + itemDef + { + name begingamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 455 444 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name newgame_begin + group none + text @MENUS_APPLY + descText @MENUS_APPLY_SABER_CHANGES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 455 444 130 24 + font 3 + textscale 1 + textalignx 65 + textaligny -1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + forecolor 1 .682 0 1 + visible 1 + action + { + uiScript "updatesabercvars" + close sabermenu + open main + } + mouseEnter + { + show begingamebutton_glow + } + mouseExit + { + hide begingamebutton_glow + } + } + } +} diff --git a/base/ui/jamp/serverinfo.menu b/base/ui/jamp/serverinfo.menu new file mode 100644 index 0000000..1ddeafb --- /dev/null +++ b/base/ui/jamp/serverinfo.menu @@ -0,0 +1,179 @@ +//---------------------------------------------------------------------------------------------- +// +// SERVER INFORMATION POPUP MENU +// +// List information pertinant to one server +// +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "serverinfo_popmenu" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 140 60 360 360 + focusColor 1 1 1 1 // Focus color for text and items + style 1 + border 1 + descX 320 + descY 400 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + popup + + onOpen + { + uiScript ServerStatus + } + + onESC + { + play "sound/interface/esc.wav" ; + close serverinfo_popmenu + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name setup_background + group none + style WINDOW_STYLE_FILLED + rect 0 0 360 360 + backcolor 0 0 .35 .9 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .8 1 + visible 1 + decoration + } + + //--------------------------------------------- + // TITLE + //--------------------------------------------- + // title + itemDef + { + name screenTitle + text @MENUS_SERVER_INFORMATION + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + rect 10 5 340 20 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 170 + textaligny 1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + //--------------------------------------------- + // SERVER INFO + //--------------------------------------------- + itemDef + { + name serverinfoList + rect 10 27 340 280 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + feeder FEEDER_SERVERSTATUS + elementtype LISTBOX_TEXT + elementwidth 120 + elementheight 16 + font 4 + textscale 1 + backcolor 0 0 0 0.5 + border 1 + bordersize 1 + bordercolor .5 .5 .5 1 + notselectable + visible 1 + columns 4 2 40 148 + 50 40 50 + 100 40 45 + 150 40 165 + } + +//---------------------------------------------------------------------------------------------- +// BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name refresh + text @MENUS_REFRESH_LIST + descText @MENUS_REFRESH_SERVER_LIST + type 1 + font 3 + textscale .8 + style WINDOW_STYLE_FILLED + rect 10 310 170 30 + textalign ITEM_ALIGN_CENTER + textalignx 85 + textaligny 5 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" + uiScript ServerStatus + } + mouseEnter + { + show button_glow + setitemrect button_glow 0 310 200 28 + } + mouseExit + { + hide button_glow + } + } + + itemDef + { + name doneText + text @MENUS_DONE_CAPS + descText @MENUS_DONE_DESC + type 1 + font 3 + textscale .8 + style WINDOW_STYLE_FILLED + rect 180 310 170 30 + textalign ITEM_ALIGN_CENTER + textalignx 85 + textaligny 5 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" + close serverinfo_popmenu + } + mouseEnter + { + show button_glow + setitemrect button_glow 170 310 200 28 + } + mouseExit + { + hide button_glow + } + } + } +} diff --git a/base/ui/jamp/setup.menu b/base/ui/jamp/setup.menu new file mode 100644 index 0000000..0dfae73 --- /dev/null +++ b/base/ui/jamp/setup.menu @@ -0,0 +1,2959 @@ +//-------------------------------------------------------------- +// +// MULTIPLAYER SETUP MENU +// +//-------------------------------------------------------------- +{ + menuDef + { + name "setup_menu" + fullScreen 1 // MENU_TRUE + rect 0 0 640 480 // Size and position of the menu + visible 0 // Visible on open + focusColor 1 1 1 1 // Focus color for text and items + appearanceIncrement 75 // In miliseconds + descX 320 + descY 424 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + uiScript getvideosetup // Get video settings + + show setup_background + show video + hide applyChanges + hide video2 + hide vidrestart + hide sound + hide options + hide mods + hide defaults + hide highlights + + setitemcolor setup_submenu forecolor 1 .682 0 1 + setitemcolor video1menubutton forecolor 1 1 1 1 + } + + onESC + { + play "sound/interface/button1.wav" + + defer VideoSetup videowarningMenu + + close all + open mainMenu + } + +//---------------------------------------------------------------------------------------------- +// +// MENU BACKGROUND +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 107 8 428 112 + background "gfx/menus/jediacademy" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name left_frame + group lf_fr + style WINDOW_STYLE_SHADER + rect 0 50 320 160 + background "gfx/menus/menu_boxes_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name right_frame + group rt_fr + style WINDOW_STYLE_SHADER + rect 320 50 320 160 + background "gfx/menus/menu_boxes_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// +// TOP MENU BUTTONS +// +//---------------------------------------------------------------------------------------------- + + // Big button "NEW" + itemDef + { + name newgamebutton_glow + group topbut + style WINDOW_STYLE_SHADER + rect 7 126 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 7 126 130 24 + text @MENUS_PLAY + descText @MENUS_START_PLAYING_NOW + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + mouseEnter + { + show newgamebutton_glow + } + mouseExit + { + hide newgamebutton_glow + } + action + { + play "sound/interface/button1.wav" + + defer VideoSetup videowarningMenu + + close all ; + open multiplayermenu + } + } + + itemDef + { + name profilebutton_glow + group topbut + style WINDOW_STYLE_SHADER + rect 170 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name profilebutton + group toprow + text @MENUS_PROFILE + descText @MENUS_PROFILE_DESC + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 126 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + mouseEnter + { + show profilebutton_glow + } + mouseExit + { + hide profilebutton_glow + } + action + { + play "sound/interface/button1" + + defer VideoSetup videowarningMenu + + close all + open playerMenu + } + } + + // Big button "CONTROLS" + itemDef + { + name controlsbutton_glow + group topbut + style WINDOW_STYLE_SHADER + rect 340 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name controlsbutton + group toprow + text @MENUS_CONTROLS2 + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + mouseEnter + { + show controlsbutton_glow + } + mouseExit + { + hide controlsbutton_glow + } + action + { + play "sound/interface/button1" + + defer VideoSetup videowarningMenu + + close all + open controlsMenu + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton_glow + group topbut + style WINDOW_STYLE_SHADER + rect 502 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name setupbutton + group toprow + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 502 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 1 1 1 + visible 1 + mouseEnter + { + show setupbutton_glow + } + mouseExit + { + hide setupbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + } + } + + //---------------------------------------------------------------------------------------------- + // + // OTHER MAIN MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + // Credits hidden button + itemDef + { + name creditsbutton + group othermain +// text @CREDITS + descText @MENUS_SHOW_GAME_CREDITS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 200 144 256 256 + 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 + { + } + mouseExit + { + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open creditsMenu + } + } + + // EXIT button in lower left corner + itemDef + { + name exitgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 255 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 @MENUS_EXIT + descText @MENUS_LEAVE_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 255 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + mouseEnter + { + show exitgamebutton_glow + } + mouseExit + { + hide exitgamebutton_glow + } + action + { + play "sound/weapons/saber/saberoff" + + defer VideoSetup videowarningMenu + + close all + open quitMenu + } + } + + //---------------------------------------------------------------------------------------------- + // + // SECOND ROW MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + // Setup Options title + itemDef + { + name setup_title + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_SETUP_OPTIONS + rect 100 164 440 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + // video1 button + itemDef + { + name video1button_glow + group highlights + style WINDOW_STYLE_SHADER + rect 80 185 180 24 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name video1menubutton + group setup_submenu + text @MENUS_VIDEO + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 185 170 24 + font 3 + textscale 0.9 + textalignx 160 + textaligny 2 + textstyle 0 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_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 ; + + setitemcolor setup_submenu forecolor 1 .682 0 1; + setitemcolor video1menubutton forecolor 1 1 1 1 ; + } + } + + // video2 button + itemDef + { + name video2button_glow + group highlights + style WINDOW_STYLE_SHADER + rect 80 209 180 24 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + decoration + } + + itemDef + { + name video2menubutton + group setup_submenu + text @MENUS_MORE_VIDEO + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 209 170 24 + font 3 + textscale 0.9 + textalignx 160 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 0 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_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 setup_submenu forecolor 1 .682 0 1 ; + setitemcolor video2menubutton forecolor 1 1 1 1 ; + } + } + + // sound button + itemDef + { + name soundbutton_glow + group highlights + style WINDOW_STYLE_SHADER + rect 80 233 180 24 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name soundmenubutton + group setup_submenu + text @MENUS_SOUND + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 233 170 24 + font 3 + textscale 0.9 + textalignx 160 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 0 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_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 setup_submenu forecolor 1 .682 0 1 ; + setitemcolor soundmenubutton forecolor 1 1 1 1 ; + } + } + + // gameoptions button + itemDef + { + name gameoptionsbutton_glow + group highlights + style WINDOW_STYLE_SHADER + rect 80 257 180 24 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name gameoptionmenubutton + group setup_submenu + text @MENUS_OPTIONS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 257 170 24 + font 3 + textscale 0.9 + textalignx 160 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 0 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_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 langapply + hide mods + hide defaults + + setitemcolor setup_submenu forecolor 1 .682 0 1 ; + setitemcolor gameoptionmenubutton forecolor 1 1 1 1 ; + } + } + + // mods button + itemDef + { + name modsbutton_glow + group highlights + style WINDOW_STYLE_SHADER + rect 80 281 180 24 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name modsmenubutton + group setup_submenu + text @MENUS_MODS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 281 170 24 + font 3 + textscale 0.9 + textalignx 160 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 0 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_GAME_OPTIONS + + mouseEnter + { + show modsbutton_glow + } + mouseExit + { + hide modsbutton_glow + } + action + { + play "sound/interface/button1.wav" ; // This sound may be cut out by the loadmods, so we play it later too. + + defer VideoSetup videowarningMenu ; + uiScript loadMods ; + + show setup_background ; + hide video ; + hide applyChanges ; + hide video2 ; + hide vidrestart ; + hide sound ; + hide options ; + show mods ; + hide defaults ; + + setitemcolor setup_submenu forecolor 1 .682 0 1 ; + setitemcolor modsmenubutton forecolor 1 1 1 1 ; + } + } + + // gamedefaults button + itemDef + { + name gamedefaultsbutton_glow + group highlights + style WINDOW_STYLE_SHADER + rect 80 305 180 24 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + // appearance_slot 1 + decoration + } + + itemDef + { + name gamedefaultsmenubutton + group setup_submenu + text @MENUS_DEFAULTS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 305 170 24 + font 3 + textscale 0.9 + textalignx 160 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 0 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_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 setup_submenu forecolor 1 .682 0 1 ; + setitemcolor gamedefaultsmenubutton forecolor 1 1 1 1 ; + } + } + + itemDef + { + name setup_background + group none + style WINDOW_STYLE_FILLED + rect 260 185 340 225 + backcolor 0 0 .6 .5 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .6 1 + visible 0 + decoration + } +//---------------------------------------------------------------------------------------------- +// +// HIGHLIGHT BARS +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name highlight1 + group highlights + style WINDOW_STYLE_SHADER + rect 260 190 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight2 + group highlights + style WINDOW_STYLE_SHADER + rect 260 204 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight3 + group highlights + style WINDOW_STYLE_SHADER + rect 260 218 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight4 + group highlights + style WINDOW_STYLE_SHADER + rect 260 232 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight5 + group highlights + style WINDOW_STYLE_SHADER + rect 260 246 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight6 + group highlights + style WINDOW_STYLE_SHADER + rect 260 260 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight7 + group highlights + style WINDOW_STYLE_SHADER + rect 260 274 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight8 + group highlights + style WINDOW_STYLE_SHADER + rect 260 288 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight9 + group highlights + style WINDOW_STYLE_SHADER + rect 260 302 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight10 + group highlights + style WINDOW_STYLE_SHADER + rect 260 316 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight11 + group highlights + style WINDOW_STYLE_SHADER + rect 260 330 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight12 + group highlights + style WINDOW_STYLE_SHADER + rect 260 344 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight13 + group highlights + style WINDOW_STYLE_SHADER + rect 260 358 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight14 + group highlights + style WINDOW_STYLE_SHADER + rect 260 372 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight15 + group highlights + style WINDOW_STYLE_SHADER + rect 260 386 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// +// VIDEO 1 MENU BUTTONS +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name graphics + group video + text @MENUS_VIDEO_QUALITY + type ITEM_TYPE_MULTI + rect 260 188 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + style WINDOW_STYLE_FILLED + forecolor .615 .615 .956 1 + descText @MENUS_SELECT_PRESET_GRAPHIC + + visible 1 + + cvar "ui_r_glCustom" + cvarFloatList + { + @MENUS_HIGH_QUALITY 0 + @MENUS_NORMAL 1 + @MENUS_FAST 2 + @MENUS_FASTEST 3 + @MENUS_CUSTOM 4 + } + + mouseenter + { + show highlight1 + } + mouseexit + { + hide highlight1 + } + action + { + play "sound/interface/button1.wav" ; + uiScript update "ui_r_glCustom" ; + setcvar ui_r_modified 1 ; + show applyChanges + } + } + + + itemDef + { + name video_mode + group video + type ITEM_TYPE_MULTI + text @MENUS_VIDEO_MODE + cvarFloatList { @MENUS_640_X_480 3 @MENUS_800_X_600 4 @MENUS_1024_X_768 6 @MENUS_1152_X_864 7 @MENUS_1280_X_1024 8 @MENUS_1600_X_1200 9 @MENUS_2048_X_1536 10 @MENUS_2400_X_600 12 } + cvar "ui_r_mode" + rect 260 216 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + descText @MENUS_CHANGE_THE_DISPLAY_RESOLUTION + visible 1 + + mouseenter + { + show highlight3 + } + mouseexit + { + hide highlight3 + } + action + { + play "sound/interface/button1.wav" ; + uiScript glCustom ; + setcvar ui_r_modified 1 ; + show applyChanges + } + } + + itemDef + { + name color_depth + group video + type ITEM_TYPE_MULTI + text @MENUS_COLOR_DEPTH + rect 260 230 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + cvarFloatList { @MENUS_DEFAULT 0 @MENUS_16_BIT 16 @MENUS_32_BIT 32 } + descText @MENUS_CHANGE_THE_NUMBER_OF + cvar "ui_r_colorbits" + visible 1 + + mouseenter + { + show highlight4 + } + mouseexit + { + hide highlight4 + } + action + { + play "sound/interface/button1.wav" ; + uiScript glCustom ; + uiScript update "ui_r_colorbits" ; + setcvar ui_r_modified 1 ; + show applyChanges + } + } + + itemDef + { + name fullscreen + group video + type ITEM_TYPE_MULTI + text @MENUS_FULL_SCREEN + rect 260 244 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + descText @MENUS_TOGGLE_BETWEEN_FULL_SCREEN + cvar "ui_r_fullscreen" + visible 1 + + mouseenter + { + show highlight5 + } + mouseexit + { + hide highlight5 + } + action + { + play "sound/interface/button1.wav" ; + uiScript glCustom ; + setcvar ui_r_modified 1 ; + show applyChanges + } + } + + itemDef + { + name geometric_detail + group video + type ITEM_TYPE_MULTI + text @MENUS_GEOMETRIC_DETAIL + rect 260 258 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + cvarFloatList { @MENUS_LOW 2 @MENUS_MEDIUM 1 @MENUS_HIGH 0 } + descText @MENUS_ADJUST_THE_NUMBER_OF + cvar "ui_r_lodbias" + visible 1 + + mouseenter + { + show highlight6 + } + mouseexit + { + hide highlight6 + } + 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 @MENUS_TEXTURE_DETAIL + rect 260 272 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + cvarFloatList { @MENUS_LOW 3 @MENUS_MEDIUM 2 @MENUS_HIGH 1 @MENUS_VERY_HIGH 0 } + descText @MENUS_SELECT_THE_RESOLUTION + cvar "ui_r_picmip" + visible 1 + + mouseenter + { + show highlight7 + } + mouseexit + { + hide highlight7 + } + action + { + play "sound/interface/button1.wav" ; + uiScript glCustom ; + setcvar ui_r_modified 1 ; + show applyChanges + } + } + + itemDef + { + name texture_quality + group video + type ITEM_TYPE_MULTI + text @MENUS_TEXTURE_QUALITY + rect 260 286 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + cvarFloatList { @MENUS_DEFAULT 0 @MENUS_16_BIT 16 @MENUS_32_BIT 32 } + descText @MENUS_SELECT_THE_NUMBER_OF + cvar "ui_r_texturebits" + visible 1 + + mouseenter + { + show highlight8 + } + mouseexit + { + hide highlight8 + } + 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 @MENUS_TEXTURE_FILTER + rect 260 300 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + cvarStrList { @MENUS_BILINEAR , "GL_LINEAR_MIPMAP_NEAREST" , @MENUS_TRILINEAR , "GL_LINEAR_MIPMAP_LINEAR" } + descText @MENUS_ADJUST_HOW_WELL_THE_TEXTURES + cvar "ui_r_texturemode" + visible 1 + + mouseenter + { + show highlight9 + } + mouseexit + { + hide highlight9 + } + 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 @MENUS_DETAILED_SHADERS + rect 260 314 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + descText @MENUS_HIDE_OR_UNHIDE_TEXTURES + cvar "ui_r_detailtextures" + visible 1 + + mouseenter + { + show highlight10 + } + mouseexit + { + hide highlight10 + } + action + { + play "sound/interface/button1.wav" ; + uiScript glCustom ; + setcvar ui_r_modified 1 ; + show applyChanges + } + } + + + itemDef + { + name video_sync + group video + type ITEM_TYPE_MULTI + text @MENUS_VIDEO_SYNC + cvar "r_swapInterval" + cvarFloatList + { + @MENUS_OFF 0 + @MENUS_ON 1 + } + rect 260 328 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 0.65 0.65 1 1 + visible 0 + descText @MENUS_VIDEO_SYNC_DESC + action + { + play "sound/interface/button1.wav" ; + } + mouseenter + { + show highlight11 + } + mouseexit + { + hide highlight11 + } + } + + // APPLY CHANGES BUTTON + itemDef + { + name applybutton_glow + group none + style WINDOW_STYLE_SHADER + rect 260 384 340 14 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 0.5 0.5 1 + visible 0 + decoration + } + + itemDef + { + name applyChanges + group none + text @MENUS_APPLY_CHANGES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 260 384 340 14 + textaligny 0 + font 4 + textscale 1 + textalignx 170 + textalign ITEM_ALIGN_CENTER + textstyle 0 + 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 260 185 342 227 + background "gfx/menus/menu_boxred" // Frame + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name vidrestart_text1 + group vidrestart + text @MENUS_THIS_WILL_APPLY_VIDEO + text2 @MENUS_AND_RETURN_TO_THE_MAIN + rect 290 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 @MENUS_VID_RESTART3 + rect 290 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 + style WINDOW_STYLE_SHADER + rect 467 384 120 32 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + // YES button + itemDef + { + name vidrestart_yes + group vidrestart + text @MENUS_YES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 467 384 120 32 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny 0 + descText @MENUS_APPLY_CHANGES_AND_THEN + forecolor 1 .682 0 1 + visible -1 + + 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 + style WINDOW_STYLE_SHADER + rect 275 384 120 32 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + // CANCEL button + itemDef + { + name vidrestart_no + group vidrestart + text @MENUS_NO + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 275 384 120 32 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny -1 + descText @MENUS_DO_NOT_APPLY_CHANGES + forecolor 1 .682 0 1 + visible 0 + action + { + play "sound/interface/button1.wav" ; + show setup_background ; + hide vidrestart ; + show video ; + hide video2 ; + show applyChanges ; + hide player ; + 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 280 198 280 36 + background "gfx/menus/greyscale" // greyscale + forecolor 1 1 1 1 + visible 0 + decoration + } + + + + itemDef + { + name bright_text + group video2 + text @MENUS_ADJUST_BRIGHTNESS_SLIDER + text2 @MENUS_THE_NUMBER_6_CAN_BARELY + text2aligny 14 + textalignx 170 + textaligny 0 + font 4 + textscale 1 + rect 260 234 340 20 + textalign ITEM_ALIGN_CENTER + forecolor .549 .854 1 1 + visible 0 + decoration + } + + itemDef + { + name brightness + group video2 + type ITEM_TYPE_SLIDER + text @MENUS_VIDEO_BRIGHTNESS + cvarfloat "r_gamma" 1 .5 3 + rect 260 272 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 0.65 0.65 1 1 + visible 0 + descText @MENUS_ADJUST_THE_BRIGHTNESS + action + { + play "sound/interface/button1.wav" ; + } + mouseenter + { + show highlight7 + } + mouseexit + { + hide highlight7 + } + } + + + itemDef + { + name dynamic_light + group video2 + type ITEM_TYPE_MULTI + text @MENUS_DYNAMIC_LIGHTS + cvar "r_dynamiclight" + cvarFloatList + { + @MENUS_OFF 0 + @MENUS_ON 1 + } + rect 260 300 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 0.65 0.65 1 1 + visible 0 + descText @MENUS_TOGGLE_TO_TURN_ON_MOVING + action + { + play "sound/interface/button1.wav" ; + } + mouseenter + { + show highlight9 + } + mouseexit + { + hide highlight9 + } + } + + itemDef + { + name dynamic_glow + group video2 + type ITEM_TYPE_MULTI + text @MENUS_DYNAMIC_GLOW + cvar r_dynamicglow + cvarFloatList + { + @MENUS_OFF 0 + @MENUS_ON 1 + } + rect 260 314 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 0.65 0.65 1 1 + visible 0 + descText @MENUS_DYNAMIC_GLOW_DESC + action + { + play "sound/interface/button1" + } + mouseenter + { + show highlight10 + } + mouseexit + { + hide highlight10 + } + } + + itemDef + { + name light_flares + group video2 + type ITEM_TYPE_MULTI + text @MENUS_LIGHT_FLARES + cvar r_flares + cvarFloatList + { + @MENUS_OFF 0 + @MENUS_ON 1 + } + rect 260 328 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 0.65 0.65 1 1 + visible 0 + descText @MENUS_TOGGLE_TO_SHOW_HALOS + action + { + play "sound/interface/button1" + } + mouseenter + { + show highlight11 + } + mouseexit + { + hide highlight11 + } + } + + itemDef + { + name wall_marks + group video2 + type ITEM_TYPE_MULTI + text @MENUS_WALL_MARKS + cvar cg_marks + cvarFloatList + { + @MENUS_OFF 0 + @MENUS_ON 1 + } + rect 260 342 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 0.65 0.65 1 1 + visible 0 + descText @MENUS_TOGGLE_TO_DISPLAY_SCORCH + action + { + play "sound/interface/button1.wav" ; + } + mouseenter + { + show highlight12 + } + mouseexit + { + hide highlight12 + } + } + + itemDef + { + name video_mode + group video2 + type ITEM_TYPE_SLIDER + text @MENUS_ANISOTROPIC_FILTERING + cvarTest r_ext_texture_filter_anisotropic_avail + disableCvar { 0 } + cvarfloat r_ext_texture_filter_anisotropic 1 .5 16 + rect 260 356 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_TOGGLE_ADVANCED_TEXTURE + action + { + play "sound/interface/button1.wav" ; + } + mouseenter + { + show highlight13 + } + mouseexit + { + hide highlight13 + } + } + + itemDef + { + name advancedvideobutton_glow + group highlights + style WINDOW_STYLE_SHADER + rect 260 384 340 14 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name advancedvideo + group video2 + type ITEM_TYPE_BUTTON + text @MENUS_SHOW_DRIVER_INFO + rect 260 384 340 14 + textalign ITEM_ALIGN_CENTER + textalignx 170 + textaligny 0 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + descText @MENUS_SHOW_ADVANCED_INFORMATION + + mouseenter + { + show advancedvideobutton_glow + } + mouseexit + { + hide advancedvideobutton_glow + } + action + { + play sound/interface/button1.wav + hide advancedvideobutton_glow + open videodriverMenu + } + } + +//---------------------------------------------------------------------------------------------- +// +// SOUND FIELDS +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name effects_volume + group sound + type ITEM_TYPE_SLIDER + text @MENUS_EFFECTS_VOLUME + cvarfloat "s_volume" 0 0 1 + rect 260 188 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 0.65 0.65 1 1 + visible 0 + descText @MENUS_ADJUST_VOLUME_FOR_SOUND + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight1 + } + mouseexit + { + hide highlight1 + } + } + + itemDef + { + name music_volume + group sound + type ITEM_TYPE_SLIDER + text @MENUS_MUSIC_VOLUME + cvarfloat "s_musicvolume" 0 0 1 + rect 260 216 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 0.65 0.65 1 1 + visible 0 + descText @MENUS_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 @MENUS_VOICE_VOLUME + cvarfloat "s_volumeVoice" 0 0 1 + rect 260 244 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 0.65 0.65 1 1 + visible 0 + descText @MENUS_VOICE_VOLUME_DESC + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight5 + } + mouseexit + { + hide highlight5 + } + } + + itemDef + { + name sound_quality + group sound + type ITEM_TYPE_MULTI + text @MENUS_SOUND_QUALITY + cvar "s_khz" + cvarFloatList + { + @MENUS_LOW 11 + @MENUS_HIGH 22 + } + rect 260 272 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 0.65 0.65 1 1 + visible 0 + descText @MENUS_TRADE_CLARITY_OF_SOUND + cvarTest "s_UseOpenAL" + hideCvar { 1 } + + mouseenter + { + show highlight7 + } + mouseexit + { + hide highlight7 + } + action + { + play "sound/interface/button1.wav" + uiScript update s_khz + } + } + + itemDef + { + name eax + group sound + type ITEM_TYPE_MULTI + cvar "s_UseOpenAL" + cvarFloatList + { + @MENUS_OFF 0 + @MENUS_ON 1 + } + text @MENUS_EAX + rect 260 300 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 0.65 0.65 1 1 + visible 0 + descText @MENUS_EAX_DESC + action + { + play "sound/interface/button1.wav" + uiScript update s_khz + } + + mouseenter + { + show highlight9 + } + mouseexit + { + hide highlight9 + } + } + + itemDef + { + name eax_icon + group sound + style WINDOW_STYLE_SHADER + rect 380 320 128 64 + background "gfx/menus/eax" + forecolor 1 1 1 1 + visible 1 + decoration + cvarTest "s_UseOpenAL" + hideCvar { 0 } + } + +//---------------------------------------------------------------------------------------------- +// +// OPTION FIELDS +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name draw_crosshair + group options + type ITEM_TYPE_MULTI + text @MENUS_DRAW_CROSSHAIR + cvar "cg_drawcrosshair" + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + rect 260 188 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 0.65 0.65 1 1 + visible 0 + descText @MENUS_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 @MENUS_IDENTIFY_TARGET + cvar cg_drawCrosshairNames + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + rect 260 202 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 0.65 0.65 1 1 + visible 0 + descText @MENUS_TOGGLE_TO_HAVE_THE_CROSSHAIR + action + { + play "sound/interface/button1.wav" ; + } + mouseenter + { + show highlight2 + } + mouseexit + { + hide highlight2 + } + } + + itemDef + { + name forcemodels + group options + type ITEM_TYPE_MULTI + text @MENUS_FORCE_PLAYER_MODELS + cvar "cg_forceModel" + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + rect 260 216 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 0.65 0.65 1 1 + visible 0 + descText @MENUS_FORCE_ALL_PLAYER_MODELS + action + { + play "sound/interface/button1.wav" ; + } + mouseenter + { + show highlight3 + } + mouseexit + { + hide highlight3 + } + } + + itemDef + { + name defermodels + group options + type ITEM_TYPE_MULTI + text @MENUS_DEFER_PLAYER_MODELS + cvar "cg_deferPlayers" + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + rect 260 230 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 0.65 0.65 1 1 + visible 0 + descText @MENUS_DEFERS_LOADING_OF_NEW + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight4 + } + mouseexit + { + hide highlight4 + } + } + + itemDef + { + name teamchatsonly + group options + type ITEM_TYPE_MULTI + text @MENUS_TEAM_CHATS_ONLY + cvar "cg_teamChatsOnly" + cvarFloatList + { + @MENUS_NO 0 + @MENUS_YES 1 + } + rect 260 244 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 0.65 0.65 1 1 + visible 0 + descText @MENUS_IGNORE_NON_TEAM_CHATS + action + { + play "sound/interface/button1.wav" ; + } + mouseenter + { + show highlight5 + } + mouseexit + { + hide highlight5 + } + } + + itemDef + { + name simpleitems + group options + type ITEM_TYPE_MULTI + text @MENUS_SIMPLE_ITEMS + cvar "cg_simpleItems" + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + rect 260 258 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 0.65 0.65 1 1 + visible 0 + descText @MENUS_RENDER_ICONS_FOR_ITEMS + action + { + play "sound/interface/button1.wav" ; + } + mouseenter + { + show highlight6 + } + mouseexit + { + hide highlight6 + } + } + + itemDef + { + name teamoverlay + group options + type ITEM_TYPE_MULTI + text @MENUS_TEAM_OVERLAY + cvar "cg_drawTeamOverlay" + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + rect 260 272 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 0.65 0.65 1 1 + visible 0 + descText @MENUS_DRAW_OVERLAY_SHOWING + 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 @MENUS_VIEW_SWAYING + descText @MENUS_VIEW_SWAYING_DESC + cvar "ui_disableWeaponSway" + cvarFloatList + { + @MENUS_ON 0 + @MENUS_OFF 1 + } + cvarTest "ui_disableWeaponSway" + showCvar + { + "0" + } + rect 260 286 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 0.65 0.65 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 @MENUS_VIEW_SWAYING + descText @MENUS_VIEW_SWAYING_DESC + cvar "ui_disableWeaponSway" + cvarFloatList + { + @MENUS_ON 0 + @MENUS_OFF 1 + } + cvarTest "ui_disableWeaponSway" + hideCvar + { + "0" + } + rect 260 286 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 0.65 0.65 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 allowdownload + group options + type ITEM_TYPE_MULTI + text @MENUS_ALLOW_DOWNLOADS + descText @MENUS_ALLOW_DOWNLOADS_INFO + cvar "cl_allowDownload" + cvarFloatList + { + @MENUS_OFF 0 + @MENUS_ON 1 + } + rect 260 300 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 0.65 0.65 1 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + } + mouseenter + { + show highlight9 + } + mouseexit + { + hide highlight9 + } + } + + itemDef + { + name footsteps + group options + type ITEM_TYPE_MULTI + text @MENUS_FOOTSTEPS + desctext @MENUS_FOOTSTEPS_DESC + cvar "cg_footsteps" + cvarFloatList + { + @MENUS_OFF 0 + @MENUS_SOUNDS 1 + @MENUS_SOUNDS_AND_EFFECTS 2 + @MENUS_SOUNDS_EFFECTS_GRAPHICS 3 + } + rect 260 314 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 0.65 0.65 1 1 + visible 0 + action + { + play "sound/interface/button1.wav" + } + mouseenter + { + show highlight10 + } + mouseexit + { + hide highlight10 + } + } + + itemDef + { + name text + group options + type ITEM_TYPE_MULTI + text @MENUS_TEXT + cvar "se_language" + feeder 40 + cvarStrList feeder + rect 260 328 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 0.65 0.65 1 1 + visible 0 + descText @MENUS_CHOOSE_THE_LANGUAGE_FOR + action + { + play "sound/interface/button1" + show langapply + } + mouseenter + { + show highlight11 + } + mouseexit + { + hide highlight11 + } + } + itemDef + { + name voice + group options + type ITEM_TYPE_MULTI + text @MENUS_VOICE + cvar "s_language" + cvarStrList + { + English english + @MENUS_LANG_FRENCH francais + Deutsch deutsch + "Español" espanol + } + rect 260 342 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor 0.65 0.65 1 1 + visible 0 + descText @MENUS_CHOOSE_THE_LANGUAGE_TO + + action + { + play "sound/interface/button1.wav" + } + mouseenter + { + show highlight12 + } + mouseexit + { + hide highlight12 + } + } + + // APPLY CHANGES button + itemDef + { + name langapply + group options + text @MENUS_SET_LANGUAGE + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 260 356 340 14 + textaligny 0 + font 4 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 160 + descText @MENUS_SET_LANGUAGE_INFO + forecolor 1 .682 0 1 + visible 0 + + action + { + play "sound/interface/button1" + exec "ui_load ; snd_restart" + hide langapply + } + mouseEnter + { + show highlight13 + } + mouseExit + { + hide highlight13 + } + + } + +//---------------------------------------------------------------------------------------------- +// +// MOD GAME MENU specific stuff +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name serverinfo + group mods + rect 270 196 320 176 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 120 + elementheight 16 + font 2 + textscale 1 + textaligny -2 + border 1 + bordersize 1 + bordercolor .5 .5 .5 .5 + forecolor 1 .682 0 1 + backcolor 0 0 .5 .25 + outlinecolor .5 .5 .5 .5 + elementtype LISTBOX_TEXT + feeder 9 + notselectable + visible 0 + columns 1 2 40 280 + } + + itemDef + { + name loadmod_button + style WINDOW_STYLE_SHADER + rect 260 384 340 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name loadmod + group mods + text @MENUS_LOAD_MOD + descText @MENUS_LOAD_CHOSEN_MOD + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 260 384 340 14 + textalign ITEM_ALIGN_CENTER + textalignx 170 + textaligny -2 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + action + { + play "sound/interface/button1.wav" ; + uiScript RunMod ; + } + + mouseEnter + { + show loadmod_button + } + mouseExit + { + hide loadmod_button + } + } + +//---------------------------------------------------------------------------------------------- +// +// RESET DEFAULTS +// +//---------------------------------------------------------------------------------------------- +// Faint red box + itemDef + { + name vidrestart_background + group defaults + style WINDOW_STYLE_SHADER + rect 260 185 342 227 + background "gfx/menus/menu_boxred" // Frame + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name options + group defaults + text @MENUS_WARNING + rect 260 202 340 20 + textalign ITEM_ALIGN_CENTER + textalignx 170 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + decoration + } + + itemDef + { + name options + group defaults + text @MENUS_THIS_WILL_SET_ALL_GAME + rect 260 230 340 20 + textalign ITEM_ALIGN_CENTER + textalignx 170 + text2aligny 20 + font 2 + textscale .9 + forecolor 1 .682 0 1 + visible 0 + decoration + } + + itemDef + { + name options + group defaults + text @MENUS_TO_THEIR_FACTORY_SETTINGS + rect 260 260 340 20 + textalign ITEM_ALIGN_CENTER + textalignx 170 + text2aligny 20 + font 2 + textscale .9 + forecolor 1 .682 0 1 + visible 0 + decoration + } + + itemDef + { + name options + group defaults + text @MENUS_VID_RESTART3 + rect 260 320 340 20 + textalign ITEM_ALIGN_CENTER + textalignx 170 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + decoration + } + + + itemDef + { + name default_yes_button + group highlights + style WINDOW_STYLE_SHADER + rect 443 364 120 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + // YES button - lose reset defaults + itemDef + { + name default_yes + group defaults + text @MENUS_YES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 443 364 120 24 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny -2 + descText @MENUS_USE_DEFAULT_SETTINGS + forecolor 1 .682 0 1 + visible 0 + 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 297 364 120 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + // NO button - return to Main Menu + itemDef + { + name default_no + group defaults + text @MENUS_NO + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 297 364 120 24 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny -2 + descText @MENUS_DO_NOT_RESET_DEFAULT + forecolor 1 .682 0 1 + visible 0 + action + { + play "sound/interface/button1.wav" + hide highlights ; + hide default_no_button + uiscript clearmouseover default_no ; + close all ; + open mainMenu ; + } + mouseEnter + { + show default_no_button + } + mouseExit + { + hide default_no_button + } + } + + } +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/base/ui/jamp/siege_class.menu b/base/ui/jamp/siege_class.menu new file mode 100644 index 0000000..1e2c7ec --- /dev/null +++ b/base/ui/jamp/siege_class.menu @@ -0,0 +1,4417 @@ +//-------------------------------------------------------------------------------------------- +// uberScreen +// +// cvars used (at least some of them +// siege_mapgraphic - the name of the graphic of the map of the level. +// currentObjButton - the menu item name of currently active objective button +// +// team1_icon - read in from siege file, the graphic of team1 +// team2_icon - read in from siege file, the graphic of team2 +// +//-------------------------------------------------------------------------------------------- +{ + menuDef + { + name "ingame_siegeclass" + fullScreen 1 + visible 0 + outOfBoundsClick + rect 0 0 640 480 + focusColor 1 1 1 1 + style 1 + descX 480 + descY 444 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + backColor .05 .07 .09 1 + disablecolor 1 1 1 1 + onClose + { + hide minidesc + hide obj_longdesc + hide objective_pic + hide siegeclassconfigtitle + } + + onOpen + { + setcvar currentObjButton "null" + + exec "siegeCompleteCvarUpdate" + + setitembackground mappic "*siege_mapgraphic" + + // set tm_icon fields to the proper mapicon graphic + uiscript updatesiegeobjgraphics + + setitembackground team1_symbol "*team1_icon" + setitembackground team2_symbol "*team2_icon" + setitembackground team1_button "*team1_icon" + setitembackground team2_button "*team2_icon" + + // Enable team buttons, in case they'd been shut off + disable team_button 0 + disable autoteam 0 + disable team1_button 0 + disable team2_button 0 + + // and reset colors + setitemcolor team1_button backcolor .8 .48 0 1 + setitemcolor team2_button backcolor .8 .48 0 1 + setitemcolor team1name forecolor .8 .48 0 1 + setitemcolor team2name forecolor .8 .48 0 1 + setitemcolor team1_count forecolor .8 .48 0 1 + setitemcolor team2_count forecolor .8 .48 0 1 + setitemcolor siegeclassconfigtitle forecolor 1 .68 0 1 + + // + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + setitemcolor team1obj_buttons forecolor 1 1 1 1 + setitemcolor team2obj_buttons forecolor 1 1 1 1 + + disable team1obj_buttons 0 + disable team2obj_buttons 0 + + hide grey_button + hide class_portrait + hide itemdescription + + // Show first objective + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and stext of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_1 + + //change text of long desc + setitemtext obj_longdesc "*team1_objective1_longdesc" + + // change objective pic + setitembackground objective_pic "*team1_objective1_gfx" + + // Show new map icon + setitembackground tm1_icon1 "*team1_objective1_mapicon" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + + setitemcolor mapicons bordercolor 0 0 0 0 + + // Disable current button and give it a border + setitemcolor team1obj1_button bordercolor 1 1 1 1 + setitemcolor team1obj1_button backcolor 1 0 0 1 + + // Set the map icon picture to the updated graphic + uiscript setsiegeobjbuttons tm1_icon1 team1_objective1_mapicon team1_objective1_litmapicon + uiscript setteamclassicons + } + + onESC + { + hide stats + hide forcepowerlevel + hide minidesc + hide fulldesc + hide objective_pic + disable team_button 0 + close all; + } + + //------------------------------------------------------------ + // Window backdrop + //------------------------------------------------------------ + itemDef + { + name background_pic + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/menu_box_ingame" + forecolor 1 1 1 1 + visible 0 + decoration + } + + // Title of objective section + itemDef + { + name objectivetitle + style WINDOW_STYLE_FILLED + backcolor .05 .13 .25 1 + text @MENUS_MISSION_OBJECTIVES + rect 7 7 308 20 + textalign ITEM_ALIGN_CENTER + textalignx 160 + textaligny -1 + font 3 + textscale 0.9 + forecolor 1 .68 0 1 + visible 1 + decoration + } + + // Border around the objective half of the screen + itemDef + { + name border + group none + type ITEM_TYPE_TEXT + rect 5 5 310 370 +// forecolor 1 1 1 .6 + visible 1 + border 1 + bordercolor 1 1 1 1 + decoration + } + + + itemDef + { + name mapname + group time + style WINDOW_STYLE_EMPTY +// text @MENUS_MISSION + cvar siege_missionname + maxChars 0 + rect 70 28 180 18 + textalign ITEM_ALIGN_CENTER + textalignx 90 + font 3 + textscale .7 + forecolor 1 1 1 1 + visible 1 + decoration + } + + //------------------------------------------------------------ + // Map picture + //------------------------------------------------------------ + itemDef + { + name mappic + group none + style WINDOW_STYLE_SHADER + rect 70 46 180 320 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor .38 .51 .59 1 + decoration + background "*siege_mapgraphic" + } + + +//---------------------------------------------------------------------------------------------- +// TEAM SYMBOLS +//---------------------------------------------------------------------------------------------- + itemDef + { + name team1_symbol + style WINDOW_STYLE_SHADER + rect 12 60 45 45 + forecolor 1 0 0 1 + visible 1 + decoration + } + + itemDef + { + name team2_symbol + style WINDOW_STYLE_SHADER + rect 265 60 45 45 + forecolor 0 0 1 1 + visible 1 + decoration + } + +//------------------------------------------- +// TEAM1 - OBJECTIVE BUTTON 1 +//------------------------------------------- + itemDef + { + name team1obj1_button + group team1obj_buttons + rect 22 120 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_1 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor 1 0 0 1 + forecolor .75 .75 .75 1 + visible 1 + border 1 + bordercolor 0 0 0 0 + mouseEnter + { + setitemcolor team1obj1_button forecolor 1 1 1 1 + setitemcolor team1obj1_button backcolor 1 0 0 1 + } + mouseExit + { + setitemcolor team1obj1_button forecolor .75 .75 .75 1 + setitemcolor team1obj1_button backcolor .7 0 0 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change text of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_1 + + //change text of long desc + setitemtext obj_longdesc "*team1_objective1_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team1_objective1_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button and give it a border + setcvar currentObjButton "team1obj1_button" + setitemcolor team1obj1_button bordercolor 1 1 1 1 + setitemcolor team1obj1_button backcolor 1 0 0 1 + + // Completed text + hide completed_text + show text_tm1_obj1 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm1_icon1 team1_objective1_mapicon team1_objective1_litmapicon + } + } + +//---------------------------------------------------------------------------------------------- +// TEAM1 - OBJECTIVE BUTTON 2 +//---------------------------------------------------------------------------------------------- + itemDef + { + name team1obj2_button + group team1obj_buttons + rect 22 150 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_2 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor .7 0 0 1 + forecolor .75 .75 .75 1 + visible 1 + border 1 + bordercolor 0 0 0 1 + cvartest "team1_objective2_inuse" + showcvar + { + "1"; "2" + } + mouseEnter + { + setitemcolor team1obj2_button forecolor 1 1 1 1 + setitemcolor team1obj2_button backcolor 1 0 0 1 + } + mouseExit + { + setitemcolor team1obj2_button forecolor .75 .75 .75 1 + setitemcolor team1obj2_button backcolor .7 0 0 1 + } + + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and text of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_2 + + //change text of long desc + setitemtext obj_longdesc "*team1_objective2_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team1_objective2_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team1obj2_button" + setitemcolor team1obj2_button bordercolor 1 1 1 1 + setitemcolor team1obj2_button backcolor 1 0 0 1 + + // Completed text + hide completed_text + show text_tm1_obj2 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm1_icon2 team1_objective2_mapicon team1_objective2_litmapicon + + } + } + + itemDef + { + name team1obj3_button + group team1obj_buttons + rect 22 180 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_3 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor .7 0 0 1 + forecolor .75 .75 .75 1 + visible 1 + border 1 + bordercolor 0 0 0 1 + cvartest "team1_objective3_inuse" + showcvar + { + "1"; "2" + } + mouseEnter + { + setitemcolor team1obj3_button forecolor 1 1 1 1 + setitemcolor team1obj3_button backcolor 1 0 0 1 + } + mouseExit + { + setitemcolor team1obj3_button forecolor .75 .75 .75 1 + setitemcolor team1obj3_button backcolor .7 0 0 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and stext of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_3 + + //change text of long desc + setitemtext obj_longdesc "*team1_objective3_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team1_objective3_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team1obj3_button" + setitemcolor team1obj3_button bordercolor 1 1 1 1 + setitemcolor team1obj3_button backcolor 1 0 0 1 + + // Completed text + hide completed_text + show text_tm1_obj3 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm1_icon3 team1_objective3_mapicon team1_objective3_litmapicon + } + } + + itemDef + { + name team1obj4_button + group team1obj_buttons + rect 22 210 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_4 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor .7 0 0 1 + forecolor .75 .75 .75 1 + visible 1 + border 1 + bordercolor 0 0 0 1 + cvartest "team1_objective4_inuse" + showcvar + { + "1"; "2" + } + mouseEnter + { + setitemcolor team1obj4_button forecolor 1 1 1 1 + setitemcolor team1obj4_button backcolor 1 0 0 1 + } + mouseExit + { + setitemcolor team1obj4_button forecolor .75 .75 .75 1 + setitemcolor team1obj4_button backcolor .7 0 0 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and stext of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_4 + + //change text of long desc + setitemtext obj_longdesc "*team1_objective4_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team1_objective4_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team1obj4_button" + setitemcolor team1obj4_button bordercolor 1 1 1 1 + setitemcolor team1obj4_button backcolor 1 0 0 1 + + // Completed text + hide completed_text + show text_tm1_obj4 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm1_icon4 team1_objective4_mapicon team1_objective4_litmapicon + } + } + + itemDef + { + name team1obj5_button + group team1obj_buttons + rect 22 240 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_5 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor .7 0 0 1 + forecolor .75 .75 .75 1 + visible 1 + border 1 + bordercolor 0 0 0 1 + cvartest "team1_objective5_inuse" + showcvar + { + "1"; "2" + } + mouseEnter + { + setitemcolor team1obj5_button forecolor 1 1 1 1 + setitemcolor team1obj5_button backcolor 1 0 0 1 + } + mouseExit + { + setitemcolor team1obj5_button forecolor .75 .75 .75 1 + setitemcolor team1obj5_button backcolor .7 0 0 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and stext of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_5 + + //change text of long desc + setitemtext obj_longdesc "*team1_objective5_longdesc" + + + // change pic to match objective + setitembackground objective_pic "*team1_objective5_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team1obj5_button" + setitemcolor team1obj5_button bordercolor 1 1 1 1 + setitemcolor team1obj5_button backcolor 1 0 0 1 + + // Completed text + hide completed_text + show text_tm1_obj5 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm1_icon5 team1_objective5_mapicon team1_objective5_litmapicon + } + } + + itemDef + { + name team1obj6_button + group team1obj_buttons + rect 22 270 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_6 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor .7 0 0 1 + forecolor .75 .75 .75 1 + visible 1 + border 1 + bordercolor 0 0 0 1 + cvartest "team1_objective6_inuse" + showcvar + { + "1"; "2" + } + mouseEnter + { + setitemcolor team1obj6_button forecolor 1 1 1 1 + setitemcolor team1obj6_button backcolor 1 0 0 1 + } + mouseExit + { + setitemcolor team1obj6_button forecolor .75 .75 .75 1 + setitemcolor team1obj6_button backcolor .7 0 0 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and stext of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_6 + + //change text of long desc + setitemtext obj_longdesc "*team1_objective6_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team1_objective6_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team1obj6_button" + setitemcolor team1obj6_button bordercolor 1 1 1 1 + setitemcolor team1obj6_button backcolor 1 0 0 1 + + // Completed text + hide completed_text + show text_tm1_obj6 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm1_icon6 team1_objective6_mapicon team1_objective6_litmapicon + } + } + + itemDef + { + name team1obj7_button + group team1obj_buttons + rect 22 300 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_7 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor .7 0 0 1 + forecolor .75 .75 .75 1 + visible 1 + border 1 + bordercolor 0 0 0 1 + cvartest "team1_objective7_inuse" + showcvar + { + "1"; "2" + } + mouseEnter + { + setitemcolor team1obj7_button forecolor 1 1 1 1 + setitemcolor team1obj7_button backcolor 1 0 0 1 + } + mouseExit + { + setitemcolor team1obj7_button forecolor .75 .75 .75 1 + setitemcolor team1obj7_button backcolor .7 0 0 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and stext of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_7 + + //change text of long desc + setitemtext obj_longdesc "*team1_objective7_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team1_objective7_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team1obj7_button" + setitemcolor team1obj7_button bordercolor 1 1 1 1 + setitemcolor team1obj7_button backcolor 1 0 0 1 + + // Completed text + hide completed_text + show text_tm1_obj7 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm1_icon7 team1_objective7_mapicon team1_objective7_litmapicon + } + } + + itemDef + { + name team1obj8_button + group team1obj_buttons + rect 22 330 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_8 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor .7 0 0 1 + forecolor .75 .75 .75 1 + visible 1 + border 1 + bordercolor 0 0 0 1 + cvartest "team1_objective8_inuse" + showcvar + { + "1"; "2" + } + mouseEnter + { + setitemcolor team1obj8_button forecolor 1 1 1 1 + setitemcolor team1obj8_button backcolor 1 0 0 1 + } + mouseExit + { + setitemcolor team1obj8_button forecolor .75 .75 .75 1 + setitemcolor team1obj8_button backcolor .7 0 0 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and stext of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_8 + + //change text of long desc + setitemtext obj_longdesc "*team1_objective8_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team1_objective8_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team1obj8_button" + setitemcolor team1obj8_button bordercolor 1 1 1 1 + setitemcolor team1obj8_button backcolor 1 0 0 1 + + // Completed text + hide completed_text + show text_tm1_obj8 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm1_icon8 team1_objective8_mapicon team1_objective8_litmapicon + } + } + +//---------------------------------------------------------------------------------------------- +// TEAM1 - MET OBJECTIVES BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name team1_met_obj1 + group none + style WINDOW_STYLE_SHADER + rect 22 120 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective1" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team1_met_obj2 + group none + style WINDOW_STYLE_SHADER + rect 22 150 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective2" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team1_met_obj3 + group none + style WINDOW_STYLE_SHADER + rect 22 180 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective3" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team1_met_obj4 + group none + style WINDOW_STYLE_SHADER + rect 22 210 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective4" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team1_met_obj5 + group none + style WINDOW_STYLE_SHADER + rect 22 240 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective5" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team1_met_obj6 + group none + style WINDOW_STYLE_SHADER + rect 22 270 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective6" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team1_met_obj7 + group none + style WINDOW_STYLE_SHADER + rect 22 300 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective7" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team1_met_obj8 + group none + style WINDOW_STYLE_SHADER + rect 22 330 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective8" + decoration + showcvar + { + "1" + } + } + +//---------------------------------------------------------------------------------------------- +// TEAM2 - PRIMARY OBJECTIVE BUTTON +//---------------------------------------------------------------------------------------------- + itemDef + { + name team2obj1_button + group team2obj_buttons + rect 273 120 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_1 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor 0 0 1 1 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 0 0 0 0 + mouseEnter + { + setitemcolor team2obj1_button forecolor 1 1 1 1 + setitemcolor team2obj1_button backcolor 0 0 1 1 + } + mouseExit + { + setitemcolor team2obj1_button forecolor .75 .75 .75 1 + setitemcolor team2obj1_button backcolor 0 0 .7 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and stext of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_1 + + //change text of long desc + setitemtext obj_longdesc "*team2_objective1_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team2_objective1_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team2obj1_button" + setitemcolor team2obj1_button bordercolor 1 1 1 1 + setitemcolor team2obj1_button backcolor 0 0 1 1 + + // Completed text + hide completed_text + show text_tm2_obj1 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm2_icon1 team2_objective1_mapicon team2_objective1_litmapicon + } + } + +//---------------------------------------------------------------------------------------------- +// TEAM2 - SECONDARY OBJECTIVE BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name team2obj2_button + group team2obj_buttons + rect 273 150 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_2 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor 0 0 1 1 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 0 0 0 0 + cvartest "team2_objective2_inuse" + showcvar + { + "1"; "2" + } + mouseEnter + { + setitemcolor team2obj2_button forecolor 1 1 1 1 + setitemcolor team2obj2_button backcolor 0 0 1 1 + } + mouseExit + { + setitemcolor team2obj2_button forecolor .75 .75 .75 1 + setitemcolor team2obj2_button backcolor 0 0 .7 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and stext of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_2 + + //change text of long desc + setitemtext obj_longdesc "*team2_objective2_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team2_objective2_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team2obj2_button" + setitemcolor team2obj2_button bordercolor 1 1 1 1 + setitemcolor team2obj2_button backcolor 0 0 1 1 + + // Completed text + hide completed_text + show text_tm2_obj2 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm2_icon2 team2_objective2_mapicon team2_objective2_litmapicon + } + } + + itemDef + { + name team2obj3_button + group team2obj_buttons + rect 273 180 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_3 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor 0 0 1 1 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 0 0 0 0 + cvartest "team2_objective3_inuse" + showcvar + { + "1"; "2" + } + mouseEnter + { + setitemcolor team2obj3_button forecolor 1 1 1 1 + setitemcolor team2obj3_button backcolor 0 0 1 1 + } + mouseExit + { + setitemcolor team2obj3_button forecolor .75 .75 .75 1 + setitemcolor team2obj3_button backcolor 0 0 .7 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and stext of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_3 + + //change text of long desc + setitemtext obj_longdesc "*team2_objective3_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team2_objective3_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team2obj3_button" + setitemcolor team2obj3_button bordercolor 1 1 1 1 + setitemcolor team2obj3_button backcolor 0 0 1 1 + + // Completed text + hide completed_text + show text_tm2_obj3 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm2_icon3 team2_objective3_mapicon team2_objective3_litmapicon + } + } + + itemDef + { + name team2obj4_button + group team2obj_buttons + rect 273 210 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_4 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor 0 0 1 1 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 0 0 0 0 + cvartest "team2_objective4_inuse" + showcvar + { + "1"; "2" + } + mouseEnter + { + setitemcolor team2obj4_button forecolor 1 1 1 1 + setitemcolor team2obj4_button backcolor 0 0 1 1 + } + mouseExit + { + setitemcolor team2obj4_button forecolor .75 .75 .75 1 + setitemcolor team2obj4_button backcolor 0 0 .7 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and text of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_4 + + //change text of long desc + setitemtext obj_longdesc "*team2_objective4_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team2_objective4_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team2obj4_button" + setitemcolor team2obj4_button bordercolor 1 1 1 1 + setitemcolor team2obj4_button backcolor 0 0 1 1 + + // Completed text + hide completed_text + show text_tm2_obj4 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm2_icon4 team2_objective4_mapicon team2_objective4_litmapicon + } + } + + itemDef + { + name team2obj5_button + group team2obj_buttons + rect 273 240 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_5 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor 0 0 1 1 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 0 0 0 0 + cvartest "team2_objective5_inuse" + showcvar + { + "1"; "2" + } + mouseEnter + { + setitemcolor team2obj5_button forecolor 1 1 1 1 + setitemcolor team2obj5_button backcolor 0 0 1 1 + } + mouseExit + { + setitemcolor team2obj5_button forecolor .75 .75 .75 1 + setitemcolor team2obj5_button backcolor 0 0 .7 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and text of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_5 + + //change text of long desc + setitemtext obj_longdesc "*team2_objective5_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team2_objective5_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team2obj5_button" + setitemcolor team2obj5_button bordercolor 1 1 1 1 + setitemcolor team2obj5_button backcolor 0 0 1 1 + + // Completed text + hide completed_text + show text_tm2_obj5 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm2_icon5 team2_objective5_mapicon team2_objective5_litmapicon + } + } + + itemDef + { + name team2obj6_button + group team2obj_buttons + rect 273 270 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_6 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor 0 0 1 1 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 0 0 0 0 + cvartest "team2_objective6_inuse" + showcvar + { + "1"; "2" + } + mouseEnter + { + setitemcolor team2obj6_button forecolor 1 1 1 1 + setitemcolor team2obj6_button backcolor 0 0 1 1 + } + mouseExit + { + setitemcolor team2obj6_button forecolor .75 .75 .75 1 + setitemcolor team2obj6_button backcolor 0 0 .7 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and text of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_6 + + //change text of long desc + setitemtext obj_longdesc "*team2_objective6_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team2_objective6_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team2obj6_button" + setitemcolor team2obj6_button bordercolor 1 1 1 1 + setitemcolor team2obj6_button backcolor 0 0 1 1 + + // Completed text + hide completed_text + show text_tm2_obj6 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm2_icon6 team2_objective6_mapicon team2_objective6_litmapicon + } + } + + itemDef + { + name team2obj7_button + group team2obj_buttons + rect 273 300 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_7 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor 0 0 1 1 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 0 0 0 0 + cvartest "team2_objective7_inuse" + showcvar + { + "1"; "2" + } + mouseEnter + { + setitemcolor team2obj7_button forecolor 1 1 1 1 + setitemcolor team2obj7_button backcolor 0 0 1 1 + } + mouseExit + { + setitemcolor team2obj7_button forecolor .75 .75 .75 1 + setitemcolor team2obj7_button backcolor 0 0 .7 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and text of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_7 + + //change text of long desc + setitemtext obj_longdesc "*team2_objective7_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team2_objective7_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team2obj7_button" + setitemcolor team2obj7_button bordercolor 1 1 1 1 + setitemcolor team2obj7_button backcolor 0 0 1 1 + + // Completed text + hide completed_text + show text_tm2_obj7 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm2_icon7 team2_objective7_mapicon team2_objective7_litmapicon + } + } + + itemDef + { + name team2obj8_button + group team2obj_buttons + rect 273 330 24 24 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + text @MENUS_8 + font 2 + textscale .8 + textstyle 0 + textalign ITEM_ALIGN_CENTER + textalignx 12 + textaligny -1 + backcolor 0 0 1 1 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 0 0 0 0 + cvartest "team2_objective8_inuse" + showcvar + { + "1"; "2" + } + mouseEnter + { + setitemcolor team2obj8_button forecolor 1 1 1 1 + setitemcolor team2obj8_button backcolor 0 0 1 1 + } + mouseExit + { + setitemcolor team2obj8_button forecolor .75 .75 .75 1 + setitemcolor team2obj8_button backcolor 0 0 .7 1 + } + action + { + // Because open and close menu hide these + show obj_minidesc + show obj_longdesc + show objective_pic + + // change color and text of mini desc + setitemtext obj_minidesc @MENUS_OBJECTIVE_8 + + //change text of long desc + setitemtext obj_longdesc "*team2_objective8_longdesc" + + // change pic to match objective + setitembackground objective_pic "*team2_objective8_gfx" + + // Reset all buttons to their normal colors + setitemcolor team1obj_buttons forecolor .75 .75 .75 1 + setitemcolor team1obj_buttons backcolor .7 0 0 1 + setitemcolor team2obj_buttons forecolor .75 .75 .75 1 + setitemcolor team2obj_buttons backcolor 0 0 .7 1 + setitemcolor team1obj_buttons bordercolor 0 0 0 0 + setitemcolor team2obj_buttons bordercolor 0 0 0 0 + + // Disable current button + setcvar currentObjButton "team2obj8_button" + setitemcolor team2obj8_button bordercolor 1 1 1 1 + setitemcolor team2obj8_button backcolor 0 0 1 1 + + // Completed text + hide completed_text + show text_tm2_obj8 + + // Reset old map icon to old background and enable old obj button + // Set new map icon to hilite background and disable new obj button + uiscript setsiegeobjbuttons tm2_icon8 team2_objective8_mapicon team2_objective8_litmapicon + } + } + + +//---------------------------------------------------------------------------------------------- +// TEAM2 - MET OBJECTIVES +//---------------------------------------------------------------------------------------------- + itemDef + { + name team2_met_obj1 + group none + style WINDOW_STYLE_SHADER + rect 273 120 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective1" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team2_met_obj2 + group none + style WINDOW_STYLE_SHADER + rect 273 150 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective2" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team2_met_obj3 + group none + style WINDOW_STYLE_SHADER + rect 273 180 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective3" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team2_met_obj4 + group none + style WINDOW_STYLE_SHADER + rect 273 210 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective4" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team2_met_obj5 + group none + style WINDOW_STYLE_SHADER + rect 273 240 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective5" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team2_met_obj6 + group none + style WINDOW_STYLE_SHADER + rect 273 270 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective6" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team2_met_obj7 + group none + style WINDOW_STYLE_SHADER + rect 273 300 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective7" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team2_met_obj8 + group none + style WINDOW_STYLE_SHADER + rect 273 330 24 24 + forecolor 1 1 1 1 + visible 1 + border 1 + bordercolor 1 1 1 1 + background "gfx/menus/x" + visible 1 + cvartest "team1_objective8" + decoration + showcvar + { + "1" + } + } + + +//---------------------------------------------------------------------------------------------- +// TEAM1 MAP ICONS - position for these is set in the on open of the menu +//---------------------------------------------------------------------------------------------- + itemDef + { + name tm1_icon1 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team1_objective1_inuse" + hidecvar + { + "0" + } + } + + itemDef + { + name tm1_icon2 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team1_objective2_inuse" + hidecvar + { + "0" + } + } + + itemDef + { + name tm1_icon3 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team1_objective3_inuse" + hidecvar + { + "0" + } + } + + itemDef + { + name tm1_icon4 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team1_objective4_inuse" + hidecvar + { + "0" + } + } + + itemDef + { + name tm1_icon5 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team1_objective5_inuse" + hidecvar + { + "0" + } + } + + itemDef + { + name tm1_icon6 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team1_objective6_inuse" + hidecvar + { + "0" + } + } + + itemDef + { + name tm1_icon7 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team1_objective7_inuse" + hidecvar + { + "0" + } + } + + itemDef + { + name tm1_icon8 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team1_objective8_inuse" + hidecvar + { + "0" + } + } + + +//---------------------------------------------------------------------------------------------- +// TEAM2 MAP ICONS - position for these is set in the on open of the menu +//---------------------------------------------------------------------------------------------- + itemDef + { + name tm2_icon1 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team2_objective1_inuse" + hidecvar + { + "0" + } + } + + itemDef + { + name tm2_icon2 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team2_objective2_inuse" + hidecvar + { + "0" + } + } + + itemDef + { + name tm2_icon3 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team2_objective3_inuse" + hidecvar + { + "0" + } + } + + itemDef + { + name tm2_icon4 + group mapicons + //rectcvar "siege_objective3_mappos" + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team2_objective4_inuse" + hidecvar + { + "0" + } + } + + itemDef + { + name tm2_icon5 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team2_objective5_inuse" + hidecvar + { + "0" + } + } + + itemDef + { + name tm2_icon6 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team2_objective6_inuse" + hidecvar + { + "0" + } + } + + itemDef + { + name tm2_icon7 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team2_objective7_inuse" + hidecvar + { + "0" + } + } + + itemDef + { + name tm2_icon8 + group mapicons + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + cvartest "team2_objective8_inuse" + hidecvar + { + "0" + } + } + +//---------------------------------------------------------------------------------------------- +// TEAM1 - MET OBJECTIVES MAP ICONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name team1_met_map1 + group none + style WINDOW_STYLE_SHADER + rectcvar team1_objective1_mappos + forecolor 1 1 1 1 + visible 1 + background "*team1_objective1_donemapicon" + visible 1 + cvartest "team1_objective1" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team1_met_map2 + group none + style WINDOW_STYLE_SHADER + rectcvar team1_objective2_mappos + forecolor 1 1 1 1 + visible 1 + background "*team1_objective2_donemapicon" + visible 1 + cvartest "team1_objective2" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team1_met_map3 + group none + style WINDOW_STYLE_SHADER + rectcvar team1_objective3_mappos + forecolor 1 1 1 1 + visible 1 + background "*team1_objective3_donemapicon" + visible 1 + cvartest "team1_objective3" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team1_met_map4 + group none + style WINDOW_STYLE_SHADER + rectcvar team1_objective4_mappos + forecolor 1 1 1 1 + visible 1 + background "*team1_objective4_donemapicon" + visible 1 + cvartest "team1_objective4" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team1_met_map5 + group none + style WINDOW_STYLE_SHADER + rectcvar team1_objective5_mappos + forecolor 1 1 1 1 + visible 1 + background "*team1_objective5_donemapicon" + visible 1 + cvartest "team1_objective5" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team1_met_map6 + group none + style WINDOW_STYLE_SHADER + rectcvar team1_objective6_mappos + forecolor 1 1 1 1 + visible 1 + background "*team1_objective6_donemapicon" + visible 1 + cvartest "team1_objective6" + decoration + showcvar + { + "1" + } + } + + + itemDef + { + name team1_met_map7 + group none + style WINDOW_STYLE_SHADER + rectcvar team1_objective7_mappos + forecolor 1 1 1 1 + visible 1 + background "*team1_objective7_donemapicon" + visible 1 + cvartest "team1_objective7" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team1_met_map8 + group none + style WINDOW_STYLE_SHADER + rectcvar team1_objective8_mappos + forecolor 1 1 1 1 + visible 1 + background "*team1_objective8_donemapicon" + visible 1 + cvartest "team1_objective8" + decoration + showcvar + { + "1" + } + } + +//---------------------------------------------------------------------------------------------- +// TEAM2 - MET OBJECTIVES MAP ICONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name team2_met_map1 + group none + style WINDOW_STYLE_SHADER + rectcvar team2_objective1_mappos + forecolor 1 1 1 1 + visible 1 + background "*team2_objective1_donemapicon" + visible 1 + decoration + cvartest "team1_objective1" + showcvar + { + "1" + } + } + + itemDef + { + name team2_met_map2 + group none + style WINDOW_STYLE_SHADER + rectcvar team2_objective2_mappos + forecolor 1 1 1 1 + visible 1 + background "*team2_objective2_donemapicon" + visible 1 + cvartest "team1_objective2" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team2_met_map3 + group none + style WINDOW_STYLE_SHADER + rectcvar team2_objective3_mappos + forecolor 1 1 1 1 + visible 1 + background "*team2_objective3_donemapicon" + visible 1 + cvartest "team1_objective3" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team2_met_map4 + group none + style WINDOW_STYLE_SHADER + rectcvar team2_objective4_mappos + forecolor 1 1 1 1 + visible 1 + background "*team2_objective4_donemapicon" + visible 1 + cvartest "team1_objective4" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team2_met_map5 + group none + style WINDOW_STYLE_SHADER + rectcvar team2_objective5_mappos + forecolor 1 1 1 1 + visible 1 + background "*team2_objective5_donemapicon" + visible 1 + cvartest "team1_objective5" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team2_met_map6 + group none + style WINDOW_STYLE_SHADER + rectcvar team2_objective6_mappos + forecolor 1 1 1 1 + visible 1 + background "*team2_objective6_donemapicon" + visible 1 + cvartest "team1_objective6" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team2_met_map7 + group none + style WINDOW_STYLE_SHADER + rectcvar team2_objective7_mappos + forecolor 1 1 1 1 + visible 1 + background "*team2_objective7_donemapicon" + visible 1 + cvartest "team1_objective7" + decoration + showcvar + { + "1" + } + } + + itemDef + { + name team2_met_map8 + group none + style WINDOW_STYLE_SHADER + rectcvar team2_objective8_mappos + forecolor 1 1 1 1 + visible 1 + background "*team2_objective8_donemapicon" + visible 1 + cvartest "team1_objective8" + decoration + showcvar + { + "1" + } + } + + //------------------------------------------- + // OBJECTIVE MINI-DESCRIPTIONS + //------------------------------------------- + itemDef + { + name obj_minidesc + rect 7 378 308 20 + style WINDOW_STYLE_FILLED + backcolor .05 .13 .25 1 + text @MENUS_PRIMARY_OBJECTIVES + font 2 + textscale .7 + textalign ITEM_ALIGN_RIGHT + textalignx 300 + forecolor 1 .68 0 1 + visible 0 + decoration + } + + //------------------------------------------- + // OBJECTIVE LONG DESCRIPTION + //------------------------------------------- + itemDef + { + name obj_longdesc + rect 16 403 270 76 + type ITEM_TYPE_TEXT + font 4 + textscale .8 + textalign ITEM_ALIGN_LEFT + forecolor 1 1 1 1 + visible 1 + autowrapped + decoration + } + + + //------------------------------------------- + // OBJECTIVE PICTURE + //------------------------------------------- + itemDef + { + name objective_pic + rect 208 398 107 78 + style WINDOW_STYLE_SHADER + background "gfx/2d/select" + forecolor 1 1 1 1 + visible 1 + decoration + } + + //------------------------------------------- + // COMPLETED TEXT + //------------------------------------------- + itemDef + { + name text_tm1_obj1 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team1_objective1" + showcvar + { + "1" + } + + } + + itemDef + { + name text_tm1_obj2 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team1_objective2" + showcvar + { + "1" + } + } + + + itemDef + { + name text_tm1_obj3 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team1_objective3" + showcvar + { + "1" + } + } + + + itemDef + { + name text_tm1_obj4 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team1_objective4" + showcvar + { + "1" + } + } + + + itemDef + { + name text_tm1_obj5 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team1_objective5" + showcvar + { + "1" + } + } + + + itemDef + { + name text_tm1_obj6 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team1_objective6" + showcvar + { + "1" + } + } + + + itemDef + { + name text_tm1_obj7 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team1_objective7" + showcvar + { + "1" + } + } + + itemDef + { + name text_tm1_obj8 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team1_objective8" + showcvar + { + "1" + } + } + + itemDef + { + name text_tm2_obj1 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team2_objective1" + showcvar + { + "1" + } + } + + itemDef + { + name text_tm2_obj2 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team2_objective2" + showcvar + { + "1" + } + } + + + itemDef + { + name text_tm2_obj3 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team2_objective3" + showcvar + { + "1" + } + } + + + itemDef + { + name text_tm2_obj4 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team2_objective4" + showcvar + { + "1" + } + } + + + itemDef + { + name text_tm2_obj5 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team2_objective5" + showcvar + { + "1" + } + } + + + itemDef + { + name text_tm2_obj6 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team2_objective6" + showcvar + { + "1" + } + } + + + itemDef + { + name text_tm2_obj7 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team2_objective7" + showcvar + { + "1" + } + } + + itemDef + { + name text_tm2_obj8 + group completed_text + rect 210 427 107 78 + type ITEM_TYPE_TEXT + text @MENUS_OBJECTIVE_COMPLETED + textalign ITEM_ALIGN_CENTER + font 2 + textscale .7 + textalignx 53 + textaligny 0 + forecolor 1 1 1 1 + visible 0 + decoration + cvartest "team2_objective8" + showcvar + { + "1" + } + } + + + // Border around the objective text and pic (lower left section of screen) + itemDef + { + name objtext_border + group none + type ITEM_TYPE_TEXT + rect 5 378 310 98 + visible 1 + border 1 + bordercolor 1 1 1 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// MAP TIME SECTION +//---------------------------------------------------------------------------------------------- + + // Border + itemDef + { + name border + group none + type ITEM_TYPE_TEXT + rect 317 5 317 20 + forecolor 1 1 1 .6 + visible 1 + border 1 + bordercolor 1 1 1 1 + decoration + } + + itemDef + { + name playername + group time + type ITEM_TYPE_EDITFIELD + rect 325 6 120 18 + text @MENUS_NAME_TITLE + cvar name + textalign ITEM_ALIGN_LEFT + textalignx 0 + font 4 + textscale 1 + forecolor 1 .68 0 1 + visible 1 + } + + itemDef + { + name playerteam + group time + type ITEM_TYPE_MULTI + style WINDOW_STYLE_EMPTY + rect 500 6 120 18 + text @MENUS_TEAM + cvar ui_team + cvarStrList + { + + @MENUS_SPECTATOR 0 + "*cg_siegeTeam1Name" 1 + "*cg_siegeTeam2Name" 2 + @MENUS_SPECTATOR 3 + } + + textalign ITEM_ALIGN_LEFT + textalignx 0 + font 4 + textscale 1 + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// TEAM SELECTION +//---------------------------------------------------------------------------------------------- + + // join a team text + itemDef + { + name joinateam + rect 318 27 316 20 + style WINDOW_STYLE_FILLED + backcolor .05 .13 .25 1 + text @MENUS_JOIN_A_TEAM + font 3 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 6 + textaligny 2 + forecolor 1 .68 0 1 + visible 1 + decoration + } + + // Border + itemDef + { + name teamborder + group none + type ITEM_TYPE_TEXT + rect 317 26 317 103 + forecolor 1 1 1 .6 + visible 1 + border 1 + bordercolor 1 1 1 1 + decoration + } + + //---------------------------------------- + // TEAM SYMBOLS AND COUNTS PER TEAM + //---------------------------------------- + + itemDef + { + name team1name + group none + rect 355 47 45 45 + cvar cg_siegeTeam1Name + textalign ITEM_ALIGN_CENTER + textalignx 23 + font 4 + textscale 1 + forecolor .8 .48 0 1 + visible 1 + decoration + } + + itemDef + { + + name team1_button + group team_button + rect 355 66 45 45 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + descText @MENUS_JOIN_TEAM_DESC + backcolor .8 .48 0 1 + visible 1 + + mouseEnter + { + setitemcolor team1_button backcolor 1 .68 0 1 + setitemcolor team1_count forecolor 1 .68 0 1 + setitemcolor team1name forecolor 1 .68 0 1 + } + mouseExit + { + setitemcolor team1_button backcolor .8 .48 0 1 + setitemcolor team1_count forecolor .8 .48 0 1 + setitemcolor team1name forecolor .8 .48 0 1 + } + + // If you change this script, be sure to change onteam1 + action + { + // show the class stuff, cause this uses class + show class_button + show class_count + show classdescription + + play "sound/interface/button1.wav" + setcvar ui_holdteam 1 + uiscript updatesiegeclasscnt 1 + uiscript updatesiegecvars + + // Darken the other team buttons + setitemcolor team_button backcolor .8 .48 0 1 + setitemcolor team_count forecolor .8 .48 0 1 + setitemcolor team2name forecolor .8 .48 0 1 + setitemcolor autoteam bordercolor 0 0 0 0 + + // turn on the other team buttons for input + disable team_button 0 + disable autoteam 0 + + // turn on class buttons + disable class_button 0 + + // highlight this team button + setitemcolor team1_button backcolor 1 1 1 1 + setitemcolor team1_count forecolor 1 1 1 1 + setitemcolor team1name forecolor 1 1 1 1 + + // no more input for this guy + disable team1_button 1 + + show grey_button + setitemcolor class_button forecolor .5 .5 .5 1 + + setitemtext class1_count "*ui_tm1_c0_cnt" + setitemtext class2_count "*ui_tm1_c1_cnt" + setitemtext class3_count "*ui_tm1_c2_cnt" + setitemtext class4_count "*ui_tm1_c3_cnt" + setitemtext class5_count "*ui_tm1_c4_cnt" + setitemtext class6_count "*ui_tm1_c5_cnt" + hide class_portrait + show siegeclassconfigtitle + uiscript resetsiegelistboxes + uiscript resetitemdescription + hide feeders + hide forcepowerlevel + hide stats + hide classdescription + setitemcolor class_count forecolor .5 .5 .5 1 + hide itemdescription + } + } + + itemDef + { + name team1_count + group team_count + type ITEM_TYPE_TEXT + rect 355 111 60 18 + cvar ui_tm1_cnt + textalign ITEM_ALIGN_CENTER + textalignx 24 + font 4 + textscale 1 + forecolor .8 .48 0 1 + visible 1 + decoration + } + + // This item is here just to have a script for C to run if the menu is opened by + // a player who is already on a team + itemDef + { + name onteam1 + group none + rect 455 47 45 45 + textalign ITEM_ALIGN_CENTER + textalignx 23 + forecolor .8 .48 0 1 + visible 0 + decoration + action + { + // show the class stuff, cause this uses class + show class_button + show class_count + show classdescription + +// setitemcolorcvar feeders bordercolor "team1_coloron" +// setitemcolorcvar siegeclassconfigtitle forecolor "team1_coloron" + + play "sound/interface/button1.wav" + setcvar ui_holdteam 1 + uiscript updatesiegeclasscnt 1 + uiscript updatesiegecvars + + // Darken the other team buttons + setitemcolor team_button backcolor .8 .48 0 1 + setitemcolor team_count forecolor .8 .48 0 1 + setitemcolor team2name forecolor .8 .48 0 1 + setitemcolor autoteam bordercolor 0 0 0 0 + + // turn on the other team buttons for input + disable team_button 0 + disable autoteam 0 + + // turn on class buttons + disable class_button 0 + + // highlight this team button + setitemcolor team1_button backcolor 1 1 1 1 + setitemcolor team1_count forecolor 1 1 1 1 + setitemcolor team1name forecolor 1 1 1 1 + + // no more input for this guy + disable team1_button 1 + + show grey_button + setitemcolor class_button forecolor .5 .5 .5 1 + + setitemtext class1_count "*ui_tm1_c0_cnt" + setitemtext class2_count "*ui_tm1_c1_cnt" + setitemtext class3_count "*ui_tm1_c2_cnt" + setitemtext class4_count "*ui_tm1_c3_cnt" + setitemtext class5_count "*ui_tm1_c4_cnt" + setitemtext class6_count "*ui_tm1_c5_cnt" + hide class_portrait + show siegeclassconfigtitle + uiscript resetsiegelistboxes + uiscript resetitemdescription + hide feeders + hide forcepowerlevel + hide stats + hide classdescription + setitemcolor class_count forecolor .5 .5 .5 1 + hide itemdescription + } + } + itemDef + { + name team2name + group none + rect 455 47 45 45 + cvar cg_siegeTeam2Name + textalign ITEM_ALIGN_CENTER + textalignx 23 + font 4 + textscale 1 + forecolor .8 .48 0 1 + visible 1 + decoration + } + itemDef + { + name team2_button + group team_button + rect 455 67 45 45 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + descText @MENUS_JOIN_TEAM_DESC + backcolor .8 .48 0 1 + visible 1 + + mouseEnter + { + setitemcolor team2_button backcolor 1 .68 0 1 + setitemcolor team2_count forecolor 1 .68 0 1 + setitemcolor team2name forecolor 1 .68 0 1 + } + mouseExit + { + setitemcolor team2_button backcolor .8 .48 0 1 + setitemcolor team2_count forecolor .8 .48 0 1 + setitemcolor team2name forecolor .8 .48 0 1 + } + + // If you change this script, be sure to change onteam2 + action + { + // show the class stuff, cause this uses class + show class_button + show class_count + show classdescription + + play "sound/interface/button1.wav" + setcvar ui_holdteam 2 + uiscript updatesiegeclasscnt 2 + uiscript updatesiegecvars + + // Darken the other team buttons + setitemcolor team_button backcolor .8 .48 0 1 + setitemcolor team_count forecolor .8 .48 0 1 + setitemcolor team1name forecolor .8 .48 0 1 + setitemcolor autoteam bordercolor 0 0 0 0 + // turn on the other team buttons for input + disable team_button 0 + disable autoteam 0 + + // turn on class buttons + disable class_button 0 + + // highlight this team button + setitemcolor team2_button backcolor 1 1 1 1 + setitemcolor team2_count forecolor 1 1 1 1 + setitemcolor team2name forecolor 1 1 1 1 + // no more input for this guy + disable team2_button 1 + + show grey_button + setitemcolor class_button forecolor .5 .5 .5 1 + setitemtext class1_count "*ui_tm2_c0_cnt" + setitemtext class2_count "*ui_tm2_c1_cnt" + setitemtext class3_count "*ui_tm2_c2_cnt" + setitemtext class4_count "*ui_tm2_c3_cnt" + setitemtext class5_count "*ui_tm2_c4_cnt" + setitemtext class6_count "*ui_tm2_c5_cnt" + + hide class_portrait + show siegeclassconfigtitle + uiscript resetsiegelistboxes + uiscript resetitemdescription + hide feeders + hide forcepowerlevel + hide stats + hide classdescription + setitemcolor class_count forecolor .5 .5 .5 1 + hide itemdescription + } + } + + itemDef + { + name team2_count + group team_count + type ITEM_TYPE_TEXT + rect 455 111 60 18 + cvar ui_tm2_cnt + textalign ITEM_ALIGN_CENTER + textalignx 24 + font 4 + textscale 1 + forecolor .8 .48 0 1 + visible 1 + decoration + } + + // This item is here just to have a script for C to run if the menu is opened by + // a player who is already on a team + itemDef + { + name onteam2 + group none + rect 455 47 45 45 + textalign ITEM_ALIGN_CENTER + textalignx 23 + forecolor .8 .48 0 1 + visible 0 + decoration + action + { + // show the class stuff, cause this uses class + show class_button + show class_count + show classdescription + + play "sound/interface/button1.wav" + setcvar ui_holdteam 2 + uiscript updatesiegeclasscnt 2 + uiscript updatesiegecvars + + // Darken the other team buttons + setitemcolor team_button backcolor .8 .48 0 1 + setitemcolor team_count forecolor .8 .48 0 1 + setitemcolor team1name forecolor .8 .48 0 1 + setitemcolor autoteam bordercolor 0 0 0 0 + // turn on the other team buttons for input + disable team_button 0 + disable autoteam 0 + + // turn on class buttons + disable class_button 0 + + // highlight this team button + setitemcolor team2_button backcolor 1 1 1 1 + setitemcolor team2_count forecolor 1 1 1 1 + setitemcolor team2name forecolor 1 1 1 1 + // no more input for this guy + disable team2_button 1 + + show grey_button + setitemcolor class_button forecolor .5 .5 .5 1 + setitemtext class1_count "*ui_tm2_c0_cnt" + setitemtext class2_count "*ui_tm2_c1_cnt" + setitemtext class3_count "*ui_tm2_c2_cnt" + setitemtext class4_count "*ui_tm2_c3_cnt" + setitemtext class5_count "*ui_tm2_c4_cnt" + setitemtext class6_count "*ui_tm2_c5_cnt" + + hide class_portrait + show siegeclassconfigtitle + uiscript resetsiegelistboxes + uiscript resetitemdescription + hide feeders + hide forcepowerlevel + hide stats + hide classdescription + setitemcolor class_count forecolor .5 .5 .5 1 + hide itemdescription + } + } + + itemDef + { + name team3name + group none + rect 556 69 32 20 + text @MENUS_SPECTATOR + textalign ITEM_ALIGN_CENTER + textalignx 16 + font 4 + textscale 1 + forecolor .8 .48 0 1 + visible 1 + decoration + } + + itemDef + { + name spectator_symbol + group none + rect 556 45 32 32 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + descText @MENUS_WATCH_DESC + backcolor .5 .5 .5 1 + visible 1 + background "gfx/2d/mp_spec_symbol" + + mouseEnter + { + setitemcolor spectator_symbol backcolor 1 1 1 1 + setitemcolor team3name forecolor 1 .68 0 1 + } + mouseExit + { + setitemcolor spectator_symbol backcolor .5 .5 .5 1 + setitemcolor team3name forecolor .8 .48 0 1 + } + action + { + + play "sound/interface/button1.wav" + setcvar ui_holdteam 3 + exec "cmd team s" + uiScript closeingame + } + } + + + + //---------------------------------------- + // AUTOTEAM BUTTON + //---------------------------------------- + itemDef + { + name autoteam_symbol + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_FILLED + descText @MENUS_AUTO_JOIN_DESC + rect 556 85 32 32 + backcolor .5 .5 .5 1 + visible 1 + background "gfx/2d/mp_autoteam_symbol" + + mouseEnter + { + setitemcolor autoteam_symbol backcolor 1 1 1 1 + setitemcolor autoteamname forecolor 1 .68 0 1 + } + mouseExit + { + setitemcolor autoteam_symbol backcolor .5 .5 .5 1 + setitemcolor autoteamname forecolor .8 .48 0 1 + } + action + { + // hide the class stuff, cause this doesn't use class + hide class_button + hide class_count + hide feeders + hide stats + hide classdescription + setitemcolor siegeclassconfigtitle forecolor 1 1 1 1 + + play "sound/interface/button1.wav" + exec "cmd team free" + + uiScript closeingame + } + } + + + itemDef + { + name autoteamname + group none + rect 556 109 32 20 + text @MENUS_CAP_AUTO_JOIN + textalign ITEM_ALIGN_CENTER + textalignx 16 + font 4 + textscale 1 + forecolor .8 .48 0 1 + visible 1 + decoration + } + + +//---------------------------------------------------------------------------------------------- +// CLASS SELECTION +//---------------------------------------------------------------------------------------------- + // join a team text + itemDef + { + name siegeclassconfigtitle + rect 318 130 316 20 + style WINDOW_STYLE_FILLED + backcolor .05 .13 .25 1 + text @MENUS_CHOOSE_CLASS + font 3 + textscale .7 + textalign ITEM_ALIGN_LEFT + textalignx 6 + textaligny 2 + forecolor 1 .68 0 1 + visible 0 + decoration + } + + // Border around the objective half of the screen + itemDef + { + name border + group none + type ITEM_TYPE_TEXT + rect 317 130 317 331 + forecolor 1 1 1 .6 + visible 1 + border 1 + bordercolor 1 1 1 1 + decoration + } + + +//---------------------------------------------------------------------------------------------- +// CLASS 1 - INFANTRY +//---------------------------------------------------------------------------------------------- + itemDef + { + name class1_desc + group class_count + type ITEM_TYPE_TEXT + rect 328 154 45 18 + text @MENUS_SIEGE_ASSAULT + textalign ITEM_ALIGN_CENTER + textalignx 22 + font 4 + textscale .5 + forecolor .5 .5 .5 1 + visible 1 + decoration + } + + itemDef + { + name class1_button + group class_button + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_SHADER + background "gfx/mp/c_icon_infantry" + rect 328 165 45 45 + forecolor .5 .5 .5 1 + visible 1 + descText @MENUS_CLASS_CHOICE_DESC + cvartest "ui_infantry_cnt" + disablecvar { "0" } + + mouseEnter + { + setitemcolor class1_button forecolor 1 1 1 1 + setitemcolor class1_count forecolor 1 1 1 1 + setitemcolor class1_desc forecolor 1 1 1 1 + } + mouseExit + { + setitemcolor class1_button forecolor .5 .5 .5 1 + setitemcolor class1_count forecolor .5 .5 .5 1 + setitemcolor class1_desc forecolor .5 .5 .5 1 + } + + action + { + play "sound/interface/button1.wav" + + setcvar ui_siege_class 0 + uiscript updatesiegecvars + + // Turn other buttons on + setitemcolor class_button forecolor .5 .5 .5 1 + disable class_button 0 + setitemcolor class_count forecolor .5 .5 .5 1 + + // High light this button and disable it + setitemcolor class1_button forecolor 1 1 1 1 + setitemcolor class1_count forecolor 1 1 1 1 + setitemcolor class1_desc forecolor 1 1 1 1 + disable class1_button 1 + +// setitemtext description "*ui_classdesc" + show class_portrait + setitembackground class_portrait "*ui_classportrait" + setitemrect class_portrait 328 162 45 45 + + uiscript resetsiegelistboxes + uiscript resetitemdescription + show description + hide itemdescription + setitemcolor stats forecolor 1 1 1 1 + show feeders + show stats + show forcepowerlevel + } + } + + itemDef + { + name class1_count + group class_count + type ITEM_TYPE_TEXT + rect 328 207 45 18 + textalign ITEM_ALIGN_CENTER + textalignx 23 + font 4 + textscale 1 + forecolor .5 .5 .5 1 + visible 1 + decoration + } + + itemDef + { + name class1_greybutton + group grey_button + style WINDOW_STYLE_FILLED + rect 328 165 45 45 + forecolor .5 .5 .5 .6 + backcolor .5 .5 .5 .6 + visible 1 + cvartest "ui_infantry_cnt" + showcvar { "0" } + decoration + } + +//---------------------------------------------------------------------------------------------- +// CLASS 2 +//---------------------------------------------------------------------------------------------- + itemDef + { + name class2_desc + group class_count + type ITEM_TYPE_TEXT + rect 379 154 45 18 + text @MENUS_SIEGE_HEAVY_WEAPS + textalign ITEM_ALIGN_CENTER + textalignx 20 + font 4 + textscale .5 + forecolor .5 .5 .5 1 + visible 1 + decoration + } + + itemDef + { + name class2_button + group class_button + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_SHADER + background "gfx/mp/c_icon_heavy_weapons" + rect 379 165 45 45 + forecolor .5 .5 .5 1 + visible 1 + descText @MENUS_CLASS_CHOICE_DESC + cvartest "ui_heavy_cnt" + disablecvar { "0" } + + mouseEnter + { + setitemcolor class2_button forecolor 1 1 1 1 + setitemcolor class2_count forecolor 1 1 1 1 + setitemcolor class2_desc forecolor 1 1 1 1 + } + mouseExit + { + setitemcolor class2_button forecolor .5 .5 .5 1 + setitemcolor class2_count forecolor .5 .5 .5 1 + setitemcolor class2_desc forecolor .5 .5 .5 1 + } + + action + { + play "sound/interface/button1.wav" + + setcvar ui_siege_class 5 + uiscript updatesiegecvars + + // Turn other buttons on + setitemcolor class_button forecolor .5 .5 .5 1 + disable class_button 0 + setitemcolor class_count forecolor .5 .5 .5 1 + + // High light this button and disable it + setitemcolor class2_button forecolor 1 1 1 1 + setitemcolor class2_count forecolor 1 1 1 1 + setitemcolor class2_desc forecolor 1 1 1 1 + disable class2_button 1 + +// setitemtext description "*ui_classdesc" + show class_portrait + setitembackground class_portrait "*ui_classportrait" + setitemrect class_portrait 379 162 45 45 + + uiscript resetsiegelistboxes + uiscript resetitemdescription + show description + hide itemdescription + setitemcolor stats forecolor 1 1 1 1 + show feeders + show stats + show forcepowerlevel + } + } + + itemDef + { + name class2_count + group class_count + type ITEM_TYPE_TEXT + rect 379 207 45 18 + textalign ITEM_ALIGN_CENTER + textalignx 23 + font 4 + textscale 1 + forecolor .5 .5 .5 1 + visible 1 + decoration + } + + itemDef + { + name class2_greybutton + group grey_button + style WINDOW_STYLE_FILLED + rect 379 165 45 45 + forecolor .5 .5 .5 .6 + backcolor .5 .5 .5 .6 + visible 1 + cvartest "ui_heavy_cnt" + showcvar { "0" } + decoration + } + +//---------------------------------------------------------------------------------------------- +// CLASS 3 +//---------------------------------------------------------------------------------------------- + itemDef + { + name class3_desc + group class_count + type ITEM_TYPE_TEXT + rect 430 154 45 18 + text @MENUS_SIEGE_DEMOLITIONS + textalign ITEM_ALIGN_CENTER + textalignx 19 + font 4 + textscale .5 + forecolor .5 .5 .5 1 + visible 1 + decoration + } + + // The actual button + itemDef + { + name class3_button + group class_button + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_SHADER + background "gfx/mp/c_icon_demolitionist" + rect 430 165 45 45 + forecolor .5 .5 .5 1 + visible 1 + descText @MENUS_CLASS_CHOICE_DESC + cvartest "ui_demo_cnt" + disablecvar { "0" } + + mouseEnter + { + setitemcolor class3_button forecolor 1 1 1 1 + setitemcolor class3_count forecolor 1 1 1 1 + setitemcolor class3_desc forecolor 1 1 1 1 + } + mouseExit + { + setitemcolor class3_button forecolor .5 .5 .5 1 + setitemcolor class3_count forecolor .5 .5 .5 1 + setitemcolor class3_desc forecolor .5 .5 .5 1 + } + + action + { + play "sound/interface/button1.wav" + + setcvar ui_siege_class 4 + uiscript updatesiegecvars + + // Turn other buttons on + setitemcolor class_button forecolor .5 .5 .5 1 + disable class_button 0 + setitemcolor class_count forecolor .5 .5 .5 1 + + // High light this button and disable it + setitemcolor class3_button forecolor 1 1 1 1 + setitemcolor class3_count forecolor 1 1 1 1 + setitemcolor class3_desc forecolor 1 1 1 1 + disable class3_button 1 + +// setitemtext description "*ui_classdesc" + show class_portrait + setitembackground class_portrait "*ui_classportrait" + setitemrect class_portrait 430 162 45 45 + + uiscript resetsiegelistboxes + uiscript resetitemdescription + + show description + hide itemdescription + setitemcolor stats forecolor 1 1 1 1 + show feeders + show stats + show forcepowerlevel + } + } + + itemDef + { + name class3_count + group class_count + type ITEM_TYPE_TEXT + rect 430 207 45 18 + textalign ITEM_ALIGN_CENTER + textalignx 23 + font 4 + textscale 1 + forecolor .5 .5 .5 1 + visible 1 + decoration + } + + itemDef + { + name class3_greybutton + group grey_button + style WINDOW_STYLE_FILLED + rect 430 165 45 45 + forecolor .5 .5 .5 .6 + backcolor .5 .5 .5 .6 + visible 1 + cvartest "ui_demo_cnt" + showcvar { "0" } + decoration + } + +//---------------------------------------------------------------------------------------------- +// CLASS 4 +//---------------------------------------------------------------------------------------------- + itemDef + { + name class4_desc + group class_count + type ITEM_TYPE_TEXT + rect 481 154 45 18 + text @MENUS_SIEGE_SCOUT + textalign ITEM_ALIGN_CENTER + textalignx 21 + font 4 + textscale .5 + forecolor .5 .5 .5 1 + visible 1 + decoration + } + + // The actual button + itemDef + { + name class4_button + group class_button + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_SHADER + background "gfx/mp/c_icon_vanguard" + rect 481 165 45 45 + forecolor .5 .5 .5 1 + visible 1 + descText @MENUS_CLASS_CHOICE_DESC + cvartest "ui_vanguard_cnt" + disablecvar { "0" } + + mouseEnter + { + setitemcolor class4_button forecolor 1 1 1 1 + setitemcolor class4_count forecolor 1 1 1 1 + setitemcolor class4_desc forecolor 1 1 1 1 + } + mouseExit + { + setitemcolor class4_button forecolor .5 .5 .5 1 + setitemcolor class4_count forecolor .5 .5 .5 1 + setitemcolor class4_desc forecolor .5 .5 .5 1 + } + action + { + play "sound/interface/button1.wav" + + setcvar ui_siege_class 1 + uiscript updatesiegecvars + + // Turn other buttons on + setitemcolor class_button forecolor .5 .5 .5 1 + disable class_button 0 + setitemcolor class_count forecolor .5 .5 .5 1 + + // High light this button and disable it + setitemcolor class4_button forecolor 1 1 1 1 + setitemcolor class4_count forecolor 1 1 1 1 + setitemcolor class4_desc forecolor 1 1 1 1 + disable class4_button 1 + +// setitemtext description "*ui_classdesc" + show class_portrait + setitembackground class_portrait "*ui_classportrait" + setitemrect class_portrait 481 162 45 45 + + uiscript resetsiegelistboxes + uiscript resetitemdescription + + show description + hide itemdescription + setitemcolor stats forecolor 1 1 1 1 + show feeders + show stats + show forcepowerlevel + } + } + + itemDef + { + name class4_count + group class_count + type ITEM_TYPE_TEXT + rect 481 207 60 18 + textalign ITEM_ALIGN_CENTER + textalignx 24 + font 4 + textscale 1 + forecolor .5 .5 .5 1 + visible 1 + decoration + } + + itemDef + { + name class4_greybutton + group grey_button + style WINDOW_STYLE_FILLED + rect 481 165 45 45 + forecolor .5 .5 .5 .6 + backcolor .5 .5 .5 .6 + visible 1 + cvartest "ui_vanguard_cnt" + showcvar { "0" } + decoration + } + +//---------------------------------------------------------------------------------------------- +// CLASS 5 +//---------------------------------------------------------------------------------------------- + itemDef + { + name class5_desc + group class_count + type ITEM_TYPE_TEXT + rect 532 154 45 18 + text @MENUS_SIEGE_TECH + textalign ITEM_ALIGN_CENTER + textalignx 21 + font 4 + textscale .5 + forecolor .5 .5 .5 1 + visible 1 + decoration + } + + // The actual button + itemDef + { + name class5_button + group class_button + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_SHADER + background "gfx/mp/c_icon_support" + rect 532 165 45 45 + forecolor .5 .5 .5 1 + visible 1 + descText @MENUS_CLASS_CHOICE_DESC + cvartest "ui_support_cnt" + disablecvar { "0" } + + mouseEnter + { + setitemcolor class5_button forecolor 1 1 1 1 + setitemcolor class5_count forecolor 1 1 1 1 + setitemcolor class5_desc forecolor 1 1 1 1 + } + mouseExit + { + setitemcolor class5_button forecolor .5 .5 .5 1 + setitemcolor class5_count forecolor .5 .5 .5 1 + setitemcolor class5_desc forecolor .5 .5 .5 1 + } + action + { + play "sound/interface/button1.wav" + + setcvar ui_siege_class 2 + uiscript updatesiegecvars + + // Turn other buttons on + setitemcolor class_button forecolor .5 .5 .5 1 + disable class_button 0 + setitemcolor class_count forecolor .5 .5 .5 1 + + // High light this button and disable it + setitemcolor class5_button forecolor 1 1 1 1 + setitemcolor class5_count forecolor 1 1 1 1 + setitemcolor class5_desc forecolor 1 1 1 1 + disable class5_button 1 + +// setitemtext description "*ui_classdesc" + show class_portrait + setitembackground class_portrait "*ui_classportrait" + setitemrect class_portrait 532 162 45 45 + + uiscript resetsiegelistboxes + uiscript resetitemdescription + + show description + hide itemdescription + setitemcolor stats forecolor 1 1 1 1 + show feeders + show stats + show forcepowerlevel + } + } + + itemDef + { + name class5_count + group class_count + type ITEM_TYPE_TEXT + rect 532 207 60 18 + textalign ITEM_ALIGN_CENTER + textalignx 23 + font 4 + textscale 1 + forecolor .5 .5 .5 1 + visible 1 + decoration + } + + itemDef + { + name class5_greybutton + group grey_button + style WINDOW_STYLE_FILLED + rect 532 165 45 45 + forecolor .5 .5 .5 .6 + backcolor .5 .5 .5 .6 + visible 1 + cvartest "ui_support_cnt" + showcvar { "0" } + decoration + } + +//-------------------------------------------------- +// CLASS 6 +//-------------------------------------------------- + itemDef + { + name class6_desc + group class_count + type ITEM_TYPE_TEXT + rect 583 154 45 18 + text @MENUS_SIEGE_JEDI + textalign ITEM_ALIGN_CENTER + textalignx 21 + font 4 + textscale .5 + forecolor .5 .5 .5 1 + visible 1 + decoration + } + + // The actual button + itemDef + { + name class6_button + group class_button + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_SHADER + background "gfx/mp/c_icon_jedi_general" + rect 583 165 45 45 + forecolor .5 .5 .5 1 + visible 1 + descText @MENUS_CLASS_CHOICE_DESC + cvartest "ui_jedi_cnt" + disablecvar { "0" } + mouseEnter + { + setitemcolor class6_button forecolor 1 1 1 1 + setitemcolor class6_count forecolor 1 1 1 1 + setitemcolor class6_desc forecolor 1 1 1 1 + } + mouseExit + { + setitemcolor class6_button forecolor .5 .5 .5 1 + setitemcolor class6_count forecolor .5 .5 .5 1 + setitemcolor class6_desc forecolor .5 .5 .5 1 + } + + action + { + play "sound/interface/button1.wav" + + setcvar ui_siege_class 3 + uiscript updatesiegecvars + + // Turn other buttons on + setitemcolor class_button forecolor .5 .5 .5 1 + disable class_button 0 + setitemcolor class_count forecolor .5 .5 .5 1 + + // High light this button and disable it + setitemcolor class6_button forecolor 1 1 1 1 + setitemcolor class6_count forecolor 1 1 1 1 + setitemcolor class6_desc forecolor 1 1 1 1 + disable class6_button 1 + +// setitemtext description "*ui_classdesc" + show class_portrait + setitembackground class_portrait "*ui_classportrait" + setitemrect class_portrait 583 162 45 45 + + uiscript resetsiegelistboxes + uiscript resetitemdescription + + show description + hide itemdescription + setitemcolor stats forecolor 1 1 1 1 + show feeders + show stats + show forcepowerlevel + } + } + + itemDef + { + name class6_count + group class_count + type ITEM_TYPE_TEXT + rect 583 207 60 18 + textalign ITEM_ALIGN_CENTER + textalignx 23 + font 4 + textscale 1 + forecolor .5 .5 .5 1 + visible 1 + decoration + } + + itemDef + { + name class6_greybutton + group grey_button + style WINDOW_STYLE_FILLED + rect 583 165 45 45 + forecolor .5 .5 .5 .6 + backcolor .5 .5 .5 .6 + visible 1 + cvartest "ui_jedi_cnt" + showcvar { "0" } + decoration + } + +//-------------------------------------------------- +// CLASS PORTRAIT - this gets its background value from ui_classportrait +//-------------------------------------------------- + itemDef + { + name class_portrait + style WINDOW_STYLE_FILLED + rect 526 176 45 45 + backcolor 1 1 1 1 + visible 0 + decoration + } + +//----------------------------------------------- +// +// DISPLAY HEALTH, SHIELD, SPEED +// +//----------------------------------------------- + + itemDef + { + name health_disp + group stats + rect 328 230 110 20 + type ITEM_TYPE_EDITFIELD + text @SIEGE_HEALTH + cvar "ui_class_health" + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny 0 + font 4 + textscale .7 + visible 0 + forecolor .5 .5 .5 1 + decoration + } + + itemDef + { + name armor_disp + group stats + rect 438 230 100 20 + type ITEM_TYPE_EDITFIELD + text @SIEGE_SHIELDS + cvar "ui_class_armor" + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny 0 + font 4 + textscale .7 + forecolor .5 .5 .5 1 + visible 0 + decoration + } + + itemDef + { + name speed_disp + group stats + rect 548 230 100 20 + type ITEM_TYPE_EDITFIELD + text @SIEGE_SPEED + cvar "ui_class_speed" + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny 0 + font 4 + textscale .7 + visible 0 + forecolor .5 .5 .5 1 + decoration + } + +//-------------------------------------------------- +// BASE CLASS WEAPONS FEEDER +//-------------------------------------------------- + itemDef + { + name base_class_weapons_feed + group feeders + type ITEM_TYPE_LISTBOX + desctext @MENUS_CLASS_WEAPONS + style WINDOW_STYLE_FILLED + elementwidth 34 + elementheight 34 + elementtype LISTBOX_IMAGE + feeder FEEDER_SIEGE_CLASS_WEAPONS + rect 326 246 148 52 + horizontalscroll + backcolor 0 0 0 0 + border 1 + bordercolor 1 1 1 1 + forecolor 1 1 1 1 + visible 1 + textscale 0.7 + action + { + hide description + show itemdescription + uiscript updatesiegeweapondesc + uiscript resetitemdescription + } + + } + + +//-------------------------------------------------- +// BASE CLASS INVENTORY FEEDER +//-------------------------------------------------- + itemDef + { + name base_class_inventory_feed + group feeders + desctext @MENUS_CLASS_INVENTORY + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 34 + elementheight 34 + elementtype LISTBOX_IMAGE + feeder FEEDER_SIEGE_CLASS_INVENTORY + rect 479 246 148 52 + horizontalscroll + backcolor 0 0 0 0 + border 1 + bordercolor 1 1 1 1 + forecolor 1 1 1 1 + visible 1 + textscale 0.7 + action + { + hide description + show itemdescription + uiscript updatesiegeinventorydesc + uiscript resetitemdescription + } + + } + +//-------------------------------------------------- +// BASE CLASS FORCE POWER FEEDER +//-------------------------------------------------- + itemDef + { + name base_class_force_feed + group feeders + type ITEM_TYPE_LISTBOX + desctext @MENUS_CLASS_FORCEPOWERS + style WINDOW_STYLE_FILLED + elementwidth 34 + elementheight 34 + elementtype LISTBOX_IMAGE + feeder FEEDER_SIEGE_CLASS_FORCE + rect 320 299 311 52 + horizontalscroll + backcolor 0 0 0 0 + border 1 + bordercolor 1 1 1 1 + forecolor 1 1 1 1 + visible 1 + textscale 0.7 + action + { + hide description + show itemdescription + uiscript updatesiegeforcedesc + uiscript resetitemdescription + } + + } + + itemDef + { + name description + group classdescription + rect 327 356 300 85 + type ITEM_TYPE_TEXTSCROLL + text " " + cvar ui_classdesc + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + forecolor 1 1 1 1 + visible 0 + lineHeight 13 + } + + itemDef + { + name slot0 + group forcepowerlevel + rect 350 322 300 80 + type ITEM_TYPE_TEXT + font 4 + textscale .5 + textalign ITEM_ALIGN_LEFT + forecolor 1 1 1 1 + visible 0 + cvar ui_class_powerlevelslot0 + cvartest ui_class_powerlevelslot0 + hidecvar + { + "0" + } + } + + itemDef + { + name slot1 + group forcepowerlevel + rect 384 322 300 80 + type ITEM_TYPE_TEXT + cvar ui_itemforceinvdesc + font 4 + textscale .5 + textalign ITEM_ALIGN_LEFT + forecolor 1 1 1 1 + visible 0 + cvar ui_class_powerlevelslot1 + cvartest ui_class_powerlevelslot1 + hidecvar + { + "0" + } + } + + itemDef + { + name slot2 + group forcepowerlevel + rect 418 322 300 80 + type ITEM_TYPE_TEXT + cvar ui_itemforceinvdesc + font 4 + textscale .5 + textalign ITEM_ALIGN_LEFT + forecolor 1 1 1 1 + visible 0 + cvar ui_class_powerlevelslot2 + cvartest ui_class_powerlevelslot2 + hidecvar + { + "0" + } + } + + itemDef + { + name slot3 + group forcepowerlevel + rect 452 322 300 80 + type ITEM_TYPE_TEXT + cvar ui_itemforceinvdesc + font 4 + textscale .5 + textalign ITEM_ALIGN_LEFT + forecolor 1 1 1 1 + visible 0 + cvar ui_class_powerlevelslot3 + cvartest ui_class_powerlevelslot3 + hidecvar + { + "0" + } + } + + itemDef + { + name slot4 + group forcepowerlevel + rect 486 322 300 80 + type ITEM_TYPE_TEXT + cvar ui_itemforceinvdesc + font 4 + textscale .5 + textalign ITEM_ALIGN_LEFT + forecolor 1 1 1 1 + visible 0 + cvar ui_class_powerlevelslot4 + cvartest ui_class_powerlevelslot4 + hidecvar + { + "0" + } + } + + itemDef + { + name slot5 + group forcepowerlevel + rect 520 322 300 80 + type ITEM_TYPE_TEXT + cvar ui_itemforceinvdesc + font 4 + textscale .5 + textalign ITEM_ALIGN_LEFT + forecolor 1 1 1 1 + visible 0 + cvar ui_class_powerlevelslot5 + cvartest ui_class_powerlevelslot5 + hidecvar + { + "0" + } + } + + itemDef + { + name slot6 + group forcepowerlevel + rect 554 322 300 80 + type ITEM_TYPE_TEXT + cvar ui_itemforceinvdesc + font 4 + textscale .5 + textalign ITEM_ALIGN_LEFT + forecolor 1 1 1 1 + visible 1 + cvar ui_class_powerlevelslot6 + cvartest ui_class_powerlevelslot6 + hidecvar + { + "0" + } + } + + itemDef + { + name slot7 + group forcepowerlevel + rect 588 322 300 80 + type ITEM_TYPE_TEXT + cvar ui_itemforceinvdesc + font 4 + textscale .5 + textalign ITEM_ALIGN_LEFT + forecolor 1 1 1 1 + visible 1 + cvar ui_class_powerlevelslot7 + cvartest ui_class_powerlevelslot7 + hidecvar + { + "0" + } + } + + itemDef + { + name slot8 + group forcepowerlevel + rect 620 322 300 80 + type ITEM_TYPE_TEXT + cvar ui_itemforceinvdesc + font 4 + textscale .5 + textalign ITEM_ALIGN_LEFT + forecolor 1 1 1 1 + visible 1 + cvar ui_class_powerlevelslot8 + cvartest ui_class_powerlevelslot8 + hidecvar + { + "0" + } + } + + itemDef + { + name itemdescription + group itemdescription + rect 327 356 300 85 + type ITEM_TYPE_TEXTSCROLL + text " " + cvar ui_itemforceinvdesc + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + forecolor 1 1 1 1 + visible 0 + lineHeight 13 + } + + //----------------------------------------------- + // CANCEL BUTTON + //----------------------------------------------- + itemDef + { + name cancel + text @MENUS_CANCEL + type 1 + textscale .8 + group grpControlbutton + type ITEM_TYPE_BUTTON + rect 325 460 150 26 + textalign ITEM_ALIGN_CENTER + textalignx 75 + forecolor 1 .682 0 1 + backcolor .37 .1 .1 1 + visible 1 + descText @MENUS_CANCEL_DESC + action + { + play "sound/interface/button1.wav" + hide stats + hide forcepowerlevel + close all + } + } + //----------------------------------------------- + // OKAY BUTTON + //----------------------------------------------- + itemDef + { + name okay + text @MENUS_OKAY + type 1 + textscale .8 + group grpControlbutton + type ITEM_TYPE_BUTTON + rect 480 460 150 26 + textalign ITEM_ALIGN_CENTER + textalignx 75 + forecolor 1 .682 0 1 + backcolor .37 .1 .1 1 + visible 1 + descText @MENUS_JOIN_GAME + action + { + play "sound/interface/button1.wav" + uiScript setsiegeclassandteam + hide stats + hide forcepowerlevel + uiScript closeingame + } + } + + } +} \ No newline at end of file diff --git a/base/ui/jamp/siege_msg.menu b/base/ui/jamp/siege_msg.menu new file mode 100644 index 0000000..a1cf8f6 --- /dev/null +++ b/base/ui/jamp/siege_msg.menu @@ -0,0 +1,123 @@ +//----------------------------------------------------------------- +// seige_msg.menu +// +// Popup menu that displays messages at the end of a siege game +// +//----------------------------------------------------------------- +{ +\\ END OF GAME \\ + menuDef + { + name "siege_popmenu" + visible 0 + fullscreen 0 + rect 158 80 320 320 + focusColor 1 1 1 1 // Focus color for text and items + style 1 + border 1 + popup + onClose + { + } + onOpen + { + } + onESC + { + close siege_popmenu + open main + } + + itemDef + { + name window + rect 10 15 300 320 + style 1 + backcolor .015 .015 .229 0.25 + forecolor 0 0 0 1 + border 1 + bordercolor .388 .396 .925 1 + bordersize 5 + visible 1 + decoration + } + + + itemDef + { + name siegeinfo + rect 0 50 320 20 + text @MENUS_DATAPAD + textalign 1 + textstyle 6 + textscale 1 + textalignx 160 + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name siegeinfo + rect 60 80 200 270 + type ITEM_TYPE_TEXT + style 1 + textstyle 3 + autowrapped + cvar "cg_siegeMessage" + textalign ITEM_ALIGN_CENTER + textalignx 100 + textscale 1 + forecolor 1 1 1 1 + visible 1 + decoration + } + +// BUTTON // + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 118 295 85 26 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name exit + group grpControlbutton + text @MENUS_OKAY + type 1 + textscale 1 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 138 295 45 26 + textalign 1 + textalignx 22 + forecolor .79 .64 .22 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + close siege_popmenu + } + mouseEnter + { + show button_glow + } + mouseExit + { + hide button_glow + } + } + } +} + + + + diff --git a/base/ui/jamp/siege_team.menu b/base/ui/jamp/siege_team.menu new file mode 100644 index 0000000..75de0ca --- /dev/null +++ b/base/ui/jamp/siege_team.menu @@ -0,0 +1,464 @@ +//------------------------------------------------------------------------------------------------ +// SIEGE_TEAM - player chooses team and then from here they choose base class. +// +// ui_team 1 = RED +// ui_team 2 = BLUE +// ui_team 3 = SPECTATOR +// +//------------------------------------------------------------------------------------------------ +{ + menuDef + { + name "ingame_siegeteam" + visible 0 + fullscreen 0 + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + rect 95 34 460 435 + focusColor 1 1 1 1 // Focus color for text and items + style 1 + border 1 + descX 320 + descY 440 + descScale 0.7 + descColor .79 .64 .22 .7 // Focus color for text and items + descAlignment ITEM_ALIGN_CENTER + onOpen + { + uiScript update ui_GetName + uiScript updateForceStatus + hide nextbutton + hide glow + setitemcolor team1_button forecolor .670 .670 .929 1 + setitemcolor team2_button forecolor .670 .670 .929 1 + } + onClose + { +// uiScript update ui_SetName +// uiScript updateForceStatus + } + + // Overall window backdrop + itemDef + { + name background_pic + group none + style WINDOW_STYLE_SHADER + rect 0 0 460 435 + background "gfx/menus/menu_box_ingame" + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------- +// +// TITLE BAR +// +//---------------------------------------- + itemDef + { + name siegeclassconfigtitle + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text "TEAM CHOICE" + rect 20 5 420 28 + textalign ITEM_ALIGN_CENTER + textalignx 210 + textaligny 2 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + font 3 + textscale 0.9 + forecolor 1 1 1 1 + border 0 + bordercolor 0 0 0 0 + visible 1 + } + +//---------------------------------------- +// +// TEAM SYMBOLS +// +//---------------------------------------- + + itemDef + { + name team1_impsymbol + group team1_symbol + style WINDOW_STYLE_SHADER + background "gfx/2d/mp_imp_symbol" + cvarTest cg_siegeTeam1Name + showCVar { "Imperial" } + rect 102 87 256 256 + forecolor 1 1 1 .3 + visible 1 + decoration + } + + itemDef + { + name team1_rebelsymbol + group team1_symbol + style WINDOW_STYLE_SHADER + background "gfx/2d/mp_rebel_symbol" + cvarTest cg_siegeTeam1Name + showCVar { "Rebel" } + rect 102 87 256 256 + forecolor 1 1 1 .3 + visible 1 + decoration + } + + itemDef + { + name team2_impsymbol + group team2_symbol + style WINDOW_STYLE_SHADER + background "gfx/2d/mp_imp_symbol" + cvarTest cg_siegeTeam2Name + showCVar { "Imperial" } + rect 102 87 256 256 + forecolor 1 1 1 .3 + visible 0 + decoration + } + + itemDef + { + name team2_rebelsymbol + group team2_symbol + style WINDOW_STYLE_SHADER + background "gfx/2d/mp_rebel_symbol" + cvarTest cg_siegeTeam2Name + showCVar { "Rebel" } + rect 102 87 256 256 + forecolor 1 1 1 .3 + visible 0 + decoration + } + +//---------------------------------------- +// +// NAME ENTRY FIELD +// +//---------------------------------------- + itemDef + { + name namefield + type ITEM_TYPE_EDITFIELD + style 0 + text @MENUS_NAME + cvar ui_Name + maxchars 26 + rect 80 80 300 20 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -4 + font 0 + textscale 1 + forecolor .670 .670 .929 1 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + border 0 + bordercolor 0 0 0 0 + descText @MENUS_ENTER_YOUR_NAME_HERE + visible 1 + mouseEnter + { + show namefield_glow + } + mouseExit + { + hide namefield_glow + } + } + + // The high light + itemDef + { + name namefield_glow + group glow + style WINDOW_STYLE_SHADER + rect 10 80 400 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + +//---------------------------------------- +// TEAM1 BUTTON +//---------------------------------------- + itemDef + { + name team1_button + type ITEM_TYPE_BUTTON + cvar cg_siegeTeam1Name + rect 165 150 130 16 + textalign ITEM_ALIGN_CENTER + textalignx 65 + textaligny -4 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + font 2 + textscale 0.9 + forecolor .670 .670 .929 1 + border 0 + bordercolor 0 0 0 0 + descText "Join this team." + + visible 1 + mouseEnter + { + show team1_glow + } + mouseExit + { + hide team1_glow + } + action + { + play "sound/interface/button1.wav" + hide team2_symbol + show team1_symbol + exec "cmd team r" + setcvar ui_team 1 + uiscript updatesiegeclasscnt 1 + uiscript updatesiegecvars +// show nextbutton + +// setitemcolor team1_button forecolor 1 1 .807 1 +// setitemcolor team2_button forecolor .670 .670 .929 1 + + uiScript setsiegeclass + close all + open ingame_siegeclass + + } + } + + // The high light + itemDef + { + name team1_glow + group glow + style WINDOW_STYLE_SHADER + rect 165 145 130 26 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + +//---------------------------------------- +// TEAM2 BUTTON +//---------------------------------------- + itemDef + { + name team2_button + type ITEM_TYPE_BUTTON + cvar cg_siegeTeam2Name + rect 165 200 130 16 + textalign ITEM_ALIGN_CENTER + textalignx 65 + textaligny -4 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + font 2 + textscale 0.9 + forecolor .670 .670 .929 1 + border 0 + bordercolor 0 0 0 0 + descText "Join this team." + + visible 1 + action + { + play "sound/interface/button1.wav" + hide team1_symbol + show team2_symbol + exec "cmd team b" + setcvar ui_team 2 + uiscript updatesiegeclasscnt 2 + uiscript updatesiegecvars +// show nextbutton + +// setitemcolor team1_button forecolor .670 .670 .929 1 +// setitemcolor team2_button forecolor 1 1 .807 1 + + uiScript setsiegeclass + close all + open ingame_siegeclass + + } + mouseEnter + { + show team2_glow + } + mouseExit + { + hide team2_glow + } + } + + // The high light + itemDef + { + name team2_glow + group glow + style WINDOW_STYLE_SHADER + rect 165 195 130 26 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + +//---------------------------------------- +// AUTOTEAM BUTTON +//---------------------------------------- + itemDef + { + name autoteam + text @MENUS_AUTO_TEAM + type 1 + style 2 + rect 165 250 130 16 + textalign ITEM_ALIGN_CENTER + textalignx 65 + textaligny -4 + outlinecolor 1 .5 .5 .5 + backcolor 0 0 0 0 + font 2 + textscale 0.9 + forecolor .670 .670 .929 1 + descText "Let server automatically decide the team." + visible 1 + action + { + play "sound/interface/button1.wav" + exec "cmd team free" + uiScript closeingame + } + mouseEnter + { + show autoteam_glow + } + mouseExit + { + hide autoteam_glow + } + } + + // The high light + itemDef + { + name autoteam_glow + group glow + style WINDOW_STYLE_SHADER + rect 165 245 130 26 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + +//---------------------------------------- +// SPECTATOR BUTTON +//---------------------------------------- + itemDef + { + name spectate + text @MENUS_SPECTATE + type 1 + style 2 + rect 165 300 130 16 + textalign ITEM_ALIGN_CENTER + textalignx 65 + textaligny -4 + font 2 + textscale .9 + forecolor .670 .670 .929 1 + visible 1 + descText "Watch the game." + action + { + play "sound/interface/button1.wav" + exec "cmd team s" + uiScript closeingame + } + mouseEnter + { + show spectate_glow + } + mouseExit + { + hide spectate_glow + } + } + + // The high light + itemDef + { + name spectate_glow + group glow + style WINDOW_STYLE_SHADER + rect 165 295 130 26 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + +//---------------------------------------- +// NEXT BUTTON +//---------------------------------------- +/* itemDef + { + name nextbutton + group playerapply + text @MENUS_NEXT + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 10 370 440 16 + textalign ITEM_ALIGN_CENTER + textalignx 220 + textaligny -4 + font 2 + textscale .9 + forecolor .79 .64 .22 1 + descText "Select a class on the chosen team." + visible 0 + action + { + play "sound/interface/button1.wav" + uiScript setsiegeclass + close all + open ingame_siegeclass + } + mouseEnter + { + show next_glow + } + mouseExit + { + hide next_glow + } + } + + // The high light + itemDef + { + name next_glow + group glow + style WINDOW_STYLE_SHADER + rect 10 365 440 26 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + } */ +} + diff --git a/base/ui/jamp/vid_warning.menu b/base/ui/jamp/vid_warning.menu new file mode 100644 index 0000000..f9cfb51 --- /dev/null +++ b/base/ui/jamp/vid_warning.menu @@ -0,0 +1,205 @@ +// VIDEO WARNING +{ + menuDef + { + name "videowarningMenu" + visible 0 + fullScreen 0 // MENU_TRUE + rect 0 0 640 480 + focusColor 1 1 1 1 // Focus color for text and items + outOfBoundsClick // this closes the window if it gets a click out of the rectangle // In miliseconds + descX 320 + descY 434 + descScale 1 + descColor .79 .64 .22 .7 // Focus color for text and items + descAlignment ITEM_ALIGN_CENTER + popup + + onESC + { + play "sound/interface/button1.wav" ; + close "videowarningMenu" ; + setcvar "ui_r_modified" 0 ; + rundeferred ; + } + + onClose + { + play "sound/interface/button1.wav" ; + } + + itemDef + { + name warn_background + group none + style WINDOW_STYLE_SHADER + rect 100 100 440 320 + background "gfx/menus/menu_boxred" // Frame + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// +// VIDEO WARNING +// +//---------------------------------------------------------------------------------------------- + // Video Warning title + itemDef + { + name vidwarn_title + group vidwarn + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_UNAPPLIED_VIDEO_CHANGES + rect 120 129 400 20 + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 200 + textaligny -3 + forecolor 1 1 1 1 + visible 1 + decoration + } + + + itemDef + { + name vidwarn_text1 + group vidwarn + text @MENUS_YOU_HAVE_MADE_CHANGES + rect 210 230 220 20 + textalign ITEM_ALIGN_CENTER + text2aligny 18 + textalignx 110 + font 2 + textscale 1 + forecolor .79 .64 .22 1 + visible 1 + decoration + } + + itemDef + { + name vidwarn_text2 + group vidwarn + text @MENUS_APPLY_THESE_CHANGES_OR + rect 210 250 220 20 + textalign ITEM_ALIGN_CENTER + textalignx 110 + font 2 + textscale 1 + forecolor .79 .64 .22 1 + visible 1 + } + +// DISCARD button - return to Video Data screen + itemDef + { + name vidwarn_no_button + group vidwarn + style WINDOW_STYLE_SHADER + rect 180 386 120 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name vidwarn_no + group vidwarn + text @MENUS_DISCARD + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 180 386 120 24 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny -3 + descText @MENUS_DO_NOT_APPLY_CHANGES + forecolor .79 .64 .22 1 + visible 1 + + action + { + play "sound/interface/button1.wav" ; + close "videowarningMenu" ; + + setcvar "ui_r_modified" 0 ; + + rundeferred ; + } + + mouseEnter + { + show vidwarn_no_button + } + + mouseExit + { + hide vidwarn_no_button + } + } + +// APPLY button, use settings + itemDef + { + name vidwarn_yes_button + group vidwarn + style WINDOW_STYLE_SHADER + rect 340 386 120 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name vidwarn_yes + group vidwarn + text @MENUS_APPLY + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 386 120 24 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny -3 + descText @MENUS_APPLY_CHANGES_AND_THEN + forecolor .79 .64 .22 1 + visible 1 + + action + { + play "sound/interface/button1.wav" ; + + uiScript updatevideosetup ; + +// uiScript setvid1data setupMenu ; // Set video settings + close all + } + mouseEnter + { + show vidwarn_yes_button + } + mouseExit + { + hide vidwarn_yes_button + } + } + + } +} + + + + + + diff --git a/base/ui/jamp/videodriver.menu b/base/ui/jamp/videodriver.menu new file mode 100644 index 0000000..18b5cdb --- /dev/null +++ b/base/ui/jamp/videodriver.menu @@ -0,0 +1,114 @@ +// VIDEODRIVER MENU +{ + menuDef + { + name "videodriverMenu" + visible 0 + fullScreen 0 // MENU_TRUE + rect 100 120 440 320 + focusColor 1 1 1 1 // Focus color for text and items + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + descX 320 + descY 450 + descScale 1 + descColor .79 .64 .22 .7 // Focus color for text and items + descAlignment ITEM_ALIGN_CENTER + popup + + onESC + { + play "sound/interface/button1.wav" + close all + open setupMenu + } + + onClose + { + play "sound/interface/button1.wav" ; + } + + + //---------------------------------------------------------------------------------------------- + // + // MENU BACKGROUND + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name driver_background + group none + style WINDOW_STYLE_SHADER + rect 0 0 440 320 + background "gfx/menus/menu_boxred" // Frame + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name driver_done_button + group none + style WINDOW_STYLE_SHADER + rect 150 293 140 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name driver_done + group none + text @MENUS_DONE_CAPS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 150 293 140 24 + forecolor 1 1 1 1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 70 + textaligny 0 + font 3 + textscale 1 + forecolor .79 .64 .22 1 + visible 1 + + mouseEnter + { + show driver_done_button + } + mouseExit + { + hide driver_done_button + } + action + { + close videodriverMenu + } + } + + + //---------------------------------------------------------------------------------------------- + // + // VIDEO DRIVER INFO + // + //---------------------------------------------------------------------------------------------- + itemDef // Drivers + { + name game_version + group none + ownerdraw UI_GLINFO // UI_GLINFO + font 4 + textscale 1 + rect 10 3 430 280 + forecolor .79 .64 .22 1 + style WINDOW_STYLE_EMPTY + textalign ITEM_ALIGN_LEFT + textaligny 14 + visible 1 + decoration + } + } +} diff --git a/base/ui/jamp/vssver.scc b/base/ui/jamp/vssver.scc new file mode 100644 index 0000000..5df1bef Binary files /dev/null and b/base/ui/jamp/vssver.scc differ diff --git a/base/ui/jampingame.txt b/base/ui/jampingame.txt new file mode 100644 index 0000000..0fdbaa7 --- /dev/null +++ b/base/ui/jampingame.txt @@ -0,0 +1,35 @@ +//--------------------------------------------------------- +// jk2mpingame.txt +// +// .menu files to load for the JAMP ingame menu system +// +//--------------------------------------------------------- +{ + loadMenu { "ui/jamp/connect.menu" } + + loadMenu { "ui/jamp/ingame_about.menu" } + loadMenu { "ui/jamp/ingame_addbot.menu" } + loadMenu { "ui/jamp/ingame_callvote.menu" } + loadMenu { "ui/jamp/ingame_controls.menu" } + loadMenu { "ui/jamp/ingame_join.menu" } + + loadMenu { "ui/jamp/ingame_leave.menu" } + loadMenu { "ui/jamp/ingame.menu" } + loadMenu { "ui/jamp/ingame_player.menu" } + loadMenu { "ui/jamp/ingame_player2.menu" } + loadMenu { "ui/jamp/ingame_playerforce.menu" } + + loadMenu { "ui/jamp/ingame_saber.menu" } + loadMenu { "ui/jamp/ingame_setup.menu" } + loadMenu { "ui/jamp/ingame_siegeobjectives.menu" } + loadMenu { "ui/jamp/ingame_vote.menu" } + loadMenu { "ui/jamp/ingame_orders.menu" } + + loadMenu { "ui/jamp/ingame_voicechat.menu" } + loadMenu { "ui/jamp/siege_msg.menu" } + loadMenu { "ui/jamp/siege_class.menu" } + loadMenu { "ui/jamp/vid_warning.menu" } + + loadMenu { "ui/jamp/ingame_objectives.menu" } +} + diff --git a/base/ui/jampmenus.txt b/base/ui/jampmenus.txt new file mode 100644 index 0000000..658b19d --- /dev/null +++ b/base/ui/jampmenus.txt @@ -0,0 +1,37 @@ +// menu defs +// +{ + loadMenu { "ui/jamp/main.menu" } + loadMenu { "ui/jamp/joinserver.menu" } + loadMenu { "ui/jamp/player.menu" } + loadMenu { "ui/jamp/player2.menu" } + loadMenu { "ui/jamp/createserver.menu" } + loadMenu { "ui/jamp/connect.menu" } + loadMenu { "ui/jamp/rules.menu" } + loadMenu { "ui/jamp/rules_games.menu" } + loadMenu { "ui/jamp/rules_force.menu" } + loadMenu { "ui/jamp/rules_weapons.menu" } + loadMenu { "ui/jamp/rules_items.menu" } + loadMenu { "ui/jamp/rules_moves.menu" } + loadMenu { "ui/jamp/controls.menu" } + loadMenu { "ui/jamp/setup.menu" } + loadMenu { "ui/jamp/demo.menu" } + loadMenu { "ui/jamp/password.menu" } + loadMenu { "ui/jamp/quit.menu" } + loadMenu { "ui/jamp/error.menu" } + loadMenu { "ui/jamp/serverinfo.menu" } + loadMenu { "ui/jamp/findplayer.menu" } + loadMenu { "ui/jamp/createfavorite.menu" } + loadMenu { "ui/jamp/multiplayer.menu" } + loadMenu { "ui/jamp/advancedcreateserver.menu" } + loadMenu { "ui/jamp/saber.menu" } + loadMenu { "ui/jamp/quickgame.menu" } + loadMenu { "ui/jamp/quickgame2.menu" } + loadMenu { "ui/jamp/quickbots.menu" } + + + loadMenu { "ui/jamp/vid_warning.menu" } + loadMenu { "ui/jamp/videodriver.menu" } + loadMenu { "ui/jamp/password_request.menu" } + +} diff --git a/base/ui/loadgame.menu b/base/ui/loadgame.menu new file mode 100644 index 0000000..541b9ca --- /dev/null +++ b/base/ui/loadgame.menu @@ -0,0 +1,666 @@ +//------------------------------------------------------------------------------------------------ +// LOADGAME MENU +// +// Load save games screen called from main menu. +// +//------------------------------------------------------------------------------------------------ +{ + menuDef + { + // ***IMPORTANT*** This name can not change, code looks for it. + // If it must change, change it in UI_AdjustSaveGameListBox() also + // + name "loadgameMenu" + visible 0 + fullScreen 1 // MENU_TRUE + rect 0 0 640 480 // Size and position of the menu + focusColor 1 1 1 1 // Focus color for text and items + descX 320 + descY 426 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + disablecolor .5 .5 .5 1 + + onESC + { + play "sound/interface/esc.wav" + close all + open mainMenu + } + onOpen + { + uiScript ReadSaveDirectory ; + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 107 8 428 112 + background "gfx/menus/jediacademy" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name left_frame + group lf_fr + style WINDOW_STYLE_SHADER + rect 0 50 320 160 + background "gfx/menus/menu_boxes_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name right_frame + group rt_fr + style WINDOW_STYLE_SHADER + rect 320 50 320 160 + background "gfx/menus/menu_boxes_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// TOP MAIN MENU BUTTONS +//---------------------------------------------------------------------------------------------- + // Big button "NEW" + itemDef + { + name newbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 7 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name newgamebutton + group nbut + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 7 126 130 24 + text @MENUS_NEW + descText @MENUS_START_A_NEW_GAME + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show newbutton_glow + } + mouseExit + { + hide newbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open newgameMenu + } + } + + // Big button "LOAD" + itemDef + { + name loadgamebutton_glow + group none + style WINDOW_STYLE_SHADER + rect 170 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name loadgamebutton + group lbut + text @MENUS_LOAD + descText @MENUS_LOAD_A_SAVED_GAME + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 126 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 1 1 1 + visible 1 + + mouseEnter + { + show loadgamebutton_glow + } + mouseExit + { + hide loadgamebutton_glow + } + } + + // Big button "CONTROLS" + itemDef + { + name controlsbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 340 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name controlsbutton + group cbut + text @MENUS_CONTROLS + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show controlsbutton_glow + } + mouseExit + { + hide controlsbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open controlsMenu ; + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 502 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name setupbutton + group sbut + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 502 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show setupbutton_glow + } + mouseExit + { + hide setupbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open setupMenu ; + } + } + + + //---------------------------------------------------------------------------------------------- + // + // OTHER MAIN MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + // BACK button in lower left corner + itemDef + { + name backbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 59 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name backbutton + group exit + text @MENUS_BACK + descText @MENUS_BACKTOMAIN + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 59 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show backbutton_glow + } + mouseExit + { + hide backbutton_glow + } + action + { + play "sound/interface/esc.wav" + close all ; + open mainMenu + } + } + + // EXIT button in lower left corner + itemDef + { + name exitgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 255 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name exitgamebutton + group exit + text @MENUS_EXIT + descText @MENUS_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 255 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show exitgamebutton_glow + } + mouseExit + { + hide exitgamebutton_glow + } + action + { + play "sound/weapons/saber/saberoff.mp3"; + close all ; + open quitMenu + } + } + + //---------------------------------------------------------------------------------------------- + // + // LOAD GAME MENU specific stuff + // + //---------------------------------------------------------------------------------------------- + // Load Game title + itemDef + { + name loadgame_title + group title + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_LOAD_GAME + rect 100 164 440 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + itemDef + { + // ***IMPORTANT*** This name can not change, code looks for it. + // If it must change, change it in UI_AdjustSaveGameListBox() also + // + name loadgamelist + group loadscreen + rect 40 200 360 190 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 120 + elementheight 16 + font 2 + textaligny 8 + textscale 0.7 + border 1 + bordersize 1 + bordercolor 0 0 .8 1 + forecolor .615 .615 .956 1 + +// forecolor 1 .682 0 1 + backcolor 0 0 .5 .25 + outlinecolor .5 .5 .5 .5 + elementtype LISTBOX_TEXT + feeder FEEDER_SAVEGAMES + notselectable + visible 1 + columns 2 2 55 150 155 0 200 //#of col., x loc. of 1st column, 2 number doesn't seem to do anything, third is width of column + mouseEnter + { + setitemcolor loadgamelist bordercolor 1 1 1 1 + } + mouseExit + { + setitemcolor loadgamelist bordercolor 0 0 .8 1 + } + doubleclick + { + play sound/interface/button1.wav + uiScript loadgame + } + action + { + play sound/interface/sub_select + } + } + + itemDef + { + name loadgamepic + group loadscreen + style WINDOW_STYLE_EMPTY + ownerdraw 236 //UI_ALLMAPS_SELECTION + font 2 + textscale .8 + forecolor .549 .854 1 1 + rect 435 200 180 135 + border 1 + bordercolor 0 0 .8 1 + visible 1 + decoration + } + + // loadgame button + itemDef + { + name loadgameaction_glow + group glow + style WINDOW_STYLE_SHADER + rect 440 360 190 20 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name loadgameaction + group actionbutton + text @MENUS_LOAD_GAME + descText @MENUS_LOAD_CHOSEN_GAME + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 440 360 190 20 + font 3 + textscale 0.8 + textalignx 175 + textaligny 1 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + cvarTest ui_SelectionOK + enableCvar { "1" } + + mouseEnter + { + show loadgameaction_glow + } + mouseExit + { + hide loadgameaction_glow + } + action + { + play sound/interface/button1.wav ; + hide glow ; + uiScript loadgame + } + } + + // deletegame button + itemDef + { + name deletegameaction_glow + group glow + style WINDOW_STYLE_SHADER + rect 440 385 190 20 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name deletegamebutton + group actionbutton + text @MENUS_DELETE_GAME + descText @MENUS_DELETE_CHOSEN_GAME + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 440 385 175 25 + font 3 + textscale 0.8 + textalignx 175 + textaligny 1 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + cvarTest ui_SelectionOK + enableCvar { "1" } + + mouseEnter + { + show deletegameaction_glow + } + mouseExit + { + hide deletegameaction_glow + } + action + { + play sound/interface/button1.wav ; + hide glow ; + uiScript deletegame + } + } + + + // resumegame button + itemDef + { + name resumegameaction_glow + group glow + style WINDOW_STYLE_SHADER + rect 440 410 190 20 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name resumeautobutton + group actionbutton + text @MENUS_RESUME_MISSION + descText @MENUS_RESUME_LAST_MISSION_ENTERED + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 440 410 175 25 + font 3 + textscale 0.8 + textalignx 175 + textaligny 1 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 // This button isn't used when not in game. + cvarTest ui_ResumeOK + enableCvar { "1" } + + mouseEnter + { + show resumegameaction_glow + } + mouseExit + { + hide resumegameaction_glow + } + action + { + play "sound/interface/button1.wav" ; + hide glow ; + uiScript loadAuto + } + } + + } +} + + + + + + + + + + + + + + + + + + + + + diff --git a/base/ui/loadscreen.menu b/base/ui/loadscreen.menu new file mode 100644 index 0000000..2332cd5 --- /dev/null +++ b/base/ui/loadscreen.menu @@ -0,0 +1,179 @@ +//---------------------------------------------------------------------------------------------- +// Load screen +// +// Data displayed while level is loading. Run only during map transitions. +// +//---------------------------------------------------------------------------------------------- +{ + + menuDef + { + name "loadscreen" + fullScreen 0 + rect 0 0 640 480 + visible 1 + focusColor 1 1 1 1 + descX 320 + descY 426 + descScale 1 + descColor .79 .64 .22 .7 + descAlignment ITEM_ALIGN_CENTER + disablecolor .5 .5 .5 1 + onClose + { + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/load_back" + forecolor 1 1 1 1 + visible 0 + decoration + } + + // Picture that goes along with map + itemDef + { + name mappic + group none + style WINDOW_STYLE_SHADER + rect 25 31 266 200 + background "gfx/menus/mission_back" + forecolor 1 1 1 1 + visible 0 + decoration + } + + // Used only if there are enough icons to fill one row + itemDef + { + name weaponicons_singlerow + group none + style WINDOW_STYLE_SHADER + rect 20 280 540 30 + forecolor 1 1 1 1 + visible 0 + decoration + } + + // Used only if there are enough icons to fill two rows + itemDef + { + name weaponicons_row1 + group none + style WINDOW_STYLE_SHADER + rect 20 260 540 30 + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name weaponicons_row2 + group none + style WINDOW_STYLE_SHADER + rect 20 305 540 30 + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name forceicons_singlerow + group none + style WINDOW_STYLE_SHADER + rect 50 385 540 30 + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name forceicons_row1 + group none + style WINDOW_STYLE_SHADER + rect 50 360 540 30 + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name forceicons_row2 + group none + style WINDOW_STYLE_SHADER + rect 50 400 540 30 + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name briefingtext + group none + type ITEM_TYPE_TEXTSCROLL + rect 295 20 330 370 + cvar ui_missionbriefing + font 4 + forecolor 1 1 1 1 + textscale 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny 6 + lineHeight 18 + visible 1 + autowrapped + } + // Frame around map pic + itemDef + { + name background + group none + style WINDOW_STYLE_EMPTY + rect 21 29 270 203 + border 1 + bordercolor .298 .305 .690 1 + bordersize 2 + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// Scan line to go over top of everything else +//---------------------------------------------------------------------------------------------- + itemDef + { + name scan + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 640 + background "gfx/menus/scanlines_noscroll" + forecolor 1 1 1 1 + visible 1 + decoration + } + + } + +} + + + + + + + + + + + diff --git a/base/ui/main.menu b/base/ui/main.menu new file mode 100644 index 0000000..866fdcb --- /dev/null +++ b/base/ui/main.menu @@ -0,0 +1,549 @@ +//---------------------------------------------------------------------------------------------- +// +// MAIN MENU - called when game is first started +// +//---------------------------------------------------------------------------------------------- +{ + assetGlobalDef + { + smallFont "aurabesh" 18 + mediumFont "ergoec" 18 + bigFont "anewhope" 20 + smallFont "arialnb" 14 + + cursor "cursor" + itemFocusSound "sound/interface/menuroam.wav" + itemFocusForce "fffx/interface/menuroam" + + fadeClamp 1.0 // sets the fadeup alpha + fadeCycle 1 // how often fade happens in milliseconds + fadeAmount 0.1 // amount to adjust alpha per cycle + precacheSound + { + "sound/interface/choose_color.wav" + "sound/interface/choose_head.wav" + "sound/interface/choose_torso.wav" + "sound/interface/choose_saber.wav" + "sound/interface/choose_hilt.wav" + "sound/interface/choose_blade.wav" + "sound/interface/transition.wav" + "sound/interface/esc.wav" + "sound/interface/sub_select.wav" + } + focuscolor 0 0 1 1 + shadowColor 0.1 0.1 0.1 0.0 // shadow color + } + + + menuDef + { + name "mainMenu" + fullScreen 1 + rect 0 0 640 480 + visible 1 + focusColor 1 1 1 1 + descX 320 + descY 426 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + onOpen + { + setfocus newgamebutton + } + onESC + { + play "sound/interface/menuroam.wav" ; + close mainMenu ; + open quitMenu ; + } + +//---------------------------------------------------------------------------------------------- +// +// MENU BACKGROUND +// +//---------------------------------------------------------------------------------------------- + itemDef + { + name background_video + group none + style WINDOW_STYLE_SHADER + rect 200 144 256 256 + background "gfx/menus/videologo" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name ring + group none + style WINDOW_STYLE_SHADER + rect 193 145 256 256 + background "gfx/menus/main_ring" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name centerwindow + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerwindow" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name leftwindow + group none + style WINDOW_STYLE_SHADER + rect 0 150 320 240 + background "gfx/menus/main_leftwindow" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name rightwindow + group none + style WINDOW_STYLE_SHADER + rect 320 150 320 240 + background "gfx/menus/main_rightwindow" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 107 8 428 112 + background "gfx/menus/jediacademy" + forecolor 1 1 1 1 + visible 1 + decoration + } + + +//---------------------------------------------------------------------------------------------- +// TOP MAIN MENU BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name button_glow + group mods + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + + // Big button "NEW" + itemDef + { + name newgamebutton_undertext + group toprow + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 36 194 130 24 + text @MENUS_NEW + font 1 + textscale .7 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor .02 0 .33 1 + visible 0 + decoration + } + + itemDef + { + name newgamebutton + group toprow + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 36 212 130 24 + text @MENUS_NEW + descText @MENUS_START_A_NEW_GAME + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 16 210 210 32 + show newgamebutton_undertext + } + mouseExit + { + hide button_glow + hide newgamebutton_undertext + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open newgamefirstMenu + } + } + + // Big button "LOAD" + itemDef + { + name loadgamebutton_undertext + group toprow + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 36 293 130 24 + text @MENUS_LOAD + font 1 + textscale .7 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor .02 0 .33 1 + visible 0 + decoration + } + + itemDef + { + name loadgamebutton + group toprow + text @MENUS_LOAD + descText @MENUS_LOAD_A_SAVED_GAME + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 36 310 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 16 308 210 32 + show loadgamebutton_undertext + } + mouseExit + { + hide button_glow + hide loadgamebutton_undertext + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open loadgameMenu + } + } + + // Big button "CONTROLS" + itemDef + { + name controlsbutton_undertext + group toprow + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 448 194 146 24 + text @MENUS_CONTROLS2 + font 1 + textscale .7 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor .02 0 .33 1 + visible 0 + decoration + } + + itemDef { + name controlsbutton + group toprow + text @MENUS_CONTROLS + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 456 212 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 416 210 210 32 + show controlsbutton_undertext + } + mouseExit + { + hide button_glow + hide controlsbutton_undertext + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open controlsMenu ; + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton_undertext + group toprow + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 456 292 130 24 + text @MENUS_SETUP + font 1 + textscale .7 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor .02 0 .33 1 + visible 0 + decoration + } + + itemDef { + name setupbutton + group toprow + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 456 310 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 416 308 210 32 + show setupbutton_undertext + } + mouseExit + { + hide button_glow + hide setupbutton_undertext + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open setupMenu ; + } + } + + +//---------------------------------------------------------------------------------------------- +// OTHER MAIN MENU BUTTONS +//---------------------------------------------------------------------------------------------- + + // EXIT button in lower left corner + itemDef + { + name exitgamebutton + group othermain + text @MENUS_EXIT + descText @MENUS_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 255 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 215 440 210 32 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/weapons/saber/saberoff.mp3"; + close all ; + open quitMenu + } + } + + /*itemDef + { + name temp_mission_glow + group mods + style WINDOW_STYLE_SHADER + rect 65 414 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name temp_mission + group mission + text "TEMP MISSION SELECT" + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 65 414 130 24 + font 2 + textscale .7 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + textaligny -1 + forecolor .79 .64 .22 1 + visible 1 + + mouseEnter + { + show temp_mission_glow + } + mouseExit + { + hide temp_mission_glow + } + action + { + play "sound/weapons/saber/saberoff.mp3"; + close all ; + open ingameMissionSelect2 + } + } + + itemDef + { + name temp_story + group mission + text "AbCdEfGhIjKlMnOpQrStUvWxYz1234567890" + desctext "Start this map and walk forward." + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 65 444 130 24 + font 4 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + textaligny -1 + forecolor .79 .64 .22 1 + visible 1 + + mouseEnter + { + } + mouseExit + { + } + action + { + play "sound/weapons/saber/saberoff.mp3"; + close all ; + exec "map mission" + } + }*/ + + } +} + + + + + + + + + + + diff --git a/base/ui/menus.txt b/base/ui/menus.txt new file mode 100644 index 0000000..42435b1 --- /dev/null +++ b/base/ui/menus.txt @@ -0,0 +1,18 @@ +// menu defs +// +{ + loadMenu { "ui/main.menu" } + loadMenu { "ui/newgame.menu" } + loadMenu { "ui/newgame_first.menu" } + loadMenu { "ui/character.menu" } + loadMenu { "ui/saber.menu" } + loadMenu { "ui/loadgame.menu" } + loadMenu { "ui/controls.menu" } + loadMenu { "ui/setup.menu" } + loadMenu { "ui/quit.menu" } + + loadMenu { "ui/error.menu" } + loadMenu { "ui/vid_warning.menu" } + loadMenu { "ui/videodriver.menu" } + +} diff --git a/base/ui/missionfailed.menu b/base/ui/missionfailed.menu new file mode 100644 index 0000000..aadc7e6 --- /dev/null +++ b/base/ui/missionfailed.menu @@ -0,0 +1,347 @@ +//-------------------------------------------------------------- +// +// MISSION FAILED MENU +// +// Displays choices after player death +// +//-------------------------------------------------------------- +{ + menuDef + { + name "missionfailed_menu" + visible 0 + // Not full screen so we can see the game behind it. + fullscreen 0 + rect 0 0 640 480 + focusColor 1 1 1 1 + style WINDOW_STYLE_FILLED + border 1 + descX 320 + descY 458 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + ignoreescape 1 + + onClose + { + } + + onOpen + { + setcvar ui_missionfailed "0" + } + + onESC + { + } + + + // Top Background + itemDef + { + name top_background + rect 50 10 540 80 + style WINDOW_STYLE_FILLED + backcolor .015 .015 .229 .5 + forecolor 0 0 0 .5 + visible 1 + decoration + } + + // Bottom Background + itemDef + { + name bottom_background + rect 170 380 300 95 + style WINDOW_STYLE_FILLED + backcolor .015 .015 .229 .5 + forecolor 0 0 0 .5 + visible 1 + decoration + } + + // Title + itemDef + { + name failed_title + group title + style WINDOW_STYLE_EMPTY + background "gfx/menus/menu_blendbox" + text @SP_INGAME_MISSIONFAILED + rect 0 20 640 16 + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 320 + textaligny -1 + forecolor 1 0 0 1 + visible 1 + decoration + } + + // Text saying why you failed + itemDef + { + name why_text + group none + background "gfx/menus/menu_blendbox" + cvar ui_missionfailed_text + rect 0 60 640 0 + font 3 + textscale .7 + textalign ITEM_ALIGN_CENTER + textalignx 320 + textaligny -1 + forecolor 1 0 0 1 + visible 1 + decoration + } + + +//-------------------------------------------------------------------------------- +// BUTTON +//-------------------------------------------------------------------------------- + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 118 295 85 26 + background "gfx/menus/menu_buttonback" forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name restartauto + group grpControlbutton + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 380 300 20 + text @MENUS_LOAD_AUTOSAVE + desctext @MENUS_LOAD_AUTOSAVE_DESC + textscale 1 + font 4 + textalign ITEM_ALIGN_CENTER + textalignx 150 + forecolor 1 .682 0 1 + visible 1 + + action + { + play "sound/misc/nomenu.wav" + close all + uiScript "load_auto" // Perform screen init + } + + mouseEnter + { + show button_glow + setitemrect button_glow 170 378 300 24 + } + mouseExit + { + hide button_glow + } + } + + itemDef + { + name loadsave + group grpControlbutton + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 400 300 20 + text @MENUS_LOAD_SAVE_GAME + desctext @MENUS_LOAD_SAVE_GAME_DESC + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 150 + forecolor 1 .682 0 1 + visible 1 + font 4 + + action + { + play "sound/misc/nomenu.wav" + close all + setcvar cl_paused "1" + setcvar ui_missionfailed "1" + open ingameloadMenu + } + + mouseEnter + { + show button_glow + setitemrect button_glow 170 398 300 24 + } + mouseExit + { + hide button_glow + } + } + + itemDef + { + name instantload + group grpControlbutton + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 420 300 20 + text @MENUS_INSTANT_LOAD_CAPS + desctext @MENUS_INSTANT_LOAD_CAPS_DESC + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 150 + forecolor 1 .682 0 1 + visible 1 + font 4 + + action + { + play "sound/misc/nomenu.wav" + close all + uiScript "load_quick" + } + + mouseEnter + { + show button_glow + setitemrect button_glow 170 418 300 24 + } + mouseExit + { + hide button_glow + } + } + + itemDef + { + name missionselect + group grpControlbutton + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 440 300 20 + text @MENUS_NEW_MISSION + desctext @MENUS_NEW_MISSION_DESC + font 4 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 150 + forecolor 1 .682 0 1 + visible 1 + cvartest "tier_storyinfo" + showcvar + { + "1" "2" "3" "4" "5" "6" + } + + action + { + play "sound/misc/nomenu.wav" + setcvar cl_paused "1" + uiScript decrementforcepowerlevel + close all + open ingameMissionSelect1 + + } + + mouseEnter + { + show button_glow + setitemrect button_glow 170 438 300 24 + } + mouseExit + { + hide button_glow + } + } + + itemDef + { + name missionselect + group grpControlbutton + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 440 300 20 + text @MENUS_NEW_MISSION + desctext @MENUS_NEW_MISSION_DESC + font 4 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 150 + forecolor 1 .682 0 1 + visible 1 + cvartest "tier_storyinfo" + showcvar + { + "7" "8" "9" "10" "11" "12" + } + + action + { + play "sound/misc/nomenu.wav" + setcvar cl_paused "1" + uiScript decrementforcepowerlevel + close all + open ingameMissionSelect2 + + } + + mouseEnter + { + show button_glow + setitemrect button_glow 170 438 300 24 + } + mouseExit + { + hide button_glow + } + } + itemDef + { + name missionselect + group grpControlbutton + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 440 300 20 + text @MENUS_NEW_MISSION + desctext @MENUS_NEW_MISSION_DESC + font 4 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 150 + forecolor 1 .682 0 1 + visible 1 + cvartest "tier_storyinfo" + showcvar + { + "13" "14" "15" "16" "17" "18" + } + + action + { + play "sound/misc/nomenu.wav" + setcvar cl_paused "1" + uiScript decrementforcepowerlevel + close all + open ingameMissionSelect3 + } + + mouseEnter + { + show button_glow + setitemrect button_glow 170 438 300 24 + } + mouseExit + { + hide button_glow + } + } + + } +} + + diff --git a/base/ui/newgame.menu b/base/ui/newgame.menu new file mode 100644 index 0000000..69e9461 --- /dev/null +++ b/base/ui/newgame.menu @@ -0,0 +1,735 @@ +//----------------------------------------------------------------------- +// NEWGAME MENU +// +// Called from all other menus other than main menu. This has no transition in it. +// +//----------------------------------------------------------------------- +{ + menuDef + { + name "newgameMenu" + 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 320 + descY 426 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + setcvar g_spskill 1 + setcvar cg_crosshairForceHint 1 + setcvar handicap 100 + setfocus medbut + hide diff1 + show diff2 + hide diff3 + hide diff4 + setitemcolor easybut forecolor 1 .682 0 1 + setitemcolor medbut forecolor 1 1 1 1 + setitemcolor hardbut forecolor 1 .682 0 1 + setitemcolor vhardbut forecolor 1 .682 0 1 + } + + onESC + { + play "sound/interface/esc.wav" + close newgameMenu ; + open mainMenu ; + } + + + //---------------------------------------------------------------------------------------------- + // + // MENU BACKGROUND + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 107 8 428 112 + background "gfx/menus/jediacademy" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name left_frame + group lf_fr + style WINDOW_STYLE_SHADER + rect 0 50 320 160 + background "gfx/menus/menu_boxes_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name right_frame + group rt_fr + style WINDOW_STYLE_SHADER + rect 320 50 320 160 + background "gfx/menus/menu_boxes_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + + //---------------------------------------------------------------------------------------------- + // + // TOP MAIN MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + + // Big button "NEW" + itemDef + { + name newbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 7 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name newgamebutton + group nbut + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 7 126 130 24 + text @MENUS_NEW + descText @MENUS_START_A_NEW_GAME + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 1 1 1 + visible 1 + + mouseEnter + { + show newbutton_glow + } + mouseExit + { + hide newbutton_glow + } + } + + // Big button "LOAD" + itemDef + { + name loadgamebutton_glow + group none + style WINDOW_STYLE_SHADER + rect 170 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name loadgamebutton + group lbut + text @MENUS_LOAD + descText @MENUS_LOAD_A_SAVED_GAME + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 126 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show loadgamebutton_glow + } + mouseExit + { + hide loadgamebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open loadgameMenu + } + } + + // Big button "CONTROLS" + itemDef + { + name controlsbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 340 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name controlsbutton + group cbut + text @MENUS_CONTROLS + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show controlsbutton_glow + } + mouseExit + { + hide controlsbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open controlsMenu ; + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 502 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name setupbutton + group sbut + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 502 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show setupbutton_glow + } + mouseExit + { + hide setupbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open setupMenu ; + } + } + + + //---------------------------------------------------------------------------------------------- + // + // OTHER MAIN MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + // BACK button in lower left corner + itemDef + { + name backbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 59 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name backbutton + group exit + text @MENUS_BACK + descText @MENUS_BACKTOMAIN + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 59 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show backbutton_glow + } + mouseExit + { + hide backbutton_glow + } + action + { + play "sound/interface/esc.wav" + close all ; + open mainMenu + } + } + // EXIT button in lower left corner + itemDef + { + name exitgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 255 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name exitgamebutton + group exit + text @MENUS_EXIT + descText @MENUS_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 255 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show exitgamebutton_glow + } + mouseExit + { + hide exitgamebutton_glow + } + action + { + play "sound/weapons/saber/saberoff.mp3"; + close all ; + open quitMenu + } + } + + //---------------------------------------------------------------------------------------------- + // + // NEW GAME MENU specific stuff + // + //---------------------------------------------------------------------------------------------- + + + + // New Game title + itemDef + { + name newgame_title + group title + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_SELECT_SKILL + rect 100 164 440 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + itemDef + { + name diff1 + group none + style WINDOW_STYLE_SHADER + rect 225 196 190 40 + background "gfx/menus/menu_buttonback" // Box around difficulty 1 + forecolor 1 1 1 1 + visible 0 + decoration + } + + // EASY difficulty button + itemDef + { + name easybut + group easy + text @MENUS_APPRENTICE + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + rect 225 196 190 40 + textalignx 95 + textaligny 8 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_EASY_GAME_SETTINGS + + action + { + play "sound/interface/button1.wav" + setcvar g_spskill 0 + setcvar cg_crosshairForceHint 1 + setcvar handicap 100 + show diff1 + hide diff2 + hide diff3 + hide diff4 + setitemcolor easybut forecolor 1 1 1 1 + setitemcolor medbut forecolor 1 .682 0 1 + setitemcolor hardbut forecolor 1 .682 0 1 + setitemcolor vhardbut forecolor 1 .682 0 1 + } + + } + + itemDef + { + name diff2 + group med + style WINDOW_STYLE_SHADER + rect 225 243 190 40 + background "gfx/menus/menu_buttonback" // Box around difficulty 2 + forecolor 1 1 1 1 + visible 1 + decoration + } + + // MEDIUM difficulty button + itemDef + { + name medbut + group med + text @MENUS_JEDI + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + font 3 + textscale 1 + rect 225 243 190 40 + textalignx 95 + textaligny 8 + textalign ITEM_ALIGN_CENTER + textstyle 3 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_NORMAL_GAME_SETTINGS + + action + { + play "sound/interface/button1.wav" + setcvar g_spskill 1 + setcvar cg_crosshairForceHint 1 + setcvar handicap 100 + hide diff1 ; + show diff2 ; + hide diff3 ; + hide diff4 ; + setitemcolor easybut forecolor 1 .682 0 1 + setitemcolor medbut forecolor 1 1 1 1 + setitemcolor hardbut forecolor 1 .682 0 1 + setitemcolor vhardbut forecolor 1 .682 0 1 + } + + } + + itemDef + { + name diff3 + group none + style WINDOW_STYLE_SHADER + rect 225 289 190 40 + background "gfx/menus/menu_buttonback" // Box around difficulty 3 + forecolor 1 1 1 1 + visible 0 + decoration + } + + // HARD difficulty button + itemDef + { + name hardbut + group hard + text @MENUS_JEDI_KNIGHT + font 3 + textscale 1 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 225 289 190 40 + textalignx 95 + textaligny 8 + textalign ITEM_ALIGN_CENTER + textstyle 3 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DIFFICULT_GAME_SETTINGS + + action + { + play "sound/interface/button1.wav" ; + setcvar g_spskill 2 ; + setcvar cg_crosshairForceHint 0 ; + setcvar handicap 100 + hide diff1 ; + hide diff2 ; + show diff3 ; + hide diff4 ; + setitemcolor easybut forecolor 1 .682 0 1 + setitemcolor medbut forecolor 1 .682 0 1 + setitemcolor hardbut forecolor 1 1 1 1 + setitemcolor vhardbut forecolor 1 .682 0 1 + } + + } + + itemDef + { + name diff4 + group none + style WINDOW_STYLE_SHADER + rect 225 335 190 40 + background "gfx/menus/menu_buttonback" // Box around difficulty 4 + forecolor 1 1 1 1 + visible 0 + decoration + } + + // VERY HARD difficulty button + itemDef + { + name vhardbut + group vhard + text @MENUS_JEDI_MASTER + font 3 + textscale 1 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 225 335 190 40 + textalignx 95 + textaligny 8 + textalign ITEM_ALIGN_CENTER + textstyle 3 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_EXTREMELY_DIFFICULT_GAME + + action + { + play "sound/interface/button1.wav" + setcvar g_spskill 2 + setcvar cg_crosshairForceHint 0 + setcvar handicap 50 + hide diff1 ; + hide diff2 ; + hide diff3 ; + show diff4 ; + setitemcolor easybut forecolor 1 .682 0 1 + setitemcolor medbut forecolor 1 .682 0 1 + setitemcolor hardbut forecolor 1 .682 0 1 + setitemcolor vhardbut forecolor 1 1 1 1 + } + + } + + // BEGIN button + itemDef + { + name next_glow + group mods + style WINDOW_STYLE_SHADER + rect 455 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name next + group none + text @MENUS_NEXT + descText @MENUS_NEXT_DESC + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 455 444 130 24 + font 3 + textscale 1 + textalignx 65 + textaligny -1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" ; + close all ; + open characterMenu ; + } + mouseEnter + { + show next_glow + } + mouseExit + { + hide next_glow + } + } + + + } +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/base/ui/newgame_first.menu b/base/ui/newgame_first.menu new file mode 100644 index 0000000..8b00fdc --- /dev/null +++ b/base/ui/newgame_first.menu @@ -0,0 +1,926 @@ +//----------------------------------------------------------------------- +// NEWGAME MENU +// +// Called only from main menu. Has the transition of fields from main menu +// to new game menu +// +//----------------------------------------------------------------------- +{ + + menuDef + { + name "newgamefirstMenu" + 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 320 + descY 426 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + play "sound/interface/transition.wav" + setcvar g_spskill 1 + setcvar cg_crosshairForceHint 1 + setcvar handicap 100 + setfocus medbut + hide diff1 + show diff2 + hide diff3 + hide diff4 + setitemcolor easybut forecolor 1 .682 0 1 + setitemcolor medbut forecolor 1 1 1 1 + setitemcolor hardbut forecolor 1 .682 0 1 + setitemcolor vhardbut forecolor 1 .682 0 1 + transition ring 161 114 320 320 321 273 0 0 20 25 + transition vid 200 144 320 320 321 273 0 0 10 15 + transition cwin 156 154 320 240 321 273 0 0 20 25 + transition lwin 0 150 320 240 -320 150 320 240 20 25 + transition lbut 36 310 130 24 170 126 130 24 20 25 + transition lbut_u 36 293 130 24 -284 293 130 24 20 25 + transition nbut 36 212 130 24 7 126 130 24 20 25 + transition nbut_u 36 194 130 24 -284 194 130 24 20 25 + transition rwin 320 150 320 240 640 150 320 240 20 25 + transition cbut 456 212 130 24 340 126 130 24 20 25 + transition cbut_u 448 194 146 24 768 194 146 24 20 25 + transition sbut 456 310 130 24 502 126 130 24 20 25 + transition sbut_u 456 292 130 24 776 310 130 24 20 25 + //newgame stuff + //transition but_fr 160 480 320 320 160 160 320 320 15 25 + transition easy 225 526 190 40 225 196 190 40 15 25 + transition med 225 578 190 40 225 243 190 40 15 25 + transition hard 225 629 190 40 225 289 190 40 15 25 + transition vhard 225 680 190 40 225 335 190 40 15 25 + //menu bar +// transition lf_fr -320 50 320 160 0 50 320 160 20 25 + transition lf_fr -320 50 320 160 0 50 320 160 2 25 + transition rt_fr 640 50 320 160 320 50 320 160 20 25 + //transition exit 255 444 130 24 59 444 130 24 20 25 + + transition backbutton -320 444 130 24 59 444 130 24 20 25 + transition nextbutton 834 444 130 24 455 444 130 24 20 25 + + fadein newgame_title + fadein difficulty_background + + } + + onESC + { + setitemcolor newgame_title forecolor .549 .854 1 0 + setitemcolor difficulty_background backcolor 0 0 .6 0.5 + play "sound/interface/esc.wav" + close newgamefirstMenu + open mainMenu + } + + + //---------------------------------------------------------------------------------------------- + // + // MENU BACKGROUND + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name vid + group center + style WINDOW_STYLE_SHADER + rect 200 144 256 256 + background "gfx/menus/videologo" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name ring + group none + style WINDOW_STYLE_SHADER + rect 161 114 320 320 + background "gfx/menus/menu_rotate_ring_b" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name cwin + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerwindow" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name lwin + group none + style WINDOW_STYLE_SHADER + rect 0 150 320 240 + background "gfx/menus/main_leftwindow" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name rwin + group none + style WINDOW_STYLE_SHADER + rect 320 150 320 240 + background "gfx/menus/main_rightwindow" + forecolor 1 1 1 1 + visible 1 + decoration + } + + // The starwars logo on the top + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 107 8 428 112 + background "gfx/menus/jediacademy" + forecolor 1 1 1 1 + visible 1 + decoration + } + + + //---------------------------------------------------------------------------------------------- + // + // TOP MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + + // Big button "NEW" + itemDef + { + name newbutton_glow + group none + style WINDOW_STYLE_SHADER + //rect 36 212 130 24 + rect 7 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name newgamebutton_undertext + group nbut_u + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 36 194 130 24 + text @MENUS_NEW + font 1 + textscale .7 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + forecolor .79 .64 .22 .2 + visible 0 + decoration + } + + itemDef + { + name newgamebutton + group nbut + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 7 126 130 24 + text @MENUS_NEW + descText @MENUS_START_A_NEW_GAME + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + //forecolor .79 .64 .22 1 + forecolor 1 1 1 1 + visible 1 + + mouseEnter + { + show newbutton_glow + } + mouseExit + { + hide newbutton_glow + } + } + + // Big button "LOAD" + itemDef + { + name loadgamebutton_glow + group none + style WINDOW_STYLE_SHADER + //rect 36 310 130 24 + rect 170 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name loadgamebutton_undertext + group lbut_u + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 36 293 130 24 + text @MENUS_LOAD + font 1 + textscale .7 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + forecolor .79 .64 .22 .2 + visible 0 + decoration + } + + itemDef + { + name loadgamebutton + group lbut + text @MENUS_LOAD + descText @MENUS_LOAD_A_SAVED_GAME + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 36 310 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show loadgamebutton_glow + show loadgamebutton_undertext + } + mouseExit + { + hide loadgamebutton_glow + hide loadgamebutton_undertext + } + action + { + play "sound/interface/button1.wav" + close all + open loadgameMenu + } + } + + // Big button "CONTROLS" + itemDef + { + name controlsbutton_glow + group none + style WINDOW_STYLE_SHADER + //rect 441 212 160 24 + rect 340 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name controlsbutton_undertext + group cbut_u + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 448 194 146 24 + text @MENUS_CONTROLS2 + font 1 + textscale .7 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + forecolor .79 .64 .22 .2 + visible 0 + decoration + } + + itemDef { + name controlsbutton + group cbut + text @MENUS_CONTROLS + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 456 212 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show controlsbutton_glow + show controlsbutton_undertext + } + mouseExit + { + hide controlsbutton_glow + hide controlsbutton_undertext + } + action + { + play "sound/interface/button1.wav" + close all + open controlsMenu + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton_glow + group none + style WINDOW_STYLE_SHADER + //rect 456 310 130 24 + rect 502 126 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name setupbutton_undertext + group sbut_u + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 456 292 130 24 + text @MENUS_SETUP + font 1 + textscale .7 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + forecolor .79 .64 .22 .2 + visible 0 + decoration + } + + itemDef { + name setupbutton + group sbut + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 456 310 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show setupbutton_glow + show setupbutton_undertext + } + mouseExit + { + hide setupbutton_glow + hide setupbutton_undertext + } + action + { + play "sound/interface/button1.wav" + close all + open setupMenu + } + } + + //---------------------------------------------------------------------------------------------- + // + // NEW GAME MENU specific stuff + // + //---------------------------------------------------------------------------------------------- + /*itemDef + { + name button_frame + group but_fr + style WINDOW_STYLE_SHADER + rect 160 160 320 320 + background "gfx/menus/newgame_boxes" + forecolor 1 1 1 1 + visible 1 + decoration + }*/ + + itemDef + { + name left_frame + group lf_fr + style WINDOW_STYLE_SHADER + rect 0 50 320 160 + background "gfx/menus/menu_boxes_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name right_frame + group rt_fr + style WINDOW_STYLE_SHADER + rect 320 50 320 160 + background "gfx/menus/menu_boxes_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + // Select a skill level title + itemDef + { + name newgame_title + group none + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_SELECT_SKILL + rect 100 164 440 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -1 + forecolor .549 .854 1 0 + visible 1 + decoration + } + + itemDef + { + name diff1 + group none + style WINDOW_STYLE_SHADER + rect 225 196 190 40 + background "gfx/menus/menu_buttonback" // Box around difficulty 1 + forecolor 1 1 1 1 + visible 0 + decoration + } + + // EASY difficulty button + itemDef + { + name easybut + group easy + text @MENUS_APPRENTICE + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + rect 225 196 190 40 + textalignx 95 + textaligny 8 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_EASY_GAME_SETTINGS + + action + { + play "sound/interface/button1.wav" + setcvar g_spskill 0 + setcvar cg_crosshairForceHint 1 + setcvar handicap 100 + show diff1 + hide diff2 + hide diff3 + hide diff4 + setitemcolor easybut forecolor 1 1 1 1 + setitemcolor medbut forecolor 1 .682 0 1 + setitemcolor hardbut forecolor 1 .682 0 1 + setitemcolor vhardbut forecolor 1 .682 0 1 + } + + } + + itemDef + { + name diff2 + group med + style WINDOW_STYLE_SHADER + rect 225 243 190 40 + background "gfx/menus/menu_buttonback" // Box around difficulty 2 + forecolor 1 1 1 1 + visible 1 + decoration + } + + // MEDIUM difficulty button + itemDef + { + name medbut + group med + text @MENUS_JEDI + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + font 3 + textscale 1 + rect 225 243 190 40 + textalignx 95 + textaligny 8 + textalign ITEM_ALIGN_CENTER + textstyle 3 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_NORMAL_GAME_SETTINGS + + action + { + play "sound/interface/button1.wav" + setcvar g_spskill 1 + setcvar cg_crosshairForceHint 1 + setcvar handicap 100 + hide diff1 + show diff2 + hide diff3 + hide diff4 + setitemcolor easybut forecolor 1 .682 0 1 + setitemcolor medbut forecolor 1 1 1 1 + setitemcolor hardbut forecolor 1 .682 0 1 + setitemcolor vhardbut forecolor 1 .682 0 1 + } + + } + + itemDef + { + name diff3 + group none + style WINDOW_STYLE_SHADER + rect 225 289 190 40 + background "gfx/menus/menu_buttonback" // Box around difficulty 3 + forecolor 1 1 1 1 + visible 0 + decoration + } + + // HARD difficulty button + itemDef + { + name hardbut + group hard + text @MENUS_JEDI_KNIGHT + font 3 + textscale 1 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 225 289 190 40 + textalignx 95 + textaligny 8 + textalign ITEM_ALIGN_CENTER + textstyle 3 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_DIFFICULT_GAME_SETTINGS + + action + { + play "sound/interface/button1.wav" + setcvar g_spskill 2 + setcvar cg_crosshairForceHint 0 + setcvar handicap 100 + hide diff1 + hide diff2 + show diff3 + hide diff4 + setitemcolor easybut forecolor 1 .682 0 1 + setitemcolor medbut forecolor 1 .682 0 1 + setitemcolor hardbut forecolor 1 1 1 1 + setitemcolor vhardbut forecolor 1 .682 0 1 + } + + } + + itemDef + { + name diff4 + group none + style WINDOW_STYLE_SHADER + rect 225 335 190 40 + background "gfx/menus/menu_buttonback" // Box around difficulty 4 + forecolor 1 1 1 1 + visible 0 + decoration + } + + // VERY HARD difficulty button + itemDef + { + name vhardbut + group vhard + text @MENUS_JEDI_MASTER + font 3 + textscale 1 + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 225 335 190 40 + textalignx 95 + textaligny 8 + textalign ITEM_ALIGN_CENTER + textstyle 3 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_EXTREMELY_DIFFICULT_GAME + + action + { + play "sound/interface/button1.wav" + setcvar g_spskill 2 + setcvar cg_crosshairForceHint 0 + setcvar handicap 50 + hide diff1 + hide diff2 + hide diff3 + show diff4 + setitemcolor easybut forecolor 1 .682 0 1 + setitemcolor medbut forecolor 1 .682 0 1 + setitemcolor hardbut forecolor 1 .682 0 1 + setitemcolor vhardbut forecolor 1 1 1 1 + } + + } + + //---------------------------------------------------------------------------------------------- + // + // OTHER MAIN MENU BUTTONS + // + //---------------------------------------------------------------------------------------------- + // BACK button in lower left corner + itemDef + { + name backbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 59 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name backbutton + group fade_buttons + text @MENUS_BACK + descText @MENUS_BACKTOMAIN + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 59 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show backbutton_glow + } + mouseExit + { + hide backbutton_glow + } + action + { + play "sound/interface/esc.wav" + close all ; + open mainMenu + } + } + // EXIT button in lower left corner + itemDef + { + name exitgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 255 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name exitgamebutton + group exit + text @MENUS_EXIT + descText @MENUS_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 255 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show exitgamebutton_glow + } + mouseExit + { + hide exitgamebutton_glow + } + action + { + play "sound/weapons/saber/saberoff.mp3" + close all + open quitMenu + } + } + + // NEXT button + itemDef + { + name next_glow + group mods + style WINDOW_STYLE_SHADER + rect 455 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name nextbutton + group fade_buttons + text @MENUS_NEXT + descText @MENUS_NEXT_DESC + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 455 444 130 24 + font 3 + textscale 1 + textalignx 65 + textaligny -1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/button1.wav" + close all + open characterMenu + } + mouseEnter + { + show next_glow + } + mouseExit + { + hide next_glow + } + } + + + } +} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/base/ui/quit.menu b/base/ui/quit.menu new file mode 100644 index 0000000..51ab790 --- /dev/null +++ b/base/ui/quit.menu @@ -0,0 +1,506 @@ +//---------------------------------------------------------------------------------------------- +// +// QUIT MENU +// +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "quitMenu" + visible 0 + fullScreen 1 + rect 0 0 640 480 + focusColor 1 1 1 1 + descX 320 + descY 426 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onESC + { + play "sound/interface/esc.wav" + close quitMenu ; + open mainMenu ; + } + + onOpen + { + setfocus quitgame_cancel + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 107 8 428 112 + background "gfx/menus/jediacademy" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name left_frame + group lf_fr + style WINDOW_STYLE_SHADER + rect 0 50 320 160 + background "gfx/menus/menu_boxes_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name right_frame + group rt_fr + style WINDOW_STYLE_SHADER + rect 320 50 320 160 + background "gfx/menus/menu_boxes_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// TOP MAIN MENU BUTTONS +//---------------------------------------------------------------------------------------------- + // Big button "NEW" + itemDef + { + name newbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 7 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name newgamebutton + group nbut + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 7 126 130 24 + text @MENUS_NEW + descText @MENUS_START_A_NEW_GAME + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show newbutton_glow + } + mouseExit + { + hide newbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open newgameMenu + } + } + + // Big button "LOAD" + itemDef + { + name loadgamebutton_glow + group none + style WINDOW_STYLE_SHADER + rect 170 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name loadgamebutton + group lbut + text @MENUS_LOAD + descText @MENUS_LOAD_A_SAVED_GAME + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 126 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show loadgamebutton_glow + } + mouseExit + { + hide loadgamebutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open loadgameMenu + } + } + + // Big button "CONTROLS" + itemDef + { + name controlsbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 340 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name controlsbutton + group cbut + text @MENUS_CONTROLS + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show controlsbutton_glow + } + mouseExit + { + hide controlsbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open controlsMenu ; + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 502 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name setupbutton + group sbut + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 502 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show setupbutton_glow + } + mouseExit + { + hide setupbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + close all ; + open setupMenu ; + } + } + +//---------------------------------------------------------------------------------------------- +// QUIT MENU specific stuff +//---------------------------------------------------------------------------------------------- + itemDef + { + name quit_title + group none + text @MENUS_LEAVING_JEDI_KNIGHT_2 + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + rect 100 164 440 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + itemDef + { + name confirm + group none + text @MENUS_QUIT_JEDI_KNIGHT_II + rect 0 250 640 20 + font 2 + textstyle 1 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 320 + textaligny 0 + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// CANCEL button +//---------------------------------------------------------------------------------------------- + itemDef + { + name quitgame_no_button + group none + style WINDOW_STYLE_SHADER + rect 59 444 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name quitgame_no + group none + text @MENUS_NO + descText @MENUS_DO_NOT_LEAVE_JEDI_KNIGHT + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 59 444 130 24 + font 3 + textscale 1 + textalignx 65 + textaligny -1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + action + { + play "sound/interface/esc.wav" + close quitMenu + open mainMenu + } + mouseEnter + { + show quitgame_no_button + } + mouseExit + { + hide quitgame_no_button + } + } + +//---------------------------------------------------------------------------------------------- +// CONFIRM button +//---------------------------------------------------------------------------------------------- + itemDef + { + name quitgame_yes_button + group none + style WINDOW_STYLE_SHADER + rect 454 444 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name quitgame_yes + group none + text @MENUS_YES + descText @MENUS_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 454 444 130 24 + font 3 + textscale 1 + textalignx 65 + textaligny -1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + cvartest "com_demo" + hidecvar + { + "1" + } + action + { + play "sound/interface/button1.wav" + uiScript Quit + } + mouseEnter + { + show quitgame_yes_button + } + mouseExit + { + hide quitgame_yes_button + } + } + + + itemDef + { + name quitgame_yes + group none + text @MENUS_YES + descText @MENUS_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 454 444 130 24 + font 3 + textscale 1 + textalignx 65 + textaligny -1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + cvartest "com_demo" + hidecvar + { + "0" + } + action + { + play "sound/interface/button1.wav" + close all + open demo_sellscreen1 + } + mouseEnter + { + show quitgame_yes_button + } + mouseExit + { + hide quitgame_yes_button + } + } + + } +} + + + + + + + + + + + + + + + + + diff --git a/base/ui/saber.menu b/base/ui/saber.menu new file mode 100644 index 0000000..33428f2 --- /dev/null +++ b/base/ui/saber.menu @@ -0,0 +1,1820 @@ +//---------------------------------------------------------------------------------------------- +// +// SABER CREATION MENU - called from main menu at the the start of a new game, +// and also when player is allowed to upgrade the fighting style and choose a new saber +// +// values allowed for "ui_fightingstylesallowed" for styles player can choose from +// 0 - none +// 1 - Medium and Heavy +// 2 - Fast and Heavy +// 3 - Fast and Medium +// 4 - Forced to take Fast +// 5 - Forced to take Medium +// 6 - Forced to take Strong +// +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "saberMenu" + 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 320 + descY 426 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + uiScript "resetsabercvardefaults" + uiScript "getsabercvars" + uiScript "updatefightingstylechoices" + uiScript "saber_hilt" + uiScript "saber_color" + uiScript "saber2_hilt" + uiScript "saber2_color" + setitemcolor typebut_single forecolor .65 .65 1 1 + setitemcolor typebut_dual forecolor .65 .65 1 1 + setitemcolor typebut_staff forecolor .65 .65 1 1 + } + + onESC + { + play "sound/interface/esc.wav" + uiScript "updatesabercvars" + uiScript closesabermenu + } + + + //---------------------------------------------------------------------------------------------- + // + // MENU BACKGROUND + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/sabermenu_back" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name box1 + group none + style WINDOW_STYLE_SHADER + rect 4 66 219 165 + background "gfx/menus/sabermenu_box" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name box2top + group none + style WINDOW_STYLE_SHADER + rect 212 66 219 60 + background "gfx/menus/sabermenu_box_top" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name box2middle + group none + style WINDOW_STYLE_SHADER + rect 212 126 219 0 + background "gfx/menus/sabermenu_box_middle" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name box2bottom + group none + style WINDOW_STYLE_SHADER + rect 212 126 219 60 + background "gfx/menus/sabermenu_box_bottom" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name box3top + group none + style WINDOW_STYLE_SHADER + rect 418 66 219 60 + background "gfx/menus/sabermenu_box_top" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name box3middle + group none + style WINDOW_STYLE_SHADER + rect 418 126 219 0 + background "gfx/menus/sabermenu_box_middle" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name box3bottom + group none + style WINDOW_STYLE_SHADER + rect 418 126 219 60 + background "gfx/menus/sabermenu_box_bottom" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name styleboxleft + group none + style WINDOW_STYLE_SHADER + rect 227 183 198 40 + background "gfx/menus/sabermenu_stylebox_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name styleboxright + group none + style WINDOW_STYLE_SHADER + rect 425 183 198 40 + background "gfx/menus/sabermenu_stylebox_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// TOP MAIN MENU BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + // Big button "NEW" + itemDef + { + name newgamebutton + group nbut + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 7 16 130 24 + text @MENUS_NEW + descText @MENUS_START_A_NEW_GAME + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 1 1 1 + visible 1 + + cvarTest saber_menu + showCvar { "0" } + + mouseEnter + { + show button_glow + setitemrect button_glow 0 14 200 30 + } + mouseExit + { + hide button_glow + } + } + + // Big button "LOAD" + itemDef + { + name loadgamebutton + group lbut + text @MENUS_LOAD + descText @MENUS_LOAD_A_SAVED_GAME + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 16 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + cvarTest saber_menu + showCvar { "0" } + + mouseEnter + { + show button_glow + setitemrect button_glow 130 14 200 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" + uiScript "updatesabercvars" + close all + open loadgameMenu + } + } + + // Big button "CONTROLS" + itemDef + { + name controlsbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 340 16 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name controlsbutton + group cbut + text @MENUS_CONTROLS + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 16 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + cvarTest saber_menu + showCvar { "0" } + + mouseEnter + { + show button_glow + setitemrect button_glow 310 14 200 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" + uiScript "updatesabercvars" + close all + open controlsMenu + } + } + + // Big button "SETUP" + itemDef + { + name setupbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 502 16 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name setupbutton + group sbut + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 502 16 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 1 + visible 1 + + cvarTest saber_menu + showCvar { "0" } + + mouseEnter + { + show button_glow + setitemrect button_glow 472 14 200 30 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" + uiScript "updatesabercvars" + close all + open setupMenu + } + } + + + itemDef + { + name left_frame + group lf_fr + style WINDOW_STYLE_SHADER + rect 0 -60 320 160 + background "gfx/menus/menu_boxes_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name right_frame + group rt_fr + style WINDOW_STYLE_SHADER + rect 320 -60 320 160 + background "gfx/menus/menu_boxes_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// SABER MENU specific stuff +//---------------------------------------------------------------------------------------------- + itemDef + { + name title_glow + group none + style WINDOW_STYLE_SHADER + rect 100 48 440 20 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 1 + decoration + } + + // CREATION title + itemDef + { + name creation_title + group title + style WINDOW_STYLE_EMPTY + text @MENUS_LIGHTSABER_CREATION + rect 100 50 440 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -1 + forecolor .549 .854 1 1 + cvarTest saber_menu + hideCvar { "1" "2" } + + visible 1 + decoration + } + + itemDef + { + name creation_title2 + group title + style WINDOW_STYLE_EMPTY + text @MENUS_NEW_SABER + rect 100 50 440 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -1 + forecolor .549 .854 1 1 + cvarTest saber_menu + showCvar { "1" "2" } + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// SABER TYPE BUTTONS (standard, dual, two handed) +//---------------------------------------------------------------------------------------------- + itemDef + { + name typebut + group none + text @MENUS_SABER_TYPE + descText @MENUS_SABER_TYPE_DESC + style WINDOW_STYLE_EMPTY + rect 32 96 160 24 + font 3 + textscale 1 + textstyle 1 + textalignx 0 + textaligny 0 + textalign ITEM_ALIGN_LEFT + backcolor 0 0 0 0 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + itemDef + { + name typebut_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + // This prints the first time in, so you don't get a highlite on the single + itemDef + { + name type_single_title + group none + text @MENUS_SINGLESABER + descText @MENUS_SINGLESABER_DESC + style WINDOW_STYLE_EMPTY + rect 32 132 0 0 + font 4 + textscale 1 + textstyle 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny 0 + forecolor 1 1 1 1 + visible 1 + + cvarTest ui_sabermenu + showCvar { "0" } + + } + + itemDef + { + name typebut_single + group none + text @MENUS_SINGLESABER + descText @MENUS_SINGLESABER_DESC + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 32 132 160 16 + font 4 + textscale 1 + textstyle 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny 0 + forecolor 1 1 1 1 + visible 1 + + cvarTest ui_sabermenu + hideCvar { "0" } + + mouseEnter + { + show typebut_glow + setitemrect typebut_glow 5 130 210 20 + } + mouseExit + { + hide typebut_glow + } + action + { + play "sound/interface/choose_saber.wav" + setcvar ui_saber_type "single" + uiScript "saber_type" + setcvar ui_saber "single_1" + setcvar ui_saber2 "" + uiScript "saber_hilt" + uiScript "saber_color" + uiScript "saber2_hilt" + uiScript "saber2_color" + setitemcolor typebut_single forecolor 1 1 1 1 + setitemcolor typebut_dual forecolor .65 .65 1 1 + setitemcolor typebut_staff forecolor .65 .65 1 1 + transition2 box2middle 212 126 219 0 20 5 + transition2 box2bottom 212 126 219 60 20 5 + transition2 box3middle 418 126 219 0 20 5 + transition2 box3bottom 418 126 219 60 20 5 + transition2 styleboxleft 227 183 198 40 20 5 + transition2 styleboxright 425 183 198 40 20 5 + transition2 saber 12 -80 615 615 20 10 + uiScript "updatefightingstylechoices" + } + } + + itemDef + { + name typebut_dual + group none + text @MENUS_DUALSABERS + descText @MENUS_DUALSABERS_DESC + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 32 152 160 16 + font 4 + textscale 1 + textstyle 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny 0 + forecolor 1 1 1 1 + visible 1 + + cvarTest saber_menu + showCvar { "2" } + + mouseEnter + { + show typebut_glow + setitemrect typebut_glow 5 150 210 20 + } + mouseExit + { + hide typebut_glow + } + action + { + play "sound/interface/choose_saber.wav" + setcvar ui_saber_type "dual" + uiScript "saber_type" + setcvar ui_saber "single_1" + setcvar ui_saber2 "single_1" + uiScript "saber_hilt" + uiScript "saber_color" + uiScript "saber2_hilt" + uiScript "saber2_color" + setitemcolor typebut_single forecolor .65 .65 1 1 + setitemcolor typebut_dual forecolor 1 1 1 1 + setitemcolor typebut_staff forecolor .65 .65 1 1 + transition2 box2middle 212 126 219 44 20 5 + transition2 box2bottom 212 170 219 60 20 5 + transition2 box3middle 418 126 219 44 20 5 + transition2 box3bottom 418 170 219 60 20 5 + transition2 styleboxleft 425 183 0 40 20 5 + transition2 styleboxright 425 183 0 40 20 5 + transition2 saber 12 -130 615 615 20 5 + uiScript "updatefightingstylechoices" + } + } + + itemDef + { + name typebut_staff + group none + text @MENUS_SABERSTAFF + descText @MENUS_SABERSTAFF_DESC + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 32 172 160 16 + font 4 + textscale 1 + textstyle 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny 0 + forecolor 1 1 1 1 + visible 1 + + cvarTest saber_menu + showCvar { "2" } + + mouseEnter + { + show typebut_glow + setitemrect typebut_glow 5 170 210 20 + } + mouseExit + { + hide typebut_glow + } + action + { + play "sound/interface/choose_saber.wav" + setcvar ui_saber_type "staff" + uiScript "saber_type" + setcvar ui_saber "dual_1" + setcvar ui_saber2 "" + uiScript "saber_hilt" + uiScript "saber_color" + uiScript "saber2_hilt" + uiScript "saber2_color" + setitemcolor typebut_single forecolor .65 .65 1 1 + setitemcolor typebut_dual forecolor .65 .65 1 1 + setitemcolor typebut_staff forecolor 1 1 1 1 + transition2 box2middle 212 126 219 44 20 5 + transition2 box2bottom 212 170 219 60 20 5 + transition2 box3middle 418 126 219 44 20 5 + transition2 box3bottom 418 170 219 60 20 5 + transition2 styleboxleft 425 183 0 40 20 5 + transition2 styleboxright 425 183 0 40 20 5 + transition2 saber 12 -80 615 615 20 10 + uiScript "updatefightingstylechoices" + } + } + +//---------------------------------------------------------------------------------------------- +//HILTS +//---------------------------------------------------------------------------------------------- + itemDef + { + name hilttype + group none + text @MENUS_SABER_HILTS + descText @MENUS_SABER_HILTS_DESC + style WINDOW_STYLE_EMPTY + rect 240 96 160 24 + font 3 + textscale 1 + textstyle 1 + textalignx 0 + textaligny 0 + textalign ITEM_ALIGN_LEFT + backcolor 0 0 0 0 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + // HILT BUTTON 1 - SINGLE or DUAL + itemDef + { + name hiltbut_glow + group none + style WINDOW_STYLE_SHADER + rect 210 130 210 20 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name hiltbut + group none + text @MENUS_HILT1 + descText @MENUS_HILT1_DESC + type ITEM_TYPE_MULTI + style WINDOW_STYLE_EMPTY + rect 240 132 160 16 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textstyle 1 + textalignx 0 + textaligny 0 + forecolor .65 .65 1 1 + + cvarTest ui_saber_type + hideCvar { "staff" } + + cvar "ui_saber" + //FIXME: read these from sabers.cfg + *.sab? + cvarStrList + { + @MENUS_SINGLE_HILT1 "single_1" + @MENUS_SINGLE_HILT2 "single_2" + @MENUS_SINGLE_HILT3 "single_3" + @MENUS_SINGLE_HILT4 "single_4" + @MENUS_SINGLE_HILT5 "single_5" + @MENUS_SINGLE_HILT6 "single_6" + @MENUS_SINGLE_HILT7 "single_7" + @MENUS_SINGLE_HILT8 "single_8" + @MENUS_SINGLE_HILT9 "single_9" + } + + visible 1 + + mouseEnter + { + show hiltbut_glow + } + mouseExit + { + hide hiltbut_glow + } + action + { + play "sound/interface/choose_hilt.wav" + uiScript "saber_hilt" + } + } + + // HILT BUTTON 1 - STAVES + itemDef + { + name hiltbut_staves + group none + text @MENUS_HILT1 + descText @MENUS_HILT1_DESC + type ITEM_TYPE_MULTI + style WINDOW_STYLE_EMPTY + rect 240 132 160 16 + font 4 + textscale 1 + textstyle 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny 0 + forecolor .65 .65 1 1 + + cvarTest ui_saber_type + hideCvar { "single"; "dual" } + + cvar "ui_saber" + //FIXME: read these from sabers.cfg + *.sab? + cvarStrList + { + @MENUS_STAFF_HILT1 "dual_1" + @MENUS_STAFF_HILT2 "dual_2" + @MENUS_STAFF_HILT3 "dual_3" + @MENUS_STAFF_HILT4 "dual_4" + @MENUS_STAFF_HILT5 "dual_5" + } + visible 1 + mouseEnter + { + show hiltbut_glow + } + mouseExit + { + hide hiltbut_glow + } + action + { + play "sound/interface/choose_hilt.wav" + uiScript "saber_hilt" + } + } + + // HILT BUTTON 2 - DUAL + itemDef + { + name hiltbut2_glow + group none + style WINDOW_STYLE_SHADER + rect 210 150 210 20 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + decoration + } + + itemDef + { + name hiltbut2 + group none + text @MENUS_HILT2 + descText @MENUS_HILT2_DESC + type ITEM_TYPE_MULTI + style WINDOW_STYLE_EMPTY + rect 240 152 160 16 + font 4 + textscale 1 + textstyle 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny 0 + forecolor .65 .65 1 1 + + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + + cvar "ui_saber2" + //FIXME: read these from sabers.cfg + *.sab? + cvarStrList + { + @MENUS_SINGLE_HILT1 "single_1" + @MENUS_SINGLE_HILT2 "single_2" + @MENUS_SINGLE_HILT3 "single_3" + @MENUS_SINGLE_HILT4 "single_4" + @MENUS_SINGLE_HILT5 "single_5" + @MENUS_SINGLE_HILT6 "single_6" + @MENUS_SINGLE_HILT7 "single_7" + @MENUS_SINGLE_HILT8 "single_8" + @MENUS_SINGLE_HILT9 "single_9" + } + visible 1 + mouseEnter + { + show hiltbut2_glow + } + mouseExit + { + hide hiltbut2_glow + } + action + { + play "sound/interface/choose_hilt.wav" + uiScript "saber2_hilt" + } + } + +//---------------------------------------------------------------------------------------------- +//BLADE COLORS +//---------------------------------------------------------------------------------------------- + itemDef + { + name bladecolor_title + group none + text @MENUS_BLADE_COLOR + descText @MENUS_BLADE_COLOR_DESC + style WINDOW_STYLE_EMPTY + rect 446 96 160 24 + font 3 + textscale 1 + textstyle 1 + textalignx 0 + textaligny 0 + textalign ITEM_ALIGN_LEFT + backcolor 0 0 0 0 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + // COLOR 1 BUTTON + /*itemDef + { + name colorbut_glow + group none + style WINDOW_STYLE_SHADER + rect 446 136 160 16 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name colorbut + group none + text @MENUS_COLOR1 + descText @MENUS_COLOR1_DESC + type ITEM_TYPE_MULTI + style WINDOW_STYLE_EMPTY + rect 446 136 160 16 + font 2 + textscale .8 + textstyle 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -4 + forecolor 1 1 1 1 + visible 1 + + cvar "ui_saber_color" + cvarStrList + { + "red" "red" + "orange" "orange" + "yellow" "yellow" + "green" "green" + "blue" "blue" + "purple" "purple" + } + + mouseEnter + { + show colorbut_glow + } + mouseExit + { + hide colorbut_glow + } + action + { + play "sound/interface/choose_blade.wav" + uiScript "saber_color" + } + }*/ + + itemDef + { + name blueicon + group sabericons + descText @MENUS_COLOR1_DESC + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 446 124 24 24 + background "gfx/menus/saber_icon_blue" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + mouseEnter + { + setitemcolor blueicon forecolor 1 1 1 1 + setitemcolor blueicon bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor blueicon forecolor .75 .75 .75 1 + setitemcolor blueicon bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + //uiScript "saber_color" + setcvar "ui_saber_color" "blue" + } + } + + itemDef + { + name greenicon + group sabericons + descText @MENUS_COLOR1_DESC + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 480 124 24 24 + background "gfx/menus/saber_icon_green" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + mouseEnter + { + setitemcolor greenicon forecolor 1 1 1 1 + setitemcolor greenicon bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor greenicon forecolor .75 .75 .75 1 + setitemcolor greenicon bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + //uiScript "saber_color" + setcvar "ui_saber_color" "green" + } + } + + itemDef + { + name orangeicon + group sabericons + descText @MENUS_COLOR1_DESC + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 514 124 24 24 + background "gfx/menus/saber_icon_orange" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + mouseEnter + { + setitemcolor orangeicon forecolor 1 1 1 1 + setitemcolor orangeicon bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor orangeicon forecolor .75 .75 .75 1 + setitemcolor orangeicon bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + //uiScript "saber_color" + setcvar "ui_saber_color" "orange" + } + } + + itemDef + { + name purpleicon + group sabericons + descText @MENUS_COLOR1_DESC + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 548 124 24 24 + background "gfx/menus/saber_icon_purple" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + mouseEnter + { + setitemcolor purpleicon forecolor 1 1 1 1 + setitemcolor purpleicon bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor purpleicon forecolor .75 .75 .75 1 + setitemcolor purpleicon bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + //uiScript "saber_color" + setcvar "ui_saber_color" "purple" + } + } + + itemDef + { + name yellowicon + group sabericons + descText @MENUS_COLOR1_DESC + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 582 124 24 24 + background "gfx/menus/saber_icon_yellow" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + mouseEnter + { + setitemcolor yellowicon forecolor 1 1 1 1 + setitemcolor yellowicon bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor yellowicon forecolor .75 .75 .75 1 + setitemcolor yellowicon bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + //uiScript "saber_color" + setcvar "ui_saber_color" "yellow" + } + } + +// COLOR 2 BUTTON + itemDef + { + name colorbut2 + group none + text @MENUS_COLOR2 + descText @MENUS_COLOR2_DESC + //type ITEM_TYPE_MULTI + style WINDOW_STYLE_EMPTY + rect 446 152 160 16 + font 2 + textscale .8 + textstyle 1 + textalign ITEM_ALIGN_LEFT + textalignx 0 + textaligny -4 + forecolor .79 .64 .22 1 + visible 1 + decoration + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + + /*cvar "ui_saber2_color" + cvarStrList + { + "red" "red" + "orange" "orange" + "yellow" "yellow" + "green" "green" + "blue" "blue" + "purple" "purple" + } + + mouseEnter + { + show colorbut2_glow + } + mouseExit + { + hide colorbut2_glow + } + action + { + play "sound/interface/choose_blade.wav" + uiScript "saber2_color" + }*/ + } + + itemDef + { + name blueicon2 + group sabericons2 + descText @MENUS_COLOR2_DESC + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 446 170 24 24 + background "gfx/menus/saber_icon_blue" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + mouseEnter + { + setitemcolor blueicon2 forecolor 1 1 1 1 + setitemcolor blueicon2 bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor blueicon2 forecolor .75 .75 .75 1 + setitemcolor blueicon2 bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + //uiScript "saber_color" + setcvar "ui_saber2_color" "blue" + } + } + + itemDef + { + name greenicon2 + group sabericons2 + descText @MENUS_COLOR2_DESC + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 480 170 24 24 + background "gfx/menus/saber_icon_green" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + mouseEnter + { + setitemcolor greenicon2 forecolor 1 1 1 1 + setitemcolor greenicon2 bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor greenicon2 forecolor .75 .75 .75 1 + setitemcolor greenicon2 bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + //uiScript "saber_color" + setcvar "ui_saber2_color" "green" + } + } + + itemDef + { + name orangeicon2 + group sabericons2 + style WINDOW_STYLE_SHADER + descText @MENUS_COLOR2_DESC + type ITEM_TYPE_BUTTON + rect 514 170 24 24 + background "gfx/menus/saber_icon_orange" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + mouseEnter + { + setitemcolor orangeicon2 forecolor 1 1 1 1 + setitemcolor orangeicon2 bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor orangeicon2 forecolor .75 .75 .75 1 + setitemcolor orangeicon2 bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + //uiScript "saber_color" + setcvar "ui_saber2_color" "orange" + } + } + + itemDef + { + name purpleicon2 + group sabericons2 + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + descText @MENUS_COLOR2_DESC + rect 548 170 24 24 + background "gfx/menus/saber_icon_purple" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + mouseEnter + { + setitemcolor purpleicon2 forecolor 1 1 1 1 + setitemcolor purpleicon2 bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor purpleicon2 forecolor .75 .75 .75 1 + setitemcolor purpleicon2 bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + //uiScript "saber_color" + setcvar "ui_saber2_color" "purple" + } + } + + itemDef + { + name yellowicon2 + group sabericons2 + style WINDOW_STYLE_SHADER + type ITEM_TYPE_BUTTON + rect 582 170 24 24 + descText @MENUS_COLOR2_DESC + background "gfx/menus/saber_icon_yellow" + forecolor .75 .75 .75 1 + border 1 + bordersize 1 + bordercolor .33 .33 .5 1 + visible 1 + cvarTest ui_saber_type + hideCvar { "single"; "staff" } + mouseEnter + { + setitemcolor yellowicon2 forecolor 1 1 1 1 + setitemcolor yellowicon2 bordercolor .66 .66 1 1 + } + mouseExit + { + setitemcolor yellowicon2 forecolor .75 .75 .75 1 + setitemcolor yellowicon2 bordercolor .33 .33 .5 1 + } + action + { + play "sound/interface/choose_blade.wav" + //uiScript "saber_color" + setcvar "ui_saber2_color" "yellow" + } + } + +//---------------------------------------------------------------------------------------------- +// SABER COMBAT STYLES +//---------------------------------------------------------------------------------------------- + itemDef + { + name fightingstylebutton0 + group stylebuttons + text @MENUS_SABERSTYLE + descText @MENUS_FIGHTINGSTYLE + type ITEM_TYPE_MULTI + style WINDOW_STYLE_EMPTY + rect 240 190 0 0 + font 3 + textscale 1 + textalign ITEM_ALIGN_LEFT + textstyle 1 + textalignx 0 + textaligny 0 + forecolor .65 .65 1 1 + + //cvarTest ui_fightingstylesallowed + cvarTest saber_menu + showCvar { "0" } + + cvar "ui_newfightingstyle" + cvarStrList + { + @MENUS_COMBATSTYLEMEDIUM "1" + } + + visible 1 + + } + + /* + itemDef + { + name fightingstylebutton1 + group stylebuttons + text @MENUS_SABERSTYLE + // descText @MENUS_ADDFIGHTINGSTYLE + type ITEM_TYPE_MULTI + style WINDOW_STYLE_EMPTY + rect 240 190 380 24 + font 3 + textscale 1 + textalign ITEM_ALIGN_LEFT + textstyle 1 + textalignx 0 + textaligny 0 + forecolor .65 .65 1 1 + + cvarTest ui_fightingstylesallowed + showCvar { "1" } + + cvar "ui_newfightingstyle" + cvarStrList + { + @MENUS_COMBATSTYLEMEDIUM "1" + @MENUS_COMBATSTYLEHEAVY "2" + } + + visible 1 + + mouseEnter + { + // show fightingstyle_glow + } + mouseExit + { + // hide fightingstyle_glow + } + action + { + play "sound/interface/button1.wav" + } + } + + itemDef + { + name fightingstylebutton2 + group none + text @MENUS_SABERSTYLE + // descText @MENUS_ADDFIGHTINGSTYLE + type ITEM_TYPE_MULTI + style WINDOW_STYLE_EMPTY + rect 240 190 380 24 + font 3 + textscale 1 + textalign ITEM_ALIGN_LEFT + textstyle 1 + textalignx 0 + textaligny 0 + forecolor .65 .65 1 1 + + cvarTest ui_fightingstylesallowed + showCvar { "2" } + + cvar "ui_newfightingstyle" + cvarStrList + { + @MENUS_COMBATSTYLEFAST "0" + @MENUS_COMBATSTYLEHEAVY "2" + } + + visible 1 + decoration + + mouseEnter + { + // show fightingstyle_glow + } + mouseExit + { + // hide fightingstyle_glow + } + action + { + play "sound/interface/button1.wav" + } + } + + itemDef + { + name fightingstylebutton3 + group stylebuttons + text @MENUS_SABERSTYLE + // descText @MENUS_ADDFIGHTINGSTYLE + type ITEM_TYPE_MULTI + style WINDOW_STYLE_EMPTY + rect 240 190 380 24 + font 3 + textscale 1 + textalign ITEM_ALIGN_LEFT + textstyle 1 + textalignx 0 + textaligny 0 + forecolor .65 .65 1 1 + + cvarTest ui_fightingstylesallowed + showCvar { "3" } + + cvar "ui_newfightingstyle" + cvarStrList + { + @MENUS_COMBATSTYLEFAST "0" + @MENUS_COMBATSTYLEMEDIUM "1" + } + + visible 1 + + mouseEnter + { + // show fightingstyle_glow + } + mouseExit + { + // hide fightingstyle_glow + } + action + { + play "sound/interface/button1.wav" + } + } + */ + itemDef + { + name fightingstylebutton4 + group stylebuttons + text @MENUS_FIGHTINGSTYLE_FAST + type ITEM_TYPE_TEXT + style WINDOW_STYLE_EMPTY + rect 240 190 0 0 + font 3 + textscale 1 + textalign ITEM_ALIGN_LEFT + textstyle 1 + textalignx 0 + textaligny 0 + forecolor .65 .65 1 1 + + cvarTest ui_fightingstylesallowed + showCvar { "4" } + + visible 1 + } + + itemDef + { + name fightingstylebutton5 + group stylebuttons + text @MENUS_FIGHTINGSTYLE_MED + type ITEM_TYPE_TEXT + style WINDOW_STYLE_EMPTY + rect 240 190 0 0 + font 3 + textscale 1 + textalign ITEM_ALIGN_LEFT + textstyle 1 + textalignx 0 + textaligny 0 + forecolor .65 .65 1 1 + + cvarTest ui_fightingstylesallowed + showCvar { "5" } + + visible 1 + } + + itemDef + { + name fightingstylebutton6 + group stylebuttons + text @MENUS_FIGHTINGSTYLE_STRONG + type ITEM_TYPE_TEXT + style WINDOW_STYLE_EMPTY + rect 240 190 0 0 + font 3 + textscale 1 + textalign ITEM_ALIGN_LEFT + textstyle 1 + textalignx 0 + textaligny 0 + forecolor .65 .65 1 1 + + cvarTest ui_fightingstylesallowed + showCvar { "6" } + + visible 1 + } + + itemDef + { + name fightingstyle_glow + group none + style WINDOW_STYLE_SHADER + rect 240 190 380 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + + +//---------------------------------------------------------------------------------------------- +//SABER MODELS +//---------------------------------------------------------------------------------------------- + //FIRST SABER + itemDef + { + name saber + group models + type ITEM_TYPE_MODEL + //rect 12 -130 615 615 + rect 12 -80 615 615 + asset_model "models/weapons2/saber_1/saber_1.glm" + isSaber 1 + model_angle 180 + model_rotation 20 + model_g2mins 0 0 0 + model_g2maxs 20 20 20 + model_fovx 75 + model_fovy 75 + visible 1 + decoration + } + + //SECOND SABER + itemDef + { + name saber2 + group models + type ITEM_TYPE_MODEL + rect 12 -50 615 615 + asset_model "models/weapons2/saber_1/saber_1.glm" + isSaber2 1 + model_angle 180 + model_rotation 20 + model_g2mins 0 0 0 + model_g2maxs 20 20 20 + model_fovx 75 + model_fovy 75 + visible 1 + + cvarTest ui_saber_type + hideCvar { "single" "staff" } + + decoration + } + +//---------------------------------------------------------------------------------------------- +// OTHER MAIN MENU BUTTONS +//---------------------------------------------------------------------------------------------- + // BACK button in lower left corner + itemDef + { + name backbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 59 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name backbutton + group exit + + text @MENUS_BACK + descText @MENUS_BACKUP_ONE_MENU + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 59 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + cvarTest saber_menu + showCvar { "0" } + + mouseEnter + { + show backbutton_glow + } + mouseExit + { + hide backbutton_glow + } + action + { + play "sound/interface/esc.wav" + close all ; + open characterMenu + } + } + // EXIT button in lower left corner + itemDef + { + name exitgamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 255 444 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name exitgamebutton + group exit + text @MENUS_EXIT + descText @MENUS_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 255 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + cvarTest saber_menu + showCvar { "0" } + + mouseEnter + { + show exitgamebutton_glow + } + mouseExit + { + hide exitgamebutton_glow + } + action + { + play "sound/weapons/saber/saberoff.mp3" + uiScript "updatesabercvars" + close all + open quitMenu + } + } + + //BEGIN GAME BUTTON + itemDef + { + name begingamebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 455 444 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name newgame_begin + group none + text @MENUS_BEGIN_GAME + descText @MENUS_START_JEDI_KNIGHT_III + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 455 444 130 24 + font 3 + textscale 1 + textalignx 65 + textaligny -1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + forecolor 1 .682 0 1 + visible 1 + + cvarTest saber_menu + showCvar { "0" } + + action + { + uiScript "updatesabercvars" + uiScript "updatefightingstyle" + uiScript startgame + } + mouseEnter + { + show begingamebutton_glow + } + mouseExit + { + hide begingamebutton_glow + } + } + + itemDef + { + name continue + group none + text @MENUS_CONTINUE + descText @MENUS_NEW_MISSION_DESC + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 455 444 130 24 + font 3 + textscale 1 + textalignx 65 + textaligny -1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + forecolor 1 .682 0 1 + visible 1 + + cvarTest saber_menu + hideCvar { "0" } + + action + { + uiScript "updatesabercvars" + uiScript "updatefightingstyle" + close all + setcvar tier_storyinfo "13" + open ingameGotoTier + setcvar storyhead "kyle" + // HACK We're expecting to go to a mission screen from here + playvoice "sound/chars/storyinfo/13.mp3" + + } + mouseEnter + { + show begingamebutton_glow + } + mouseExit + { + hide begingamebutton_glow + } + } + } +} diff --git a/base/ui/saberstyle.menu b/base/ui/saberstyle.menu new file mode 100644 index 0000000..e7972b8 --- /dev/null +++ b/base/ui/saberstyle.menu @@ -0,0 +1,347 @@ +//---------------------------------------------------------------------------------------------- +// +// SABER STYLE MENU - called from in game - allows player to change saber fighting style +// +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "saberstyleMenu" + 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 320 + descY 426 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + uiScript "getsabercvars" + uiScript "updatefightingstylechoices" + setfocus new_fightingstyle_button + uiScript "saber_hilt" + uiScript "saber_color" + } + + onESC + { + play "sound/interface/esc.wav" + uiScript "updatesabercvars" + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/sabermenu_back" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name styleboxleft + group none + style WINDOW_STYLE_SHADER + rect 127 53 198 40 + background "gfx/menus/sabermenu_stylebox_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name styleboxright + group none + style WINDOW_STYLE_SHADER + rect 325 53 198 40 + background "gfx/menus/sabermenu_stylebox_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name styleboxleft + group none + style WINDOW_STYLE_SHADER + rect 127 118 198 40 + background "gfx/menus/sabermenu_stylebox_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name styleboxright + group none + style WINDOW_STYLE_SHADER + rect 325 118 198 40 + background "gfx/menus/sabermenu_stylebox_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + +//---------------------------------------------------------------------------------------------- +// SABER MENU specific stuff +//---------------------------------------------------------------------------------------------- + itemDef + { + name title_glow + group none + style WINDOW_STYLE_SHADER + rect 100 26 440 24 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 1 + decoration + } + + // Screen title + itemDef + { + name title + group title + style WINDOW_STYLE_EMPTY + text @MENUS_CHOOSE_SABER_STYLE + rect 100 30 440 16 + font 3 + textscale 0.8 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -1 + forecolor .549 .854 1 1 + + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// SABER COMBAT STYLES +//---------------------------------------------------------------------------------------------- + // Current fighting style + itemDef + { + name fightingstylebutton1 + group none + text @MENUS_CURRENT_STYLE + descText @MENUS_ADDFIGHTINGSTYLE + type ITEM_TYPE_MULTI + style WINDOW_STYLE_EMPTY + rect 140 60 0 0 + font 3 + textscale 1 + textalign ITEM_ALIGN_LEFT + textstyle 1 + textalignx 0 + textaligny 0 + forecolor .549 .854 1 1 + + cvar "ui_currentfightingstyle" + cvarStrList + { + @MENUS_COMBATSTYLEFAST "0" + @MENUS_COMBATSTYLEMEDIUM "1" + @MENUS_COMBATSTYLEHEAVY "2" + } + + visible 1 + } + + itemDef + { + name new_fightingstyle_button + group none + text @MENUS_NEW_STYLE + descText @MENUS_ADDFIGHTINGSTYLE + type ITEM_TYPE_MULTI + style WINDOW_STYLE_EMPTY + rect 140 125 380 24 + font 3 + textscale 1 + textalign ITEM_ALIGN_LEFT + textstyle 1 + textalignx 0 + textaligny 0 + forecolor .615 .615 .956 1 + + cvar "ui_newfightingstyle" + cvarStrList + { + @MENUS_COMBATSTYLEFAST "0" + @MENUS_COMBATSTYLEHEAVY "2" + } + + visible 1 + + mouseEnter + { + show button_glow + setitemrect button_glow 180 124 380 26 + } + mouseExit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" + } + } + + itemDef + { + name briefing_background + group none + style WINDOW_STYLE_FILLED + rect 127 160 395 64 + backcolor 0 0 .35 .7 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .8 1 + visible 1 + decoration + } + + itemDef + { + name new_fightingstyle_desc + group none + type ITEM_TYPE_TEXTSCROLL + text @SP_INGAME_FAST_STYLE + style WINDOW_STYLE_EMPTY + rect 130 162 392 60 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textstyle 1 + textalignx 0 + textaligny 0 + forecolor 1 1 1 1 + cvartest "ui_newfightingstyle" + showcvar + { + "0" + } + lineHeight 14 + visible 1 + autowrapped + } + + itemDef + { + name new_fightingstyle_desc + group none + type ITEM_TYPE_TEXTSCROLL + text @SP_INGAME_STRONG_STYLE + style WINDOW_STYLE_EMPTY + rect 130 162 392 60 + font 4 + textscale 1 + textalign ITEM_ALIGN_LEFT + textstyle 1 + textalignx 0 + textaligny 0 + forecolor 1 1 1 1 + cvartest "ui_newfightingstyle" + showcvar + { + "2" + } + + lineHeight 14 + visible 1 + autowrapped + } + +//---------------------------------------------------------------------------------------------- +//SABER MODELS +//---------------------------------------------------------------------------------------------- + itemDef + { + name saber + group models + type ITEM_TYPE_MODEL + rect 12 -110 615 615 + asset_model "models/weapons2/saber_reborn/saber_w.glm" + isSaber 1 + model_angle 180 + model_rotation 20 + model_g2mins 0 0 0 + model_g2maxs 20 20 20 + model_fovx 75 + model_fovy 75 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// CONTINUE BUTTON +//---------------------------------------------------------------------------------------------- + itemDef + { + name continue + group none + text @MENUS_CONTINUE + descText @MENUS_NEW_MISSION_DESC + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 455 444 130 24 + font 3 + textscale 1 + textalignx 65 + textaligny -1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + forecolor 1 .682 0 1 + visible 1 + + action + { + uiScript "updatesabercvars" + uiScript "updatefightingstyle" + close all + setcvar tier_storyinfo "7" + setcvar storyhead "protocol" + open ingameGotoTier + // HACK We're expecting to go to a mission screen from here + playvoice "sound/chars/storyinfo/7.mp3" + } + mouseEnter + { + show button_glow + setitemrect button_glow 455 444 130 24 + } + mouseExit + { + hide button_glow + } + } + + itemDef + { + name button_glow + group mods + style WINDOW_STYLE_SHADER + rect 455 444 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + } +} diff --git a/base/ui/setup.menu b/base/ui/setup.menu new file mode 100644 index 0000000..5432d93 --- /dev/null +++ b/base/ui/setup.menu @@ -0,0 +1,2750 @@ +//---------------------------------------------------------------------------------------------- +// +// SETUP MENU +// +//---------------------------------------------------------------------------------------------- +{ + menuDef + { + name "setupMenu" + fullScreen 1 + rect 0 0 640 480 + visible 1 + focusColor 1 1 1 1 + descX 320 + descY 426 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + + onOpen + { + uiScript getvideosetup ; + hide applyChanges ; + hide video2 ; + hide vidrestart ; + hide sound ; + hide options ; + hide mods ; + hide defaults ; + show video ; + show setup_background ; + hide highlights ; + setitemcolor video1menubutton forecolor 1 1 1 1 ; + setitemcolor video2menubutton forecolor 1 .682 0 1 ; + setitemcolor soundmenubutton forecolor 1 .682 0 1; + setitemcolor gameoptionmenubutton forecolor 1 .682 0 1; + setitemcolor modsmenubutton forecolor 1 .682 0 1; + setitemcolor gamedefaultsmenubutton forecolor 1 .682 0 1; + } + + onESC + { + play "sound/interface/esc.wav" + + defer VideoSetup videowarningMenu ; + + close all ; + open mainMenu + } + +//---------------------------------------------------------------------------------------------- +// MENU BACKGROUND +//---------------------------------------------------------------------------------------------- + itemDef + { + name really_background + group none + style WINDOW_STYLE_SHADER + rect 156 154 320 240 + background "gfx/menus/main_centerblue" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text + group none + style WINDOW_STYLE_SHADER + rect 0 0 160 480 + background "gfx/menus/menu_side_text" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background_text_b + group none + style WINDOW_STYLE_SHADER + rect 480 0 160 480 + background "gfx/menus/menu_side_text_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name background + group none + style WINDOW_STYLE_SHADER + rect 0 0 640 480 + background "gfx/menus/main_background" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name starwars + group none + style WINDOW_STYLE_SHADER + rect 107 8 428 112 + background "gfx/menus/jediacademy" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name left_frame + group lf_fr + style WINDOW_STYLE_SHADER + rect 0 50 320 160 + background "gfx/menus/menu_boxes_left" + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name right_frame + group rt_fr + style WINDOW_STYLE_SHADER + rect 320 50 320 160 + background "gfx/menus/menu_boxes_right" + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// TOP MAIN MENU BUTTONS +//---------------------------------------------------------------------------------------------- + // Big button "NEW" + itemDef + { + name newbutton_glow + group none + style WINDOW_STYLE_SHADER + rect 7 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name newgamebutton + group nbut + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 7 126 130 24 + text @MENUS_NEW + descText @MENUS_START_A_NEW_GAME + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show newbutton_glow + } + mouseExit + { + hide newbutton_glow + } + action + { + play "sound/interface/button1.wav" ; + defer VideoSetup videowarningMenu ; + close all ; + open newgameMenu + } + } + + // Big button "LOAD" + itemDef + { + name loadgamebutton_glow + group none + style WINDOW_STYLE_SHADER + rect 170 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name loadgamebutton + group lbut + text @MENUS_LOAD + descText @MENUS_LOAD_A_SAVED_GAME + style WINDOW_STYLE_EMPTY + type ITEM_TYPE_BUTTON + rect 170 126 130 24 + textaligny 0 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + forecolor 1 .682 0 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 none + style WINDOW_STYLE_SHADER + rect 340 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef { + name controlsbutton + group cbut + text @MENUS_CONTROLS + descText @MENUS_CONFIGURE_GAME_CONTROLS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 .682 0 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 none + style WINDOW_STYLE_SHADER + rect 502 126 130 24 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name setupbutton + group sbut + text @MENUS_SETUP + descText @MENUS_CONFIGURE_GAME_SETTINGS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 502 126 130 24 + font 3 + textscale 1.1 + textaligny 0 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 65 + backcolor 0 0 0 0 + forecolor 1 1 1 1 + visible 1 + + mouseEnter + { + show setupbutton_glow + } + mouseExit + { + hide setupbutton_glow + } + + } + +//---------------------------------------------------------------------------------------------- +// OTHER MAIN MENU BUTTONS +//---------------------------------------------------------------------------------------------- + // BACK button in lower left corner + itemDef + { + name backbutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 59 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name backbutton + group exit + text @MENUS_BACK + descText @MENUS_BACKTOMAIN + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 59 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 1 + visible 1 + + mouseEnter + { + show backbutton_glow + } + mouseExit + { + hide backbutton_glow + } + action + { + play "sound/interface/esc.wav" + close all ; + open mainMenu + } + } + + // EXIT button in lower left corner + itemDef + { + name exitgamebutton_glow + group exit + style WINDOW_STYLE_SHADER + rect 255 444 130 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name exitgamebutton + group exit + text @MENUS_EXIT + descText @MENUS_JEDI_KNIGHT_II + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 255 444 130 24 + font 3 + textscale 1.1 + textalign ITEM_ALIGN_CENTER + textstyle 3 + textalignx 65 + textaligny -1 + forecolor 1 .682 0 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 title + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_SETUP_OPTIONS + rect 100 164 440 16 + font 3 + textscale 0.7 + textalign ITEM_ALIGN_CENTER + textalignx 225 + textaligny -1 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + itemDef + { + name sidebutton_glow + group mods + style WINDOW_STYLE_SHADER + rect 60 185 200 24 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name video1menubutton + group none + text @MENUS_VIDEO + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 185 170 24 + font 3 + textscale 0.9 + textalignx 170 + textaligny 2 + textstyle 1 + textalign ITEM_ALIGN_RIGHT + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_VIDEO_SETTINGS + + mouseEnter + { + show sidebutton_glow + setitemrect sidebutton_glow 40 184 220 26 + } + mouseExit + { + hide sidebutton_glow + } + action + { + play sound/interface/sub_select + + 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 1 .682 0 1 ; + setitemcolor soundmenubutton forecolor 1 .682 0 1; + setitemcolor gameoptionmenubutton forecolor 1 .682 0 1; + setitemcolor modsmenubutton forecolor 1 .682 0 1; + setitemcolor gamedefaultsmenubutton forecolor 1 .682 0 1; + } + } + + itemDef + { + name video2menubutton + group none + text @MENUS_MORE_VIDEO + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 209 170 24 + font 3 + textscale 0.9 + textalignx 170 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGUE_MORE_VIDEO_SETTINGS + + mouseEnter + { + show sidebutton_glow + setitemrect sidebutton_glow 40 208 220 26 + } + mouseExit + { + hide sidebutton_glow + } + action + { + play sound/interface/sub_select + + 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 1 .682 0 1; + setitemcolor video2menubutton forecolor 1 1 1 1 ; + setitemcolor soundmenubutton forecolor 1 .682 0 1 ; + setitemcolor gameoptionmenubutton forecolor 1 .682 0 1; + setitemcolor modsmenubutton forecolor 1 .682 0 1; + setitemcolor gamedefaultsmenubutton forecolor 1 .682 0 1; + } + } + + itemDef + { + name soundmenubutton + group none + text @MENUS_SOUND + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 233 170 24 + font 3 + textscale 0.9 + textalignx 170 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_SOUND_SETTINGS + + mouseEnter + { + show sidebutton_glow + setitemrect sidebutton_glow 40 232 220 26 + } + mouseExit + { + hide sidebutton_glow + } + action + { + play sound/interface/sub_select + + 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 1 .682 0 1; + setitemcolor video2menubutton forecolor 1 .682 0 1; + setitemcolor soundmenubutton forecolor 1 1 1 1 ; + setitemcolor gameoptionmenubutton forecolor 1 .682 0 1; + setitemcolor modsmenubutton forecolor 1 .682 0 1; + setitemcolor gamedefaultsmenubutton forecolor 1 .682 0 1; + } + } + + // gameoptions button + itemDef + { + name gameoptionmenubutton + group none + text @MENUS_GAME_OPTIONS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 257 170 24 + font 3 + textscale 0.9 + textalignx 170 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_GAME_OPTIONS + + mouseEnter + { + show sidebutton_glow + setitemrect sidebutton_glow 40 256 220 26 + } + mouseExit + { + hide sidebutton_glow + } + action + { + defer VideoSetup videowarningMenu ; + + play sound/interface/sub_select + show setup_background ; + hide video ; + hide applyChanges ; + hide video2 ; + hide vidrestart ; + hide sound ; + show options ; + hide mods ; + hide defaults ; + setitemcolor video1menubutton forecolor 1 .682 0 1; + setitemcolor video2menubutton forecolor 1 .682 0 1; + setitemcolor soundmenubutton forecolor 1 .682 0 1; + setitemcolor gameoptionmenubutton forecolor 1 1 1 1 ; + setitemcolor modsmenubutton forecolor 1 .682 0 1; + setitemcolor gamedefaultsmenubutton forecolor 1 .682 0 1; + } + } + + // mods button + itemDef + { + name modsmenubutton + group none + text @MENUS_MODS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 281 170 24 + font 3 + textscale 0.9 + textalignx 170 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_CONFIGURE_GAME_OPTIONS + + mouseEnter + { + show sidebutton_glow + setitemrect sidebutton_glow 40 280 220 26 + } + mouseExit + { + hide sidebutton_glow + } + action + { + play sound/interface/sub_select + + defer VideoSetup videowarningMenu ; + uiScript loadMods ; + + show setup_background ; + hide video ; + hide applyChanges ; + hide video2 ; + hide vidrestart ; + hide sound ; + hide options ; + show mods ; + hide defaults ; + setitemcolor video1menubutton forecolor 1 .682 0 1; + setitemcolor video2menubutton forecolor 1 .682 0 1; + setitemcolor soundmenubutton forecolor 1 .682 0 1; + setitemcolor gameoptionmenubutton forecolor 1 .682 0 1; + setitemcolor modsmenubutton forecolor 1 1 1 1 ; + setitemcolor gamedefaultsmenubutton forecolor 1 .682 0 1; + } + } + + // gamedefaults button + itemDef + { + name gamedefaultsmenubutton + group none + text @MENUS_DEFAULTS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 80 305 170 24 + font 3 + textscale 0.9 + textalignx 170 + textaligny 2 + textalign ITEM_ALIGN_RIGHT + textstyle 1 + forecolor 1 .682 0 1 + visible 1 + descText @MENUS_RESTORE_DEFAULT_SETTINGS + + mouseEnter + { + show sidebutton_glow + setitemrect sidebutton_glow 40 304 220 26 + } + mouseExit + { + hide sidebutton_glow + } + action + { + play sound/interface/sub_select + + 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 1 .682 0 1; + setitemcolor video2menubutton forecolor 1 .682 0 1; + setitemcolor soundmenubutton forecolor 1 .682 0 1; + setitemcolor gameoptionmenubutton forecolor 1 .682 0 1; + setitemcolor modsmenubutton forecolor 1 .682 0 1; + setitemcolor gamedefaultsmenubutton forecolor 1 1 1 1 ; + } + } + + itemDef + { + name setup_background + group none + style WINDOW_STYLE_FILLED + rect 260 185 340 225 + backcolor 0 0 .6 .5 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .6 1 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// HIGHLIGHT BARS +//---------------------------------------------------------------------------------------------- + itemDef + { + name highlight1 + group highlights + style WINDOW_STYLE_SHADER + rect 260 190 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight2 + group highlights + style WINDOW_STYLE_SHADER + rect 260 204 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight3 + group highlights + style WINDOW_STYLE_SHADER + rect 260 218 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight4 + group highlights + style WINDOW_STYLE_SHADER + rect 260 232 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight5 + group highlights + style WINDOW_STYLE_SHADER + rect 260 246 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight6 + group highlights + style WINDOW_STYLE_SHADER + rect 260 260 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight7 + group highlights + style WINDOW_STYLE_SHADER + rect 260 274 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight8 + group highlights + style WINDOW_STYLE_SHADER + rect 260 288 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight9 + group highlights + style WINDOW_STYLE_SHADER + rect 260 302 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight10 + group highlights + style WINDOW_STYLE_SHADER + rect 260 316 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight11 + group highlights + style WINDOW_STYLE_SHADER + rect 260 330 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight12 + group highlights + style WINDOW_STYLE_SHADER + rect 260 344 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight13 + group highlights + style WINDOW_STYLE_SHADER + rect 260 358 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight14 + group highlights + style WINDOW_STYLE_SHADER + rect 260 372 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name highlight15 + group highlights + style WINDOW_STYLE_SHADER + rect 260 386 340 14 + background "gfx/menus/menu_blendbox" + forecolor 1 1 1 1 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// VIDEO 1 MENU BUTTONS +//---------------------------------------------------------------------------------------------- + itemDef + { + name graphics + group video + text @MENUS_VIDEO_QUALITY + type ITEM_TYPE_MULTI + rect 260 188 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + style WINDOW_STYLE_FILLED + forecolor .615 .615 .956 1 + descText @MENUS_SELECT_PRESET_GRAPHIC + + visible 0 + + cvar "ui_r_glCustom" + cvarFloatList + { + @MENUS_HIGH_QUALITY 0 + @MENUS_NORMAL 1 + @MENUS_FAST 2 + @MENUS_FASTEST 3 + @MENUS_CUSTOM 4 + } + + mouseenter + { + show highlight1 + } + mouseexit + { + hide highlight1 + } + action + { + play "sound/interface/button1.wav" ; + uiScript update "ui_r_glCustom" ; + setcvar ui_r_modified 1 ; + show applyChanges + } + } + + + + itemDef + { + name video_mode + group video + type ITEM_TYPE_MULTI + text @MENUS_VIDEO_MODE + cvarFloatList { @MENUS_640_X_480 3 @MENUS_800_X_600 4 @MENUS_1024_X_768 6 @MENUS_1152_X_864 7 @MENUS_1280_X_1024 8 @MENUS_1600_X_1200 9 @MENUS_2048_X_1536 10 @MENUS_2400_X_600 12 } + cvar "ui_r_mode" + + rect 260 216 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + descText @MENUS_CHANGE_THE_DISPLAY_RESOLUTION + + 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 color_depth + group video + type ITEM_TYPE_MULTI + text @MENUS_COLOR_DEPTH + rect 260 230 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + + cvarFloatList { @MENUS_DEFAULT 0 @MENUS_16_BIT 16 @MENUS_32_BIT 32 } + descText @MENUS_CHANGE_THE_NUMBER_OF + cvar "ui_r_colorbits" + + visible 0 + + mouseenter + { + show highlight4 + } + mouseexit + { + hide highlight4 + } + action + { + play "sound/interface/button1.wav" ; + uiScript glCustom ; + uiScript update "ui_r_colorbits" ; + setcvar ui_r_modified 1 ; + show applyChanges + } + } + + itemDef + { + name fullscreen + group video + type ITEM_TYPE_MULTI + text @MENUS_FULL_SCREEN + rect 260 244 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + descText @MENUS_TOGGLE_BETWEEN_FULL_SCREEN + cvar "ui_r_fullscreen" + + 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 geometric_detail + group video + type ITEM_TYPE_MULTI + text @MENUS_GEOMETRIC_DETAIL + rect 260 258 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + cvarFloatList { @MENUS_LOW 2 @MENUS_MEDIUM 1 @MENUS_HIGH 0 } + descText @MENUS_ADJUST_THE_NUMBER_OF + cvar "ui_r_lodbias" + + visible 0 + + mouseenter + { + show highlight6 + } + mouseexit + { + hide highlight6 + } + 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 @MENUS_TEXTURE_DETAIL + rect 260 272 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + cvarFloatList { @MENUS_LOW 3 @MENUS_MEDIUM 2 @MENUS_HIGH 1 @MENUS_VERY_HIGH 0 } + descText @MENUS_SELECT_THE_RESOLUTION + cvar "ui_r_picmip" + + visible 0 + + mouseenter + { + show highlight7 + } + mouseexit + { + hide highlight7 + } + action + { + play "sound/interface/button1.wav" ; + uiScript glCustom ; + setcvar ui_r_modified 1 ; + show applyChanges + } + } + + itemDef + { + name texture_quality + group video + type ITEM_TYPE_MULTI + text @MENUS_TEXTURE_QUALITY + rect 260 286 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + cvarFloatList { @MENUS_DEFAULT 0 @MENUS_16_BIT 16 @MENUS_32_BIT 32 } + descText @MENUS_SELECT_THE_NUMBER_OF + cvar "ui_r_texturebits" + + visible 0 + + mouseenter + { + show highlight8 + } + mouseexit + { + hide highlight8 + } + 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 @MENUS_TEXTURE_FILTER + rect 260 300 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + cvarStrList { @MENUS_BILINEAR , "GL_LINEAR_MIPMAP_NEAREST" , @MENUS_TRILINEAR , "GL_LINEAR_MIPMAP_LINEAR" } + descText @MENUS_ADJUST_HOW_WELL_THE_TEXTURES + cvar "ui_r_texturemode" + + visible 0 + + mouseenter + { + show highlight9 + } + mouseexit + { + hide highlight9 + } + 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 @MENUS_DETAILED_SHADERS + rect 260 314 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + descText @MENUS_HIDE_OR_UNHIDE_TEXTURES + cvar "ui_r_detailtextures" + + visible 0 + + mouseenter + { + show highlight10 + } + mouseexit + { + hide highlight10 + } + action + { + play "sound/interface/button1.wav" ; + uiScript glCustom ; + setcvar ui_r_modified 1 ; + show applyChanges + } + } + + itemDef + { + name video_sync + group video + type ITEM_TYPE_MULTI + text @MENUS_VIDEO_SYNC + cvar "r_swapInterval" + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + rect 260 328 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_VIDEO_SYNC_DESC + + mouseenter + { + show button_glow + setitemrect button_glow 260 328 340 20 + } + mouseexit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + + } + } + + itemDef + { + name compress_textures + group video_obsolete + type ITEM_TYPE_MULTI + text @MENUS_COMPRESSED_TEXTURES + rect 260 328 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + descText @MENUS_TAKE_ADVANTAGE_OF_3D + cvar "ui_r_ext_compress_textures" + + visible 0 + + mouseenter + { + show highlight11 + } + mouseexit + { + hide highlight11 + } + 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 260 384 340 14 + background "gfx/menus/menu_blendbox2" // Frame around button + forecolor 1 0.5 0.5 1 + visible 0 + decoration + } + + itemDef + { + name applyChanges + group none + text @MENUS_APPLY_CHANGES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 260 384 340 14 + textaligny 0 + font 4 + textscale 1 + textalignx 170 + textalign ITEM_ALIGN_CENTER + 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 ; + hide applyChanges ; + } + } + +//---------------------------------------------------------------------------------------------- +// 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_background + group vidrestart + style WINDOW_STYLE_FILLED + rect 260 185 340 225 + backcolor 0 0 .6 .5 + forecolor 1 1 1 1 + border 1 + bordercolor 0 0 .6 1 + visible 0 + decoration + } + + + itemDef + { + name vidrestart_text1 + group vidrestart + text @MENUS_THIS_WILL_APPLY_VIDEO + text2 @MENUS_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 @MENUS_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 389 120 22 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + // YES button + itemDef + { + name vidrestart_yes + group vidrestart + text @MENUS_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 @MENUS_APPLY_CHANGES_AND_THEN + forecolor 1 .682 0 1 + visible -1 + + 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 vidrestart + style WINDOW_STYLE_SHADER + rect 305 389 120 22 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + // CANCEL button + itemDef + { + name vidrestart_no + group vidrestart + text @MENUS_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 @MENUS_DO_NOT_APPLY_CHANGES + forecolor 1 .682 0 1 + visible 0 + action + { + play "sound/interface/esc.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 290 198 280 36 + background "gfx/menus/greyscale" // greyscale + forecolor 1 1 1 1 + visible 0 + decoration + + } + + itemDef + { + name bright_text + group video2 + text @MENUS_ADJUST_BRIGHTNESS_SLIDER + text2 @MENUS_THE_NUMBER_6_CAN_BARELY + text2aligny 14 + textalignx 170 + textaligny 0 + font 4 + textscale 1 + rect 260 234 340 20 + textalign ITEM_ALIGN_CENTER + forecolor .549 .854 1 1 + visible 0 + decoration + } + + itemDef + { + name brightness + group video2 + type ITEM_TYPE_SLIDER + text @MENUS_VIDEO_BRIGHTNESS + cvarfloat "r_gamma" 1 .5 3 + rect 260 267 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_ADJUST_THE_BRIGHTNESS + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show button_glow + setitemrect button_glow 260 267 340 20 + } + mouseexit + { + hide button_glow + } + } + + itemDef + { + name shadows + group video2 + type ITEM_TYPE_MULTI + text @MENUS_SHADOWS + descText @MENUS_SHADOWS_DESC + cvar "cg_shadows" + cvarFloatList + { + @MENUS_NONE 0 + @MENUS_SHADOWS_SIMPLE 1 + @MENUS_SHADOWS_VOLUMETRIC 2 +// "Projected" 3 + } + rect 260 287 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + action + { + play "sound/interface/button1.wav" ; + } + mouseenter + { + show button_glow + setitemrect button_glow 260 287 340 20 + } + mouseexit + { + hide button_glow + } + + } + + + itemDef + { + name dynamic_light + group video2 + type ITEM_TYPE_MULTI + text @MENUS_DYNAMIC_LIGHTS + cvar "r_dynamiclight" + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + rect 260 301 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_TOGGLE_TO_TURN_ON_MOVING + + mouseenter + { + show button_glow + setitemrect button_glow 260 301 340 20 + } + mouseexit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + + } + } + + itemDef + { + name dynamic_glow + group video2 + type ITEM_TYPE_MULTI + text @MENUS_DYNAMIC_GLOW + cvar "r_dynamicglow" + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + rect 260 315 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_DYNAMIC_GLOW_DESC + + mouseenter + { + show button_glow + setitemrect button_glow 260 315 340 20 + } + mouseexit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" ; + + } + } + + itemDef + { + name light_flares + group video2 + type ITEM_TYPE_MULTI + text @MENUS_LIGHT_FLARES + cvar "r_flares" + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + rect 260 329 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_TOGGLE_TO_SHOW_HALOS + + mouseenter + { + show button_glow + setitemrect button_glow 260 329 340 20 + } + mouseexit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" + } + } + + itemDef + { + name wall_marks + group video2 + type ITEM_TYPE_MULTI + text @MENUS_WALL_MARKS + cvar "cg_marks" + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + rect 260 343 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_TOGGLE_TO_DISPLAY_SCORCH + + mouseenter + { + show button_glow + setitemrect button_glow 260 343 340 20 + } + mouseexit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" + } + } + + itemDef + { + name video_mode + group video2 + type ITEM_TYPE_SLIDER + text @MENUS_ANISOTROPIC_FILTERING + cvarTest r_ext_texture_filter_anisotropic_avail + hideCvar { 0 } + cvarfloat "r_ext_texture_filter_anisotropic" 2 0 16 + rect 260 359 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + + descText @MENUS_TOGGLE_ADVANCED_TEXTURE + + mouseenter + { + show button_glow + setitemrect button_glow 260 359 340 20 + } + mouseexit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" + } + } + + itemDef + { + name advancedvideo + group video2 + type ITEM_TYPE_BUTTON + text @MENUS_SHOW_DRIVER_INFO + rect 260 393 340 14 + textalign ITEM_ALIGN_CENTER + textstyle 1 + textalignx 170 + textaligny 0 + font 4 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + descText @MENUS_SHOW_ADVANCED_INFORMATION + + mouseenter + { + show button_glow + setitemrect button_glow 260 392 340 20 + } + mouseexit + { + hide button_glow + } + action + { + play "sound/interface/button1.wav" + setfocus video2menubutton + hide button_glow + open videodriverMenu + } + } + +//---------------------------------------------------------------------------------------------- +// SOUND FIELDS +//---------------------------------------------------------------------------------------------- + itemDef + { + name effects_volume + group sound + type ITEM_TYPE_SLIDER + text @MENUS_EFFECTS_VOLUME + cvarfloat "s_volume" 0 0 1 + rect 260 188 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_ADJUST_VOLUME_FOR_SOUND + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight1 + } + mouseexit + { + hide highlight1 + } + } + + itemDef + { + name music_volume + group sound + type ITEM_TYPE_SLIDER + text @MENUS_MUSIC_VOLUME + cvarfloat "s_musicvolume" 0 0 1 + rect 260 216 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_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 @MENUS_VOICE_VOLUME + cvarfloat "s_volumevoice" 0 0 1 + rect 260 244 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_ADJUST_VOLUME_FOR_SPEECH + action + { + play "sound/interface/button1.wav" ; + } + + mouseenter + { + show highlight5 + } + mouseexit + { + hide highlight5 + } + } + + itemDef + { + name sound_quality + group sound + type ITEM_TYPE_MULTI + text @MENUS_SOUND_QUALITY + cvar "s_khz" + cvarFloatList { @MENUS_LOW 11 @MENUS_HIGH 22 } + rect 260 272 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_TRADE_CLARITY_OF_SOUND + cvarTest "s_UseOpenAL" + hideCvar { 1 } + + + mouseenter + { + show highlight7 + } + mouseexit + { + hide highlight7 + } + action + { + play "sound/interface/button1.wav" + uiScript update s_khz + } + } + + itemDef + { + name eax + group sound + type ITEM_TYPE_MULTI + cvar "s_UseOpenAL" + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + text @MENUS_EAX + rect 260 300 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_EAX_DESC + action + { + play "sound/interface/button1.wav" + uiScript update s_khz + } + + mouseenter + { + show highlight9 + } + mouseexit + { + hide highlight9 + } + } + + itemDef + { + name eax_icon + group sound + style WINDOW_STYLE_SHADER + rect 366 316 128 64 + background "gfx/menus/eax" + forecolor 1 1 1 1 + visible 1 + decoration + cvarTest "s_UseOpenAL" + hideCvar { 0 } + } + +//---------------------------------------------------------------------------------------------- +// OPTION FIELDS +//---------------------------------------------------------------------------------------------- + itemDef + { + name draw_crosshair + group options + type ITEM_TYPE_MULTI + text @MENUS_DRAW_CROSSHAIR + cvar "cg_drawcrosshair" + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + rect 260 188 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_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 @MENUS_IDENTIFY_TARGET + cvar "cg_crosshairIdentifyTarget" + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + rect 260 202 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_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 @MENUS_SLOW_MOTION_DEATH + cvar "d_slowmodeath" + cvarFloatList + { + @MENUS_NEVER 0 + @MENUS_ON_DEATH 1 + @MENUS_RARELY 2 + @MENUS_SLOW_MO_NORMAL 3 + @MENUS_OFTEN 4 + @MENUS_FREQUENTLY 5 + @MENUS_EXCESSIVELY 6 + } + rect 260 216 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_SELECT_THE_FREQUENCY + + action + { + play "sound/interface/button1.wav" + } + mouseenter + { + show highlight3 + } + mouseexit + { + hide highlight3 + } + } + + + itemDef + { + name force1st + group options + type ITEM_TYPE_MULTI + text @MENUS_1ST_PERSON_GUNS + cvar "cg_gunAutoFirst" + cvarFloatList { @MENUS_OFF 0 @MENUS_ON 1 } + rect 260 244 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_WHEN_PUTTING_AWAY_SABER + + action + { + play "sound/interface/button1.wav" + } + mouseenter + { + show highlight5 + } + mouseexit + { + hide highlight5 + } + } + + itemDef + { + name footsteps + group options + type ITEM_TYPE_MULTI + text @MENUS_FOOTSTEPS + desctext @MENUS_FOOTSTEPS_DESC + cvar "cg_footsteps" + cvarFloatList + { + @MENUS_OFF 0 + @MENUS_SOUNDS 1 + @MENUS_SOUNDS_AND_EFFECTS 2 + @MENUS_SOUNDS_EFFECTS_GRAPHICS 3 + } + rect 260 258 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + action + { + play "sound/interface/button1.wav" + } + mouseenter + { + show highlight6 + } + mouseexit + { + hide highlight6 + } + } + + itemDef + { + name dismemberment + group options + type ITEM_TYPE_MULTI + text @MENUS_DISMEMBERMENT + cvar "g_dismemberment" + cvarFloatList + { + @MENUS_OFF 0 + @MENUS_ON 3 + } + cvarTest ui_iscensored + hideCvar { 1 } + rect 260 272 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_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 @MENUS_VIEW_SWAYING + descText @MENUS_VIEW_SWAYING_DESC + cvar "ui_disableWeaponSway" + cvarFloatList + { + @MENUS_ON 0 + @MENUS_OFF 1 + } + cvarTest "ui_disableWeaponSway" + showCvar + { + "0" + } + rect 260 286 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 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 @MENUS_VIEW_SWAYING + descText @MENUS_VIEW_SWAYING_DESC + cvar "ui_disableWeaponSway" + cvarFloatList + { + @MENUS_ON 0 + @MENUS_OFF 1 + } + cvarTest "ui_disableWeaponSway" + hideCvar + { + "0" + } + rect 260 286 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 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 text + group options + type ITEM_TYPE_MULTI + text @MENUS_TEXT + cvar "se_language" + feeder 23 //FEEDER_PLAYER_SPECIES + cvarStrList feeder + rect 260 314 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_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 @MENUS_VOICE + cvarTest com_demo + hideCvar { 1 } + cvar "s_language" + cvarStrList + { + "English", "english" + @MENUS_LANG_FRENCH "francais" + "Deutsch" "deutsch" + "Español" "espanol" + } + rect 260 328 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_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 @MENUS_SUBTITLES + cvar "g_subtitles" + cvarFloatList + { + @MENUS_NONE 0 + @MENUS_IN_CINEMATICS 2 +// @MENUS_ALL_VOICEOVERS 1 + } + rect 260 342 340 14 + textalign ITEM_ALIGN_RIGHT + textalignx 174 + textaligny 0 + font 4 + textscale 1 + forecolor .615 .615 .956 1 + visible 0 + descText @MENUS_TOGGLE_WHETHER_SUBTITLES + + action + { + play "sound/interface/button1.wav" + } + mouseenter + { + show highlight12 + } + mouseexit + { + hide highlight12 + } + } + +//---------------------------------------------------------------------------------------------- +// MOD GAME MENU specific stuff +//---------------------------------------------------------------------------------------------- + itemDef + { + name serverinfo + group mods + rect 270 196 320 176 + type ITEM_TYPE_LISTBOX + style WINDOW_STYLE_FILLED + elementwidth 120 + elementheight 16 + font 2 + textscale 1 + textaligny -2 + border 1 + bordersize 1 + bordercolor .5 .5 .5 .5 + forecolor .79 .64 .22 1 + backcolor 0 0 .5 .25 + outlinecolor .5 .5 .5 .5 + elementtype LISTBOX_TEXT + feeder 9 + notselectable + visible 0 + columns 1 2 40 280 + } + + itemDef + { + name loadmod_button + group none + style WINDOW_STYLE_SHADER + rect 310 384 240 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + visible 0 + decoration + } + + itemDef + { + name loadmod + group mods + text @MENUS_LOAD_MOD + descText @MENUS_LOAD_CHOSEN_MOD + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 260 384 340 24 + textalign ITEM_ALIGN_CENTER + textalignx 170 + textaligny -2 + font 2 + textscale 1 + forecolor 1 .682 0 1 + visible 0 + action + { + play "sound/interface/button1.wav" + uiScript RunMod ; + } + + mouseEnter + { + show loadmod_button + } + mouseExit + { + hide loadmod_button + } + } + + itemDef + { + name button_glow + group none + style WINDOW_STYLE_SHADER + rect 0 0 0 0 + background "gfx/menus/menu_buttonback" + forecolor 1 1 1 1 + visible 0 + decoration + } + +//---------------------------------------------------------------------------------------------- +// RESET DEFAULTS +//---------------------------------------------------------------------------------------------- + // Faint red box + itemDef + { + name vidrestart_background + group defaults + style WINDOW_STYLE_FILLED + rect 257 182 343 228 + backcolor 0 0 .6 .5 + forecolor .5 0 0 1 + border 1 + bordersize 3 + bordercolor 1 0 0 1 + visible 0 + decoration + } + + + itemDef + { + name options + group defaults + text @MENUS_WARNING + rect 260 202 340 20 + textalign ITEM_ALIGN_CENTER + textalignx 170 + font 2 + textscale 1 + forecolor 1 0 0 1 + visible 0 + decoration + } + + itemDef + { + name options + group defaults + text @MENUS_THIS_WILL_SET_ALL_GAME + text2 @MENUS_TO_THEIR_FACTORY_SETTINGS + rect 260 230 340 20 + textalign ITEM_ALIGN_CENTER + textalignx 170 + text2aligny 20 + font 2 + textscale 1 + forecolor 1 0 0 1 + visible 0 + decoration + } + + itemDef + { + name options + group defaults + text @MENUS_VID_RESTART3 + rect 260 286 340 20 + textalign ITEM_ALIGN_CENTER + textalignx 170 + font 2 + textscale 1 + forecolor 1 0 0 1 + visible 0 + decoration + } + + + itemDef + { + name default_yes_button + group highlights + style WINDOW_STYLE_SHADER + rect 443 364 120 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + // YES button - lose reset defaults + itemDef + { + name default_yes + group defaults + text @MENUS_YES + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 443 364 120 24 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny -2 + descText @MENUS_USE_DEFAULT_SETTINGS + forecolor 1 .682 0 1 + visible 0 + + 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 297 364 120 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + // NO button - return to Main Menu + itemDef + { + name default_no + group defaults + text @MENUS_NO + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 297 364 120 24 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny -2 + descText @MENUS_DO_NOT_RESET_DEFAULT + forecolor 1 .682 0 1 + visible 0 + action + { + play "sound/interface/esc.wav" + hide highlights ; + hide default_no_button + uiscript clearmouseover default_no ; + close all ; + open mainMenu ; + } + mouseEnter + { + show default_no_button + } + mouseExit + { + hide default_no_button + } + } + } +} diff --git a/base/ui/tier1.txt b/base/ui/tier1.txt new file mode 100644 index 0000000..ff432f4 --- /dev/null +++ b/base/ui/tier1.txt @@ -0,0 +1,5 @@ +// menu defs +// +{ + loadMenu { "ui/ingameMissionSelect1.menu" } +} diff --git a/base/ui/tier2.txt b/base/ui/tier2.txt new file mode 100644 index 0000000..2407b6e --- /dev/null +++ b/base/ui/tier2.txt @@ -0,0 +1,5 @@ +// menu defs +// +{ + loadMenu { "ui/ingameMissionSelect2.menu" } +} diff --git a/base/ui/tier3.txt b/base/ui/tier3.txt new file mode 100644 index 0000000..9f144db --- /dev/null +++ b/base/ui/tier3.txt @@ -0,0 +1,5 @@ +// menu defs +// +{ + loadMenu { "ui/ingameMissionSelect3.menu" } +} diff --git a/base/ui/vid_warning.menu b/base/ui/vid_warning.menu new file mode 100644 index 0000000..25b4e0d --- /dev/null +++ b/base/ui/vid_warning.menu @@ -0,0 +1,204 @@ +//------------------------------------------------------------------------------------------------ +// VIDEO WARNING +// +// +//------------------------------------------------------------------------------------------------ +{ + menuDef + { + name "videowarningMenu" + visible 0 + fullScreen 1 // MENU_TRUE + rect 100 120 440 320 + focusColor 1 1 1 1 // Focus color for text and items + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + descX 320 + descY 360 + descScale 1 + descColor 1 .682 0 .8 + descAlignment ITEM_ALIGN_CENTER + popup + + onESC + { + play "sound/interface/esc.wav" + close all + open setupMenu + } + + onClose + { + } + + itemDef + { + name warn_background + group none + style WINDOW_STYLE_SHADER + rect 100 120 440 300 + background "gfx/menus/menu_boxred" // Frame + forecolor 1 1 1 1 + visible 1 + decoration + } + +//---------------------------------------------------------------------------------------------- +// VIDEO WARNING +//---------------------------------------------------------------------------------------------- + // Video Warning title + itemDef + { + name vidwarn_title + group vidwarn + style WINDOW_STYLE_SHADER + background "gfx/menus/menu_blendbox" + text @MENUS_UNAPPLIED_VIDEO_CHANGES + rect 120 130 400 20 + font 3 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 200 + textaligny -3 + forecolor .549 .854 1 1 + visible 1 + decoration + } + + + itemDef + { + name vidwarn_text1 + group vidwarn + text @MENUS_YOU_HAVE_MADE_CHANGES + rect 210 240 220 20 + textalign ITEM_ALIGN_CENTER + text2aligny 18 + textalignx 110 + font 2 + textscale 1 + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name vidwarn_text2 + group vidwarn + text @MENUS_APPLY_THESE_CHANGES_OR + rect 210 260 220 20 + textalign ITEM_ALIGN_CENTER + textalignx 110 + font 2 + textscale 1 + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name vidwarn_no_button + group vidwarn + style WINDOW_STYLE_SHADER + rect 180 380 120 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + // DISCARD button - return to Video Data screen + itemDef + { + name vidwarn_no + group vidwarn + text @MENUS_DISCARD + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 180 380 120 24 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny -3 + descText @MENUS_DO_NOT_APPLY_CHANGES + forecolor .79 .64 .22 1 + visible 1 + + action + { + play "sound/interface/esc.wav" + close "videowarningMenu" ; + + setcvar "ui_r_modified" 0 ; + + rundeferred ; + } + + mouseEnter + { + show vidwarn_no_button + } + + mouseExit + { + hide vidwarn_no_button + } + } + + itemDef + { + name vidwarn_yes_button + group vidwarn + style WINDOW_STYLE_SHADER + rect 340 380 120 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + // APPLY button, use settings + itemDef + { + name vidwarn_yes + group vidwarn + text @MENUS_APPLY + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 340 380 120 24 + font 2 + textscale 1 + textalign ITEM_ALIGN_CENTER + textalignx 60 + textaligny -3 + descText @MENUS_APPLY_CHANGES_AND_THEN + forecolor .79 .64 .22 1 + visible 1 + + action + { + play "sound/interface/button1.wav" ; + + uiScript updatevideosetup ; + close all + } + mouseEnter + { + show vidwarn_yes_button + } + mouseExit + { + hide vidwarn_yes_button + } + } + + } +} + + + + + + diff --git a/base/ui/videodriver.menu b/base/ui/videodriver.menu new file mode 100644 index 0000000..0129a49 --- /dev/null +++ b/base/ui/videodriver.menu @@ -0,0 +1,113 @@ +// VIDEODRIVER MENU +{ + menuDef + { + name "videodriverMenu" + visible 0 + fullScreen 0 // MENU_TRUE + rect 100 120 440 320 + focusColor 1 1 1 1 // Focus color for text and items + outOfBoundsClick // this closes the window if it gets a click out of the rectangle + descX 320 + descY 450 + descScale 1 + descColor .79 .64 .22 .7 // Focus color for text and items + descAlignment ITEM_ALIGN_CENTER + popup + + onESC + { + play "sound/interface/esc.wav" + close all + open setupMenu + } + + onClose + { + } + + + //---------------------------------------------------------------------------------------------- + // + // MENU BACKGROUND + // + //---------------------------------------------------------------------------------------------- + itemDef + { + name driver_background + group none + style WINDOW_STYLE_SHADER + rect 0 0 440 320 + background "gfx/menus/menu_boxred" // Frame + forecolor 1 1 1 1 + visible 1 + decoration + } + + itemDef + { + name driver_done_button + group none + style WINDOW_STYLE_SHADER + rect 150 293 140 24 + background "gfx/menus/menu_buttonback" // Frame around button + forecolor 1 1 1 1 + decoration + visible 0 + } + + itemDef + { + name driver_done + group none + text @MENUS_DONE_CAPS + type ITEM_TYPE_BUTTON + style WINDOW_STYLE_EMPTY + rect 150 293 140 24 + forecolor 1 1 1 1 + textalign ITEM_ALIGN_CENTER + textstyle 0 + textalignx 70 + textaligny 0 + font 3 + textscale 1 + forecolor .79 .64 .22 1 + visible 1 + + mouseEnter + { + show driver_done_button + } + mouseExit + { + hide driver_done_button + } + action + { + close videodriverMenu + } + } + + + //---------------------------------------------------------------------------------------------- + // + // VIDEO DRIVER INFO + // + //---------------------------------------------------------------------------------------------- + itemDef // Drivers + { + name game_version + group none + ownerdraw 249 // UI_GLINFO + font 4 + textscale 1 + rect 10 3 430 280 + forecolor .79 .64 .22 1 + style WINDOW_STYLE_EMPTY + textalign ITEM_ALIGN_LEFT + textaligny 14 + visible 1 + decoration + } + } +} \ No newline at end of file diff --git a/base/ui/vssver.scc b/base/ui/vssver.scc new file mode 100644 index 0000000..5cbde0b Binary files /dev/null and b/base/ui/vssver.scc differ diff --git a/base/vssver.scc b/base/vssver.scc new file mode 100644 index 0000000..c135a0d Binary files /dev/null and b/base/vssver.scc differ diff --git a/bin/BehavEd.bhc b/bin/BehavEd.bhc new file mode 100644 index 0000000..248e827 --- /dev/null +++ b/bin/BehavEd.bhc @@ -0,0 +1,471 @@ +/* + BehavEd Command List + + (Note that anything involving floats must be (eg) "1.0", not just "1") +*/ +//=== TYPES ================================================================ +//header file type includes + +<%s="ITEM_NAMES"> +{ +#include "g_items.h" item_e +} + +<%s="MISSIONFAILED"> +{ +#include "objectives.h" MissionFailed_e +} + +<%s="OBJECTIVES"> +{ +#include "objectives.h" Objective_e +} + +<%s="ANIM_NAMES"> +{ +#include "anims.h" animNumber_e +} + +<%s="BSTATE_STRINGS"> +{ +#include "bstate.h" bState_e +} + +<%s="STATUSTEXT"> +{ +#include "objectives.h" StatusText_e +} + +<%s="WEAPON_NAMES"> +{ + "drop" +#include "weapons.h" weapon_e +} + +// TREKSPECIFIC: this typeset now MUST be present for BehavEd to present GET-helper combos! +<%s="SET_TYPES"> +{ +#include "q3_interface.h" setType_e +} + +<%i="CHANNELS"> +{ +#include "channels.h" soundChannel_e +} + +<%s="EVENT_NAMES"> +{ +#include "events.h" eventType_e +} + +<%s="MUSIC_STATES"> +{ +#include "dmstates.h" dynamicMusic_e +} + +<%s="LEAN_TYPES"> +{ + "none" + "left" + "right" +} + +<%s="BOOL_TYPES"> +{ + "false" + "true" +} + +<%s="MENUSCREENS"> +{ + "mainMenu" + "ingameMainMenu" + "ingameloadMenu" +} + +<%s="TEAM_NAMES"> +{ +#include "teams.h" team_e +} + +<%i="GET_TYPE"> +{ + FIELD + VAR +} + +<%i="AFFECT_TYPE"> +{ + FLUSH + INSERT +} + +// TREKSPECIFIC: this typeset now MUST be present for BehavEd to present GET-helper combos! +<%i="TAG_TYPE"> +{ + ORIGIN + ANGLES +} + +<%i="CAMERA_COMMANDS"> +{ + ENABLE//## %% # Puts game in camera mode // no more parms + DISABLE//## %% # Takes game out of camera mode //no more parms + ZOOM//## %f="0.0" %d="0" # Normal is 80, 10 is zoomed in, max is 120. Second value is time in ms to take to zoom to the new FOV + MOVE//## %v="0.0 0.0 0.0" %d="0" # Move to a absolute vector origin or TAG("targetname", ORIGIN) over time over number of milliseconds + PAN//## %v="0.0 0.0 0.0" %v="0.0 0.0 0.0" %d="0" # Pan to absolute angle from current angle in dir (no dir will use shortest) over number of milliseconds + ROLL//## %f="0.0" %d="0" # Roll to relative angle offsets of current angle over number of milliseconds + TRACK//## %s="trackName" %f="0.0" %d="0" # Get on track and move at speed, last number is whether or not to lerp to the start pos + FOLLOW//## %s="cameraGroup" %f="0.0" %d="0" # Follow ents with matching cameraGroup at angleSpeed, last number is whether or not to lerp to the start angle + DISTANCE//## %f="0.0" %d="0" # Keep this distance from cameraGroup (if any), last number is whether or not to lerp to the start angle + FADE//## %v="0.0 0.0 0.0" %f="0.0" %v="0.0 0.0 0.0" %f="0.0" %d="0" # Fade from [start Red Green Blue], [Opacity] to [end Red Green Blue], [Opacity] (all fields valid ranges are 0 to 1) over [number of milliseconds] + SHAKE//## %f="0.0" %d="0" # Intensity (0-16) and duration, in milliseconds + PATH //## %s="filename" !!"w:\game\base\scripts\!!#*.rof" # Path to ROF file +} + +// TREKSPECIFIC: this typeset now MUST be present for BehavEd to present GET-helper combos! +<%i="DECLARE_TYPE"> +{ + FLOAT//## %s="" # A number + STRING//## %s="" # A string + VECTOR//## %s="" # A vector +} + +<%s="PLAY_TYPES"> +{ +#include "q3_interface.h" playType_e +} + +// these must be left in this order, since they mirror the order of icons in res/bitmap1.bmp +// +<%i="ICON_OVERRIDES"> +{ + I_BRACE + I_EVENT + I_MACRO + I_SPACE + // + I_SOUND + I_CAMERA + I_ROTATE + I_REMOVE + I_SET + I_MOVE + I_IF + I_LOOP + I_DO + I_WAIT + I_DOWAIT + I_SIGNAL + I_WAITSIGNAL + I_FLUSH + I_WAITCLOCK +} + +<%d="FORCE_LEVELS"> +{ + 0 + 1 + 2 + 3 +} + +<%d="SABER_STYLES"> +{ + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 +} + +<%s="SABER_COLORS"> +{ + "red" + "orange" + "yellow" + "green" + "blue" + "purple" + "random" +} + +//#=== Flow control commands ============================================ + +[I_FLUSH] flush();//# clear all previous script commands on ent +//[I_IF] if ( $test expression =,<,>,! xxx$ ) {} //# if condition true, execute block of commands +[I_IF] if ( $exp1$, $ < > ! = $, $exp2$ ) {} //# if condition true, execute block of commands + +[I_IF] else () {} //# must immediately follow and else, will execute if the if condition is false + +[I_LOOP] loop ( %d=-1 ) {} //# execute block of commands any number of times (-1 = forever) + +affect( %s="DEFAULT", %t="AFFECT_TYPE" ) {}//# switch script affect to ent with specified name, flush old commands or insert the new block of commands into current commands + +run ( %s="DEFAULT" ); //# ent runs specified script + +//#=== Standard commands ================================================ + +[I_WAITCLOCK] wait( %f=1000.0 );//# script will wait specified number of milliseconds +[I_WAITSIGNAL] waitsignal( %s="signalname" );//# wait until a signal() command is given with the name name - only one ent can wait for a particular signal +[I_SIGNAL] signal( %s="signalname" );//# The ent waiting for this signal will continue with it's script + +//action( %s="DEFAULT", %s="DEFAULT" );//# no longer valid, but I'll leave it in for the moment for testing +[I_SOUND] sound( %t="CHANNELS", %s="FILENAME" );//# play sound on specified channel of ent + +[I_MOVE] move ( %v=<0.0 0.0 0.0>, %v=<0.0 0.0 0.0>, %f=1000.0 );//move ent from point to point at speed +//move ( $default$, $default$, %f=1000.0 );//move ent from point to point at speed +//[I_MOVE] move ( $default$, %f=1000.0 );//move ent from point to point at speed +[I_MOVE] move ( $default$, $default$ );//move ent from point to point at speed +[I_ROTATE] rotate( %v=<0.0 0.0 0.0>, %f=1000.0 );//# rotate ent to target angles at speed + +use ( %s="DEFAULT" );//# uses specified ent +use ( $get(STRING,"targetname")$ );//# uses specified ent from a get(STRING) command +kill ( %s="DEFAULT" );//# kills ent with specified name +[I_REMOVE] remove ( %s="DEFAULT" ); //# removes ent with specified name from game + +print( %s="DEFAULT" );//# Prints text to center of screen +rem(%s="comment");//# Just a comment for script, no actual effect in-game + +//#=== Variable Handling =============================================== +declare( %t="DECLARE_TYPE", %s="variablename" ); //# declare a global variable here, limit of 16 per map + +free( %s="variablename" ); //# free a global variable so you can make more + +//get( %t="DECLARE_TYPE", %s="variablename" ); //# OF NO USE BY ITSELF - this will be removed soon, but is still usable inside other commands + +//random( %f=0.0, %f=0.0 );//# use a random float between 2 specified values. OF NO USE BY ITSELF - this will be removed soon, but is still usable inside other commands + +//#=== Set commands ===================================================== + +//# standard strings +[I_SET] set( %t="SET_TYPES", %s="DEFAULT" );//# standard set commands +[I_SET] set( %s="variablename", %s="value" );//# set for variables +//set( %s="variablename", $value$ );//# set a variable to a get +//set( $value$, $value$ );//# set a get to a get + +//#Camera functions +[I_CAMERA] camera( %t="CAMERA_COMMANDS" ); + +//#Task functions + +task( %s="DEFAULT" ) {} +[I_DO] do( %s="DEFAULT" ) +[I_WAIT] wait( %s="DEFAULT" ) //# wait until task "taskname" is complete +//wait( $random( 0, 1 )$ ) //# wait a specified amount of time + +[I_DOWAIT] dowait( %s="DEFAULT" ); //# shorthand form of: do("taskname"); wait("taskname") + +play (%t="PLAY_TYPES", %s="default"); + +//#=== Macros =========================================================== +"standOnly"//# simply stands, ignores enemies & alerts +{ + set( %r%s="SET_BEHAVIOR_STATE", %r%s="BS_DEFAULT" ); + set( %r%s="SET_IGNOREALERTS", %r%s="true" ); + set( %r%s="SET_LOOK_FOR_ENEMIES", %r%s="false" ); +} + +"walkOnly"//# simply walks, ignores enemies & alerts +{ + set( %r%s="SET_BEHAVIOR_STATE", %r%s="BS_DEFAULT" ); + set( %r%s="SET_WALKING", %r%s="true" ); + set( %r%s="SET_RUNNING", %r%s="false" ); + set( %r%s="SET_IGNOREALERTS", %r%s="true" ); + set( %r%s="SET_LOOK_FOR_ENEMIES", %r%s="false" ); +} + +"runOnly"//# simply runs, ignores enemies & alerts +{ + set( %r%s="SET_BEHAVIOR_STATE", %r%s="BS_DEFAULT" ); + set( %r%s="SET_WALKING", %r%s="false" ); + set( %r%s="SET_RUNNING", %r%s="true" ); + set( %r%s="SET_IGNOREALERTS", %r%s="true" ); + set( %r%s="SET_LOOK_FOR_ENEMIES", %r%s="false" ); +} + +"standNoAlerts"//# simply stands, ignores alerts +{ + set( %r%s="SET_BEHAVIOR_STATE", %r%s="BS_DEFAULT" ); + set( %r%s="SET_IGNOREALERTS", %r%s="true" ); +} + +"walkNoAlerts"//# simply walks, ignores alerts +{ + set( %r%s="SET_BEHAVIOR_STATE", %r%s="BS_DEFAULT" ); + set( %r%s="SET_WALKING", %r%s="true" ); + set( %r%s="SET_RUNNING", %r%s="false" ); + set( %r%s="SET_IGNOREALERTS", %r%s="true" ); +} + +"runNoAlerts"//# simply runs, ignores alerts +{ + set( %r%s="SET_BEHAVIOR_STATE", %r%s="BS_DEFAULT" ); + set( %r%s="SET_WALKING", %r%s="false" ); + set( %r%s="SET_RUNNING", %r%s="true" ); + set( %r%s="SET_IGNOREALERTS", %r%s="true" ); +} + +"standNoEnemies"//# simply stands, ignores enemies +{ + set( %r%s="SET_BEHAVIOR_STATE", %r%s="BS_DEFAULT" ); + set( %r%s="SET_LOOK_FOR_ENEMIES", %r%s="false" ); +} + +"walkNoEnemies"//# simply walks, ignores enemies +{ + set( %r%s="SET_BEHAVIOR_STATE", %r%s="BS_DEFAULT" ); + set( %r%s="SET_WALKING", %r%s="true" ); + set( %r%s="SET_RUNNING", %r%s="false" ); + set( %r%s="SET_LOOK_FOR_ENEMIES", %r%s="false" ); +} + +"runNoEnemies"//# simply runs, ignores enemies +{ + set( %r%s="SET_BEHAVIOR_STATE", %r%s="BS_DEFAULT" ); + set( %r%s="SET_WALKING", %r%s="false" ); + set( %r%s="SET_RUNNING", %r%s="true" ); + set( %r%s="SET_LOOK_FOR_ENEMIES", %r%s="false" ); +} + +"standGuardNoChase"//# looks for enemies, shoots at but doesn't chase them +{ + set( %r%s="SET_BEHAVIOR_STATE", %r%s="BS_DEFAULT" ); + set( %r%s="SET_LOOK_FOR_ENEMIES", %r%s="true" ); + set( %r%s="SET_CHASE_ENEMIES", %r%s="false" ); +} + +"patrolRun"//# patrols in a run, chases enemies +{ + set( %r%s="SET_BEHAVIOR_STATE", %r%s="BS_DEFAULT" ); + set( %r%s="SET_WALKING", %r%s="false" ); + set( %r%s="SET_RUNNING", %r%s="true" ); + set( %r%s="SET_LOOK_FOR_ENEMIES", %r%s="true" ); + set( %r%s="SET_CHASE_ENEMIES", %r%s="true" ); +} + +"patrolNoChase"//# patrols, sticks to patrol route even when shooting enemy +{ + set( %r%s="SET_BEHAVIOR_STATE", %r%s="BS_DEFAULT" ); + set( %r%s="SET_LOOK_FOR_ENEMIES", %r%s="true" ); + set( %r%s="SET_CHASE_ENEMIES", %r%s="false" ); +} + +"patrolWalkNoChase"//# patrols in a walk, sticks to walking patrol route even when shooting enemy +{ + set( %r%s="SET_BEHAVIOR_STATE", %r%s="BS_DEFAULT" ); + set( %r%s="SET_WALKING", %r%s="true" ); + set( %r%s="SET_RUNNING", %r%s="false" ); + set( %r%s="SET_LOOK_FOR_ENEMIES", %r%s="true" ); + set( %r%s="SET_CHASE_ENEMIES", %r%s="false" ); +} + +"patrolRunNoChase"//# patrols in a run, sticks to running patrol route even when shooting enemy +{ + set( %r%s="SET_BEHAVIOR_STATE", %r%s="BS_DEFAULT" ); + set( %r%s="SET_WALKING", %r%s="false" ); + set( %r%s="SET_RUNNING", %r%s="true" ); + set( %r%s="SET_LOOK_FOR_ENEMIES", %r%s="true" ); + set( %r%s="SET_CHASE_ENEMIES", %r%s="false" ); +} + +"default"//# resets to default behavior +{ + set( %r%s="SET_BEHAVIOR_STATE", %r%s="BS_DEFAULT" ); + set( %r%s="SET_CHASE_ENEMIES", %r%s="true" ); + set( %r%s="SET_LOOK_FOR_ENEMIES", %r%s="true" ); + set( %r%s="SET_IGNOREALERTS", %r%s="false" ); + set( %r%s="SET_WALKING", %r%s="false" ); + set( %r%s="SET_RUNNING", %r%s="false" ); +} + +// Old 1st parm locked set commands, not needed any more: +/* +//# vectors +set( %r%s="SET_ORIGIN", %v=<0.0 0.0 0.0>); +set( %r%s="SET_ANGLES", %v=<0.0 0.0 0.0>); +set( %r%s="SET_COPY_ORIGIN", %v=<0.0 0.0 0.0>); + +//# floats +set( %r%s="SET_VELOCITY",%f=0.0); +set( %r%s="SET_XVELOCITY",%f=0.0); +set( %r%s="SET_YVELOCITY",%f=0.0); +set( %r%s="SET_ZVELOCITY",%f=0.0); +set( %r%s="SET_AVELOCITY",%f=0.0); +set( %r%s="SET_DPITCH",%f=0.0); +set( %r%s="SET_DYAW",%f=0.0); +set( %r%s="SET_TIMESCALE",%f=0.0); +set( %r%s="SET_VISRANGE",%f=0.0); +set( %r%s="SET_EARSHOT",%f=0.0); +set( %r%s="SET_VIGILANCE",%f=0.0); + +//# ints +set( %r%s="SET_ANIM_HOLDTIME_LOWER",%d=0); +set( %r%s="SET_ANIM_HOLDTIME_UPPER",%d=0); +set( %r%s="SET_HEALTH",%d=0); +set( %r%s="SET_WALKSPEED",%d=0); +set( %r%s="SET_RUNSPEED",%d=0); +set( %r%s="SET_YAWSPEED",%d=0); +set( %r%s="SET_FRICTION",%d=0); +set( %r%s="SET_SHOOTDIST",%d=0); +set( %r%s="SET_HFOV",%d=0); +set( %r%s="SET_VFOV",%d=0); +set( %r%s="SET_DELAYSCRIPTTIME",%d=0); +set( %r%s="SET_FORWARDMOVE",%d=0); +set( %r%s="SET_RIGHTMOVE",%d=0); +set( %r%s="SET_AGGRESSION",%d=0);//# 1 - 5 +set( %r%s="SET_AIM",%d=0);//# 1 - 5 + +//# booleans and simple calls +set( %r%s="SET_SCRIPTED",%t="BOOL_TYPES"); +set( %r%s="SET_HIDING",%t="BOOL_TYPES"); +set( %r%s="SET_IGNOREPAIN",%t="BOOL_TYPES"); +set( %r%s="SET_IGNOREENEMIES",%t="BOOL_TYPES"); +set( %r%s="SET_STRAIGHTTOGOAL",%t="BOOL_TYPES"); +set( %r%s="SET_DONTSHOOT",%t="BOOL_TYPES"); +set( %r%s="SET_NOTARGET",%t="BOOL_TYPES"); +set( %r%s="SET_CROUCHED",%t="BOOL_TYPES"); +set( %r%s="SET_WALKING",%t="BOOL_TYPES"); +set( %r%s="SET_CAREFUL",%t="BOOL_TYPES"); +set( %r%s="SET_UNDYING",%t="BOOL_TYPES"); +set( %r%s="SET_NOAVOID",%t="BOOL_TYPES"); +set( %r%s="SET_BEAM",%t="BOOL_TYPES"); +set( %r%s="SET_CREATEFORMATION",%t="BOOL_TYPES"); + +//# Behavior state settings +set( %r%s="BSTATE", %t="BSTATE_STRINGS" ); +set( %r%s="defaultBState", %t="BSTATE_STRINGS" ); +set( %r%s="tempBehavior", %t="BSTATE_STRINGS" ); + +//# Animation settings +set( %r%s="anim_upper", %t="ANIM_NAMES" ); +set( %r%s="anim_lower", %t="ANIM_NAMES" ); +set( %r%s="anim_both", %t="ANIM_NAMES" ); + +//#Enemy team table +set( %r%s="playerTeam", %t="TEAM_NAMES" ); +set( %r%s="enemyTeam", %t="TEAM_NAMES" ); + +//#Weapon table +set( %r%s="weapon", %t="WEAPON_NAMES" ); + +//#Lean side table +set( %r%s="LEAN", %t="LEAN_TYPES" );//# left, right, or none + +//#Event/effect table +set( %r%s="event", %s="default" );//# not implemented + +//Old hardcoded camera commands +camera( %r%s="ORIGIN", %v=<0.0 0.0 0.0> ); +camera( %r%s="ANGLES", %v=<0.0 0.0 0.0> ); +camera( %r%s="FOV", %f=0.0 ); +camera( %r%s="MOVE", %v=<0.0 0.0 0.0>, %f=0.0 ); +camera( %r%s="PAN", %v=<0.0 0.0 0.0>, %f=0.0 ); +camera( %r%s="ZOOM", %f=0.0, %f=0.0 ); +camera( %r%s="FADE", %v=<0.0 0.0 0.0>, %f=0.0, %v=<0.0 0.0 0.0>, %f=0.0, %f=0.0 ); +camera( %r%s="ENABLE" ); +camera( %r%s="DISABLE" ); +*/ diff --git a/bin/StarWars.qe4 b/bin/StarWars.qe4 new file mode 100644 index 0000000..a08b772 --- /dev/null +++ b/bin/StarWars.qe4 @@ -0,0 +1,34 @@ +{ +"bsp [LOCAL] Entities" "s:\bin\sof2map -bsp -onlyents $" +"bsp [LOCAL] Relight(1/2)" "s:\bin\sof2map -bsp -onlyents $ && s:\bin\sof2map -light -extra -samplesize 32 $" +"bsp [LOCAL] No Vis" "w:\bin\bats\novisnolight.bat $" +"bsp [LOCAL] Fast Vis No Light" "w:\bin\bats\fastvisnolight.bat $" +"bsp [LOCAL] Fast Vis" "w:\bin\bats\fastvis.bat $" +"bsp [LOCAL] Full Vis No Light" "w:\bin\bats\fullvisnolight.bat $" +"bsp [LOCAL] Full Vis" "s:\bin\sof2map -all $" +"bsp [LOCAL] Full Vis(1/2 LMs)" "s:\bin\sof2map -all -samplesize 32 $" +"bsp [LOCAL] Info" "s:\bin\sof2map -info $" +"bsp Relight (extra wide)" "s:\bin\sof2map -bsp -onlyents $ && !sof2map -light -extrawide $" +"bsp Relight (extra)" "s:\bin\sof2map -bsp -onlyents $ && !sof2map -light -extra $" +"bsp Relight (1/2 LM)" "s:\bin\sof2map -bsp -onlyents $ && !sof2map -light -extra -samplesize 32 $" +"bsp Relight" "s:\bin\sof2map -bsp -onlyents $ && !sof2map -light $" +"bsp Novis (nolight)" "!sof2map -bsp $ -class 4" +"bsp FastVis (nolight)" "!sof2map -bsp $ -class 4 && !sof2map -vis -fast $ -class 3" +"bsp FastVis(1/2)" "!sof2map -bsp -samplesize 32 $ -class 4 && !sof2map -vis -fast $ -class 3 && !sof2map -light -extra -samplesize 32 $" +"bsp FullVis (lowmem)" "!sof2map -bsp $ -class 4 && !sof2map -vis -nopassage $ -class 2 && !sof2map -light $" +"bsp FullVis (lesmem)" "!sof2map -bsp $ -class 4 && !sof2map -vis -passageOnly $ -class 2 && !sof2map -light $" +"bsp FullVis (nolight)" "!sof2map -bsp $ -class 4 && !sof2map -vis $ -class 2" +"bsp FullVis (extra)" "!sof2map -bsp $ -class 4 && !sof2map -vis $ -class 2 && !sof2map -light -extra $" +"bsp FullVis (1/2 LMs)" "!sof2map -bsp -samplesize 32 $ -class 4 && !sof2map -vis $ -class 2 && !sof2map -light -extra -samplesize 32 $" +"bsp FullVis" "!sof2map -bsp $ -class 4 && !sof2map -vis $ -class 2 && !sof2map -light $" +"bsp2 FullVis (1/2 LMs)" "!q3map2\q3map2 -custinfoparms -game jk2 -fs_basepath w:\game -samplesize 32 $ -class 4 && !q3map2\q3map2 -game jk2 +-fs_basepath w:\game -vis $ -class 2 && !q3map2\q3map2 -game jk2 -light -fs_basepath w:\game -extra -samplesize 32 $" +"bsp2 Novis (nolight)" "!q3map2\q3map2 -custinfoparms -game jk2 -fs_basepath w:\game $ -class 4" +"autosave" "c:\ravenlocal\jk2.5\autosave.map" +"rshcmd" "ts w:\bin\" +"mapspath" "w:\game\base\maps\" +"entitypath" "w:\bin\gamesource\*.cpp" +"texturepath" "w:\game\base\textures" +"remotebasepath" "w:\game\base" +"basepath" "w:\game\base" +} diff --git a/bin/StarWarsMP.qe4 b/bin/StarWarsMP.qe4 new file mode 100644 index 0000000..4cae305 --- /dev/null +++ b/bin/StarWarsMP.qe4 @@ -0,0 +1,31 @@ +{ +"bsp [LOCAL] Entities" "s:\bin\sof2map -bsp -onlyents $" +"bsp [LOCAL] Relight" "s:\bin\sof2map -bsp -onlyents $ && s:\bin\sof2map -light $" +"bsp [LOCAL] No Vis" "w:\bin\bats\novisnolight.bat $" +"bsp [LOCAL] Fast Vis No Light" "w:\bin\bats\fastvisnolight.bat $" +"bsp [LOCAL] Fast Vis" "w:\bin\bats\fastvis.bat $" +"bsp [LOCAL] Full Vis No Light" "w:\bin\bats\fullvisnolight.bat $" +"bsp [LOCAL] Full Vis" "s:\bin\sof2map -all $" +"bsp [LOCAL] Full Vis(1/2 LMs)" "s:\bin\sof2map -all -samplesize 32 $" +"bsp [LOCAL] Info" "s:\bin\sof2map -info $" +"bsp Relight (extra wide)" "s:\bin\sof2map -bsp -onlyents $ && !sof2map -light -extrawide $" +"bsp Relight (extra)" "s:\bin\sof2map -bsp -onlyents $ && !sof2map -light -extra $" +"bsp Relight (1/2 LM)" "s:\bin\sof2map -bsp -onlyents $ && !sof2map -light -extra -samplesize 32 $" +"bsp Relight" "s:\bin\sof2map -bsp -onlyents $ && !sof2map -light $" +"bsp Novis (nolight)" "!sof2map -bsp $ -class 4" +"bsp FastVis (nolight)" "!sof2map -bsp $ -class 4 && !sof2map -vis -fast $ -class 3" +"bsp FastVis(1/2)" "!sof2map -bsp -samplesize 32 $ -class 4 && !sof2map -vis -fast $ -class 3 && !sof2map -light -extra -samplesize 32 $" +"bsp FullVis (lowmem)" "!sof2map -bsp $ -class 4 && !sof2map -vis -nopassage $ -class 2 && !sof2map -light $" +"bsp FullVis (lesmem)" "!sof2map -bsp $ -class 4 && !sof2map -vis -passageOnly $ -class 2 && !sof2map -light $" +"bsp FullVis (nolight)" "!sof2map -bsp $ -class 4 && !sof2map -vis $ -class 2" +"bsp FullVis (extra)" "!sof2map -bsp $ -class 4 && !sof2map -vis $ -class 2 && !sof2map -light -extra $" +"bsp FullVis (1/2 LMs)" "!sof2map -bsp -samplesize 32 $ -class 4 && !sof2map -vis $ -class 2 && !sof2map -light -extra -samplesize 32 $" +"bsp FullVis" "!sof2map -bsp $ -class 4 && !sof2map -vis $ -class 2 && !sof2map -light $" +"autosave" "c:\ravenlocal\jk2.5\autosave.map" +"rshcmd" "ts s:\bin\" +"mapspath" "w:\game\base\maps\" +"entitypath" "w:\bin\mpsource\*.c" +"texturepath" "w:\game\base\textures" +"remotebasepath" "w:\game\base" +"basepath" "w:\game\base" +} diff --git a/bin/stringed.cfg b/bin/stringed.cfg new file mode 100644 index 0000000..9d667e2 --- /dev/null +++ b/bin/stringed.cfg @@ -0,0 +1,25 @@ +// Use lower case for most stuff except where I've done otherwise -Ste + +#SETTINGS +dir_inhouse "w:\bin\strings" +dir_ingame "w:\game\base\strings" +ss_ini "\\Ravendata1\VSS\central_assets\SRCSAFE.INI" +ss_prj "$/jedi/bin/Strings/" +contact_info "Any questions, email me at "scork@ravensoft.com"" + +#LANGUAGES +english +german +french +spanish + +#FLAGS +caption +typematic +centered +flag4 +flag5 +flag6 +flag7 +flag_last + diff --git a/bin/vssver.scc b/bin/vssver.scc new file mode 100644 index 0000000..e539eef Binary files /dev/null and b/bin/vssver.scc differ diff --git a/code/0_compiled_first/0_SH_Leak.cpp b/code/0_compiled_first/0_SH_Leak.cpp new file mode 100644 index 0000000..a924712 --- /dev/null +++ b/code/0_compiled_first/0_SH_Leak.cpp @@ -0,0 +1,774 @@ +// leave this as first line for PCH reasons... +// +#pragma warning( disable : 4786) +#pragma warning( disable : 4100) +#pragma warning( disable : 4663) +#include + +#include "..\smartheap\smrtheap.h" +#include "../game/q_shared.h" +#include "..\qcommon\qcommon.h" + +#include +#include + +using namespace std; + +#if MEM_DEBUG +#include "..\smartheap\heapagnt.h" + +static const int maxStack=2048; +static int TotalMem; +static int TotalBlocks; +static int nStack; +static char StackNames[maxStack][256]; +static int StackSize[maxStack]; +static int StackCount[maxStack]; +static int StackCache[48]; +static int StackCacheAt=0; +static int CheckpointSize[3000]; +static int CheckpointCount[3000]; + +//#define _FASTRPT_ + + +#ifdef _FASTRPT_ +class CMyStrComparator +{ +public: + bool operator()(const char *s1, const char *s2) const { return(strcmp(s1, s2) < 0); } +}; + +hmap Lookup; +#endif + +cvar_t *mem_leakfile; +cvar_t *mem_leakreport; + +MEM_BOOL MEM_CALLBACK MyMemReporter2(MEM_ERROR_INFO *info) +{ + static char buffer[10000]; + if (!info->objectCreationInfo) + return 1; + info=info->objectCreationInfo; + int idx=info->checkpoint; + if (idx<0||idx>=1000) + { + idx=0; + } + CheckpointCount[idx]++; + CheckpointSize[idx]+=info->argSize; + dbgMemFormatCall(info,buffer,9999); + if (strstr(buffer,"ntdll")) + return 1; + if (strstr(buffer,"CLBCATQ")) + return 1; + int i; + TotalBlocks++; + if (TotalBlocks%1000==0) + { + char mess[1000]; + sprintf(mess,"%d blocks processed\n",TotalBlocks); + OutputDebugString(mess); + } + for (i=strlen(buffer);i>0;i--) + { + if (buffer[i]=='\n') + break; + } + if (!i) + return 1; + buffer[i]=0; + char *buf=buffer; + while (*buf) + { + if (*buf=='\n') + { + buf++; + break; + } + buf++; + } + char *start=0; + char *altName=0; + while (*buf) + { + while (*buf==' ') + buf++; + start=buf; + while (*buf!=0&&*buf!='\n') + buf++; + if (*start) + { + if (*buf) + { + *buf=0; + buf++; + } + if (strlen(start)>255) + start[255]=0; + if (strstr(start,"std::")) + { + altName="std::??"; +// start=0; + continue; + } + if (strstr(start,"Malloc")) + { + altName="Malloc??"; + start=0; + continue; + } + if (strstr(start,"G_Alloc")) + { + altName="G_Alloc"; + start=0; + continue; + } + if (strstr(start,"Hunk_Alloc")) + { + altName="Hunk_Alloc"; + start=0; + continue; + } + if (strstr(start,"FS_LoadFile")) + { + altName="FS_LoadFile"; + start=0; + continue; + } + if (strstr(start,"CopyString")) + { + altName="CopyString"; + start=0; + continue; + } + break; + } + } + if (!start||!*start) + { + start=altName; + if (!start||!*start) + { + start="UNKNOWN"; + } + } +#ifdef _FASTRPT_ + hmap::iterator f=Lookup.find(start); + if(f==Lookup.end()) + { + strcpy(StackNames[nStack++],start); + Lookup[(const char *)&StackNames[nStack-1]]=nStack-1; + StackSize[nStack-1]=info->argSize; + StackCount[nStack-1]=1; + } + else + { + StackSize[(*f).second]+=info->argSize; + StackCount[(*f).second]++; + } +#else + for (i=0;i<48;i++) + { + if (StackCache[i]<0||StackCache[i]>=nStack) + continue; + if (!strcmpi(start,StackNames[StackCache[i]])) + break; + } + if (i<48) + { + StackSize[StackCache[i]]+=info->argSize; + StackCount[StackCache[i]]++; + } + else + { + for (i=0;iargSize; + StackCount[i]++; + StackCache[StackCacheAt]=i; + StackCacheAt++; + if (StackCacheAt>=48) + StackCacheAt=0; + } + else if (iargSize; + StackCount[i]=1; + nStack++; + } + else if (nStackargSize; + StackCount[maxStack-1]=1; + } + else + { + StackSize[maxStack-1]+=info->argSize; + StackCount[maxStack-1]++; + } + } +#endif + TotalMem+=info->argSize; + return 1; +} + +MEM_BOOL MEM_CALLBACK MyMemReporter3(MEM_ERROR_INFO *info) +{ + static char buffer[10000]; + if (!info->objectCreationInfo) + return 1; + info=info->objectCreationInfo; + int idx=info->checkpoint; + if (idx<0||idx>=3000) + { + idx=0; + } + CheckpointCount[idx]++; + CheckpointSize[idx]+=info->argSize; + dbgMemFormatCall(info,buffer,9999); + int i; + TotalBlocks++; +// if (TotalBlocks%1000==0) +// { +// char mess[1000]; +// sprintf(mess,"%d blocks processed\n",TotalBlocks); +// OutputDebugString(mess); +// } + for (i=strlen(buffer);i>0;i--) + { + if (buffer[i]=='\n') + break; + } + if (!i) + return 1; + buffer[i]=0; + char *buf=buffer; + while (*buf) + { + if (*buf=='\n') + { + buf++; + break; + } + buf++; + } + char *start=0; + char *altName=0; + while (*buf) + { + while (*buf==' ') + buf++; + start=buf; + while (*buf!=0&&*buf!='\n') + buf++; + if (*start) + { + if (*buf) + { + *buf=0; + buf++; + } + if (strlen(start)>255) + start[255]=0; + if (strstr(start,"SV_AreaEntities")) + { + altName="SV_AreaEntities??"; + start=0; + continue; + } + if (strstr(start,"SV_Trace")) + { + altName="SV_Trace??"; + start=0; + continue; + } + if (strstr(start,"SV_PointContents")) + { + altName="SV_PointContents??"; + start=0; + continue; + } + if (strstr(start,"CG_Trace")) + { + altName="??"; + start=0; + continue; + } + if (strstr(start,"CG_PointContents")) + { + altName="??"; + start=0; + continue; + } +/* + if (strstr(start,"")) + { + altName="??"; + start=0; + continue; + } + if (strstr(start,"")) + { + altName="??"; + start=0; + continue; + } +*/ + break; + } + } + if (!start||!*start) + { + start=altName; + if (!start||!*start) + { + start="UNKNOWN"; + } + } +#ifdef _FASTRPT_ + hmap::iterator f=Lookup.find(start); + if(f==Lookup.end()) + { + strcpy(StackNames[nStack++],start); + Lookup[(const char *)&StackNames[nStack-1]]=nStack-1; + StackSize[nStack-1]=info->argSize; + StackCount[nStack-1]=1; + } + else + { + StackSize[(*f).second]+=info->argSize; + StackCount[(*f).second]++; + } +#else + for (i=0;i<48;i++) + { + if (StackCache[i]<0||StackCache[i]>=nStack) + continue; + if (!strcmpi(start,StackNames[StackCache[i]])) + break; + } + if (i<48) + { + StackSize[StackCache[i]]+=info->argSize; + StackCount[StackCache[i]]++; + } + else + { + for (i=0;iargSize; + StackCount[i]++; + StackCache[StackCacheAt]=i; + StackCacheAt++; + if (StackCacheAt>=48) + StackCacheAt=0; + } + else if (iargSize; + StackCount[i]=1; + nStack++; + } + else if (nStackargSize; + StackCount[maxStack-1]=1; + } + else + { + StackSize[maxStack-1]+=info->argSize; + StackCount[maxStack-1]++; + } + } +#endif + TotalMem+=info->argSize; + return 1; +} + +void SH_Checking_f(void); +#endif + +class Leakage +{ + MEM_POOL MyPool; + +public: + Leakage() + { + MyPool = MemInitDefaultPool(); +// MemPoolSetSmallBlockSize(MyPool, 16); + MemPoolSetSmallBlockAllocator(MyPool,MEM_SMALL_BLOCK_SH3); +#if MEM_DEBUG + dbgMemSetGuardSize(2); + EnableChecking(100000); +#endif + } + + void LeakReport(void) + { +#if MEM_DEBUG + + // This just makes sure we have map nodes available without allocation + // during the heap walk (which could be bad). + int i; +#ifdef _FASTRPT_ + hlist makeSureWeHaveNodes; + for(i=0;i<5000;i++) + { + makeSureWeHaveNodes.push_back(0); + } + makeSureWeHaveNodes.clear(); + Lookup.clear(); +#endif + char mess[1000]; + int blocks=dbgMemTotalCount(); + int mem=dbgMemTotalSize()/1024; + sprintf(mess,"Final Memory Summary %d blocks %d K\n",blocks,mem); + OutputDebugString(mess); + + for (i=0;i<3000;i++) + { + CheckpointSize[i]=0; + CheckpointCount[i]=0; + } + + TotalMem=0; + TotalBlocks=0; + nStack=0; + MemSetErrorHandler(MyMemReporter2); + dbgMemReportLeakage(NULL,1,1000); + MemSetErrorHandler(MemDefaultErrorHandler); + multimap > sortit; + multimap >::iterator j; + if (TotalBlocks) + { + // Sort by size. + Sleep(100); + OutputDebugString("**************************************\n"); + OutputDebugString("**********Memory Leak Report**********\n"); + OutputDebugString("*************** By Size **************\n"); + OutputDebugString("**************************************\n"); + sprintf(mess,"Actual leakage %d blocks %d K\n",TotalBlocks,TotalMem/1024); + OutputDebugString(mess); + sortit.clear(); + for (i=0;i >(-StackSize[i],pair(StackCount[i],StackNames[i]))); + Sleep(5); + for (j=sortit.begin();j!=sortit.end();j++) + { + sprintf(mess,"%5d KB %6d cnt %s\n",-(*j).first/1024,(*j).second.first,(*j).second.second); + // if (!(-(*j).first/1024)) + // break; + Sleep(5); + OutputDebugString(mess); + } + + // Sort by count. + Sleep(100); + OutputDebugString("**************************************\n"); + OutputDebugString("**********Memory Leak Report**********\n"); + OutputDebugString("************** By Count **************\n"); + OutputDebugString("**************************************\n"); + sprintf(mess,"Actual leakage %d blocks %d K\n",TotalBlocks,TotalMem/1024); + OutputDebugString(mess); + sortit.clear(); + for (i=0;i >(-StackCount[i],pair(StackSize[i],StackNames[i]))); + Sleep(5); + for (j=sortit.begin();j!=sortit.end();j++) + { + sprintf(mess,"%5d KB %6d cnt %s\n",(*j).second.first/1024,-(*j).first,(*j).second.second); + // if (!(-(*j).first/1024)) + // break; + Sleep(5); + OutputDebugString(mess); + } + } + else + { + OutputDebugString("No Memory Leaks\n"); + } + + TotalMem=0; + TotalBlocks=0; + nStack=0; + MemSetErrorHandler(MyMemReporter3); + dbgMemReportLeakage(NULL,2001,2001); + MemSetErrorHandler(MemDefaultErrorHandler); + if (TotalBlocks) + { + // Sort by count. + Sleep(100); + OutputDebugString("**************************************\n"); + OutputDebugString("SV_PointContents "); + sprintf(mess,"%d Calls.\n",TotalBlocks); + OutputDebugString(mess); + OutputDebugString("**************************************\n"); + sortit.clear(); + for (i=0;i >(-StackCount[i],pair(StackSize[i],StackNames[i]))); + Sleep(5); + for (j=sortit.begin();j!=sortit.end();j++) + { + sprintf(mess,"%7d cnt %s\n",-(*j).first,(*j).second.second); + Sleep(5); + OutputDebugString(mess); + } + } + TotalMem=0; + TotalBlocks=0; + nStack=0; + MemSetErrorHandler(MyMemReporter3); + dbgMemReportLeakage(NULL,2002,2002); + MemSetErrorHandler(MemDefaultErrorHandler); + if (TotalBlocks) + { + // Sort by count. + Sleep(100); + OutputDebugString("**************************************\n"); + OutputDebugString("SV_Trace "); + sprintf(mess,"%d Calls.\n",TotalBlocks); + OutputDebugString(mess); + OutputDebugString("**************************************\n"); + sortit.clear(); + for (i=0;i >(-StackCount[i],pair(StackSize[i],StackNames[i]))); + Sleep(5); + for (j=sortit.begin();j!=sortit.end();j++) + { + sprintf(mess,"%7d cnt %s\n",-(*j).first,(*j).second.second); + Sleep(5); + OutputDebugString(mess); + } + } + TotalMem=0; + TotalBlocks=0; + nStack=0; + MemSetErrorHandler(MyMemReporter3); + dbgMemReportLeakage(NULL,2003,2003); + MemSetErrorHandler(MemDefaultErrorHandler); + if (TotalBlocks) + { + // Sort by count. + Sleep(100); + OutputDebugString("**************************************\n"); + OutputDebugString("SV_AreaEntities "); + sprintf(mess,"%d Calls.\n",TotalBlocks); + OutputDebugString(mess); + OutputDebugString("**************************************\n"); + sortit.clear(); + for (i=0;i >(-StackCount[i],pair(StackSize[i],StackNames[i]))); + Sleep(5); + for (j=sortit.begin();j!=sortit.end();j++) + { + sprintf(mess,"%7d cnt %s\n",-(*j).first,(*j).second.second); + Sleep(5); + OutputDebugString(mess); + } + } + TotalMem=0; + TotalBlocks=0; + nStack=0; + MemSetErrorHandler(MyMemReporter3); + dbgMemReportLeakage(NULL,2004,2004); + MemSetErrorHandler(MemDefaultErrorHandler); + if (TotalBlocks) + { + // Sort by count. + Sleep(100); + OutputDebugString("**************************************\n"); + OutputDebugString("CG_Trace "); + sprintf(mess,"%d Calls.\n",TotalBlocks); + OutputDebugString(mess); + OutputDebugString("**************************************\n"); + sortit.clear(); + for (i=0;i >(-StackCount[i],pair(StackSize[i],StackNames[i]))); + Sleep(5); + for (j=sortit.begin();j!=sortit.end();j++) + { + sprintf(mess,"%7d cnt %s\n",-(*j).first,(*j).second.second); + Sleep(5); + OutputDebugString(mess); + } + } + TotalMem=0; + TotalBlocks=0; + nStack=0; + MemSetErrorHandler(MyMemReporter3); + dbgMemReportLeakage(NULL,2005,2005); + MemSetErrorHandler(MemDefaultErrorHandler); + if (TotalBlocks) + { + // Sort by count. + Sleep(100); + OutputDebugString("**************************************\n"); + OutputDebugString("CG_PointContents "); + sprintf(mess,"%d Calls.\n",TotalBlocks); + OutputDebugString(mess); + OutputDebugString("**************************************\n"); + sortit.clear(); + for (i=0;i >(-StackCount[i],pair(StackSize[i],StackNames[i]))); + Sleep(5); + for (j=sortit.begin();j!=sortit.end();j++) + { + sprintf(mess,"%7d cnt %s\n",-(*j).first,(*j).second.second); + Sleep(5); + OutputDebugString(mess); + } + } +#if 0 //sw doesn't have the tag stuff + // Sort by size. + Sleep(5); + OutputDebugString("***************************************\n"); + OutputDebugString("By Tag, sort: size ********************\n"); + OutputDebugString("size(K) count name \n"); + OutputDebugString("-----------------------\n"); + Sleep(5); + multimap sorted; + for (i=0;i<1000;i++) + { + if (CheckpointCount[i]) + { + sorted.insert(pair(-CheckpointSize[i],i)); + } + } + multimap::iterator k; + for (k=sorted.begin();k!=sorted.end();k++) + { + sprintf(mess,"%8d %8d %s\n",CheckpointSize[(*k).second]/1024,CheckpointCount[(*k).second],(*k).second>=2?tagDefs[(*k).second-2]:"unknown"); + Sleep(5); + OutputDebugString(mess); + } + + // Sort by count. + Sleep(5); + OutputDebugString("By Tag, sort: count *******************\n"); + OutputDebugString("size(K) count name \n"); + OutputDebugString("-----------------------\n"); + Sleep(5); + sorted.clear(); + for (i=0;i<1000;i++) + { + if (CheckpointCount[i]) + { + sorted.insert(pair(-CheckpointCount[i],i)); + } + } + for (k=sorted.begin();k!=sorted.end();k++) + { + sprintf(mess,"%8d %8d %s\n",CheckpointSize[(*k).second]/1024,CheckpointCount[(*k).second],(*k).second>=2?tagDefs[(*k).second-2]:"unknown"); + Sleep(5); + OutputDebugString(mess); + } +#endif +#endif + } + + ~Leakage() + { +#if MEM_DEBUG + if (mem_leakfile && mem_leakfile->integer) + { + dbgMemSetDefaultErrorOutput(DBGMEM_OUTPUT_FILE,"leakage.out"); + dbgMemReportLeakage(NULL,1,1); + dbgMemSetDefaultErrorOutput(DBGMEM_OUTPUT_PROMPT,NULL); + } + if (mem_leakreport && mem_leakreport->integer) + { + LeakReport(); + } +#endif + } +#if MEM_DEBUG + + void EnableChecking(int x) + { + if (x) + { + dbgMemSetSafetyLevel(MEM_SAFETY_DEBUG); + dbgMemPoolSetCheckFrequency(MyPool, x); + dbgMemSetCheckFrequency(x); + dbgMemDeferFreeing(TRUE); + dbgMemSetDeferQueueLen(50000); + } + else + { + dbgMemSetSafetyLevel(MEM_SAFETY_SOME); + dbgMemDeferFreeing(FALSE); + } + + } +#endif + +}; + +static Leakage TheLeakage; + +#if MEM_DEBUG + +void MEM_Checking_f(void) +{ + if (Cmd_Argc() != 2) + { + Com_Printf ("mem_checking \n"); + return; + } + + if (atol(Cmd_Argv(1)) > 0 && atol(Cmd_Argv(1)) < 100) + { + Com_Printf ("mem_checking frequency is too low ( < 100 )\n"); + return; + } + + TheLeakage.EnableChecking(atol(Cmd_Argv(1))); +} + +void MEM_Report_f(void) +{ + if (0) + { + dbgMemSetDefaultErrorOutput(DBGMEM_OUTPUT_FILE,"leakage.out"); + dbgMemReportLeakage(NULL,1,1); + dbgMemSetDefaultErrorOutput(DBGMEM_OUTPUT_PROMPT,NULL); + } + TheLeakage.LeakReport(); +} + +/* +void myexit(void) +{ + TheLeakage.LeakReport(); +} +*/ +void SH_Register(void) +{ + Cmd_AddCommand ("mem_checking", MEM_Checking_f); + Cmd_AddCommand ("mem_report", MEM_Report_f); + + mem_leakfile = Cvar_Get( "mem_leakfile", "0", 0 ); + mem_leakreport = Cvar_Get( "mem_leakreport", "1", 0 ); +// atexit(myexit); +} + +#endif diff --git a/code/ALut.lib b/code/ALut.lib new file mode 100644 index 0000000..67cde9f Binary files /dev/null and b/code/ALut.lib differ diff --git a/code/EaxMan.dll b/code/EaxMan.dll new file mode 100644 index 0000000..651cbfe Binary files /dev/null and b/code/EaxMan.dll differ diff --git a/code/IFC22.dll b/code/IFC22.dll new file mode 100644 index 0000000..44331c8 Binary files /dev/null and b/code/IFC22.dll differ diff --git a/code/JediAcademy.ncb b/code/JediAcademy.ncb new file mode 100644 index 0000000..79696ad Binary files /dev/null and b/code/JediAcademy.ncb differ diff --git a/code/JediAcademy.sln b/code/JediAcademy.sln new file mode 100644 index 0000000..4e3fbf5 --- /dev/null +++ b/code/JediAcademy.sln @@ -0,0 +1,86 @@ +Microsoft Visual Studio Solution File, Format Version 8.00 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "x_exe", "x_exe\x_exe.vcproj", "{FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}" + ProjectSection(ProjectDependencies) = postProject + EndProjectSection + ProjectSection(ProjectDependencies) = postProject + {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA} = {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA} + {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB} = {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "goblib", "goblib\goblib.vcproj", "{68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}" + ProjectSection(ProjectDependencies) = postProject + EndProjectSection + ProjectSection(ProjectDependencies) = postProject + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "x_game", "x_game\x_game.vcproj", "{E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}" + ProjectSection(ProjectDependencies) = postProject + EndProjectSection + ProjectSection(ProjectDependencies) = postProject + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfiguration) = preSolution + Debug = Debug + DemoDebug = DemoDebug + DemoFinal = DemoFinal + DemoRelease = DemoRelease + FinalBuild = FinalBuild + Release = Release + SHDebug = SHDebug + EndGlobalSection + GlobalSection(ProjectConfiguration) = postSolution + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.Debug.ActiveCfg = Debug|Xenon + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.Debug.Build.0 = Debug|Xenon + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.DemoDebug.ActiveCfg = DemoDebug|Xenon + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.DemoDebug.Build.0 = DemoDebug|Xenon + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.DemoFinal.ActiveCfg = DemoFinal|Xenon + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.DemoFinal.Build.0 = DemoFinal|Xenon + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.DemoRelease.ActiveCfg = DemoRelease|Xenon + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.DemoRelease.Build.0 = DemoRelease|Xenon + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.FinalBuild.ActiveCfg = FinalBuild|Xenon + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.FinalBuild.Build.0 = FinalBuild|Xenon + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.Release.ActiveCfg = Release|Xenon + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.Release.Build.0 = Release|Xenon + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.SHDebug.ActiveCfg = Debug|Xenon + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.SHDebug.Build.0 = Debug|Xenon + {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}.Debug.ActiveCfg = Debug|Xenon + {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}.Debug.Build.0 = Debug|Xenon + {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}.DemoDebug.ActiveCfg = DemoDebug|Xenon + {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}.DemoDebug.Build.0 = DemoDebug|Xenon + {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}.DemoFinal.ActiveCfg = DemoFinal|Xenon + {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}.DemoFinal.Build.0 = DemoFinal|Xenon + {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}.DemoRelease.ActiveCfg = DemoRelease|Xenon + {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}.DemoRelease.Build.0 = DemoRelease|Xenon + {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}.FinalBuild.ActiveCfg = FinalBuild|Xenon + {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}.FinalBuild.Build.0 = FinalBuild|Xenon + {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}.Release.ActiveCfg = Release|Xenon + {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}.Release.Build.0 = Release|Xenon + {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}.SHDebug.ActiveCfg = Debug|Xenon + {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}.SHDebug.Build.0 = Debug|Xenon + {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}.Debug.ActiveCfg = Debug|Xenon + {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}.Debug.Build.0 = Debug|Xenon + {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}.DemoDebug.ActiveCfg = DemoDebug|Xenon + {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}.DemoDebug.Build.0 = DemoDebug|Xenon + {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}.DemoFinal.ActiveCfg = DemoFinal|Xenon + {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}.DemoFinal.Build.0 = DemoFinal|Xenon + {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}.DemoRelease.ActiveCfg = DemoRelease|Xenon + {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}.DemoRelease.Build.0 = DemoRelease|Xenon + {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}.FinalBuild.ActiveCfg = FinalBuild|Xenon + {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}.FinalBuild.Build.0 = FinalBuild|Xenon + {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}.Release.ActiveCfg = Release|Xenon + {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}.Release.Build.0 = Release|Xenon + {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}.SHDebug.ActiveCfg = Debug|Xenon + {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}.SHDebug.Build.0 = Debug|Xenon + EndGlobalSection + GlobalSection(SolutionItems) = postSolution + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + EndGlobalSection + GlobalSection(ExtensibilityAddIns) = postSolution + EndGlobalSection + GlobalSection(DevPartner) = postSolution + EndGlobalSection + GlobalSection(DevPartner) = postSolution + EndGlobalSection +EndGlobal diff --git a/code/JediAcademy.sln.old b/code/JediAcademy.sln.old new file mode 100644 index 0000000..1b9eb48 --- /dev/null +++ b/code/JediAcademy.sln.old @@ -0,0 +1,76 @@ +Microsoft Visual Studio Solution File, Format Version 7.00 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "x_exe", "x_exe\x_exe.vcproj", "{FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "goblib", "goblib\goblib.vcproj", "{68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "x_game", "x_game\x_game.vcproj", "{E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}" +EndProject +Global + GlobalSection(SolutionConfiguration) = preSolution + ConfigName.0 = Debug + ConfigName.1 = DemoDebug + ConfigName.2 = DemoFinal + ConfigName.3 = DemoRelease + ConfigName.4 = FinalBuild + ConfigName.5 = Release + ConfigName.6 = SHDebug + EndGlobalSection + GlobalSection(ProjectDependencies) = postSolution + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.0 = {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB} + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.1 = {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA} + EndGlobalSection + GlobalSection(ProjectConfiguration) = postSolution + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.Debug.ActiveCfg = Debug|Xbox + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.Debug.Build.0 = Debug|Xbox + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.DemoDebug.ActiveCfg = DemoDebug|Xbox + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.DemoDebug.Build.0 = DemoDebug|Xbox + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.DemoFinal.ActiveCfg = DemoFinal|Xbox + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.DemoFinal.Build.0 = DemoFinal|Xbox + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.DemoRelease.ActiveCfg = DemoRelease|Xbox + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.DemoRelease.Build.0 = DemoRelease|Xbox + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.FinalBuild.ActiveCfg = FinalBuild|Xbox + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.FinalBuild.Build.0 = FinalBuild|Xbox + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.Release.ActiveCfg = Release|Xbox + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.Release.Build.0 = Release|Xbox + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.SHDebug.ActiveCfg = Debug|Xbox + {FD1DA207-0D4A-47A8-A6AD-B81AE1BA28DA}.SHDebug.Build.0 = Debug|Xbox + {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}.Debug.ActiveCfg = Debug|Xbox + {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}.Debug.Build.0 = Debug|Xbox + {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}.DemoDebug.ActiveCfg = DemoDebug|Xbox + {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}.DemoDebug.Build.0 = DemoDebug|Xbox + {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}.DemoFinal.ActiveCfg = DemoFinal|Xbox + {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}.DemoFinal.Build.0 = DemoFinal|Xbox + {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}.DemoRelease.ActiveCfg = DemoRelease|Xbox + {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}.DemoRelease.Build.0 = DemoRelease|Xbox + {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}.FinalBuild.ActiveCfg = FinalBuild|Xbox + {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}.FinalBuild.Build.0 = FinalBuild|Xbox + {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}.Release.ActiveCfg = Release|Xbox + {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}.Release.Build.0 = Release|Xbox + {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}.SHDebug.ActiveCfg = Debug|Xbox + {68A067E3-BB9E-435B-9AA3-DD45DB2AA4DB}.SHDebug.Build.0 = Debug|Xbox + {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}.Debug.ActiveCfg = Debug|Xbox + {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}.Debug.Build.0 = Debug|Xbox + {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}.DemoDebug.ActiveCfg = DemoDebug|Xbox + {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}.DemoDebug.Build.0 = DemoDebug|Xbox + {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}.DemoFinal.ActiveCfg = DemoFinal|Xbox + {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}.DemoFinal.Build.0 = DemoFinal|Xbox + {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}.DemoRelease.ActiveCfg = DemoRelease|Xbox + {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}.DemoRelease.Build.0 = DemoRelease|Xbox + {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}.FinalBuild.ActiveCfg = FinalBuild|Xbox + {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}.FinalBuild.Build.0 = FinalBuild|Xbox + {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}.Release.ActiveCfg = Release|Xbox + {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}.Release.Build.0 = Release|Xbox + {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}.SHDebug.ActiveCfg = Debug|Xbox + {E7A12117-F3B0-4C68-9B44-66CEFCA3AEAA}.SHDebug.Build.0 = Debug|Xbox + EndGlobalSection + GlobalSection(SolutionItems) = postSolution + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + EndGlobalSection + GlobalSection(ExtensibilityAddIns) = postSolution + EndGlobalSection + GlobalSection(DevPartner) = postSolution + EndGlobalSection + GlobalSection(DevPartner) = postSolution + EndGlobalSection +EndGlobal diff --git a/code/JediAcademy.suo b/code/JediAcademy.suo new file mode 100644 index 0000000..8920d21 Binary files /dev/null and b/code/JediAcademy.suo differ diff --git a/code/OpenAL32.dll b/code/OpenAL32.dll new file mode 100644 index 0000000..1b2c553 Binary files /dev/null and b/code/OpenAL32.dll differ diff --git a/code/OpenAL32.lib b/code/OpenAL32.lib new file mode 100644 index 0000000..86de420 Binary files /dev/null and b/code/OpenAL32.lib differ diff --git a/code/RMG/RM_Area.cpp b/code/RMG/RM_Area.cpp new file mode 100644 index 0000000..cb8b44e --- /dev/null +++ b/code/RMG/RM_Area.cpp @@ -0,0 +1,480 @@ +/************************************************************************************************ + * + * Copyright (C) 2001-2002 Raven Software + * + * RM_Area.cpp + * + ************************************************************************************************/ + +#include "../server/exe_headers.h" + +#include "rm_headers.h" + +#ifdef _WIN32 +#pragma optimize("p", on) +#endif + +/************************************************************************************************ + * CRMArea::CRMArea + * constructor + * + * inputs: + * none + * + * return: + * none + * + ************************************************************************************************/ +CRMArea::CRMArea ( + float spacingRadius, + float paddingSize, + float confineRadius, + vec3_t confineOrigin, + vec3_t lookAtOrigin, + bool flatten, + int symmetric + ) +{ + mMoveCount = 0; + mAngle = 0; + mCollision = true; + mConfineRadius = confineRadius; + mPaddingSize = paddingSize; + mSpacingRadius = spacingRadius; + mFlatten = flatten; + mLookAt = true; + mLockOrigin = false; + mSymmetric = symmetric; + mRadius = spacingRadius; + + VectorCopy ( confineOrigin, mConfineOrigin ); + VectorCopy ( lookAtOrigin, mLookAtOrigin ); +} + +/************************************************************************************************ + * CRMArea::LookAt + * Angle the area towards the given point + * + * inputs: + * lookat - the origin to look at + * + * return: + * the angle in radians that was calculated + * + ************************************************************************************************/ +float CRMArea::LookAt ( vec3_t lookat ) +{ + if (mLookAt) + { // this area orients itself towards a point + vec3_t a; + + VectorCopy ( lookat, mLookAtOrigin ); + VectorSubtract ( lookat, mOrigin, a ); + + mAngle = atan2 ( a[1], a[0] ); + } + + return mAngle; +} + +/************************************************************************************************ + * CRMArea::Mirror + * Mirrors the area to the other side of the map. This includes mirroring the confine origin + * and lookat origin + * + * inputs: + * none + * + * return: + * none + * + ************************************************************************************************/ +void CRMArea::Mirror ( void ) +{ + mOrigin[0] = -mOrigin[0]; + mOrigin[1] = -mOrigin[1]; + + mConfineOrigin[0] = -mConfineOrigin[0]; + mConfineOrigin[1] = -mConfineOrigin[1]; + + mLookAtOrigin[0] = -mLookAtOrigin[0]; + mLookAtOrigin[1] = -mLookAtOrigin[1]; +} + +/************************************************************************************************ + * CRMAreaManager::CRMAreaManager + * constructor + * + * inputs: + * none + * + * return: + * none + * + ************************************************************************************************/ +CRMAreaManager::CRMAreaManager ( const vec3_t mins, const vec3_t maxs) +{ + VectorCopy ( mins, mMins ); + VectorCopy ( maxs, mMaxs ); + + mWidth = mMaxs[0] - mMins[0]; + mHeight = mMaxs[1] - mMins[1]; +} + +/************************************************************************************************ + * CRMAreaManager::~CRMAreaManager + * Removes all managed areas + * + * inputs: + * none + * + * return: + * none + * + ************************************************************************************************/ +CRMAreaManager::~CRMAreaManager ( ) +{ + int i; + + for ( i = mAreas.size() - 1; i >=0; i -- ) + { + delete mAreas[i]; + } + + mAreas.clear(); +} + +/************************************************************************************************ + * CRMAreaManager::MoveArea + * Moves an area within the area manager thus shifting any other areas as needed + * + * inputs: + * area - area to be moved + * origin - new origin to attempt to move to + * + * return: + * none + * + ************************************************************************************************/ +void CRMAreaManager::MoveArea ( CRMArea* movedArea, vec3_t origin) +{ + int index; + int size; + + // Increment the addcount (this is for infinite protection) + movedArea->AddMoveCount (); + + // Infinite recursion prevention + if ( movedArea->GetMoveCount() > 250 ) + { +// assert ( 0 ); + movedArea->EnableCollision ( false ); + return; + } + + // First set the area's origin, This may cause it to be in collision with + // another area but that will get fixed later + movedArea->SetOrigin ( origin ); + + // when symmetric we want to ensure that no instances end up on the "other" side of the imaginary diaganol that cuts the map in two + // mSymmetric tells us which side of the map is legal + if ( movedArea->GetSymmetric ( ) ) + { + const vec3pair_t& bounds = TheRandomMissionManager->GetLandScape()->GetBounds(); + + vec3_t point; + vec3_t dir; + vec3_t tang; + bool push; + float len; + + VectorSubtract( movedArea->GetOrigin(), bounds[0], point ); + VectorSubtract( bounds[1], bounds[0], dir ); + VectorNormalize(dir); + + dir[2] = 0; + point[2] = 0; + VectorMA( bounds[0], DotProduct(point, dir), dir, tang ); + VectorSubtract ( movedArea->GetOrigin(), tang, dir ); + + dir[2] = 0; + push = false; + len = VectorNormalize(dir); + + if ( len < movedArea->GetRadius ( ) ) + { + if ( movedArea->GetLockOrigin ( ) ) + { + movedArea->EnableCollision ( false ); + return; + } + + VectorMA ( point, (movedArea->GetSpacingRadius() - len) + TheRandomMissionManager->GetLandScape()->irand(10,movedArea->GetSpacingRadius()), dir, point ); + origin[0] = point[0] + bounds[0][0]; + origin[1] = point[1] + bounds[0][1]; + movedArea->SetOrigin ( origin ); + } + + switch ( movedArea->GetSymmetric ( ) ) + { + case SYMMETRY_TOPLEFT: + if ( origin[1] > origin[0] ) + { + movedArea->Mirror ( ); + } + break; + + case SYMMETRY_BOTTOMRIGHT: + if ( origin[1] < origin[0] ) + { + movedArea->Mirror ( ); + } + + break; + + default: + // unknown symmetry type + assert ( 0 ); + break; + } + } + + // Confine to area unless we are being pushed back by the same guy who pushed us last time (infinite loop) + if ( movedArea->GetConfineRadius() ) + { + if ( movedArea->GetMoveCount() < 25 ) + { + vec3_t cdiff; + float cdist; + + VectorSubtract ( movedArea->GetOrigin(), movedArea->GetConfineOrigin(), cdiff ); + cdiff[2] = 0; + cdist = VectorLength ( cdiff ); + + if ( cdist + movedArea->GetSpacingRadius() > movedArea->GetConfineRadius() ) + { + cdist = movedArea->GetConfineRadius() - movedArea->GetSpacingRadius(); + VectorNormalize ( cdiff ); + + VectorMA ( movedArea->GetConfineOrigin(), cdist, cdiff, movedArea->GetOrigin()); + } + } + else + { + index = 0; + } + } + + // See if it fell off the world in the x direction + if ( movedArea->GetOrigin()[0] + movedArea->GetSpacingRadius() > mMaxs[0] ) + movedArea->GetOrigin()[0] = mMaxs[0] - movedArea->GetSpacingRadius() - (TheRandomMissionManager->GetLandScape()->irand(10,200)); + else if ( movedArea->GetOrigin()[0] - movedArea->GetSpacingRadius() < mMins[0] ) + movedArea->GetOrigin()[0] = mMins[0] + movedArea->GetSpacingRadius() + (TheRandomMissionManager->GetLandScape()->irand(10,200)); + + // See if it fell off the world in the y direction + if ( movedArea->GetOrigin()[1] + movedArea->GetSpacingRadius() > mMaxs[1] ) + movedArea->GetOrigin()[1] = mMaxs[1] - movedArea->GetSpacingRadius() - (TheRandomMissionManager->GetLandScape()->irand(10,200)); + else if ( movedArea->GetOrigin()[1] - movedArea->GetSpacingRadius() < mMins[1] ) + movedArea->GetOrigin()[1] = mMins[1] + movedArea->GetSpacingRadius() + (TheRandomMissionManager->GetLandScape()->irand(10,200)); + + // Look at what we need to look at + movedArea->LookAt ( movedArea->GetLookAtOrigin() ); + + // Dont collide against things that have no collision +// if ( !movedArea->IsCollisionEnabled ( ) ) +// { +// return; +// } + + // See if its colliding + for(index = 0, size = mAreas.size(); index < size; index ++ ) + { + CRMArea *area = mAreas[index]; + vec3_t diff; + vec3_t newOrigin; + float dist; + float targetdist; + + // Skip the one that was moved in the first place + if ( area == movedArea ) + { + continue; + } + + if ( area->GetLockOrigin ( ) && movedArea->GetLockOrigin( ) ) + { + continue; + } + + // Dont collide against things that have no collision + if ( !area->IsCollisionEnabled ( ) ) + { + continue; + } + + // Grab the distance between the two + // only want the horizontal distance -- dmv + //dist = Distance ( movedArea->GetOrigin ( ), area->GetOrigin ( )); + vec3_t maOrigin; + vec3_t aOrigin; + VectorCopy(movedArea->GetOrigin(), maOrigin); + VectorCopy(area->GetOrigin(), aOrigin); + maOrigin[2] = aOrigin[2] = 0; + dist = Distance ( maOrigin, aOrigin ); + targetdist = movedArea->GetSpacingRadius() + area->GetSpacingRadius() + maximum(movedArea->GetPaddingSize(),area->GetPaddingSize()); + + if ( dist == 0 ) + { + area->GetOrigin()[0] += (50 * (float)(TheRandomMissionManager->GetLandScape()->irand(0,99))/100.0f); + area->GetOrigin()[1] += (50 * (float)(TheRandomMissionManager->GetLandScape()->irand(0,99))/100.0f); + + VectorCopy(area->GetOrigin(), aOrigin); + aOrigin[2] = 0; + + dist = Distance ( maOrigin, aOrigin ); + } + + // Are they are enough apart? + if ( dist >= targetdist ) + { + continue; + } + + // Dont move a step if locked + if ( area->GetLockOrigin ( ) ) + { + MoveArea ( area, area->GetOrigin ( ) ); + continue; + } + + // we got a collision, move the guy we hit + VectorSubtract ( area->GetOrigin(), movedArea->GetOrigin(), diff ); + diff[2] = 0; + VectorNormalize ( diff ); + + // Push by the difference in the distance and no-collide radius + VectorMA ( area->GetOrigin(), targetdist - dist + 1 , diff, newOrigin ); + + // Move the area now + MoveArea ( area, newOrigin ); + } +} + +/************************************************************************************************ + * CRMAreaManager::CreateArea + * Creates an area and adds it to the list of managed areas + * + * inputs: + * none + * + * return: + * a pointer to the newly added area class + * + ************************************************************************************************/ +CRMArea* CRMAreaManager::CreateArea ( + vec3_t origin, + float spacingRadius, + int spacingLine, + float paddingSize, + float confineRadius, + vec3_t confineOrigin, + vec3_t lookAtOrigin, + bool flatten, + bool collide, + bool lockorigin, + int symmetric + ) +{ + CRMArea* area = new CRMArea ( spacingRadius, paddingSize, confineRadius, confineOrigin, lookAtOrigin, flatten, symmetric ); + + if ( lockorigin || spacingLine ) + { + area->LockOrigin ( ); + } + + if (origin[0] != lookAtOrigin[0] || origin[1] != lookAtOrigin[1]) + area->EnableLookAt(true); + + // First add the area to the list + mAreas.push_back ( area ); + + area->EnableCollision(collide); + + // Set the real radius which is used for center line detection + if ( spacingLine ) + { + area->SetRadius ( spacingRadius + (spacingLine - 1) * spacingRadius ); + } + + // Now move the area around + MoveArea ( area, origin ); + + if ( (origin[0] != lookAtOrigin[0] || origin[1] != lookAtOrigin[1]) ) + { + int i; + vec3_t linedir; + vec3_t dir; + vec3_t up = {0,0,1}; + vec3_t zerodvec; + + VectorClear(zerodvec); + + VectorSubtract ( lookAtOrigin, origin, dir ); + VectorNormalize ( dir ); + dir[2] = 0; + CrossProduct ( dir, up, linedir ); + + for ( i = 0; i < spacingLine - 1; i ++ ) + { + CRMArea* linearea; + vec3_t lineorigin; + + linearea = new CRMArea ( spacingRadius, paddingSize, 0, zerodvec, zerodvec, false, symmetric ); + linearea->LockOrigin ( ); + linearea->EnableCollision(collide); + + VectorMA ( origin, spacingRadius + (spacingRadius * 2 * i), linedir, lineorigin ); + mAreas.push_back ( linearea ); + MoveArea ( linearea, lineorigin ); + + linearea = new CRMArea ( spacingRadius, paddingSize, 0, zerodvec, zerodvec, false, symmetric ); + linearea->LockOrigin ( ); + linearea->EnableCollision(collide); + + VectorMA ( origin, -spacingRadius - (spacingRadius * 2 * i), linedir, lineorigin ); + mAreas.push_back ( linearea ); + MoveArea ( linearea, lineorigin ); + } + } + + // Return it for convienience + return area; +} + +/************************************************************************************************ + * CRMAreaManager::EnumArea + * Allows for enumeration through the area list. If an invalid index is given then NULL will + * be returned; + * + * inputs: + * index - current enumeration index + * + * return: + * requested area class pointer or NULL if the index was invalid + * + ************************************************************************************************/ +CRMArea* CRMAreaManager::EnumArea ( const int index ) +{ + // This isnt an assertion case because there is no size method for + // the area manager so the areas are enumerated until NULL is returned. + if ( index < 0 || index >= mAreas.size ( ) ) + { + return NULL; + } + + return mAreas[index]; +} + +#ifdef _WIN32 +#pragma optimize("p", off) +#endif diff --git a/code/RMG/RM_Area.h b/code/RMG/RM_Area.h new file mode 100644 index 0000000..c7391a4 --- /dev/null +++ b/code/RMG/RM_Area.h @@ -0,0 +1,99 @@ +/************************************************************************************************ + * + * Copyright (C) 2001-2002 Raven Software + * + * RM_Area.h + * + ************************************************************************************************/ + +#pragma once +#if !defined(RM_AREA_H_INC) +#define RM_AREA_H_INC + +#ifdef DEBUG_LINKING + #pragma message("...including RM_Area.h") +#endif + +class CRMArea +{ +private: + + float mPaddingSize; + float mSpacingRadius; + float mConfineRadius; + float mRadius; + float mAngle; + int mMoveCount; + vec3_t mOrigin; + vec3_t mConfineOrigin; + vec3_t mLookAtOrigin; + bool mCollision; + bool mFlatten; + bool mLookAt; + bool mLockOrigin; + int mSymmetric; + +public: + + CRMArea ( float spacing, float padding, float confine, vec3_t confineOrigin, vec3_t lookAtOrigin, bool flatten = true, int symmetric = 0 ); + + void Mirror ( void ); + + void SetOrigin(vec3_t origin) { VectorCopy ( origin, mOrigin ); } + void SetAngle(float angle) { mAngle = angle; } + void SetSymmetric(int sym) { mSymmetric = sym; } + + void EnableCollision(bool e) { mCollision = e; } + void EnableLookAt(bool la) {mLookAt = la; } + + float LookAt(vec3_t lookat); + void LockOrigin( void ) { mLockOrigin = true; } + + void AddMoveCount() { mMoveCount++; } + void ClearMoveCount() { mMoveCount=0; } + + float GetPaddingSize() { return mPaddingSize; } + float GetSpacingRadius() { return mSpacingRadius; } + float GetRadius() { return mRadius; } + float GetConfineRadius() { return mConfineRadius; } + float GetAngle() { return mAngle; } + int GetMoveCount() { return mMoveCount; } + vec_t* GetOrigin() { return mOrigin; } + vec_t* GetConfineOrigin() { return mConfineOrigin; } + vec_t* GetLookAtOrigin() { return mLookAtOrigin; } + bool GetLookAt() { return mLookAt;} + bool GetLockOrigin() { return mLockOrigin; } + int GetSymmetric() { return mSymmetric; } + + void SetRadius(float r) { mRadius = r; } + + bool IsCollisionEnabled(){ return mCollision; } + bool IsFlattened (){ return mFlatten; } +}; + +typedef vector rmAreaVector_t; + +class CRMAreaManager +{ +private: + + rmAreaVector_t mAreas; + vec3_t mMins; + vec3_t mMaxs; + float mWidth; + float mHeight; + +public: + + CRMAreaManager ( const vec3_t mins, const vec3_t maxs ); + ~CRMAreaManager ( ); + + CRMArea* CreateArea ( vec3_t origin, float spacing, int spacingline, float padding, float confine, vec3_t confineOrigin, vec3_t lookAtOrigin, bool flatten=true, bool collide=true, bool lockorigin=false, int symmetric=0); + void MoveArea ( CRMArea* area, vec3_t origin); + CRMArea* EnumArea ( const int index ); + +// void CreateMap ( void ); +}; + +#endif + diff --git a/code/RMG/RM_Headers.h b/code/RMG/RM_Headers.h new file mode 100644 index 0000000..c93b1f7 --- /dev/null +++ b/code/RMG/RM_Headers.h @@ -0,0 +1,71 @@ +#pragma once +#if !defined(RM_HEADERS_H_INC) +#define RM_HEADERS_H_INC + +#ifdef DEBUG_LINKING + #pragma message("...including RM_Headers.h") +#endif + +#pragma warning (push, 3) +#include +#include +#pragma warning (pop) + +using namespace std; + +#if !defined(GENERICPARSER2_H_INC) +#include "../game/genericparser2.h" +#endif + +#if !defined(CM_LOCAL_H_INC) +#include "../qcommon/cm_local.h" +#endif + +#define MAX_INSTANCE_TRIES 5 + +// on a symmetric map which corner is the first node +typedef enum +{ + SYMMETRY_NONE, + SYMMETRY_TOPLEFT, + SYMMETRY_BOTTOMRIGHT + +} symmetry_t; + +#if !defined(CM_TERRAINMAP_H_INC) + #include "../qcommon/cm_terrainmap.h" +#endif + +#if !defined(RM_AREA_H_INC) + #include "RM_Area.h" +#endif + +#if !defined(RM_PATH_H_INC) + #include "RM_Path.h" +#endif + +#if !defined(RM_OBJECTIVE_H_INC) + #include "RM_Objective.h" +#endif + +#if !defined(RM_INSTANCEFILE_H_INC) + #include "RM_InstanceFile.h" +#endif + +#if !defined(RM_INSTANCE_H_INC) + #include "RM_Instance.h" +#endif + +#if !defined(RM_MISSION_H_INC) + #include "RM_Mission.h" +#endif + +#if !defined(RM_MANAGER_H_INC) + #include "RM_Manager.h" +#endif + +#if !defined(RM_TERRAIN_H_INC) + #include "RM_Terrain.h" +#endif + +#endif diff --git a/code/RMG/RM_Instance.cpp b/code/RMG/RM_Instance.cpp new file mode 100644 index 0000000..000303a --- /dev/null +++ b/code/RMG/RM_Instance.cpp @@ -0,0 +1,191 @@ +#include "../server/exe_headers.h" + +#include "rm_headers.h" +#include "../qcommon/cm_terrainmap.h" + +/************************************************************************************************ + * CRMInstance::CRMInstance + * constructs a instnace object using the given parser group + * + * inputs: + * instance: parser group containing information about the instance + * + * return: + * none + * + ************************************************************************************************/ +CRMInstance::CRMInstance ( CGPGroup *instGroup, CRMInstanceFile& instFile ) +{ + mObjective = NULL; + mSpacingRadius = 0; + mFlattenRadius = 0; + mFilter[0] = mTeamFilter[0] = 0; + mArea = NULL; + mAutomapSymbol = 0; + mEntityID = 0; + mSide = 0; + mMirror = 0; + mFlattenHeight = 66; + mSpacingLine = 0; + mSurfaceSprites = true; + mLockOrigin = false; +} + +/************************************************************************************************ + * CRMInstance::PreSpawn + * Prepares the instance for spawning by flattening the ground under it + * + * inputs: + * landscape: landscape the instance will be spawned on + * + * return: + * true: spawn preparation successful + * false: spawn preparation failed + * + ************************************************************************************************/ +bool CRMInstance::PreSpawn ( CRandomTerrain* terrain, qboolean IsServer ) +{ + vec3_t origin; + CArea area; + + VectorCopy(GetOrigin(), origin); + + if (mMirror) + { + origin[0] = TheRandomMissionManager->GetLandScape()->GetBounds()[0][0] + TheRandomMissionManager->GetLandScape()->GetBounds()[1][0] - origin[0]; + origin[1] = TheRandomMissionManager->GetLandScape()->GetBounds()[0][1] + TheRandomMissionManager->GetLandScape()->GetBounds()[1][1] - origin[1]; + } + + const vec3_t& terxelSize = terrain->GetLandScape()->GetTerxelSize ( ); + const vec3pair_t& bounds = terrain->GetLandScape()->GetBounds(); + + // Align the instance to the center of a terxel + origin[0] = bounds[0][0] + (int)((origin[0] - bounds[0][0] + terxelSize[0] / 2) / terxelSize[0]) * terxelSize[0]; + origin[1] = bounds[0][1] + (int)((origin[1] - bounds[0][1] + terxelSize[1] / 2) / terxelSize[1]) * terxelSize[1]; + + + // This is BAD - By copying the mirrored origin back into the instance, you've now mirrored the original instance + // so when anything from this point on looks at the instance they'll be looking at a mirrored version but will be expecting the original + // so later in the spawn functions the instance will be re-mirrored, because it thinks the mInstances have not been changed +// VectorCopy(origin, GetOrigin()); + + // Flatten the area below the instance + if ( GetFlattenRadius() ) + { + area.Init( origin, GetFlattenRadius(), 0.0f, AT_NONE, 0, 0 ); + terrain->GetLandScape()->FlattenArea( &area, mFlattenHeight | (mSurfaceSprites?0:0x80), false, true, true ); + } + + return true; +} + +/************************************************************************************************ + * CRMInstance::PostSpawn + * Finishes the spawn by linking any objectives into the world that are associated with it + * + * inputs: + * landscape: landscape the instance was spawned on + * + * return: + * true: post spawn successfull + * false: post spawn failed + * + ************************************************************************************************/ +bool CRMInstance::PostSpawn ( CRandomTerrain* terrain, qboolean IsServer ) +{ + if ( mObjective ) + { + return mObjective->Link ( ); + } + + return true; +} +#ifndef DEDICATED +void CRMInstance::DrawAutomapSymbol() +{ + // draw proper symbol on map for instance + switch (GetAutomapSymbol()) + { + default: + case AUTOMAP_NONE: + if (HasObjective()) + CM_TM_AddObjective(GetOrigin()[0], GetOrigin()[1], GetSide()); + break; + case AUTOMAP_BLD: + CM_TM_AddBuilding(GetOrigin()[0], GetOrigin()[1], GetSide()); + if (HasObjective()) + CM_TM_AddObjective(GetOrigin()[0], GetOrigin()[1], GetSide()); + break; + case AUTOMAP_OBJ: + CM_TM_AddObjective(GetOrigin()[0], GetOrigin()[1], GetSide()); + break; + case AUTOMAP_START: + CM_TM_AddStart(GetOrigin()[0], GetOrigin()[1], GetSide()); + break; + case AUTOMAP_END: + CM_TM_AddEnd(GetOrigin()[0], GetOrigin()[1], GetSide()); + break; + case AUTOMAP_ENEMY: + if (HasObjective()) + CM_TM_AddObjective(GetOrigin()[0], GetOrigin()[1]); + if (1 == Cvar_VariableIntegerValue("rmg_automapshowall")) + CM_TM_AddNPC(GetOrigin()[0], GetOrigin()[1], false); + break; + case AUTOMAP_FRIEND: + if (HasObjective()) + CM_TM_AddObjective(GetOrigin()[0], GetOrigin()[1]); + if (1 == Cvar_VariableIntegerValue("rmg_automapshowall")) + CM_TM_AddNPC(GetOrigin()[0], GetOrigin()[1], true); + break; + case AUTOMAP_WALL: + CM_TM_AddWallRect(GetOrigin()[0], GetOrigin()[1], GetSide()); + break; + } +} +#endif // !DEDICATED +/************************************************************************************************ + * CRMInstance::Preview + * Renderings debug information about the instance + * + * inputs: + * none + * + * return: + * none + * + ************************************************************************************************/ +void CRMInstance::Preview ( const vec3_t from ) +{ +/* CEntity *tent; + + // Add a cylindar for the whole settlement + tent = G_TempEntity( GetOrigin(), EV_DEBUG_CYLINDER ); + VectorCopy( GetOrigin(), tent->s.origin2 ); + tent->s.pos.trBase[2] += 40; + tent->s.origin2[2] += 50; + tent->s.time = 1050 + ((int)(GetSpacingRadius())<<16); + tent->s.time2 = GetPreviewColor ( ); + G_AddTempEntity(tent); + + // Origin line + tent = G_TempEntity( GetOrigin ( ), EV_DEBUG_LINE ); + VectorCopy( GetOrigin(), tent->s.origin2 ); + tent->s.origin2[2] += 400; + tent->s.time = 1050; + tent->s.weapon = 10; + tent->s.time2 = (255<<24) + (255<<16) + (255<<8) + 255; + G_AddTempEntity(tent); + + if ( GetFlattenRadius ( ) ) + { + // Add a cylindar for the whole settlement + tent = G_TempEntity( GetOrigin(), EV_DEBUG_CYLINDER ); + VectorCopy( GetOrigin(), tent->s.origin2 ); + tent->s.pos.trBase[2] += 40; + tent->s.origin2[2] += 50; + tent->s.time = 1050 + ((int)(GetFlattenRadius ( ))<<16); + tent->s.time2 = (255<<24) + (80<<16) +(80<<8) + 80; + G_AddTempEntity(tent); + } +*/ +} diff --git a/code/RMG/RM_Instance.h b/code/RMG/RM_Instance.h new file mode 100644 index 0000000..6caba5f --- /dev/null +++ b/code/RMG/RM_Instance.h @@ -0,0 +1,122 @@ +#pragma once +#if !defined(RM_INSTANCE_H_INC) +#define RM_INSTANCE_H_INC + +#ifdef DEBUG_LINKING + #pragma message("...including RM_Instance.h") +#endif + +#if !defined(CM_LANDSCAPE_H_INC) +#include "../qcommon/cm_landscape.h" +#endif + +enum CRMAutomapSymbol +{ + AUTOMAP_NONE = 0, + AUTOMAP_BLD = 1, + AUTOMAP_OBJ = 2, + AUTOMAP_START= 3, + AUTOMAP_END = 4, + AUTOMAP_ENEMY= 5, + AUTOMAP_FRIEND=6, + AUTOMAP_WALL=7 +}; + +class CRMInstance +{ +protected: + char mFilter[MAX_QPATH]; // filter of entities inside of this + char mTeamFilter[MAX_QPATH]; // team specific filter + + vec3pair_t mBounds; // Bounding box for instance itself + + CRMArea* mArea; // Position of the instance + + CRMObjective* mObjective; // Objective associated with this instance + + // optional instance specific strings for objective + string mMessage; // message outputed when objective is completed + string mDescription; // description of objective + string mInfo; // more info for objective + + float mSpacingRadius; // Radius to space instances with + float mFlattenRadius; // Radius to flatten under instances + + int mSpacingLine; // Line of spacing radius's, forces locket + bool mLockOrigin; // Origin cant move + + bool mSurfaceSprites; // allow surface sprites under instance? + + int mAutomapSymbol; // show which symbol on automap 0=none + + int mEntityID; // id of entity spawned + int mSide; // blue or red side + int mMirror; // mirror origin, angle + + int mFlattenHeight; // height to flatten land + +public: + + CRMInstance ( CGPGroup* instance, CRMInstanceFile& instFile); + + virtual ~CRMInstance ( ) { } + + virtual bool IsValid ( ) { return true; } + + virtual bool PreSpawn ( CRandomTerrain* terrain, qboolean IsServer ); + virtual bool Spawn ( CRandomTerrain* terrain, qboolean IsServer ) { return false; } + virtual bool PostSpawn ( CRandomTerrain* terrain, qboolean IsServer ); + + virtual void Preview ( const vec3_t from ); + + virtual void SetArea ( CRMAreaManager* amanager, CRMArea* area ) { mArea = area; } + virtual void SetFilter ( const char *filter ) { strcpy(mFilter, filter); } + virtual void SetTeamFilter ( const char *teamFilter ) { strcpy(mTeamFilter, teamFilter); } + void SetObjective ( CRMObjective* obj ) { mObjective = obj; } + CRMObjective* GetObjective (void) {return mObjective;} + bool HasObjective () {return mObjective != NULL;} + int GetAutomapSymbol () {return mAutomapSymbol;} + void DrawAutomapSymbol (); + const char* GetMessage(void) { return mMessage.c_str(); } + const char* GetDescription(void){ return mDescription.c_str(); } + const char* GetInfo(void) { return mInfo.c_str(); } + void SetMessage(const char* msg) { mMessage = msg; } + void SetDescription(const char* desc) { mDescription = desc; } + void SetInfo(const char* info) { mInfo = info; } + void SetSide(int side) {mSide = side;} + int GetSide ( ) {return mSide;} + + // NOTE: should consider making SetMirror also set all other variables that need flipping + // like the origin and Side, etc... Otherwise an Instance may have had it's origin flipped + // but then later will have mMirror set to false, but the origin is still flipped. So any functions + // that look at the instance later will see mMirror set to false, but not realize the origin has ALREADY been flipped + virtual void SetMirror(int mirror) { mMirror = mirror;} + int GetMirror ( ) { return mMirror;} + + virtual bool GetSurfaceSprites ( ) { return mSurfaceSprites; } + + virtual bool GetLockOrigin ( ) { return mLockOrigin; } + virtual int GetSpacingLine ( ) { return mSpacingLine; } + + virtual int GetPreviewColor ( ) { return 0; } + virtual float GetSpacingRadius ( ) { return mSpacingRadius; } + virtual float GetFlattenRadius ( ) { return mFlattenRadius; } + const char *GetFilter ( ) { return mFilter; } + const char *GetTeamFilter ( ) { return mTeamFilter; } + + CRMArea& GetArea ( ) { return *mArea; } + vec_t* GetOrigin ( ) {return mArea->GetOrigin(); } + float GetAngle ( ) {return mArea->GetAngle();} + void SetAngle(float ang ) { mArea->SetAngle(ang);} + const vec3pair_t& GetBounds(void) const { return(mBounds); } + + void SetFlattenHeight ( int height ) { mFlattenHeight = height; } + int GetFlattenHeight ( void ) { return mFlattenHeight; } + + void SetSpacingRadius (float spacing) { mSpacingRadius = spacing; } +}; + +typedef list::iterator rmInstanceIter_t; +typedef list rmInstanceList_t; + +#endif diff --git a/code/RMG/RM_InstanceFile.cpp b/code/RMG/RM_InstanceFile.cpp new file mode 100644 index 0000000..bfeb1a8 --- /dev/null +++ b/code/RMG/RM_InstanceFile.cpp @@ -0,0 +1,200 @@ +/************************************************************************************************ + * + * RM_InstanceFile.cpp + * + * implements the CRMInstanceFile class. This class provides functionality to load + * and create instances from an instance file. First call Open to open the instance file and + * then use CreateInstance to create new instances. When finished call Close to cleanup. + * + ************************************************************************************************/ + +#include "../server/exe_headers.h" + +#include "rm_headers.h" + +//#include "rm_instance_npc.h" +#include "rm_instance_bsp.h" +#include "rm_instance_random.h" +#include "rm_instance_group.h" +#include "rm_instance_void.h" + +/************************************************************************************************ + * CRMInstanceFile::CRMInstanceFile + * constructor + * + * inputs: + * none + * + * return: + * none + * + ************************************************************************************************/ +CRMInstanceFile::CRMInstanceFile ( ) +{ + mInstances = NULL; +} + +/************************************************************************************************ + * CRMInstanceFile::~CRMInstanceFile + * Destroys the instance file by freeing the parser + * + * inputs: + * none + * + * return: + * none + * + ************************************************************************************************/ +CRMInstanceFile::~CRMInstanceFile ( ) +{ + Close ( ); +} + +/************************************************************************************************ + * CRMInstanceFile::Open + * Opens the given instance file and prepares it for use in instance creation + * + * inputs: + * instance: Name of instance to open. Note that the root path will be automatically + * added and shouldnt be included in the given name + * + * return: + * true: instance file successfully loaded + * false: instance file could not be loaded for some reason + * + ************************************************************************************************/ +bool CRMInstanceFile::Open ( const char* instance ) +{ + char instanceDef[MAX_QPATH]; + CGPGroup *basegroup; + + // Build the filename + Com_sprintf(instanceDef, MAX_QPATH, "ext_data/rmg/%s.instance", instance ); + +#ifndef FINAL_BUILD + // Debug message + Com_Printf("CM_Terrain: Loading and parsing instanceDef %s.....\n", instance); +#endif + + // Parse the text file using the generic parser + if(!Com_ParseTextFile(instanceDef, mParser )) + { + Com_sprintf(instanceDef, MAX_QPATH, "ext_data/arioche/%s.instance", instance ); + if(!Com_ParseTextFile(instanceDef, mParser )) + { + Com_Printf(va("CM_Terrain: Could not open instance file '%s'\n", instanceDef)); + return false; + } + } + + // The whole file.... + basegroup = mParser.GetBaseParseGroup(); + + // The root { } struct + mInstances = basegroup->GetSubGroups(); + + // The "instances" { } structure + mInstances = mInstances->GetSubGroups ( ); + + return true; +} + +/************************************************************************************************ + * CRMInstanceFile::Close + * Closes an open instance file + * + * inputs: + * none + * + * return: + * none + * + ************************************************************************************************/ +void CRMInstanceFile::Close ( void ) +{ + // If not open then dont close it + if ( NULL == mInstances ) + { + return; + } + mParser.Clean(); + + mInstances = NULL; +} + +/************************************************************************************************ + * CRMInstanceFile::CreateInstance + * Creates an instance (to be freed by caller) using the given instance name. + * + * inputs: + * name: Name of the instance to read from the instance file + * + * return: + * NULL: instance could not be read from the instance file + * NON-NULL: instance created and returned for further use + * + ************************************************************************************************/ +CRMInstance* CRMInstanceFile::CreateInstance ( const char* name ) +{ + static int instanceID = 0; + + CGPGroup* group; + CRMInstance* instance; + + // Make sure we were loaded + assert ( mInstances ); + + // Search through the instances for the one with the given name + for ( group = mInstances; group; group = group->GetNext ( ) ) + { + // Skip it if the name doesnt match + if ( stricmp ( name, group->FindPairValue ( "name", "" ) ) ) + { + continue; + } + + // Handle the various forms of instance types + if ( !stricmp ( group->GetName ( ), "bsp" ) ) + { + instance = new CRMBSPInstance ( group, *this ); + } + else if ( !stricmp ( group->GetName ( ), "npc" ) ) + { +// instance = new CRMNPCInstance ( group, *this ); + continue; + } + else if ( !stricmp ( group->GetName ( ), "group" ) ) + { + instance = new CRMGroupInstance ( group, *this ); + } + else if ( !stricmp ( group->GetName ( ), "random" ) ) + { + instance = new CRMRandomInstance ( group, *this ); + } + else if ( !stricmp ( group->GetName ( ), "void" ) ) + { + instance = new CRMVoidInstance ( group, *this ); + } + else + { + continue; + } + + // If the instance isnt valid after being created then delete it + if ( !instance->IsValid ( ) ) + { + delete instance; + return NULL; + } + + // The instance was successfully created so return it + return instance; + } + +#ifndef FINAL_BUILD + // The instance wasnt found in the file so report it + Com_Printf(va("WARNING: Instance '%s' was not found in the active instance file\n", name )); +#endif + + return NULL; +} diff --git a/code/RMG/RM_InstanceFile.h b/code/RMG/RM_InstanceFile.h new file mode 100644 index 0000000..92f8ebc --- /dev/null +++ b/code/RMG/RM_InstanceFile.h @@ -0,0 +1,28 @@ +#pragma once +#if !defined(RM_INSTANCEFILE_H_INC) +#define RM_INSTANCEFILE_H_INC + +#ifdef DEBUG_LINKING + #pragma message("...including RM_InstanceFile.h") +#endif + +class CRMInstance; + +class CRMInstanceFile +{ +public: + + CRMInstanceFile ( ); + ~CRMInstanceFile ( ); + + bool Open ( const char* instance ); + void Close ( void ); + CRMInstance* CreateInstance ( const char* name ); + +protected: + + CGenericParser2 mParser; + CGPGroup* mInstances; +}; + +#endif \ No newline at end of file diff --git a/code/RMG/RM_Instance_BSP.cpp b/code/RMG/RM_Instance_BSP.cpp new file mode 100644 index 0000000..919191d --- /dev/null +++ b/code/RMG/RM_Instance_BSP.cpp @@ -0,0 +1,294 @@ +/************************************************************************************************ + * + * RM_Instance_BSP.cpp + * + * Implements the CRMBSPInstance class. This class is reponsible for parsing a + * bsp instance as well as spawning it into a landscape. + * + ************************************************************************************************/ + +#include "../server/exe_headers.h" + +#include "../qcommon/cm_local.h" +#include "../server/server.h" +#include "rm_headers.h" + +#include "rm_instance_bsp.h" + +#include "../client/vmachine.h" + +/************************************************************************************************ + * CRMBSPInstance::CRMBSPInstance + * constructs a building instance object using the given parser group + * + * inputs: + * instance: parser group containing information about the building instance + * + * return: + * none + * + ************************************************************************************************/ +CRMBSPInstance::CRMBSPInstance(CGPGroup *instGroup, CRMInstanceFile& instFile) : CRMInstance ( instGroup, instFile ) +{ + strcpy(mBsp, instGroup->FindPairValue("file", "")); + + mAngleVariance = DEG2RAD(atof(instGroup->FindPairValue("anglevariance", "0"))); + mBaseAngle = DEG2RAD(atof(instGroup->FindPairValue("baseangle", "0"))); + mAngleDiff = DEG2RAD(atof(instGroup->FindPairValue("anglediff", "0"))); + mSpacingRadius = atof( instGroup->FindPairValue ( "spacing", "100" ) ); + mSpacingLine = atoi( instGroup->FindPairValue ( "spacingline", "0" ) ); + mSurfaceSprites = (!Q_stricmp ( instGroup->FindPairValue ( "surfacesprites", "no" ), "yes")) ? true : false; + mLockOrigin = (!Q_stricmp ( instGroup->FindPairValue ( "lockorigin", "no" ), "yes")) ? true : false; + mFlattenRadius = atof( instGroup->FindPairValue ( "flatten", "0" ) ); + mHoleRadius = atof( instGroup->FindPairValue ( "hole", "0" ) ); + + const char * automapSymName = instGroup->FindPairValue ( "automap_symbol", "building" ); + if (0 == strcmpi(automapSymName, "none")) mAutomapSymbol = AUTOMAP_NONE ; + else if (0 == strcmpi(automapSymName, "building")) mAutomapSymbol = AUTOMAP_BLD ; + else if (0 == strcmpi(automapSymName, "objective")) mAutomapSymbol = AUTOMAP_OBJ ; + else if (0 == strcmpi(automapSymName, "start")) mAutomapSymbol = AUTOMAP_START; + else if (0 == strcmpi(automapSymName, "end")) mAutomapSymbol = AUTOMAP_END ; + else if (0 == strcmpi(automapSymName, "enemy")) mAutomapSymbol = AUTOMAP_ENEMY; + else if (0 == strcmpi(automapSymName, "friend")) mAutomapSymbol = AUTOMAP_FRIEND; + else if (0 == strcmpi(automapSymName, "wall")) mAutomapSymbol = AUTOMAP_WALL; + else mAutomapSymbol = atoi( automapSymName ); + + // optional instance objective strings + SetMessage(instGroup->FindPairValue("objective_message","")); + SetDescription(instGroup->FindPairValue("objective_description","")); + SetInfo(instGroup->FindPairValue("objective_info","")); + + mBounds[0][0] = 0; + mBounds[0][1] = 0; + mBounds[1][0] = 0; + mBounds[1][1] = 0; + + mBaseAngle += (TheRandomMissionManager->GetLandScape()->irand(0,mAngleVariance) - mAngleVariance/2); +} + +/************************************************************************************************ + * CRMBSPInstance::Spawn + * spawns a bsp into the world using the previously aquired origin + * + * inputs: + * none + * + * return: + * none + * + ************************************************************************************************/ +bool CRMBSPInstance::Spawn ( CRandomTerrain* terrain, qboolean IsServer) +{ +#ifndef PRE_RELEASE_DEMO +// TEntity* ent; + float yaw; + char temp[10000]; + char *savePtr; + vec3_t origin; + vec3_t notmirrored; + float water_level = terrain->GetLandScape()->GetWaterHeight(); + + const vec3_t& terxelSize = terrain->GetLandScape()->GetTerxelSize ( ); + const vec3pair_t& bounds = terrain->GetLandScape()->GetBounds(); + + // If this entity somehow lost its collision flag then boot it + if ( !GetArea().IsCollisionEnabled ( ) ) + { + return false; + } + + // copy out the unmirrored version + VectorCopy(GetOrigin(), notmirrored); + + // we want to mirror it before determining the Z value just in case the landscape isn't perfectly mirrored + if (mMirror) + { + GetOrigin()[0] = TheRandomMissionManager->GetLandScape()->GetBounds()[0][0] + TheRandomMissionManager->GetLandScape()->GetBounds()[1][0] - GetOrigin()[0]; + GetOrigin()[1] = TheRandomMissionManager->GetLandScape()->GetBounds()[0][1] + TheRandomMissionManager->GetLandScape()->GetBounds()[1][1] - GetOrigin()[1]; + } + + // Align the instance to the center of a terxel + GetOrigin ( )[0] = bounds[0][0] + (int)((GetOrigin ( )[0] - bounds[0][0] + terxelSize[0] / 2) / terxelSize[0]) * terxelSize[0]; + GetOrigin ( )[1] = bounds[0][1] + (int)((GetOrigin ( )[1] - bounds[0][1] + terxelSize[1] / 2) / terxelSize[1]) * terxelSize[1]; + + // Make sure the bsp is resting on the ground, not below or above it + // NOTE: This check is basically saying "is this instance not a bridge", because when instances are created they are all + // placed above the world's Z boundary, EXCEPT FOR BRIDGES. So this call to GetWorldHeight will move all other instances down to + // ground level except bridges + if ( GetOrigin()[2] > terrain->GetBounds()[1][2] ) + { + if( GetFlattenRadius() ) + { + terrain->GetLandScape()->GetWorldHeight ( GetOrigin(), GetBounds ( ), false ); + GetOrigin()[2] += 5; + } + else if (IsServer) + { // if this instance does not flatten the ground around it, do a trace to more accurately determine its Z value + trace_t tr; + vec3_t end; + vec3_t start; + + VectorCopy(GetOrigin(), end); + VectorCopy(GetOrigin(), start); + // start the trace below the top height of the landscape + start[2] = TheRandomMissionManager->GetLandScape()->GetBounds()[1][2] - 1; + // end the trace at the bottom of the world + end[2] = MIN_WORLD_COORD; + + memset ( &tr, 0, sizeof ( tr ) ); + SV_Trace( &tr, start, vec3_origin, vec3_origin, end, ENTITYNUM_NONE, CONTENTS_TERRAIN|CONTENTS_SOLID, G2_NOCOLLIDE, 0); //qfalse, 0, 10 ); + + if( !(tr.contents & CONTENTS_TERRAIN) || (tr.fraction == 1.0) ) + { + if ( 0 ) + assert(0); // this should never happen + + // restore the unmirrored origin + VectorCopy( notmirrored, GetOrigin() ); + // don't spawn + return false; + } + // assign the Z-value to wherever it hit the terrain + GetOrigin()[2] = tr.endpos[2]; + // lower it a little, otherwise the bottom of the instance might be exposed if on some weird sloped terrain + GetOrigin()[2] -= 16; // FIXME: would it be better to use a number related to the instance itself like 1/5 it's height or something... + } + + } + else + { + terrain->GetLandScape()->GetWorldHeight ( GetOrigin(), GetBounds ( ), true ); + } + + // save away the origin + VectorCopy(GetOrigin(), origin); + // make sure not to spawn if in water + if (!HasObjective() && GetOrigin()[2] < water_level) + return false; + // restore the origin + VectorCopy(origin, GetOrigin()); + + if (mMirror) + { // change blue things to red for symmetric maps + if (strlen(mFilter) > 0) + { + char * blue = strstr(mFilter,"blue"); + if (blue) + { + blue[0] = (char) 0; + strcat(mFilter, "red"); + SetSide(SIDE_RED); + } + } + if (strlen(mTeamFilter) > 0) + { + char * blue = strstr(mTeamFilter,"blue"); + if (blue) + { + strcpy(mTeamFilter, "red"); + SetSide(SIDE_RED); + } + } + yaw = RAD2DEG(mArea->GetAngle() + mBaseAngle) + 180; + } + else + { + yaw = RAD2DEG(mArea->GetAngle() + mBaseAngle); + } + +/* + if( TheRandomMissionManager->GetMission()->GetSymmetric() ) + { + vec3_t diagonal; + vec3_t lineToPoint; + vec3_t mins; + vec3_t maxs; + vec3_t point; + vec3_t vProj; + vec3_t vec; + float distance; + + VectorCopy( TheRandomMissionManager->GetLandScape()->GetBounds()[1], maxs ); + VectorCopy( TheRandomMissionManager->GetLandScape()->GetBounds()[0], mins ); + VectorCopy( GetOrigin(), point ); + mins[2] = maxs[2] = point[2] = 0; + VectorSubtract( point, mins, lineToPoint ); + VectorSubtract( maxs, mins, diagonal); + + + VectorNormalize(diagonal); + VectorMA( mins, DotProduct(lineToPoint, diagonal), diagonal, vProj); + VectorSubtract(point, vProj, vec ); + distance = VectorLength(vec); + + // if an instance is too close to the imaginary diagonal that cuts the world in half, don't spawn it + // otherwise you can get overlapping instances + if( distance < GetSpacingRadius() ) + { +#ifdef _DEBUG + mAutomapSymbol = AUTOMAP_END; +#endif + if( !HasObjective() ) + { + return false; + } + } + } +*/ + + // Spawn in the bsp model + sprintf(temp, + "{\n" + "\"classname\" \"misc_bsp\"\n" + "\"bspmodel\" \"%s\"\n" + "\"origin\" \"%f %f %f\"\n" + "\"angles\" \"0 %f 0\"\n" + "\"filter\" \"%s\"\n" + "\"teamfilter\" \"%s\"\n" + "\"spacing\" \"%d\"\n" + "\"flatten\" \"%d\"\n" + "}\n", + mBsp, + GetOrigin()[0], GetOrigin()[1], GetOrigin()[2], + AngleNormalize360(yaw), + mFilter, + mTeamFilter, + (int)GetSpacingRadius(), + (int)GetFlattenRadius() + ); + + if (IsServer) + { // only allow for true spawning on the server + savePtr = sv.entityParsePoint; + sv.entityParsePoint = temp; +// VM_Call( cgvm, GAME_SPAWN_RMG_ENTITY ); + // char *s; + int bufferSize = 1024; + char buffer[1024]; + + // s = COM_Parse( (const char **)&sv.entityParsePoint ); + Q_strncpyz( buffer, sv.entityParsePoint, bufferSize ); + if ( sv.entityParsePoint && sv.entityParsePoint[0] ) + { + ge->GameSpawnRMGEntity(sv.entityParsePoint); + } + sv.entityParsePoint = savePtr; + } + + +#ifndef DEDICATED + DrawAutomapSymbol(); +#endif + Com_DPrintf( "RMG: Building '%s' spawned at (%f %f %f)\n", mBsp, GetOrigin()[0], GetOrigin()[1], GetOrigin()[2] ); + // now restore the instances un-mirrored origin + // NOTE: all this origin flipping, setting the side etc... should be done when mMirror is set + // because right after this function is called, mMirror is set to 0 but all the instance data is STILL MIRRORED -- not good + VectorCopy(notmirrored, GetOrigin()); + +#endif // PRE_RELEASE_DEMO + + return true; +} + + + diff --git a/code/RMG/RM_Instance_BSP.h b/code/RMG/RM_Instance_BSP.h new file mode 100644 index 0000000..055c3c1 --- /dev/null +++ b/code/RMG/RM_Instance_BSP.h @@ -0,0 +1,35 @@ +#pragma once +#if !defined(RM_INSTANCE_BSP_H_INC) +#define RM_INSTANCE_BSP_H_INC + +#ifdef DEBUG_LINKING + #pragma message("...including RM_Instance_BSP.h") +#endif + +class CRMBSPInstance : public CRMInstance +{ +private: + + char mBsp[MAX_QPATH]; + float mAngleVariance; + float mBaseAngle; + float mAngleDiff; + + float mHoleRadius; + +public: + + CRMBSPInstance ( CGPGroup *instance, CRMInstanceFile& instFile ); + + virtual int GetPreviewColor ( ) { return (255<<24)+255; } + + virtual float GetHoleRadius ( ) { return mHoleRadius; } + + virtual bool Spawn ( CRandomTerrain* terrain, qboolean IsServer ); + + const char* GetModelName (void) const { return(mBsp); } + float GetAngleDiff (void) const { return(mAngleDiff); } + bool GetAngularType (void) const { return(mAngleDiff != 0.0f); } +}; + +#endif \ No newline at end of file diff --git a/code/RMG/RM_Instance_Group.cpp b/code/RMG/RM_Instance_Group.cpp new file mode 100644 index 0000000..4ebefad --- /dev/null +++ b/code/RMG/RM_Instance_Group.cpp @@ -0,0 +1,343 @@ +/************************************************************************************************ + * + * RM_Instance_Group.cpp + * + * Implements the CRMGroupInstance class. This class is reponsible for parsing a + * group instance as well as spawning it into a landscape. + * + ************************************************************************************************/ + +#include "../server/exe_headers.h" + +#include "rm_headers.h" + +#include "rm_instance_group.h" + +/************************************************************************************************ + * CRMGroupInstance::CRMGroupInstance + * constructur + * + * inputs: + * settlementID: ID of the settlement being created + * + * return: + * none + * + ************************************************************************************************/ +CRMGroupInstance::CRMGroupInstance ( CGPGroup *instGroup, CRMInstanceFile& instFile ) + : CRMInstance ( instGroup, instFile ) +{ + // Grab the padding and confine radius + mPaddingSize = atof ( instGroup->FindPairValue ( "padding", va("%i", TheRandomMissionManager->GetMission()->GetDefaultPadding() ) ) ); + mConfineRadius = atof ( instGroup->FindPairValue ( "confine", "0" ) ); + + const char * automapSymName = instGroup->FindPairValue ( "automap_symbol", "none" ); + if (0 == strcmpi(automapSymName, "none")) mAutomapSymbol = AUTOMAP_NONE ; + else if (0 == strcmpi(automapSymName, "building")) mAutomapSymbol = AUTOMAP_BLD ; + else if (0 == strcmpi(automapSymName, "objective")) mAutomapSymbol = AUTOMAP_OBJ ; + else if (0 == strcmpi(automapSymName, "start")) mAutomapSymbol = AUTOMAP_START; + else if (0 == strcmpi(automapSymName, "end")) mAutomapSymbol = AUTOMAP_END ; + else if (0 == strcmpi(automapSymName, "enemy")) mAutomapSymbol = AUTOMAP_ENEMY; + else if (0 == strcmpi(automapSymName, "friend")) mAutomapSymbol = AUTOMAP_FRIEND; + else mAutomapSymbol = atoi( automapSymName ); + + // optional instance objective strings + SetMessage(instGroup->FindPairValue("objective_message","")); + SetDescription(instGroup->FindPairValue("objective_description","")); + SetInfo(instGroup->FindPairValue("objective_info","")); + + // Iterate through the sub groups to determine the instances which make up the group + instGroup = instGroup->GetSubGroups ( ); + + while ( instGroup ) + { + CRMInstance* instance; + const char* name; + int mincount; + int maxcount; + int count; + float minrange; + float maxrange; + + // Make sure only instances are specified as sub groups + assert ( 0 == stricmp ( instGroup->GetName ( ), "instance" ) ); + + // Grab the name + name = instGroup->FindPairValue ( "name", "" ); + + // Grab the range information + minrange = atof(instGroup->FindPairValue ( "minrange", "0" ) ); + maxrange = atof(instGroup->FindPairValue ( "maxrange", "0" ) ); + + // Grab the count information and randomly generate a count value + mincount = atoi(instGroup->FindPairValue ( "mincount", "1" ) ); + maxcount = atoi(instGroup->FindPairValue ( "maxcount", "1" ) ); + count = mincount; + + if ( maxcount > mincount ) + { + count += (TheRandomMissionManager->GetLandScape()->irand(0, maxcount-mincount)); + } + + // For each count create and add the instance + for ( ; count ; count -- ) + { + // Create the instance + instance = instFile.CreateInstance ( name ); + + // Skip this instance if it couldnt be created for some reason. The CreateInstance + // method will report an error so no need to do so here. + if ( NULL == instance ) + { + continue; + } + + // Set the min and max range for the instance + instance->SetFilter(mFilter); + instance->SetTeamFilter(mTeamFilter); + + // Add the instance to the list + mInstances.push_back ( instance ); + } + + // Next sub group + instGroup = instGroup->GetNext ( ); + } +} + +/************************************************************************************************ + * CRMGroupInstance::~CRMGroupInstance + * Removes all buildings and inhabitants + * + * inputs: + * none + * + * return: + * none + * + ************************************************************************************************/ +CRMGroupInstance::~CRMGroupInstance(void) +{ + // Cleanup + RemoveInstances ( ); +} + +/************************************************************************************************ + * CRMGroupInstance::SetFilter + * Sets a filter used to exclude instances + * + * inputs: + * filter: filter name + * + * return: + * none + * + ************************************************************************************************/ +void CRMGroupInstance::SetFilter( const char *filter ) +{ + rmInstanceIter_t it; + + CRMInstance::SetFilter(filter); + for(it = mInstances.begin(); it != mInstances.end(); it++) + { + (*it)->SetFilter(filter); + } +} + +/************************************************************************************************ + * CRMGroupInstance::SetTeamFilter + * Sets the filter used to exclude team based instances + * + * inputs: + * teamFilter: filter name + * + * return: + * none + * + ************************************************************************************************/ +void CRMGroupInstance::SetTeamFilter( const char *teamFilter ) +{ + rmInstanceIter_t it; + + CRMInstance::SetTeamFilter(teamFilter); + for(it = mInstances.begin(); it != mInstances.end(); it++) + { + (*it)->SetTeamFilter(teamFilter); + } +} + +/************************************************************************************************ + * CRMGroupInstance::SetMirror + * Sets the flag to mirror an instance on map + * + * inputs: + * mirror + * + * return: + * none + * + ************************************************************************************************/ +void CRMGroupInstance::SetMirror(int mirror) +{ + rmInstanceIter_t it; + + CRMInstance::SetMirror(mirror); + for(it = mInstances.begin(); it != mInstances.end(); it++) + { + (*it)->SetMirror(mirror); + } +} + + +/************************************************************************************************ + * CRMGroupInstance::RemoveInstances + * Removes all instances associated with the group + * + * inputs: + * none + * + * return: + * none + * + ************************************************************************************************/ +void CRMGroupInstance::RemoveInstances ( ) +{ + rmInstanceIter_t it; + + for(it = mInstances.begin(); it != mInstances.end(); it++) + { + delete *it; + } + + mInstances.clear(); +} + +/************************************************************************************************ + * CRMGroupInstance::PreSpawn + * Prepares the group for spawning by + * + * inputs: + * landscape: landscape to calculate the position within + * instance: instance to calculate the position for + * + * return: + * none + * + ************************************************************************************************/ +bool CRMGroupInstance::PreSpawn ( CRandomTerrain* terrain, qboolean IsServer ) +{ + rmInstanceIter_t it; + + for(it = mInstances.begin(); it != mInstances.end(); it++ ) + { + CRMInstance* instance = *it; + + instance->SetFlattenHeight ( mFlattenHeight ); + + // Add the instance to the landscape now + instance->PreSpawn ( terrain, IsServer ); + } + + return CRMInstance::PreSpawn ( terrain, IsServer ); +} + +/************************************************************************************************ + * CRMGroupInstance::Spawn + * Adds the group instance to the given landscape using the specified origin. All sub instances + * will be added to the landscape within their min and max range from the origin. + * + * inputs: + * landscape: landscape to add the instance group to + * origin: origin of the instance group + * + * return: + * none + * + ************************************************************************************************/ +bool CRMGroupInstance::Spawn ( CRandomTerrain* terrain, qboolean IsServer ) +{ + rmInstanceIter_t it; + + // Spawn all the instances associated with this group + for(it = mInstances.begin(); it != mInstances.end(); it++) + { + CRMInstance* instance = *it; + instance->SetSide(GetSide()); // which side owns it? + + // Add the instance to the landscape now + instance->Spawn ( terrain, IsServer ); + } +#ifndef DEDICATED + DrawAutomapSymbol(); +#endif + return true; +} + +/************************************************************************************************ + * CRMGroupInstance::Preview + * Renders debug information for the instance + * + * inputs: + * from: point to render the preview from + * + * return: + * none + * + ************************************************************************************************/ +void CRMGroupInstance::Preview ( const vec3_t from ) +{ + rmInstanceIter_t it; + + CRMInstance::Preview ( from ); + + // Render all the instances + for(it = mInstances.begin(); it != mInstances.end(); it++) + { + CRMInstance* instance = *it; + + instance->Preview ( from ); + } +} + +/************************************************************************************************ + * CRMGroupInstance::SetArea + * Overidden to make sure the groups area doesnt eat up any room. The collision on the + * groups area will be turned off + * + * inputs: + * area: area to set + * + * return: + * none + * + ************************************************************************************************/ +void CRMGroupInstance::SetArea ( CRMAreaManager* amanager, CRMArea* area ) +{ + rmInstanceIter_t it; + + bool collide = area->IsCollisionEnabled ( ); + + // Disable collision + area->EnableCollision ( false ); + + // Do what really needs to get done + CRMInstance::SetArea ( amanager, area ); + + // Prepare for spawn by calculating all the positions of the sub instances + // and flattening the ground below them. + for(it = mInstances.begin(); it != mInstances.end(); it++ ) + { + CRMInstance *instance = *it; + CRMArea *newarea; + vec3_t origin; + + // Drop it in the center of the group for now + origin[0] = GetOrigin()[0]; + origin[1] = GetOrigin()[1]; + origin[2] = 2500; + + // Set the area of position + newarea = amanager->CreateArea ( origin, instance->GetSpacingRadius(), instance->GetSpacingLine(), mPaddingSize, mConfineRadius, GetOrigin(), GetOrigin(), instance->GetFlattenRadius()?true:false, collide, instance->GetLockOrigin(), area->GetSymmetric ( ) ); + instance->SetArea ( amanager, newarea ); + } +} diff --git a/code/RMG/RM_Instance_Group.h b/code/RMG/RM_Instance_Group.h new file mode 100644 index 0000000..0620ae4 --- /dev/null +++ b/code/RMG/RM_Instance_Group.h @@ -0,0 +1,41 @@ +#pragma once +#if !defined(RM_INSTANCE_GROUP_H_INC) +#define RM_INSTANCE_GROUP_H_INC + +#ifdef DEBUG_LINKING + #pragma message("...including RM_Instance_Group.h") +#endif + +class CRMGroupInstance : public CRMInstance +{ +protected: + + rmInstanceList_t mInstances; + float mConfineRadius; + float mPaddingSize; + +public: + + CRMGroupInstance( CGPGroup* instGroup, CRMInstanceFile& instFile); + ~CRMGroupInstance(); + + virtual bool PreSpawn ( CRandomTerrain* terrain, qboolean IsServer ); + virtual bool Spawn ( CRandomTerrain* terrain, qboolean IsServer ); + + virtual void Preview ( const vec3_t from ); + + virtual void SetFilter ( const char *filter ); + virtual void SetTeamFilter ( const char *teamFilter ); + virtual void SetArea ( CRMAreaManager* amanager, CRMArea* area ); + + virtual int GetPreviewColor ( ) { return (255<<24)+(255<<8); } + virtual float GetSpacingRadius ( ) { return 0; } + virtual float GetFlattenRadius ( ) { return 0; } + virtual void SetMirror(int mirror); + +protected: + + void RemoveInstances ( ); +}; + +#endif \ No newline at end of file diff --git a/code/RMG/RM_Instance_Random.cpp b/code/RMG/RM_Instance_Random.cpp new file mode 100644 index 0000000..003eb35 --- /dev/null +++ b/code/RMG/RM_Instance_Random.cpp @@ -0,0 +1,187 @@ +/************************************************************************************************ + * + * RM_Instance_Random.cpp + * + * Implements the CRMRandomInstance class. This class is reponsible for parsing a + * random instance as well as spawning it into a landscape. + * + ************************************************************************************************/ + +#include "../server/exe_headers.h" + +#include "rm_headers.h" + +#include "rm_instance_random.h" + +/************************************************************************************************ + * CRMRandomInstance::CRMRandomInstance + * constructs a random instance by choosing one of the sub instances and creating it + * + * inputs: + * instGroup: parser group containing infromation about this instance + * instFile: reference to an open instance file for creating sub instances + * + * return: + * none + * + ************************************************************************************************/ +CRMRandomInstance::CRMRandomInstance ( CGPGroup *instGroup, CRMInstanceFile& instFile ) + : CRMInstance ( instGroup, instFile ) +{ + CGPGroup* group; + CGPGroup* groups[MAX_RANDOM_INSTANCES]; + int numGroups; + + // Build a list of the groups one can be chosen + for ( numGroups = 0, group = instGroup->GetSubGroups ( ); + group; + group = group->GetNext ( ) ) + { + // If this isnt an instance group then skip it + if ( stricmp ( group->GetName ( ), "instance" ) ) + { + continue; + } + + int multiplier = atoi(group->FindPairValue ( "multiplier", "1" )); + for ( ; multiplier > 0 && numGroups < MAX_RANDOM_INSTANCES; multiplier -- ) + { + groups[numGroups++] = group; + } + } + + // No groups, no instance + if ( !numGroups ) + { + // Initialize this now + mInstance = NULL; + + Com_Printf ( "WARNING: No sub instances specified for random instance '%s'\n", group->FindPairValue ( "name", "unknown" ) ); + return; + } + + // Now choose a group to parse + instGroup = groups[TheRandomMissionManager->GetLandScape()->irand(0,numGroups-1)]; + + // Create the child instance now. If the instance create fails then the + // IsValid routine will return false and this instance wont be added + mInstance = instFile.CreateInstance ( instGroup->FindPairValue ( "name", "" ) ); + mInstance->SetFilter(mFilter); + mInstance->SetTeamFilter(mTeamFilter); + + mAutomapSymbol = mInstance->GetAutomapSymbol(); + + SetMessage(mInstance->GetMessage()); + SetDescription(mInstance->GetDescription()); + SetInfo(mInstance->GetInfo()); +} + +/************************************************************************************************ + * CRMRandomInstance::~CRMRandomInstance + * Deletes the sub instance + * + * inputs: + * none + * + * return: + * none + * + ************************************************************************************************/ +CRMRandomInstance::~CRMRandomInstance(void) +{ + if ( mInstance ) + { + delete mInstance; + } +} + +void CRMRandomInstance::SetMirror(int mirror) +{ + CRMInstance::SetMirror(mirror); + if (mInstance) + { + mInstance->SetMirror(mirror); + } +} + +void CRMRandomInstance::SetFilter( const char *filter ) +{ + CRMInstance::SetFilter(filter); + if (mInstance) + { + mInstance->SetFilter(filter); + } +} + +void CRMRandomInstance::SetTeamFilter( const char *teamFilter ) +{ + CRMInstance::SetTeamFilter(teamFilter); + if (mInstance) + { + mInstance->SetTeamFilter(teamFilter); + } +} + +/************************************************************************************************ + * CRMRandomInstance::PreSpawn + * Prepares for the spawn of the random instance + * + * inputs: + * landscape: landscape object this instance will be spawned on + * + * return: + * true: preparation successful + * false: preparation failed + * + ************************************************************************************************/ +bool CRMRandomInstance::PreSpawn ( CRandomTerrain* terrain, qboolean IsServer ) +{ + assert ( mInstance ); + + mInstance->SetFlattenHeight ( GetFlattenHeight( ) ); + + return mInstance->PreSpawn ( terrain, IsServer ); +} + +/************************************************************************************************ + * CRMRandomInstance::Spawn + * Spawns the instance onto the landscape + * + * inputs: + * landscape: landscape object this instance will be spawned on + * + * return: + * true: spawn successful + * false: spawn failed + * + ************************************************************************************************/ +bool CRMRandomInstance::Spawn ( CRandomTerrain* terrain, qboolean IsServer ) +{ + mInstance->SetObjective(GetObjective()); + mInstance->SetSide(GetSide()); + + if ( !mInstance->Spawn ( terrain, IsServer ) ) + { + return false; + } + + return true; +} + +/************************************************************************************************ + * CRMRandomInstance::SetArea + * Forwards the given area off to the internal instance + * + * inputs: + * area: area to be set + * + * return: + * none + * + ************************************************************************************************/ +void CRMRandomInstance::SetArea ( CRMAreaManager* amanager, CRMArea* area ) +{ + CRMInstance::SetArea ( amanager, area ); + + mInstance->SetArea ( amanager, mArea ); +} diff --git a/code/RMG/RM_Instance_Random.h b/code/RMG/RM_Instance_Random.h new file mode 100644 index 0000000..474dfb9 --- /dev/null +++ b/code/RMG/RM_Instance_Random.h @@ -0,0 +1,40 @@ +#pragma once +#if !defined(RM_INSTANCE_RANDOM_H_INC) +#define RM_INSTANCE_RANDOM_H_INC + +#ifdef DEBUG_LINKING + #pragma message("...including RM_Instance_Random.h") +#endif + +#define MAX_RANDOM_INSTANCES 64 + +class CRMRandomInstance : public CRMInstance +{ +protected: + + CRMInstance* mInstance; + +public: + + CRMRandomInstance ( CGPGroup* instGroup, CRMInstanceFile& instFile ); + ~CRMRandomInstance ( ); + + virtual bool IsValid ( ) { return mInstance==NULL?false:true; } + + virtual int GetPreviewColor ( ) { return mInstance->GetPreviewColor ( ); } + + virtual float GetSpacingRadius ( ) { return mInstance->GetSpacingRadius ( ); } + virtual int GetSpacingLine ( ) { return mInstance->GetSpacingLine ( ); } + virtual float GetFlattenRadius ( ) { return mInstance->GetFlattenRadius ( ); } + virtual bool GetLockOrigin ( ) { return mInstance->GetLockOrigin ( ); } + + virtual void SetFilter ( const char *filter ); + virtual void SetTeamFilter ( const char *teamFilter ); + virtual void SetArea ( CRMAreaManager* amanager, CRMArea* area ); + virtual void SetMirror (int mirror); + + virtual bool PreSpawn ( CRandomTerrain* terrain, qboolean IsServer ); + virtual bool Spawn ( CRandomTerrain* terrain, qboolean IsServer ); +}; + +#endif \ No newline at end of file diff --git a/code/RMG/RM_Instance_Void.cpp b/code/RMG/RM_Instance_Void.cpp new file mode 100644 index 0000000..b092c9d --- /dev/null +++ b/code/RMG/RM_Instance_Void.cpp @@ -0,0 +1,53 @@ +/************************************************************************************************ + * + * RM_Instance_Void.cpp + * + * Implements the CRMVoidInstance class. This class just adds a void into the + * area manager to help space things out. + * + ************************************************************************************************/ + +#include "../server/exe_headers.h" + +#include "rm_headers.h" + +#include "rm_instance_void.h" + +/************************************************************************************************ + * CRMVoidInstance::CRMVoidInstance + * constructs a void instance + * + * inputs: + * instGroup: parser group containing infromation about this instance + * instFile: reference to an open instance file for creating sub instances + * + * return: + * none + * + ************************************************************************************************/ +CRMVoidInstance::CRMVoidInstance ( CGPGroup *instGroup, CRMInstanceFile& instFile ) + : CRMInstance ( instGroup, instFile ) +{ + mSpacingRadius = atof( instGroup->FindPairValue ( "spacing", "0" ) ); + mFlattenRadius = atof( instGroup->FindPairValue ( "flatten", "0" ) ); +} + +/************************************************************************************************ + * CRMVoidInstance::SetArea + * Overidden to make sure the void area doesnt continually. + * + * inputs: + * area: area to set + * + * return: + * none + * + ************************************************************************************************/ +void CRMVoidInstance::SetArea ( CRMAreaManager* amanager, CRMArea* area ) +{ + // Disable collision + area->EnableCollision ( false ); + + // Do what really needs to get done + CRMInstance::SetArea ( amanager, area ); +} diff --git a/code/RMG/RM_Instance_Void.h b/code/RMG/RM_Instance_Void.h new file mode 100644 index 0000000..dac0eca --- /dev/null +++ b/code/RMG/RM_Instance_Void.h @@ -0,0 +1,18 @@ +#pragma once +#if !defined(RM_INSTANCE_VOID_H_INC) +#define RM_INSTANCE_VOID_H_INC + +#ifdef DEBUG_LINKING + #pragma message("...including RM_Instance_Void.h") +#endif + +class CRMVoidInstance : public CRMInstance +{ +public: + + CRMVoidInstance ( CGPGroup* instGroup, CRMInstanceFile& instFile ); + + virtual void SetArea ( CRMAreaManager* amanager, CRMArea* area ); +}; + +#endif \ No newline at end of file diff --git a/code/RMG/RM_Manager.cpp b/code/RMG/RM_Manager.cpp new file mode 100644 index 0000000..83e1b76 --- /dev/null +++ b/code/RMG/RM_Manager.cpp @@ -0,0 +1,402 @@ +/************************************************************************************************ + * + * RM_Manager.cpp + * + * Implements the CRMManager class. The CRMManager class manages the arioche system. + * + ************************************************************************************************/ + +#include "../server/exe_headers.h" + +#include "rm_headers.h" +#include "../server/server.h" + +CRMObjective *CRMManager::mCurObjective=0; + +/************************************************************************************************ + * TheRandomMissionManager + * Pointer to only active CRMManager class + * + ************************************************************************************************/ +CRMManager *TheRandomMissionManager; + +/************************************************************************************************ + * CRMManager::CRMManager + * constructor + * + * inputs: + * + * return: + * + ************************************************************************************************/ +CRMManager::CRMManager(void) +{ + mLandScape = NULL; + mTerrain = NULL; + mMission = NULL; + mCurPriority = 1; + mUseTimeLimit = false; +} + +/************************************************************************************************ + * CRMManager::~CRMManager + * destructor + * + * inputs: + * + * return: + * + ************************************************************************************************/ +CRMManager::~CRMManager(void) +{ +#ifndef FINAL_BUILD + Com_Printf ("... Shutting down TheRandomMissionManager\n"); +#endif +#ifndef DEDICATED + CM_TM_Free(); +#endif + if (mMission) + { + delete mMission; + mMission = NULL; + } +} + +/************************************************************************************************ + * CRMManager::SetLandscape + * Sets the landscape and terrain object used to load a mission + * + * inputs: + * landscape - landscape object + * + * return: + * none + * + ************************************************************************************************/ +void CRMManager::SetLandScape(CCMLandScape *landscape) +{ + mLandScape = landscape; + mTerrain = landscape->GetRandomTerrain(); +} + +/************************************************************************************************ + * CRMManager::LoadMission + * Loads the mission using the mission name stored in the ar_mission cvar + * + * inputs: + * none + * + * return: + * none + * + ************************************************************************************************/ +bool CRMManager::LoadMission ( qboolean IsServer ) +{ +#ifndef PRE_RELEASE_DEMO + char instances[MAX_QPATH]; + char mission[MAX_QPATH]; + char course[MAX_QPATH]; + char map[MAX_QPATH]; + char temp[MAX_QPATH]; + +#ifndef FINAL_BUILD + Com_Printf ("--------- Random Mission Manager ---------\n\n"); + Com_Printf ("RMG version : 0.01\n\n"); +#endif + + if (!mTerrain) + { + return false; + } + + // Grab the arioche variables + Cvar_VariableStringBuffer("rmg_usetimelimit", temp, MAX_QPATH); + if (strcmpi(temp, "yes") == 0) + { + mUseTimeLimit = true; + } + Cvar_VariableStringBuffer("rmg_instances", instances, MAX_QPATH); + Cvar_VariableStringBuffer("RMG_mission", temp, MAX_QPATH); + Cvar_VariableStringBuffer("rmg_map", map, MAX_QPATH); + sprintf(mission, "%s_%s", temp, map); + Cvar_VariableStringBuffer("rmg_course", course, MAX_QPATH); + + // dump existing mission, if any + if (mMission) + { + delete mMission; + mMission = NULL; + } + + // Create a new mission file + mMission = new CRMMission ( mTerrain ); + + // Load the mission using the arioche variables + if ( !mMission->Load ( mission, instances, course ) ) + { + return false; + } + + if (mUseTimeLimit) + { + Cvar_Set("rmg_timelimit", va("%d", mMission->GetTimeLimit())); + } + else + { + Cvar_Set("rmg_timelimit", "0"); + } + + if (IsServer) + { // set the names of the teams + CGenericParser2 parser; + //CGPGroup* root; + + Cvar_VariableStringBuffer("RMG_terrain", temp, MAX_QPATH); + + /* + // Create the parser for the mission file + if(Com_ParseTextFile(va("ext_data/rmg/%s.teams", temp), parser)) + { + root = parser.GetBaseParseGroup()->GetSubGroups(); + if (0 == stricmp(root->GetName(), "teams")) + { + SV_SetConfigstring( CS_GAMETYPE_REDTEAM, root->FindPairValue ( "red", "marine" )); + SV_SetConfigstring( CS_GAMETYPE_BLUETEAM, root->FindPairValue ( "blue", "thug" )); + } + parser.Clean(); + } + */ + //rww - This is single player, no such thing. + } + + // Must have a valid landscape before we can spawn the mission + assert ( mLandScape ); + +#ifndef FINAL_BUILD + Com_Printf ("------------------------------------------\n"); +#endif + + return true; +#else + return false; +#endif // PRE_RELEASE_DEMO +} + +/************************************************************************************************ + * CRMManager::IsMissionComplete + * Determines whether or not all the arioche objectives have been met + * + * inputs: + * none + * + * return: + * true: all objectives have been completed + * false: one or more of the objectives has not been met + * + ************************************************************************************************/ +bool CRMManager::IsMissionComplete(void) +{ + if ( NULL == mMission->GetCurrentObjective ( ) ) + { + return true; + } + + return false; +} + +/************************************************************************************************ + * CRMManager::HasTimeExpired + * Determines whether or not the time limit (if one) has expired + * + * inputs: + * none + * + * return: + * true: time limit has expired + * false: time limit has not expired + * + ************************************************************************************************/ +bool CRMManager::HasTimeExpired(void) +{ +/* if (mMission->GetTimeLimit() == 0 || !mUseTimeLimit) + { // no time limit set + return false; + } + + if (mMission->GetTimeLimit() * 1000 * 60 > level.time - level.startTime) + { // we are still under our time limit + return false; + } + + // over our time limit! + return true;*/ + + return false; +} + +/************************************************************************************************ + * CRMManager::UpdateStatisticCvars + * Updates the statistic cvars with data from the game + * + * inputs: + * none + * + * return: + * none + * + ************************************************************************************************/ +void CRMManager::UpdateStatisticCvars ( void ) +{ +/* // No player set then nothing more to do + if ( mPlayer ) + { + float accuracy; + + // Calculate the accuracy + accuracy = (float)mPlayer->client->ps.persistant[PERS_SHOTS_HIT]; + accuracy /= (float)mPlayer->client->ps.persistant[PERS_SHOTS]; + accuracy *= 100.0f; + + // set the accuracy cvar + gi.Cvar_Set ( "ar_pl_accuracy", va("%d%%",(int)accuracy) ); + + // Set the # of kills cvar + gi.Cvar_Set ( "ar_kills", va("%d", mPlayer->client->ps.persistant[PERS_SCORE] ) ); + + int hours; + int mins; + int seconds; + int tens; + int millisec = (level.time - level.startTime); + + seconds = millisec / 1000; + hours = seconds / (60 * 60); + seconds -= (hours * 60 * 60); + mins = seconds / 60; + seconds -= mins * 60; + tens = seconds / 10; + seconds -= tens * 10; + + gi.Cvar_Set ( "ar_duration", va("%dhr %dmin %dsec", hours, mins, seconds ) ); + + WpnID wpnID = TheWpnSysMgr().GetFavoriteWeapon ( ); + gi.Cvar_Set ( "ar_fav_wp", CWeaponSystem::GetWpnName ( wpnID ) ); + + // show difficulty + char difficulty[MAX_QPATH]; + gi.Cvar_VariableStringBuffer("g_skill", difficulty, MAX_QPATH); + strupr(difficulty); + gi.Cvar_Set ( "ar_diff", va("&GENERIC_%s&",difficulty) ); + + // compute rank + float compositeRank = 1; + int rankMax = 3; // max rank less 1 + float timeRank = mUseTimeLimit ? (1.0f - (mins / (float)mMission->GetTimeLimit())) : 0; + float killRank = mPlayer->client->ps.persistant[PERS_SCORE] / (float)GetCharacterManager().GetAllSize(); + killRank = (killRank > 0) ? killRank : 1.0f; + float accuRank = (accuracy > 0) ? accuracy*0.01f : 1.0f; + float weapRank = 1.0f - CWeaponSystem::GetRank(wpnID); + + compositeRank = ((timeRank + killRank + accuRank + weapRank) / 3.0f) * rankMax + 1; + + if (compositeRank > 4) + compositeRank = 4; + + gi.Cvar_Set ( "ar_rank", va("&RMG_RANK%d&",((int)compositeRank)) ); + }*/ +} + +/************************************************************************************************ + * CRMManager::CompleteMission + * Does end-of-mission stuff (pause game, end screen, return to menu) + * * + * Input * + * : * + * Output / Return * + * : * + ************************************************************************************************/ +void CRMManager::CompleteMission(void) +{ + UpdateStatisticCvars ( ); + + mMission->CompleteMission(); +} + +/************************************************************************************************ + * CRMManager::FailedMission + * Does end-of-mission stuff (pause game, end screen, return to menu) + * * + * Input * + * TimeExpired: indicates if the reason failed was because of time + * Output / Return * + * : * + ************************************************************************************************/ +void CRMManager::FailedMission(bool TimeExpired) +{ + UpdateStatisticCvars ( ); + + mMission->FailedMission(TimeExpired); +} + +/************************************************************************************************ + * CRMManager::CompleteObjective + * Marks the given objective as completed + * + * inputs: + * obj: objective to set as completed + * + * return: + * none + * + ************************************************************************************************/ +void CRMManager::CompleteObjective ( CRMObjective *obj ) +{ + assert ( obj ); + + mMission->CompleteObjective ( obj ); +} + +/************************************************************************************************ + * CRMManager::Preview + * previews the random mission genration information + * + * inputs: + * from: origin being previed from + * + * return: + * none + * + ************************************************************************************************/ +void CRMManager::Preview ( const vec3_t from ) +{ + // Dont bother if we havent reached our timer yet +/* if ( level.time < mPreviewTimer ) + { + return; + } + + // Let the mission do all the previewing + mMission->Preview ( from ); + + // Another second + mPreviewTimer = level.time + 1000;*/ +} + +/************************************************************************************************ + * CRMManager::Preview + * previews the random mission genration information + * + * inputs: + * from: origin being previed from + * + * return: + * none + * + ************************************************************************************************/ +bool CRMManager::SpawnMission ( qboolean IsServer ) +{ + // Spawn the mission + mMission->Spawn ( mTerrain, IsServer ); + + return true; +} diff --git a/code/RMG/RM_Manager.h b/code/RMG/RM_Manager.h new file mode 100644 index 0000000..3b95fb6 --- /dev/null +++ b/code/RMG/RM_Manager.h @@ -0,0 +1,55 @@ +#pragma once +#if !defined(RM_MANAGER_H_INC) +#define RM_MANAGER_H_INC + +#if !defined(CM_LANDSCAPE_H_INC) +#include "../qcommon/cm_landscape.h" +#endif + +class CRMManager +{ +private: + + CRMMission* mMission; + CCMLandScape* mLandScape; + CRandomTerrain* mTerrain; + int mPreviewTimer; + int mCurPriority; + bool mUseTimeLimit; + + void UpdateStatisticCvars ( void ); + +public: + + // Constructors + CRMManager (void); + ~CRMManager (void); + + bool LoadMission ( qboolean IsServer ); + bool SpawnMission ( qboolean IsServer ); + + // Accessors + void SetLandScape (CCMLandScape *landscape); + void SetCurPriority (int priority) { mCurPriority = priority; } + + CRandomTerrain* GetTerrain (void) { return mTerrain; } + CCMLandScape* GetLandScape (void) { return mLandScape; } + CRMMission* GetMission (void) { return mMission; } + int GetCurPriority (void) { return mCurPriority; } + + void Preview ( const vec3_t from ); + + bool IsMissionComplete (void); + bool HasTimeExpired (void); + void CompleteObjective ( CRMObjective *obj ); + void CompleteMission (void); + void FailedMission (bool TimeExpired); + + // eek + static CRMObjective *mCurObjective; +}; + +extern CRMManager* TheRandomMissionManager; + + +#endif // RANDOMMISSION_H_INC \ No newline at end of file diff --git a/code/RMG/RM_Mission.cpp b/code/RMG/RM_Mission.cpp new file mode 100644 index 0000000..8f8cc3e --- /dev/null +++ b/code/RMG/RM_Mission.cpp @@ -0,0 +1,1930 @@ +/************************************************************************************************ + * + * RM_Mission.cpp + * + * implements the CRMMission class. The CRMMission class loads and manages an arioche mission + * + ************************************************************************************************/ + +#include "../server/exe_headers.h" + +#include "rm_headers.h" + +#define ARIOCHE_CLIPBRUSH_SIZE 300 +#define CVAR_OBJECTIVE 0 + +/************************************************************************************************ + * CRMMission::CRMMission + * constructor + * + * inputs: + * none + * + * return: + * none + * + ************************************************************************************************/ +CRMMission::CRMMission ( CRandomTerrain* landscape ) +{ + mCurrentObjective = NULL; + mValidPaths = false; + mValidRivers = false; + mValidNodes = false; + mValidWeapons = false; + mValidAmmo = false; + mValidObjectives = false; + mValidInstances = false; + mTimeLimit = 0; + mMaxInstancePosition = 1; + mAccuracyMultiplier = 1.0f; + mHealthMultiplier = 1.0f; + mPickupHealth = 1.0f; + mPickupArmor = 1.0f; + mPickupAmmo = 1.0f; + mPickupWeapon = 1.0f; + mPickupEquipment = 1.0f; + + mDefaultPadding = 0; + mSymmetric = SYMMETRY_NONE; + +// mCheckedEnts.clear(); + + mLandScape = landscape; + + // cut down the possible area that is 'legal' for area manager to use by 20% + vec3_t land_min, land_max; + + land_min[0] = mLandScape->GetBounds ( )[0][0] + (mLandScape->GetBounds ( )[1][0]-mLandScape->GetBounds ( )[0][0]) * 0.1f; + land_min[1] = mLandScape->GetBounds ( )[0][1] + (mLandScape->GetBounds ( )[1][1]-mLandScape->GetBounds ( )[0][1]) * 0.1f; + land_min[2] = mLandScape->GetBounds ( )[0][2] + (mLandScape->GetBounds ( )[1][2]-mLandScape->GetBounds ( )[0][2]) * 0.1f; + + land_max[0] = mLandScape->GetBounds ( )[1][0] - (mLandScape->GetBounds ( )[1][0]-mLandScape->GetBounds ( )[0][0]) * 0.1f; + land_max[1] = mLandScape->GetBounds ( )[1][1] - (mLandScape->GetBounds ( )[1][1]-mLandScape->GetBounds ( )[0][1]) * 0.1f; + land_max[2] = mLandScape->GetBounds ( )[1][2] - (mLandScape->GetBounds ( )[1][2]-mLandScape->GetBounds ( )[0][2]) * 0.1f; + + // Create a new area manager for the landscape + mAreaManager = new CRMAreaManager ( land_min, + land_max ); + + // Create a new path manager + mPathManager = new CRMPathManager ( mLandScape ); +} + +/************************************************************************************************ + * CRMMission::~CRMMission + * destructor + * + * inputs: + * none + * + * return: + * none + * + ************************************************************************************************/ +CRMMission::~CRMMission ( ) +{ + rmObjectiveIter_t oit; + rmInstanceIter_t iit; + +// mCheckedEnts.clear(); + + // Cleanup the objectives + for (oit = mObjectives.begin(); oit != mObjectives.end(); oit++) + { + delete (*oit); + } + + // Cleanup the instances + for (iit = mInstances.begin(); iit != mInstances.end(); iit++) + { + delete (*iit); + } + + if (mPathManager) + { + delete mPathManager; + mPathManager = 0; + } + + if (mAreaManager) + { + delete mAreaManager; + mAreaManager = 0; + } +} + +/************************************************************************************************ + * CRMMission::FindObjective + * searches through the missions objectives for the one with the given name + * + * inputs: + * name: name of objective to find + * + * return: + * objective: objective matching the given name or NULL if it couldnt be found + * + ************************************************************************************************/ +CRMObjective* CRMMission::FindObjective ( const char* name ) +{ + rmObjectiveIter_t it; + + for (it = mObjectives.begin(); it != mObjectives.end(); it++) + { + // Does it match? + if (!stricmp ((*it)->GetName(), name )) + { + return (*it); + } + } + + // Not found + return NULL; +} + +void CRMMission::MirrorPos(vec3_t pos) +{ + pos[0] = 1.0f - pos[0]; + pos[1] = 1.0f - pos[1]; +} + +/************************************************************************************************ + * CRMMission::ParseOrigin + * parses an origin block which includes linking to a node and absolute origins + * + * inputs: + * group: parser group containing the node or origin + * + * return: + * true: parsed successfully + * false: failed to parse + * + ************************************************************************************************/ +bool CRMMission::ParseOrigin ( CGPGroup* originGroup, vec3_t origin, vec3_t lookat, int* flattenHeight ) +{ + const char* szNodeName; + vec3_t mins; + vec3_t maxs; + + if ( flattenHeight ) + { + *flattenHeight = 66; + } + + // If no group was given then use 0,0,0 + if ( NULL == originGroup ) + { + VectorCopy ( vec3_origin, origin ); + return false; + } + + // See if attaching to a named node + szNodeName = originGroup->FindPairValue ( "node", "" ); + if ( *szNodeName ) + { + CRMNode* node; + // Find the node being attached to + node = mPathManager->FindNodeByName ( szNodeName ); + if ( node ) + { + if ( flattenHeight ) + { + if ( node->GetFlattenHeight ( ) == -1 ) + { + node->SetFlattenHeight ( 40 + mLandScape->irand(0,40) ); + } + + *flattenHeight = node->GetFlattenHeight ( ); + } + + VectorCopy(node->GetPos(), origin); + + VectorCopy ( origin, lookat ); + + int dir; + int rnd_offset = mLandScape->irand(0, DIR_MAX-1); + for (dir=0; dirPathExist(d)) + { + vec4_t tmp_pt, tmp_dir; + int pathID = node->GetPath(d); + mLandScape->GetPathInfo(pathID, 0.1f, tmp_pt, tmp_dir ); + lookat[0] = tmp_pt[0]; + lookat[1] = tmp_pt[1]; + lookat[2] = 0; + return true; + } + } + return true; + } + } + + mins[0] = atof( originGroup->FindPairValue ( "left", ".1" ) ); + mins[1] = atof( originGroup->FindPairValue ( "top", ".1" ) ); + maxs[0] = atof( originGroup->FindPairValue ( "right", ".9" ) ); + maxs[1] = atof( originGroup->FindPairValue ( "bottom", ".9" ) ); + + lookat[0] = origin[0] = mLandScape->flrand(mins[0],maxs[0]); + lookat[1] = origin[1] = mLandScape->flrand(mins[1],maxs[1]); + lookat[2] = origin[2] = 0; + + return true; +} + +/************************************************************************************************ + * CRMMission::ParseNodes + * parses all the named nodes in the file + * + * inputs: + * group: parser group containing the named nodes + * + * return: + * true: parsed successfully + * false: failed to parse + * + ************************************************************************************************/ +bool CRMMission::ParseNodes ( CGPGroup* group ) +{ + // If NULL that means this particular difficulty level has no named nodes + if ( NULL == group || mValidNodes) + { + return true; + } + + // how many nodes spaced over map? + int x_cells; + int y_cells; + + x_cells = atoi ( group->FindPairValue ( "x_cells", "3" ) ); + y_cells = atoi ( group->FindPairValue ( "y_cells", "3" ) ); + + mPathManager->CreateArray(x_cells, y_cells); + + // Loop through all the nodes and generate each as specified + for ( group = group->GetSubGroups(); + group; + group=group->GetNext() ) + { + int min_depth = atof( group->FindPairValue ( "min_depth", "0" ) ); + int max_depth = atof( group->FindPairValue ( "max_depth", "5" ) ); + int min_paths = atoi( group->FindPairValue ( "min_paths", "1" ) ); + int max_paths = atoi( group->FindPairValue ( "max_paths", "1" ) ); + + mPathManager->CreateLocation( group->GetName(), min_depth, max_depth, min_paths, max_paths ); + } + + mValidNodes = true; + return true; +} + +/************************************************************************************************ + * CRMMission::ParsePaths + * parses all path styles in the file and then generates paths + * + * inputs: + * group: parser group containing the list of path styles + * + * return: + * true: parsed successfully + * false: failed to parse + * + ************************************************************************************************/ +bool CRMMission::ParsePaths ( CGPGroup* group ) +{ + // If NULL that means this particular difficulty level has no paths + if ( NULL == group || mValidPaths) + { + return true; + } + + // path style info + float depth; + float deviation; + float breadth; + float minwidth; + float maxwidth; + int points; + + points = atoi ( group->FindPairValue ( "points", "10" ) ); + depth = atof ( group->FindPairValue ( "depth", ".31" ) ); + deviation = atof ( group->FindPairValue ( "deviation", ".025" ) ); + breadth = atof ( group->FindPairValue ( "breadth", "5" ) ); + minwidth = atof ( group->FindPairValue ( "minwidth", ".03" ) ); + maxwidth = atof ( group->FindPairValue ( "maxwidth", ".05" ) ); + + mPathManager->SetPathStyle( points, minwidth, maxwidth, depth, deviation, breadth); + + if (!mValidPaths) + { // we must create paths + mPathManager->GeneratePaths( mSymmetric ); + mValidPaths = true; + } + + return true; +} + +/************************************************************************************************ + * CRMMission::ParseRivers + * parses all river styles in the file and then generates rivers + * + * inputs: + * group: parser group containing the list of path styles + * + * return: + * true: parsed successfully + * false: failed to parse + * + ************************************************************************************************/ +bool CRMMission::ParseRivers ( CGPGroup* group ) +{ + // If NULL that means this particular difficulty level has no rivers + if ( NULL == group || mValidRivers) + { + return true; + } + + // river style info + int maxdepth; + float beddepth; + float deviation; + float breadth; + float minwidth; + float maxwidth; + int points; + string bridge_name; + + maxdepth = atoi ( group->FindPairValue ( "maxpathdepth", "5" ) ); + points = atoi ( group->FindPairValue ( "points", "10" ) ); + beddepth = atof ( group->FindPairValue ( "depth", "1" ) ); + deviation = atof ( group->FindPairValue ( "deviation", ".03" ) ); + breadth = atof ( group->FindPairValue ( "breadth", "7" ) ); + minwidth = atof ( group->FindPairValue ( "minwidth", ".01" ) ); + maxwidth = atof ( group->FindPairValue ( "maxwidth", ".03" ) ); + bridge_name= group->FindPairValue ( "bridge", "" ) ; + + mPathManager->SetRiverStyle( maxdepth, points, minwidth, maxwidth, beddepth, deviation, breadth, bridge_name); + + if (!mValidRivers && + beddepth < 1) // use a depth of 1 if we don't want any rivers + { // we must create rivers + mPathManager->GenerateRivers(); + mValidRivers = true; + } + + return true; +} + +void CRMMission::PlaceBridges() +{ + if (!mValidRivers || strlen(mPathManager->GetBridgeName()) < 1) + return; + + int max_bridges = 0; + int path; + float t; + float river_depth = mLandScape->GetLandScape()->GetWaterHeight(); + vec3_t pos, lastpos; + vec3pair_t bounds; + VectorSet(bounds[0], 0,0,0); + VectorSet(bounds[1], 0,0,0); + + // walk along paths looking for dips + for (path = 0; path < mPathManager->GetPathCount(); path++) + { + vec4_t tmp_pt, tmp_dir; + bool new_water = true; + + mLandScape->GetPathInfo(path, 0, tmp_pt, tmp_dir ); + lastpos[0] = mLandScape->GetBounds ( )[0][0] + (mLandScape->GetBounds ( )[1][0]-mLandScape->GetBounds ( )[0][0]) * tmp_pt[0]; + lastpos[1] = mLandScape->GetBounds ( )[0][1] + (mLandScape->GetBounds ( )[1][1]-mLandScape->GetBounds ( )[0][1]) * tmp_pt[1]; + lastpos[2] = mLandScape->GetBounds ( )[0][2] + (mLandScape->GetBounds ( )[1][2]-mLandScape->GetBounds ( )[0][2]) * tmp_pt[2]; + mLandScape->GetLandScape()->GetWorldHeight ( lastpos, bounds, true ); + + const float delta = 0.05f; + for (t= delta; t < 1.0f; t += delta) + { + mLandScape->GetPathInfo(path, t, tmp_pt, tmp_dir ); + pos[0] = mLandScape->GetBounds ( )[0][0] + (mLandScape->GetBounds ( )[1][0]-mLandScape->GetBounds ( )[0][0]) * tmp_pt[0]; + pos[1] = mLandScape->GetBounds ( )[0][1] + (mLandScape->GetBounds ( )[1][1]-mLandScape->GetBounds ( )[0][1]) * tmp_pt[1]; + pos[2] = mLandScape->GetBounds ( )[0][2] + (mLandScape->GetBounds ( )[1][2]-mLandScape->GetBounds ( )[0][2]) * tmp_pt[2]; + mLandScape->GetLandScape()->GetWorldHeight ( pos, bounds, true ); + + if (new_water && + lastpos[2] < river_depth && + pos[2] < river_depth && + pos[2] > lastpos[2]) + { // add a bridge + if (max_bridges < 3) + { + CRMArea* area; + CRMInstance* instance; + + max_bridges++; + + // create a single bridge + lastpos[2] = mLandScape->GetBounds ( )[0][2] + (mLandScape->GetBounds ( )[1][2]-mLandScape->GetBounds ( )[0][2]) * mPathManager->GetPathDepth(); + instance = mInstanceFile.CreateInstance ( mPathManager->GetBridgeName() ); + + if ( NULL != instance ) + { // Set the area + vec3_t zerodvec; + VectorClear(zerodvec); + area = mAreaManager->CreateArea ( lastpos, instance->GetSpacingRadius(), instance->GetSpacingLine(), GetDefaultPadding(), 0, zerodvec, pos, instance->GetFlattenRadius()?true:false, false, instance->GetLockOrigin() ); + area->EnableLookAt(false); + + instance->SetArea ( mAreaManager, area ); + mInstances.push_back ( instance ); + new_water = false; + } + } + } + else if (pos[2] > river_depth) + { // hit land again + new_water = true; + } + VectorCopy ( pos, lastpos ); + } + } +} + +void CRMMission::PlaceWallInstance(CRMInstance* instance, float xpos, float ypos, float zpos, int x, int y, float angle) +{ + if (NULL == instance) + return; + + float spacing = instance->GetSpacingRadius(); + CRMArea* area; + vec3_t origin; + vec3_t zerodvec; + VectorClear(zerodvec); + + origin[0] = xpos + spacing * x; + origin[1] = ypos + spacing * y; + origin[2] = zpos; + + // Set the area of position + area = mAreaManager->CreateArea ( origin, (spacing / 2.1f), 0, GetDefaultPadding(), 0, zerodvec, origin, instance->GetFlattenRadius()?true:false, false, instance->GetLockOrigin() ); + area->EnableLookAt(false); + area->SetAngle(angle); + instance->SetArea ( mAreaManager, area ); + + mInstances.push_back ( instance ); +} + + +/************************************************************************************************ + * CRMMission::ParseWallRect + * creates instances for walled rectangle at this node (fence) + * + * inputs: + * group: parser group containing the wall rect info + * + * return: + * true: parsed successfully + * false: failed to parse + * + ************************************************************************************************/ +bool CRMMission::ParseWallRect(CGPGroup* group , int side) +{ +#ifndef PRE_RELEASE_DEMO + CGPGroup* wallGroup = group->FindSubGroup ( "wallrect" ) ; + + // If NULL that means this particular instance has no wall rect + if ( NULL == group || NULL == wallGroup) + { + return true; + } + + const char* wallName = wallGroup->FindPairValue ( "wall_instance", "" ); + const char* cornerName = wallGroup->FindPairValue ( "corner_instance", "" ); + const char* towerName = wallGroup->FindPairValue ( "tower_instance", "" ); + const char* gateName = wallGroup->FindPairValue ( "gate_instance", "" ); + const char* ripName = wallGroup->FindPairValue ( "rip_instance", "" ); + + if ( NULL != wallName ) + { + int xcount = atoi( wallGroup->FindPairValue ( "xcount", "0" ) ); + int ycount = atoi( wallGroup->FindPairValue ( "ycount", "0" ) ); + + int gateCount = atoi( wallGroup->FindPairValue ( "gate_count", "1" ) ); + int gateMin = atoi( wallGroup->FindPairValue ( "gate_min", "0" ) ); + int gateMax = atoi( wallGroup->FindPairValue ( "gate_max", "0" ) ); + + int ripCount = atoi( wallGroup->FindPairValue ( "rip_count", "0" ) ); + int ripMin = atoi( wallGroup->FindPairValue ( "rip_min", "0" ) ); + int ripMax = atoi( wallGroup->FindPairValue ( "rip_max", "0" ) ); + + int towerCount = atoi( wallGroup->FindPairValue ( "tower_count", "0" ) ); + int towerMin = atoi( wallGroup->FindPairValue ( "tower_min", "0" ) ); + int towerMax = atoi( wallGroup->FindPairValue ( "tower_max", "0" ) ); + + if (gateMin != gateMax) + gateCount = mLandScape->irand(gateMin,gateMax); + + if (ripMin != ripMax) + ripCount = mLandScape->irand(ripMin,ripMax); + + if (towerMin != towerMax) + towerCount = mLandScape->irand(towerMin,towerMax); + + if (NULL == gateName) + gateCount = 0; + + if (NULL == towerName) + towerCount = 0; + + if (NULL == ripName) + ripCount = 0; + + const char* nodename; + CGPGroup* originGroup = group->FindSubGroup ( "origin" ); + if (originGroup) + { + nodename = originGroup->FindPairValue ( "node", "" ); + if (*nodename) + { + CRMNode* node; + // Find the node being attached to + node = mPathManager->FindNodeByName ( nodename ); + if ( node ) + { + CRMInstance* instance; + int x,y; + int halfx = xcount/2; + int halfy = ycount/2; + float xpos = mLandScape->GetBounds ( )[0][0] + (mLandScape->GetBounds ( )[1][0]-mLandScape->GetBounds ( )[0][0]) * node->GetPos()[0]; + float ypos = mLandScape->GetBounds ( )[0][1] + (mLandScape->GetBounds ( )[1][1]-mLandScape->GetBounds ( )[0][1]) * node->GetPos()[1]; + float zpos = mLandScape->GetBounds ( )[1][2] + 100; + float angle = 0; + int lastGate = 0; + int lastRip = 0; + + // corners + x = -halfx; + y = -halfy; + if (towerCount > 3 || + (towerCount > 0 && mLandScape->irand(1,2) == 1) ) + { + towerCount--; + instance = mInstanceFile.CreateInstance ( towerName ); + } + else + instance = mInstanceFile.CreateInstance ( cornerName ); + angle = (float)DEG2RAD(90); + instance->SetSide(side); + PlaceWallInstance(instance, xpos, ypos, zpos, x, y, angle); + + x = halfx; + y = -halfy; + if (towerCount > 3 || + (towerCount > 0 && mLandScape->irand(1,2) == 1) ) + { + towerCount--; + instance = mInstanceFile.CreateInstance ( towerName ); + } + else + instance = mInstanceFile.CreateInstance ( cornerName ); + angle = (float)DEG2RAD(180); + instance->SetSide(side); + PlaceWallInstance(instance, xpos, ypos, zpos, x, y, angle); + + x = halfx; + y = halfy; + if (towerCount > 3 || + (towerCount > 0 && mLandScape->irand(1,2) == 1) ) + { + towerCount--; + instance = mInstanceFile.CreateInstance ( towerName ); + } + else + instance = mInstanceFile.CreateInstance ( cornerName ); + angle = (float)DEG2RAD(270); + instance->SetSide(side); + PlaceWallInstance(instance, xpos, ypos, zpos, x, y, angle); + + x = -halfx; + y = halfy; + if (towerCount > 3 || + (towerCount > 0 && mLandScape->irand(1,2) == 1) ) + { + towerCount--; + instance = mInstanceFile.CreateInstance ( towerName ); + } + else + instance = mInstanceFile.CreateInstance ( cornerName ); + angle = DEG2RAD(0); + instance->SetSide(side); + PlaceWallInstance(instance, xpos, ypos, zpos, x, y, angle); + + // walls + angle = DEG2RAD(0); + for (x = -halfx+1; x <= halfx-1; x++) + { + if (lastGate<1 && gateCount > 0 && mLandScape->irand(1,(halfx+halfy)/gateCount) == 1) + { // gate + gateCount--; + lastGate = 3; + instance = mInstanceFile.CreateInstance ( gateName ); + } + else if (lastRip<1 && ripCount > 0 && mLandScape->irand(1,(halfx+halfy)/ripCount) == 1) + { // damaged fence + ripCount--; + lastRip = 3; + instance = mInstanceFile.CreateInstance ( ripName ); + } + else + { // just a wall + instance = mInstanceFile.CreateInstance ( wallName ); + lastRip--; + lastGate--; + } + instance->SetSide(side); + PlaceWallInstance(instance, xpos, ypos, zpos, x, -halfy, angle); + } + for (x = -halfx+1; x <= halfx-1; x++) + { + if (lastGate<1 && gateCount > 0 && mLandScape->irand(1,(halfx+halfy)/gateCount) == 1) + { // gate + gateCount--; + lastGate = 3; + instance = mInstanceFile.CreateInstance ( gateName ); + } + else if (lastRip<1 && ripCount > 0 && mLandScape->irand(1,(halfx+halfy)/ripCount) == 1) + { // damaged fence + ripCount--; + lastRip = 3; + instance = mInstanceFile.CreateInstance ( ripName ); + } + else + { // just a wall + instance = mInstanceFile.CreateInstance ( wallName ); + lastRip--; + lastGate--; + } + instance->SetSide(side); + PlaceWallInstance(instance, xpos, ypos, zpos, x, halfy, angle); + } + + angle = (float)DEG2RAD(90); + for (y = -halfy+1; y <= halfy-1; y++) + { + if (lastGate<1 && gateCount > 0 && mLandScape->irand(1,(halfx+halfy)/gateCount) == 1) + { // gate + gateCount--; + lastGate = 3; + instance = mInstanceFile.CreateInstance ( gateName ); + } + else if (lastRip<1 && ripCount > 0 && mLandScape->irand(1,(halfx+halfy)/ripCount) == 1) + { // damaged fence + ripCount--; + lastRip = 3; + instance = mInstanceFile.CreateInstance ( ripName ); + } + else + { // just a wall + instance = mInstanceFile.CreateInstance ( wallName ); + lastRip--; + lastGate--; + } + instance->SetSide(side); + PlaceWallInstance(instance, xpos, ypos, zpos, -halfx, y, angle); + } + for (y = -halfy+1; y <= halfy-1; y++) + { + if (lastGate<1 && gateCount > 0 && mLandScape->irand(1,(halfx+halfy)/gateCount) == 1) + { // gate + gateCount--; + lastGate = 3; + instance = mInstanceFile.CreateInstance ( gateName ); + } + else if (lastRip<1 && ripCount > 0 && mLandScape->irand(1,(halfx+halfy)/ripCount) == 1) + { // damaged fence + ripCount--; + lastRip = 3; + instance = mInstanceFile.CreateInstance ( ripName ); + } + else + { // just a wall + instance = mInstanceFile.CreateInstance ( wallName ); + lastRip--; + lastGate--; + } + instance->SetSide(side); + PlaceWallInstance(instance, xpos, ypos, zpos, halfx, y, angle); + } + } + } + } + } + else + return false; +#endif // #ifndef PRE_RELEASE_DEMO + + return true; +} + + +/************************************************************************************************ + * CRMMission::ParseInstancesOnPath + * creates instances on path between nodes + * + * inputs: + * group: parser group containing the defenses, other instances on the path between nodes + * + * return: + * true: parsed successfully + * false: failed to parse + * + ************************************************************************************************/ +bool CRMMission::ParseInstancesOnPath ( CGPGroup* group ) +{ +#ifndef PRE_RELEASE_DEMO + CGPGroup* defenseGroup; + for ( defenseGroup = group->GetSubGroups(); + defenseGroup; + defenseGroup=defenseGroup->GetNext() ) + if (stricmp ( defenseGroup->GetName ( ), "defenses" )==0 || + stricmp ( defenseGroup->GetName(), "instanceonpath")==0) + { + const char* defName = defenseGroup->FindPairValue ( "instance", "" ); + if ( *defName ) + { + float minpos; + float maxpos; + int mincount; + int maxcount; + + // how far along path does this get placed? + minpos = atof( defenseGroup->FindPairValue ( "minposition", "0.5" ) ); + maxpos = atof( defenseGroup->FindPairValue ( "maxposition", "0.5" ) ); + mincount = atoi( defenseGroup->FindPairValue ( "mincount", "1" ) ); + maxcount = atoi( defenseGroup->FindPairValue ( "maxcount", "1" ) ); + + const char* nodename; + CGPGroup* originGroup = group->FindSubGroup ( "origin" ); + if (originGroup) + { + nodename = originGroup->FindPairValue ( "node", "" ); + if (*nodename) + { + CRMNode* node; + // Find the node being attached to + node = mPathManager->FindNodeByName ( nodename ); + if ( node ) + { + int dir; + // look at each connection from this node to others, if there is a path, create a defense + for (dir=0; dirPathExist(dir)) + { // path leads out of this node + CRMArea* area; + CRMInstance* instance; + float spacing; + vec3_t origin; + vec3_t lookat; + vec4_t tmp_pt, tmp_dir; + int n,num_insts = mLandScape->irand(mincount,maxcount); + int pathID = node->GetPath(dir); + + if (0 == num_insts) + continue; + + float posdelta = (maxpos - minpos) / num_insts; + + for (n=0; nFindPairValue ( "spacing", "0" ) ); + if ( spacing ) + { + instance->SetSpacingRadius ( spacing ); + } + + instance->SetFilter(group->FindPairValue("filter", "")); + instance->SetTeamFilter(group->FindPairValue("teamfilter", "")); + + if (strstr(instance->GetTeamFilter(),"red")) + instance->SetSide(SIDE_RED); + else if (strstr(instance->GetTeamFilter(),"blue")) + instance->SetSide(SIDE_BLUE); + + float pos_along_path = mLandScape->flrand(minpos + posdelta*n, minpos + posdelta*(n+1)); + float look_along_path = atof( defenseGroup->FindPairValue ( "pathalign", "1" ) ) ; + mLandScape->GetPathInfo (pathID, pos_along_path, tmp_pt, tmp_dir ); + origin[0] = tmp_pt[0]; + origin[1] = tmp_pt[1]; + + mLandScape->GetPathInfo (pathID, look_along_path, tmp_dir, tmp_pt ); + lookat[0] = tmp_pt[0]; + lookat[1] = tmp_pt[1]; + + origin[0] = mLandScape->GetBounds ( )[0][0] + (mLandScape->GetBounds ( )[1][0]-mLandScape->GetBounds ( )[0][0]) * origin[0]; + origin[1] = mLandScape->GetBounds ( )[0][1] + (mLandScape->GetBounds ( )[1][1]-mLandScape->GetBounds ( )[0][1]) * origin[1]; + origin[2] = mLandScape->GetBounds ( )[0][2] ; + + // look at a point along the path at this location + lookat[0] = mLandScape->GetBounds ( )[0][0] + (mLandScape->GetBounds ( )[1][0]-mLandScape->GetBounds ( )[0][0]) * lookat[0]; + lookat[1] = mLandScape->GetBounds ( )[0][1] + (mLandScape->GetBounds ( )[1][1]-mLandScape->GetBounds ( )[0][1]) * lookat[1]; + lookat[2] = 0; + + // Fixed height? (used for bridges) + if ( !atoi(group->FindPairValue ( "nodrop", "0" )) ) + { + origin[2] = mLandScape->GetBounds ( )[1][2] + 100; + } + + // Set the area of position + area = mAreaManager->CreateArea ( origin, instance->GetSpacingRadius(), instance->GetSpacingLine(), GetDefaultPadding(), 0, origin, lookat, instance->GetFlattenRadius()?true:false, true, instance->GetLockOrigin(), mSymmetric ); + area->EnableLookAt(false); + + if ( node->GetFlattenHeight ( ) == -1 ) + { + node->SetFlattenHeight ( 66 + mLandScape->irand(0,40) ); + } + instance->SetFlattenHeight ( node->GetFlattenHeight ( ) ); + + instance->SetArea ( mAreaManager, area ); + + mInstances.push_back ( instance ); + } + } + } + } + } + } + else + return false; + } + else + return false; + + } +#endif // #ifndef PRE_RELEASE_DEMO + + return true; +} + +/************************************************************************************************ + * CRMMission::ParseInstance + * Parses an individual instance + * + * inputs: + * group: parser group containing the list of instances + * + * return: + * true: instances parsed successfully + * false: instances failed to parse + * + ************************************************************************************************/ +bool CRMMission::ParseInstance ( CGPGroup* group ) +{ + CRMArea* area; + CRMInstance* instance; + float spacing; + vec3_t origin; + vec3_t lookat; + int flattenHeight; + vec3_t zerodvec; + + VectorClear(zerodvec); + + // create fences / walls + + // Create the instance using the instance file helper class + instance = mInstanceFile.CreateInstance ( group->GetName ( ) ); + + // Failed to create, not good + if ( NULL == instance ) + { + return false; + } + + // If a spacing radius was specified then override the one thats + // in the instance + spacing = atof( group->FindPairValue ( "spacing", "0" ) ); + if ( spacing ) + { + instance->SetSpacingRadius ( spacing ); + } + + instance->SetFilter(group->FindPairValue("filter", "")); + instance->SetTeamFilter(group->FindPairValue("teamfilter", "")); + + if (strstr(instance->GetTeamFilter(),"red")) + instance->SetSide( SIDE_RED); + else if (strstr(instance->GetTeamFilter(),"blue")) + instance->SetSide( SIDE_BLUE ); + +// ParseWallRect(group, instance->GetSide()); + + // Get its origin now + ParseOrigin ( group->FindSubGroup ( "origin" ), origin, lookat, &flattenHeight ); + origin[0] = mLandScape->GetBounds ( )[0][0] + (mLandScape->GetBounds ( )[1][0]-mLandScape->GetBounds ( )[0][0]) * origin[0]; + origin[1] = mLandScape->GetBounds ( )[0][1] + (mLandScape->GetBounds ( )[1][1]-mLandScape->GetBounds ( )[0][1]) * origin[1]; + origin[2] = mLandScape->GetBounds ( )[0][2] + (mLandScape->GetBounds ( )[1][2]-mLandScape->GetBounds ( )[0][2]) * origin[2]; + + lookat[0] = mLandScape->GetBounds ( )[0][0] + (mLandScape->GetBounds ( )[1][0]-mLandScape->GetBounds ( )[0][0]) * lookat[0]; + lookat[1] = mLandScape->GetBounds ( )[0][1] + (mLandScape->GetBounds ( )[1][1]-mLandScape->GetBounds ( )[0][1]) * lookat[1]; + lookat[2] = mLandScape->GetBounds ( )[0][2] + (mLandScape->GetBounds ( )[1][2]-mLandScape->GetBounds ( )[0][2]) * lookat[2]; + + // Fixed height? (used for bridges) + if ( !atoi(group->FindPairValue ( "nodrop", "0" )) ) + { + origin[2] = mLandScape->GetBounds ( )[1][2] + 100; + } + + // Set the area of position + area = mAreaManager->CreateArea ( origin, instance->GetSpacingRadius(), instance->GetSpacingLine(), GetDefaultPadding(), 0, zerodvec, lookat, instance->GetFlattenRadius()?true:false, true, instance->GetLockOrigin(), mSymmetric ); + instance->SetArea ( mAreaManager, area ); + instance->SetFlattenHeight ( flattenHeight ); + + mInstances.push_back ( instance ); + + // create defenses? + ParseInstancesOnPath(group ); + + return true; +} + + +/************************************************************************************************ + * CRMMission::ParseInstances + * parses all instances within the mission and populates the instance list + * + * inputs: + * group: parser group containing the list of instances + * + * return: + * true: instances parsed successfully + * false: instances failed to parse + * + ************************************************************************************************/ +bool CRMMission::ParseInstances ( CGPGroup* group ) +{ +#ifndef PRE_RELEASE_DEMO + // If NULL that means this particular difficulty level has no instances + if ( NULL == group ) + { + return true; + } + + // Loop through all the instances in the mission and add each + // to the master list of instances + for ( group = group->GetSubGroups(); + group; + group=group->GetNext() ) + { + ParseInstance ( group ); + } +#endif // #ifndef PRE_RELEASE_DEMO + + return true; +} + +/************************************************************************************************ + * CRMMission::ParseObjectives + * parses all objectives within the mission and populates the objective list + * + * inputs: + * group: parser group containing the list of objectives + * + * return: + * true: objectives parsed successfully + * false: objectives failed to parse + * + ************************************************************************************************/ +bool CRMMission::ParseObjectives ( CGPGroup* group ) +{ + // If NULL that means this particular difficulty level has no objectives + if ( NULL == group ) + { + return true; + } + + // Loop through all the objectives in the mission and add each + // to the master list of objectives + for ( group = group->GetSubGroups(); + group; + group=group->GetNext() ) + { + CRMObjective* objective; + + // Create the new objective + objective = new CRMObjective ( group ); + + mObjectives.push_back ( objective ); + } + + mValidObjectives = true; + + return true; +} + +/************************************************************************************************ + * CRMMission::ParseAmmo + * parses the given ammo list and sets the necessary ammo cvars to grant those + * weapons to the players + * + * inputs: + * ammos: parser group containing the ammo list + * + * return: + * true: ammo parsed successfully + * false: ammo failed to parse + * + ************************************************************************************************/ +bool CRMMission::ParseAmmo ( CGPGroup* ammos ) +{ +/* CGPValue* ammo; + + // No weapons, no success + if ( NULL == ammos ) + { + return false; + } + + if (0 == gi.Cvar_VariableIntegerValue("ar_wpnselect")) + { + // Make sure the ammo cvars are all reset so ammo from the last map or + // another difficulty level wont carry over + CWeaponSystem::ClearAmmoCvars (TheWpnSysHelper()); + + ammo = ammos->GetPairs ( ); + + // Loop through the weapons listed and grant them to the player + while ( ammo ) + { + // Grab the weapons ID + AmmoID id = CWeaponSystem::GetAmmoID ( ammo->GetName ( ) ); + + // Now set the weapon cvar with the given data + TheWpnSysHelper().CvarSet ( CWeaponSystem::GetAmmoCvar ( id ), ammo->GetTopValue ( ), CVAR_AMMO ); + + // Move on to the next weapon + ammo = (CGPValue*)ammo->GetNext(); + } + } +*/ + mValidAmmo = true; + + return true; +} + +/************************************************************************************************ + * CRMMission::ParseWeapons + * parses the given weapon list and sets the necessary weapon cvars to grant those + * weapons to the players + * + * inputs: + * weapons: parser group containing the weapons list + * + * return: + * true: weapons parsed successfully + * false: weapons failed to parse + * + ************************************************************************************************/ +bool CRMMission::ParseWeapons ( CGPGroup* weapons ) +{ +/* CGPValue* weapon; + WpnID id; + + // No weapons, no success + if ( NULL == weapons ) + { + return false; + } + + if (0 == gi.Cvar_VariableIntegerValue("ar_wpnselect")) + { + // Make sure the weapon cvars are all reset so weapons from the last map or + // another difficulty level wont carry over + CWeaponSystem::ClearWpnCvars (TheWpnSysHelper()); + + id = NULL_WpnID; + weapon = weapons->GetPairs ( ); + + // Loop through the weapons listed and grant them to the player + while ( weapon ) + { + // Grab the weapons ID + id = CWeaponSystem::GetWpnID ( weapon->GetName ( ) ); + + // Now set the weapon cvar with the given data + TheWpnSysHelper().CvarSet ( CWeaponSystem::GetWpnCvar ( id ), weapon->GetTopValue ( ) ); + + // Move on to the next weapon + weapon = (CGPValue*)weapon->GetNext(); + } + + // If we found at least one weapon then ready the last one in the list + if ( NULL_WpnID != id ) + { + TheWpnSysHelper().CvarSet("wp_righthand", va("%i/%i/0/0",id,CWeaponSystem::GetClipSize ( id )), CVAR_MISC ); + } + } +*/ + mValidWeapons = true; + + return true; +} + +/************************************************************************************************ + * CRMMission::ParseOutfit + * parses the outfit (weapons and ammo) + * + * inputs: + * outfit: parser group containing the outfit + * + * return: + * true: weapons and ammo parsed successfully + * false: failed to parse + * + ************************************************************************************************/ +bool CRMMission::ParseOutfit ( CGPGroup* outfit ) +{ + if ( NULL == outfit ) + { + return false; + } + +/* // Its ok to fail parsing weapons as long as weapons have + // already been parsed at some point + if ( !ParseWeapons ( ParseRandom ( outfit->FindSubGroup ( "weapons" ) ) ) ) + { + if ( !mValidWeapons ) + { + return false; + } + } + + // Its ok to fail parsing ammo as long as ammo have + // already been parsed at some point + if ( !ParseAmmo ( ParseRandom ( outfit->FindSubGroup ( "ammo" ) ) ) ) + { + if ( !mValidAmmo) + { + return false; + } + } +*/ + return true; +} + +/************************************************************************************************ + * CRMMission::ParseRandom + * selects a random sub group with from all within this one + * + * inputs: + * random: parser group containing the various subgroups + * + * return: + * true: parsed successfuly + * false: failed to parse + * + ************************************************************************************************/ +CGPGroup* CRMMission::ParseRandom ( CGPGroup* randomGroup ) +{ + if (NULL == randomGroup) + return NULL; + + CGPGroup* group; + CGPGroup* groups[MAX_RANDOM_CHOICES]; + int numGroups; + + // Build a list of the groups one can be chosen + for ( numGroups = 0, group = randomGroup->GetSubGroups ( ); + group; + group = group->GetNext ( ) ) + { + if ( stricmp ( group->GetName ( ), "random_choice" ) ) + { + continue; + } + + int weight = atoi ( group->FindPairValue ( "random_weight", "1" ) ); + while (weight-- > 0) + groups[numGroups++] = group; + assert (numGroups <= MAX_RANDOM_CHOICES); + } + + // No groups! + if ( !numGroups ) + { + return randomGroup; + } + + // Now choose a group to parse + return groups[mLandScape->irand(0,numGroups-1)]; +} + +/************************************************************************************************ + * CRMMission::ParseDifficulty + * parses the given difficulty and populates the mission with its data + * + * inputs: + * difficulty: parser group containing the difficulties info + * + * return: + * true: difficulty parsed successfully + * false: difficulty failed to parse + * + ************************************************************************************************/ +bool CRMMission::ParseDifficulty ( CGPGroup* difficulty, CGPGroup *parent ) +{ + // If a null difficulty then stop the recursion. Make sure to + // return true here so the parsing doesnt fail + if ( NULL == difficulty ) + { + return true; + } + + if (difficulty->GetParent()) + { + parent = difficulty->GetParent(); + } + + // is map supposed to be symmetric? + mSymmetric = (symmetry_t)atoi(parent->FindPairValue ( "symmetric", "0" )); + mBackUpPath = atoi(parent->FindPairValue ( "backuppath", "0" )); + if( mSymmetric ) + {// pick between the 2 starting corners -- yes this is a hack + mSymmetric = SYMMETRY_TOPLEFT; + if( TheRandomMissionManager->GetLandScape()->irand(0, 1) ) + { + mSymmetric = SYMMETRY_BOTTOMRIGHT; + } + } + + mDefaultPadding = atoi(parent->FindPairValue ( "padding", "0" )); + + // Parse the nodes + if ( !ParseNodes ( ParseRandom ( difficulty->FindSubGroup ( "nodes" ) ) ) ) + { + return false; + } + + // Parse the paths + if ( !ParsePaths ( ParseRandom ( difficulty->FindSubGroup ( "paths" ) ) ) ) + { + return false; + } + + // Parse the rivers + if ( !ParseRivers ( ParseRandom ( difficulty->FindSubGroup ( "rivers" ) ) ) ) + { + return false; + } + + // Handle inherited properties + if ( !ParseDifficulty ( parent->FindSubGroup ( difficulty->FindPairValue ( "inherit", "" ) ), parent ) ) + { + return false; + } + + // parse the player's outfit (weapons and ammo) + if ( !ParseOutfit( ParseRandom ( difficulty->FindSubGroup ( "outfit" ) ) ) ) + { + // Its ok to fail parsing weapons as long as weapons have + // already been parsed at some point + if ( !ParseWeapons ( ParseRandom ( difficulty->FindSubGroup ( "weapons" ) ) ) ) + { + if ( !mValidWeapons ) + { + return false; + } + } + + // Its ok to fail parsing ammo as long as ammo have + // already been parsed at some point + if ( !ParseAmmo ( ParseRandom ( difficulty->FindSubGroup ( "ammo" ) ) ) ) + { + if ( !mValidAmmo) + { + return false; + } + } + } + + // Its ok to fail parsing objectives as long as objectives have + // already been parsed at some point + if ( !ParseObjectives ( ParseRandom ( difficulty->FindSubGroup ( "objectives" ) ) ) ) + { + if ( !mValidObjectives ) + { + return false; + } + } + + // Set the cvars with the available values + Cvar_Set ( "mi_health", difficulty->FindPairValue ( "health", "100" ) ); + Cvar_Set ( "mi_armor", difficulty->FindPairValue ( "armor", "0" ) ); + + // Parse out the timelimit + mTimeLimit = atol(difficulty->FindPairValue("timelimit", "0")); + + // NPC multipliers + mAccuracyMultiplier = atof(difficulty->FindPairValue("npcaccuracy", "1")); + mHealthMultiplier = atof(difficulty->FindPairValue("npchealth", "1")); + + // keep only some of RMG pickups 1 = 100% + mPickupHealth = atof(difficulty->FindPairValue("pickup_health", "1")); + mPickupArmor = atof(difficulty->FindPairValue("pickup_armor", "1")); + mPickupAmmo = atof(difficulty->FindPairValue("pickup_ammo", "1")); + mPickupWeapon = atof(difficulty->FindPairValue("pickup_weapon", "1")); + mPickupEquipment = atof(difficulty->FindPairValue("pickup_equipment", "1")); + + // Its ok to fail parsing instances as long as instances have + // already been parsed at some point + if ( !ParseInstances ( ParseRandom ( difficulty->FindSubGroup ( "instances" ) ) ) ) + { + if ( !mValidInstances ) + { + return false; + } + } + + return true; +} + +/************************************************************************************************ + * CRMMission::Load + * Loads the given mission using the given difficulty level + * + * inputs: + * name: Name of the mission to load (should only be the name rather than the full path) + * difficulty: difficulty level to load + * + * return: + * true: mission successfully loaded + * false: mission failed to load + * + ************************************************************************************************/ +bool CRMMission::Load ( const char* mission, const char* instances, const char* difficulty ) +{ + CGenericParser2 parser; + CGPGroup* root; + + // Create the parser for the mission file + if(!Com_ParseTextFile(va("ext_data/rmg/%s.mission", mission), parser)) + { + if(!Com_ParseTextFile(va("ext_data/arioche/%s.mission", mission), parser)) + { + Com_Printf("ERROR: Failed to open mission file '%s'\n", mission); + return false; + } + } + + // Grab the root parser groop and make sure its mission, otherwise this + // isnt a valid mission file + root = parser.GetBaseParseGroup()->GetSubGroups(); + if(stricmp(root->GetName(), "mission")) + { + Com_Printf("ERROR: '%s' is not a valid mission file\n", mission ); + parser.Clean(); + return false; + } + + // Grab the mission description and set the cvar for it + mDescription = root->FindPairValue ( "description", "" ); +// Cvar_Set("ar_obj_main0",mDescription.c_str(), CVAR_OBJECTIVE); +// Cvar_Set("ar_obj_maincom0", "&OBJECTIVES_INPROGRESS&", CVAR_OBJECTIVE); +// Cvar_SetValue ("ar_cur_objective", 0, CVAR_OBJECTIVE); + + string mInfo = root->FindPairValue ( "info", "" ); +// Cvar_Set("ar_obj_info0",mInfo.c_str(), CVAR_OBJECTIVE); + + mExitScreen = root->FindPairValue ( "exitScreen", "" ); + mTimeExpiredScreen = root->FindPairValue ( "TimeExpiredScreen", "