ingame_player.menu 24 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174
  1. //------------------------------------------------------------------------------------------------
  2. // PLAYER SETUP MENU - ingame_player
  3. //
  4. // Choose player skin, name
  5. // Choose light saber
  6. // Allocate force powers
  7. //
  8. // g_gametypes
  9. // "Free For All" 0
  10. // "Duel" 3
  11. // "Power Duel" 4
  12. // "Team FFA" 6
  13. // "Siege" 7
  14. // "Capture the Flag" 8
  15. //
  16. // ui_net_gametype
  17. // 0 = FFA
  18. // 1 = DUEL
  19. // 2 = POWER DUEL
  20. // 3 = TEAM FFA
  21. // 4 = SIEGE
  22. // 5 = CTF
  23. //------------------------------------------------------------------------------------------------
  24. {
  25. menuDef
  26. {
  27. name "ingame_player"
  28. visible 0
  29. fullscreen 0
  30. outOfBoundsClick // this closes the window if it gets a click out of the rectangle
  31. rect 20 25 600 440
  32. focusColor 1 1 1 1 // Focus color for text and items
  33. style 1
  34. border 1
  35. descX 320
  36. descY 428
  37. descScale 1
  38. descColor 1 .682 0 .8
  39. descAlignment ITEM_ALIGN_CENTER
  40. onOpen
  41. {
  42. uiScript update "ui_GetName"
  43. uiScript updateForceStatus
  44. hide highlights
  45. }
  46. onClose
  47. {
  48. uiScript update "ui_SetName"
  49. uiScript updateForceStatus
  50. hide highlights
  51. }
  52. //------------------------------------------------------------------------------------------------
  53. // Overall window backdrop
  54. //------------------------------------------------------------------------------------------------
  55. itemDef
  56. {
  57. name background_pic
  58. group none
  59. style WINDOW_STYLE_SHADER
  60. rect 0 0 600 440
  61. background "gfx/menus/menu_box_ingame"
  62. forecolor 1 1 1 1
  63. visible 1
  64. decoration
  65. }
  66. // Button background at bottom of screen
  67. itemDef
  68. {
  69. name background
  70. group none
  71. style WINDOW_STYLE_FILLED
  72. rect 0 420 600 20
  73. backcolor .298 .305 .690 1
  74. forecolor .549 .854 1 1
  75. visible 1
  76. decoration
  77. }
  78. //------------------------------------------------------------------------------------------------
  79. // Player Configuration
  80. //------------------------------------------------------------------------------------------------
  81. // Player Configuration title
  82. itemDef
  83. {
  84. name playerconfigtitle_glow
  85. group none
  86. style WINDOW_STYLE_SHADER
  87. background "gfx/menus/menu_buttonback" // Frame around button
  88. rect 20 3 560 30
  89. forecolor 1 1 1 1
  90. visible 1
  91. decoration
  92. }
  93. itemDef
  94. {
  95. name playerconfigtitle
  96. style WINDOW_STYLE_EMPTY
  97. text @MENUS_PLAYER_CONFIGURATION
  98. rect 20 5 560 28
  99. textalign ITEM_ALIGN_CENTER
  100. textalignx 280
  101. textaligny 2
  102. outlinecolor 1 .5 .5 .5
  103. backcolor 0 0 0 0
  104. font 3
  105. textscale 1
  106. forecolor .549 .854 1 1
  107. border 0
  108. bordercolor 0 0 0 0
  109. visible 1
  110. }
  111. //------------------------------------------------------------------------------------------------
  112. // Name entry field
  113. //------------------------------------------------------------------------------------------------
  114. itemDef
  115. {
  116. name nameglow
  117. group mods
  118. style WINDOW_STYLE_SHADER
  119. rect 25 31 300 24
  120. background "gfx/menus/menu_buttonback" // Frame around button
  121. forecolor 1 1 1 1
  122. visible 0
  123. decoration
  124. }
  125. itemDef
  126. {
  127. name namefield
  128. type ITEM_TYPE_EDITFIELD
  129. style 0
  130. text @MENUS_NAME1
  131. cvar "ui_Name"
  132. maxchars 26
  133. rect 20 33 300 20
  134. textalign ITEM_ALIGN_LEFT
  135. textalignx 0
  136. textaligny -5
  137. font 2
  138. textscale 1
  139. forecolor 1 .682 0 1
  140. outlinecolor 1 .5 .5 .5
  141. backcolor 0 0 0 0
  142. border 0
  143. bordercolor 0 0 0 0
  144. descText @MENUS_ENTER_YOUR_NAME_HERE
  145. visible 1
  146. action
  147. {
  148. play "sound/interface/button1"
  149. }
  150. mouseenter
  151. {
  152. show nameglow
  153. }
  154. mouseexit
  155. {
  156. hide nameglow
  157. }
  158. }
  159. //------------------------------------------------------------------------------------------------
  160. // Player Model label
  161. //------------------------------------------------------------------------------------------------
  162. // Box around character models
  163. itemDef
  164. {
  165. name background
  166. group none
  167. style WINDOW_STYLE_EMPTY
  168. rect 15 65 570 230
  169. border 1
  170. bordercolor .298 .305 .690 1
  171. bordersize 2
  172. forecolor 1 1 1 1
  173. visible 1
  174. decoration
  175. }
  176. // Title box for character models
  177. itemDef
  178. {
  179. name background
  180. group none
  181. style WINDOW_STYLE_FILLED
  182. rect 17 57 570 20
  183. backcolor .298 .305 .690 1
  184. forecolor .549 .854 1 1
  185. visible 1
  186. decoration
  187. }
  188. itemDef
  189. {
  190. name modeltitle
  191. style 0
  192. text @MENUS_CHARACTER_MODEL
  193. rect 3 52 570 0
  194. textalign ITEM_ALIGN_CENTER
  195. textalignx 285
  196. // textaligny 12
  197. outlinecolor 1 .5 .5 .5
  198. backcolor 0 0 0 0
  199. // font 4
  200. // textscale 1
  201. font 2
  202. textscale 1
  203. forecolor .549 .854 1 1
  204. border 0
  205. bordercolor 0 0 0 0
  206. visible 1
  207. action
  208. {
  209. play "sound/interface/button1"
  210. }
  211. }
  212. //------------------------------------------------------------------------------------------------
  213. // Skin/Team Color Chooser
  214. //------------------------------------------------------------------------------------------------
  215. itemDef
  216. {
  217. name setcolor
  218. style 0
  219. text @MENUS_TEAM_COLOR
  220. ownerdraw UI_SKIN_COLOR
  221. rect 50 78 160 20
  222. textalign ITEM_ALIGN_LEFT
  223. textalignx 0
  224. textaligny -5
  225. outlinecolor 1 .5 .5 .5
  226. backcolor 0 0 0 0
  227. font 2
  228. textscale .8
  229. forecolor 1 .682 0 1
  230. border 0
  231. bordercolor 0 0 0 0
  232. descText @MENUS_CHOOSE_THE_COLOR_FOR
  233. cvarTest "ui_about_gametype"
  234. hideCvar
  235. {
  236. "6" ;
  237. "7" ;
  238. "8" ;
  239. "9"
  240. }
  241. visible 1
  242. action
  243. {
  244. play "sound/interface/button1"
  245. }
  246. }
  247. // Skin/Team Color Chooser
  248. itemDef
  249. {
  250. name setcolor
  251. style 0
  252. text @MENUS_TEAM_COLOR
  253. ownerdraw UI_SKIN_COLOR
  254. rect 50 78 160 20
  255. textalign ITEM_ALIGN_LEFT
  256. textalignx 0
  257. textaligny -5
  258. outlinecolor 1 .5 .5 .5
  259. backcolor 0 0 0 0
  260. font 2
  261. textscale .8
  262. forecolor 0.7 0.7 0.7 1
  263. border 0
  264. bordercolor 0 0 0 0
  265. descText @MENUS_CHOOSE_THE_COLOR_FOR
  266. cvarTest "ui_about_gametype"
  267. showCvar
  268. {
  269. "6" ;
  270. "7" ;
  271. "8" ;
  272. "9"
  273. }
  274. visible 1
  275. decoration
  276. action
  277. {
  278. play "sound/interface/button1"
  279. }
  280. }
  281. //------------------------------------------------------------------------------------------------
  282. // Scroll box with portraits.
  283. //------------------------------------------------------------------------------------------------
  284. itemDef
  285. {
  286. name headlist
  287. // rect 20 90 388 82
  288. rect 20 90 404 194
  289. type ITEM_TYPE_LISTBOX
  290. style WINDOW_STYLE_FILLED
  291. elementwidth 64
  292. elementheight 64
  293. elementtype LISTBOX_IMAGE
  294. feeder FEEDER_Q3HEADS
  295. // horizontalscroll
  296. backcolor 0 0 0 1
  297. border 1
  298. bordercolor 1 .682 0 1
  299. forecolor 1 1 1 1
  300. descText @MENUS_CHOOSE_THE_MODEL_FOR
  301. visible 1
  302. textscale 0.7
  303. action
  304. {
  305. play "sound/interface/button1"
  306. }
  307. mouseenter
  308. {
  309. setitemcolor headlist bordercolor 1 0 0 1
  310. }
  311. mouseexit
  312. {
  313. setitemcolor headlist bordercolor 1 .682 0 .7
  314. }
  315. }
  316. //------------------------------------------------------------------------------------------------
  317. // Custom skin
  318. //------------------------------------------------------------------------------------------------
  319. itemDef
  320. {
  321. name customtitle
  322. style 0
  323. text @MENUS_CUSTOM
  324. rect 425 130 150 26
  325. textalign ITEM_ALIGN_CENTER
  326. textalignx 75
  327. textaligny -3
  328. outlinecolor 1 .5 .5 .5
  329. backcolor 0 0 0 0
  330. font 2
  331. textscale 1
  332. forecolor .549 .854 1 1
  333. visible 1
  334. decoration
  335. }
  336. itemDef
  337. {
  338. name custom
  339. group none
  340. background "gfx/mp/custom_mp_default"
  341. descText @MENUS_CUSTOMPLAYER_DESC
  342. type ITEM_TYPE_BUTTON
  343. style WINDOW_STYLE_SHADER
  344. rect 465 160 75 75
  345. font 3
  346. textscale 1
  347. textaligny -1
  348. textalign ITEM_ALIGN_CENTER
  349. textstyle 3
  350. forecolor .5 .5 .5 1
  351. visible 1
  352. mouseEnter
  353. {
  354. setitemcolor custom forecolor 1 1 1 1
  355. }
  356. mouseExit
  357. {
  358. setitemcolor custom forecolor .5 .5 .5 1
  359. }
  360. action
  361. {
  362. play "sound/interface/button1.wav"
  363. uiScript updateForceStatus
  364. close ingame_player
  365. open ingame_player2
  366. }
  367. }
  368. //------------------------------------------------------------------------------------------------
  369. // Saber Setup
  370. //------------------------------------------------------------------------------------------------
  371. // Box for force powers
  372. itemDef
  373. {
  374. name background
  375. group none
  376. style WINDOW_STYLE_EMPTY
  377. rect 15 299 410 100
  378. border 1
  379. bordercolor .298 .305 .690 1
  380. bordersize 2
  381. forecolor 1 1 1 1
  382. visible 1
  383. decoration
  384. }
  385. // Title box for force powers
  386. itemDef
  387. {
  388. name background
  389. group none
  390. style WINDOW_STYLE_FILLED
  391. rect 17 300 410 18
  392. backcolor .298 .305 .690 1
  393. forecolor 1 1 1 1
  394. visible 1
  395. decoration
  396. }
  397. // Box for saber setup
  398. itemDef
  399. {
  400. name background
  401. group none
  402. style WINDOW_STYLE_EMPTY
  403. rect 430 299 155 100
  404. border 1
  405. bordercolor .298 .305 .690 1
  406. bordersize 2
  407. forecolor 1 1 1 1
  408. visible 1
  409. decoration
  410. }
  411. // Title box for saber setup
  412. itemDef
  413. {
  414. name background
  415. group none
  416. style WINDOW_STYLE_FILLED
  417. rect 432 300 155 18
  418. backcolor .298 .305 .690 1
  419. forecolor 1 1 1 1
  420. visible 1
  421. decoration
  422. }
  423. itemDef
  424. {
  425. name sabertitle
  426. style 0
  427. text @MENUS_SABER_TITLE
  428. rect 430 297 150 26
  429. textalign ITEM_ALIGN_CENTER
  430. textalignx 75
  431. textaligny -3
  432. outlinecolor 1 .5 .5 .5
  433. backcolor 0 0 0 0
  434. font 2
  435. textscale 1
  436. forecolor .549 .854 1 1
  437. visible 1
  438. decoration
  439. }
  440. itemDef
  441. {
  442. name saber
  443. group none
  444. background "gfx/menus/saberonly"
  445. descText @MENUS_SABER_TITLE_DESC
  446. type ITEM_TYPE_BUTTON
  447. style WINDOW_STYLE_SHADER
  448. rect 465 322 75 75
  449. font 3
  450. textscale 1
  451. textalignx 65
  452. textaligny -1
  453. textalign ITEM_ALIGN_CENTER
  454. textstyle 3
  455. forecolor .5 .5 .5 1
  456. visible 1
  457. mouseEnter
  458. {
  459. setitemcolor saber forecolor 1 1 1 1
  460. }
  461. mouseExit
  462. {
  463. setitemcolor saber forecolor .5 .5 .5 1
  464. }
  465. action
  466. {
  467. play "sound/interface/button1.wav"
  468. close ingame_player
  469. open ingame_saber
  470. }
  471. }
  472. //------------------------------------------------------------------------------------------------
  473. // FORCE POWER INFO (If normal server)
  474. //------------------------------------------------------------------------------------------------
  475. // The Force title
  476. itemDef
  477. {
  478. name forcetitle
  479. group yesforce
  480. style 0
  481. text @MENUS_THE_FORCE
  482. rect 220 298 0 0
  483. textalign ITEM_ALIGN_CENTER
  484. textalignx 0
  485. textaligny -4
  486. outlinecolor 1 .5 .5 .5
  487. font 2
  488. textscale 1
  489. forecolor .549 .854 1 1
  490. visible 1
  491. cvarTest "ui_about_gametype"
  492. hideCvar
  493. {
  494. "1" ;
  495. "2"
  496. }
  497. decoration
  498. }
  499. // Force Rank display
  500. itemDef
  501. {
  502. name rankdisplay
  503. group "yesforce"
  504. style 0
  505. text @MENUS_FORCE_MASTERY
  506. ownerdraw UI_FORCE_RANK
  507. rect 20 320 175 16
  508. textalign ITEM_ALIGN_LEFT
  509. textalignx 0
  510. textaligny 0
  511. font 4
  512. textscale 1
  513. forecolor 1 .682 0 .8
  514. outlinecolor 1 .5 .5 .5
  515. backcolor 0 0 0 0
  516. visible 1
  517. decoration
  518. cvarTest "ui_about_gametype"
  519. hideCvar
  520. {
  521. "1" ;
  522. "2"
  523. }
  524. }
  525. // Force Side Chooser
  526. itemDef
  527. {
  528. name setside
  529. group "yesforce"
  530. style 0
  531. text @MENUS_FORCE_SIDE
  532. ownerdraw UI_FORCE_SIDE
  533. rect 20 340 175 16
  534. textalign ITEM_ALIGN_LEFT
  535. textalignx 0
  536. outlinecolor 1 .5 .5 .5
  537. backcolor 0 0 0 0
  538. textaligny 0
  539. font 4
  540. textscale 1
  541. forecolor 1 .682 0 .8
  542. visible 1
  543. cvarTest "ui_about_gametype"
  544. hideCvar
  545. {
  546. "1" ;
  547. "2"
  548. }
  549. decoration
  550. action
  551. {
  552. play "sound/interface/button1"
  553. }
  554. }
  555. // Force pointsdisplay
  556. itemDef
  557. {
  558. name setpoints
  559. group "yesforce"
  560. style 0
  561. text @MENUS_POINTS_REMAINING
  562. ownerdraw UI_FORCE_POINTS
  563. rect 20 360 175 16
  564. textalign ITEM_ALIGN_LEFT
  565. textalignx 0
  566. outlinecolor 1 .5 .5 .5
  567. backcolor 0 0 0 0
  568. textaligny 0
  569. font 4
  570. textscale 1
  571. forecolor 1 .682 0 .8
  572. visible 1
  573. cvarTest "ui_about_gametype"
  574. hideCvar
  575. {
  576. "1" ;
  577. "2"
  578. }
  579. decoration
  580. }
  581. // Jedi/Non-Jedi Chooser
  582. itemDef
  583. {
  584. name jedinonjedi
  585. group jedinonjedi
  586. style 0
  587. text @MENUS_JEDI_NONJEDI
  588. ownerdraw UI_JEDI_NONJEDI
  589. rect 183 370 105 32
  590. textalign ITEM_ALIGN_LEFT
  591. textalignx 0
  592. outlinecolor 1 .5 .5 .5
  593. backcolor 0 0 0 0
  594. textaligny 0
  595. font 4
  596. textscale 1
  597. forecolor 1 1 1 1
  598. border 0
  599. bordercolor 0 0 0 0
  600. descText @MENUS_CHOOSE_JEDI_NONJEDI
  601. visible 1
  602. action
  603. {
  604. uiScript updateForceStatus
  605. }
  606. }
  607. //------------------------------------------------------------------------------------------------
  608. // Configure force button
  609. //------------------------------------------------------------------------------------------------
  610. itemDef
  611. {
  612. name configforcebutton
  613. group "yesforce"
  614. type 1
  615. style WINDOW_STYLE_SHADER
  616. background "gfx/menus/configforce"
  617. rect 275 320 75 75
  618. textalign ITEM_ALIGN_CENTER
  619. textalignx 97
  620. textaligny 2
  621. font 2
  622. textscale 1
  623. forecolor .5 .5 .5 1
  624. descText @MENUS_SET_UP_THE_FORCE_ABILITIES
  625. visible 1
  626. cvarTest "ui_about_gametype"
  627. hideCvar
  628. {
  629. "1" ;
  630. "2"
  631. }
  632. action
  633. {
  634. play "sound/interface/button1"
  635. close ingame_player
  636. open ingame_playerforce
  637. hide highlights
  638. }
  639. mouseEnter
  640. {
  641. setitemcolor configforcebutton forecolor 1 1 1 1
  642. }
  643. mouseExit
  644. {
  645. setitemcolor configforcebutton forecolor .5 .5 .5 1
  646. }
  647. }
  648. //----------------------------------------
  649. // DISABLED FORCE POWER (If g_forcepowerdisable)
  650. //----------------------------------------
  651. // The Force title
  652. itemDef
  653. {
  654. name forcetitle
  655. group noforce
  656. style 0
  657. text @MENUS_NOFORCE_DISABLED_0
  658. rect 220 298 0 0
  659. textalign ITEM_ALIGN_CENTER
  660. textalignx 0
  661. outlinecolor 1 .5 .5 .5
  662. backcolor 0 0 0 0
  663. textaligny -4
  664. font 2
  665. textscale 1
  666. forecolor 1 1 1 1
  667. visible 1
  668. cvarTest "ui_about_gametype"
  669. hideCvar
  670. {
  671. "1" ;
  672. "2"
  673. }
  674. decoration
  675. }
  676. itemDef
  677. {
  678. name text2
  679. group "noforce"
  680. style 0
  681. text @MENUS_NOFORCE_DISABLED_1
  682. rect 20 320 400 20
  683. textalign ITEM_ALIGN_CENTER
  684. textalignx 200
  685. textaligny 0
  686. font 4
  687. textscale 1
  688. outlinecolor 1 .5 .5 .5
  689. backcolor 0 0 0 0
  690. forecolor 1 .682 0 .8
  691. visible 1
  692. cvarTest "ui_about_gametype"
  693. hideCvar
  694. {
  695. "1" ;
  696. "2"
  697. }
  698. decoration
  699. }
  700. //------------------------------------------------------------------------------------------------
  701. // HOLOCRON INFO
  702. //------------------------------------------------------------------------------------------------
  703. // The Force title
  704. itemDef
  705. {
  706. name forcetitle
  707. group none
  708. style 0
  709. text @MENUS_NOFORCE_HOLO_0
  710. rect 220 298 0 0
  711. textalign ITEM_ALIGN_CENTER
  712. textalignx 0
  713. backcolor 0 0 0 0
  714. textaligny -4
  715. font 2
  716. textscale 1
  717. forecolor 1 1 1 1
  718. cvarTest "ui_about_gametype"
  719. showCvar
  720. {
  721. "1"
  722. }
  723. visible 1
  724. decoration
  725. }
  726. itemDef
  727. {
  728. name text1
  729. group none
  730. style 0
  731. text @MENUS_NOFORCE_HOLO_1
  732. rect 20 330 400 20
  733. textalign ITEM_ALIGN_CENTER
  734. textalignx 200
  735. textaligny 0
  736. font 4
  737. textscale 1
  738. forecolor 1 .682 0 .8
  739. outlinecolor 1 .5 .5 .5
  740. cvarTest "ui_about_gametype"
  741. showCvar
  742. {
  743. "1"
  744. }
  745. visible 1
  746. decoration
  747. }
  748. itemDef
  749. {
  750. name text2
  751. group none
  752. style 0
  753. text @MENUS_NOFORCE_HOLO_2
  754. rect 20 350 400 20
  755. textalign ITEM_ALIGN_CENTER
  756. textalignx 200
  757. textaligny 0
  758. font 4
  759. textscale 1
  760. outlinecolor 1 .5 .5 .5
  761. backcolor 0 0 0 0
  762. forecolor 1 .682 0 .8
  763. cvarTest "ui_about_gametype"
  764. showCvar
  765. {
  766. "1"
  767. }
  768. visible 1
  769. decoration
  770. }
  771. itemDef
  772. {
  773. name text3
  774. group none
  775. style 0
  776. text @MENUS_NOFORCE_HOLO_3
  777. rect 20 370 400 20
  778. textalign ITEM_ALIGN_CENTER
  779. textalignx 200
  780. textaligny 0
  781. font 4
  782. textscale 1
  783. outlinecolor 1 .5 .5 .5
  784. backcolor 0 0 0 0
  785. forecolor 1 .682 0 .8
  786. cvarTest "ui_about_gametype"
  787. showCvar
  788. {
  789. "1"
  790. }
  791. visible 1
  792. decoration
  793. }
  794. //------------------------------------------------------------------------------------------------
  795. // JEDI MASTER INFO
  796. //------------------------------------------------------------------------------------------------
  797. // The Force title
  798. itemDef
  799. {
  800. name forcetitle
  801. group none
  802. style 0
  803. text @MENUS_NOFORCE_JEDI_0
  804. rect 220 298 0 0
  805. textalign ITEM_ALIGN_CENTER
  806. textalignx 0
  807. outlinecolor 1 .5 .5 .5
  808. backcolor 0 0 0 0
  809. textaligny -4
  810. font 2
  811. textscale 1
  812. forecolor 1 1 1 1
  813. cvarTest "ui_about_gametype"
  814. showCvar
  815. {
  816. "2"
  817. }
  818. visible 1
  819. decoration
  820. }
  821. itemDef
  822. {
  823. name text1
  824. group none
  825. style 0
  826. text @MENUS_NOFORCE_JEDI_1
  827. rect 20 330 400 20
  828. textalign ITEM_ALIGN_CENTER
  829. textalignx 200
  830. textaligny 0
  831. font 4
  832. textscale 1
  833. forecolor 1 .682 0 .8
  834. outlinecolor 1 .5 .5 .5
  835. cvarTest "ui_about_gametype"
  836. showCvar
  837. {
  838. "2"
  839. }
  840. visible 1
  841. decoration
  842. }
  843. itemDef
  844. {
  845. name text2
  846. group none
  847. style 0
  848. text @MENUS_NOFORCE_JEDI_2
  849. rect 20 350 400 20
  850. textalign ITEM_ALIGN_CENTER
  851. textalignx 200
  852. textaligny 0
  853. font 4
  854. textscale 1
  855. outlinecolor 1 .5 .5 .5
  856. backcolor 0 0 0 0
  857. forecolor 1 .682 0 .8
  858. cvarTest "ui_about_gametype"
  859. showCvar
  860. {
  861. "2"
  862. }
  863. visible 1
  864. decoration
  865. }
  866. itemDef
  867. {
  868. name text3
  869. group none
  870. style 0
  871. text @MENUS_NOFORCE_JEDI_3
  872. rect 20 370 400 20
  873. textalign ITEM_ALIGN_CENTER
  874. textalignx 200
  875. textaligny 0
  876. font 4
  877. textscale 1
  878. outlinecolor 1 .5 .5 .5
  879. backcolor 0 0 0 0
  880. forecolor 1 .682 0 .8
  881. cvarTest "ui_about_gametype"
  882. showCvar
  883. {
  884. "2"
  885. }
  886. visible 1
  887. decoration
  888. }
  889. //---------------------------------------------
  890. // APPLY BUTTON
  891. //---------------------------------------------
  892. // APPLY, already on a team
  893. itemDef
  894. {
  895. name applyjoinButton
  896. group highlights
  897. style WINDOW_STYLE_SHADER
  898. rect 5 412 105 32
  899. background "gfx/menus/menu_buttonback" // Frame around button
  900. forecolor 1 1 1 1
  901. decoration
  902. visible 0
  903. appearance_slot 3
  904. }
  905. itemDef
  906. {
  907. name applycurrent
  908. group "playerapply"
  909. text @MENUS_APPLY
  910. type 1
  911. style WINDOW_STYLE_EMPTY
  912. rect 5 412 105 32
  913. textalign ITEM_ALIGN_CENTER
  914. textalignx 52
  915. textaligny 2
  916. font 2
  917. textscale 1
  918. forecolor 1 .682 0 1
  919. descText @MENUS_APPLY_CHANGES_AND_JOIN
  920. visible 1
  921. action
  922. {
  923. play "sound/interface/button1"
  924. uiScript setForce "none"
  925. hide highlights
  926. uiScript closeingame
  927. }
  928. mouseEnter
  929. {
  930. show applyjoinButton
  931. }
  932. mouseExit
  933. {
  934. hide applyjoinButton
  935. }
  936. }
  937. // APPLY Free
  938. itemDef
  939. {
  940. name applyjoin
  941. group "playerforcejoin"
  942. text @MENUS_JOIN_GAME
  943. type 1
  944. style WINDOW_STYLE_EMPTY
  945. rect 5 412 105 32
  946. textalign ITEM_ALIGN_CENTER
  947. textalignx 52
  948. textaligny 2
  949. font 2
  950. textscale 1
  951. forecolor 1 .682 0 1
  952. descText @MENUS_APPLY_CHANGES_AND_JOIN
  953. visible 1
  954. action
  955. {
  956. play "sound/interface/button1"
  957. uiScript setForce "free"
  958. hide highlights
  959. uiScript closeingame
  960. }
  961. mouseEnter
  962. {
  963. show applyjoinButton
  964. }
  965. mouseExit
  966. {
  967. hide applyjoinButton
  968. }
  969. }
  970. // APPLY RED
  971. itemDef
  972. {
  973. name applyredButton
  974. group highlights
  975. style WINDOW_STYLE_SHADER
  976. rect 110 412 105 32
  977. background "gfx/menus/menu_buttonback" // Frame around button
  978. forecolor 1 1 1 1
  979. decoration
  980. visible 0
  981. }
  982. itemDef
  983. {
  984. name applyred
  985. group "playerforcered"
  986. text @MENUS_JOIN_RED
  987. type 1
  988. style WINDOW_STYLE_EMPTY
  989. rect 110 412 105 32
  990. textalign ITEM_ALIGN_CENTER
  991. textalignx 52
  992. textaligny 2
  993. font 2
  994. textscale 1
  995. forecolor 1 .682 0 1
  996. cvarTest "ui_about_gametype"
  997. hideCvar
  998. {
  999. "0" ;
  1000. "1" ;
  1001. "2" ;
  1002. "3" ;
  1003. "4"
  1004. }
  1005. descText @MENUS_CHANGES_AND_JOIN_THE
  1006. visible 1
  1007. action
  1008. {
  1009. play "sound/interface/button1"
  1010. uiScript setForce "red"
  1011. hide highlights
  1012. uiScript closeingame
  1013. }
  1014. mouseEnter
  1015. {
  1016. show applyredButton
  1017. }
  1018. mouseExit
  1019. {
  1020. hide applyredButton
  1021. }
  1022. }
  1023. // APPLY BLUE
  1024. itemDef
  1025. {
  1026. name applyblueButton
  1027. group highlights
  1028. style WINDOW_STYLE_SHADER
  1029. rect 215 412 105 32
  1030. background "gfx/menus/menu_buttonback" // Frame around button
  1031. forecolor 1 1 1 1
  1032. decoration
  1033. visible 0
  1034. }
  1035. itemDef
  1036. {
  1037. name applyblue
  1038. group "playerforceblue"
  1039. text @MENUS_JOIN_BLUE
  1040. type 1
  1041. style WINDOW_STYLE_EMPTY
  1042. rect 215 412 105 32
  1043. textalign ITEM_ALIGN_CENTER
  1044. textalignx 52
  1045. textaligny 2
  1046. font 2
  1047. textscale 1
  1048. forecolor 1 .682 0 1
  1049. cvarTest "ui_about_gametype"
  1050. hideCvar
  1051. {
  1052. "0" ;
  1053. "1" ;
  1054. "2" ;
  1055. "3" ;
  1056. "4"
  1057. }
  1058. descText @MENUS_AND_JOIN_THE_BLUE_TEAM
  1059. visible 1
  1060. action
  1061. {
  1062. play "sound/interface/button1"
  1063. uiScript setForce "blue"
  1064. hide highlights
  1065. uiScript closeingame
  1066. }
  1067. mouseEnter
  1068. {
  1069. show applyblueButton
  1070. }
  1071. mouseExit
  1072. {
  1073. hide applyblueButton
  1074. }
  1075. }
  1076. // APPLY SPECTATOR
  1077. itemDef
  1078. {
  1079. name applyspectateButton
  1080. group highlights
  1081. style WINDOW_STYLE_SHADER
  1082. rect 320 412 105 32
  1083. background "gfx/menus/menu_buttonback" // Frame around button
  1084. forecolor 1 1 1 1
  1085. decoration
  1086. visible 0
  1087. }
  1088. itemDef
  1089. {
  1090. name applyspectate
  1091. group "playerforcespectate"
  1092. text @MENUS_SPECTATE
  1093. type 1
  1094. style WINDOW_STYLE_EMPTY
  1095. rect 320 412 105 32
  1096. textalign ITEM_ALIGN_CENTER
  1097. textalignx 52
  1098. textaligny 2
  1099. font 2
  1100. textscale 1
  1101. forecolor 1 .682 0 1
  1102. descText @MENUS_APPLY_CHANGES_BUT_REMAIN
  1103. visible 1
  1104. action
  1105. {
  1106. play "sound/interface/button1"
  1107. uiScript setForce "s"
  1108. hide highlights
  1109. uiScript closeingame
  1110. }
  1111. mouseEnter
  1112. {
  1113. show applyspectateButton
  1114. }
  1115. mouseExit
  1116. {
  1117. hide applyspectateButton
  1118. }
  1119. }
  1120. }
  1121. }