player.menu 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638
  1. // CHARACTER CREATION MENU
  2. {
  3. menuDef
  4. {
  5. name "playerMenu"
  6. fullScreen 1
  7. rect 0 0 640 480
  8. focusColor 1 1 1 1
  9. descX 320
  10. descY 430
  11. descScale 1
  12. descColor 1 .682 0 .8
  13. descAlignment ITEM_ALIGN_CENTER
  14. onOpen
  15. {
  16. uiScript update "ui_GetName"
  17. }
  18. onESC
  19. {
  20. play "sound/interface/menuroam.wav"
  21. close playerMenu
  22. open mainMenu
  23. }
  24. onClose
  25. {
  26. uiScript update "ui_SetName"
  27. }
  28. //----------------------------------------------------------------------------------------------
  29. //
  30. // MENU BACKGROUND
  31. //
  32. //----------------------------------------------------------------------------------------------
  33. itemDef
  34. {
  35. name really_background
  36. group none
  37. style WINDOW_STYLE_SHADER
  38. rect 156 154 320 240
  39. background "gfx/menus/main_centerblue"
  40. forecolor 1 1 1 1
  41. visible 1
  42. decoration
  43. }
  44. itemDef
  45. {
  46. name background_text
  47. group none
  48. style WINDOW_STYLE_SHADER
  49. rect 0 0 160 480
  50. background "gfx/menus/menu_side_text"
  51. forecolor 1 1 1 1
  52. visible 1
  53. decoration
  54. }
  55. itemDef
  56. {
  57. name background_text_b
  58. group none
  59. style WINDOW_STYLE_SHADER
  60. rect 480 0 160 480
  61. background "gfx/menus/menu_side_text_right"
  62. forecolor 1 1 1 1
  63. visible 1
  64. decoration
  65. }
  66. itemDef
  67. {
  68. name background
  69. group none
  70. style WINDOW_STYLE_SHADER
  71. rect 0 0 640 480
  72. background "gfx/menus/main_background"
  73. //background "gfx/menus/charmenu"
  74. forecolor 1 1 1 1
  75. visible 1
  76. decoration
  77. }
  78. itemDef
  79. {
  80. name starwars
  81. group none
  82. style WINDOW_STYLE_SHADER
  83. rect 107 8 428 112
  84. background "gfx/menus/jediacademy"
  85. forecolor 1 1 1 1
  86. visible 1
  87. decoration
  88. }
  89. itemDef
  90. {
  91. name left_frame
  92. group lf_fr
  93. style WINDOW_STYLE_SHADER
  94. rect 0 50 320 160
  95. background "gfx/menus/menu_boxes_left"
  96. forecolor 1 1 1 1
  97. visible 1
  98. decoration
  99. }
  100. itemDef
  101. {
  102. name right_frame
  103. group rt_fr
  104. style WINDOW_STYLE_SHADER
  105. rect 320 50 320 160
  106. background "gfx/menus/menu_boxes_right"
  107. forecolor 1 1 1 1
  108. visible 1
  109. decoration
  110. }
  111. // Box around character models
  112. itemDef
  113. {
  114. name background
  115. group none
  116. style WINDOW_STYLE_EMPTY
  117. rect 13 186 610 245
  118. border 1
  119. bordercolor .298 .305 .690 1
  120. bordersize 2
  121. forecolor 1 1 1 1
  122. visible 1
  123. decoration
  124. }
  125. // Title box for character models
  126. itemDef
  127. {
  128. name background
  129. group none
  130. style WINDOW_STYLE_FILLED
  131. rect 15 186 610 20
  132. backcolor .298 .305 .690 1
  133. forecolor 1 1 1 1
  134. visible 1
  135. decoration
  136. }
  137. //----------------------------------------------------------------------------------------------
  138. //
  139. // TOP MENU BUTTONS
  140. //
  141. //----------------------------------------------------------------------------------------------
  142. // Big button "NEW"
  143. itemDef
  144. {
  145. name newgamebutton_glow
  146. group mods
  147. style WINDOW_STYLE_SHADER
  148. rect 7 126 130 24
  149. background "gfx/menus/menu_buttonback" // Frame around button
  150. forecolor 1 1 1 1
  151. visible 0
  152. decoration
  153. }
  154. itemDef
  155. {
  156. name newgamebutton
  157. group toprow
  158. style WINDOW_STYLE_EMPTY
  159. type ITEM_TYPE_BUTTON
  160. rect 7 126 130 24
  161. text @MENUS_PLAY
  162. descText @MENUS_START_PLAYING_NOW
  163. font 3
  164. textscale 1.1
  165. textaligny 0
  166. textalign ITEM_ALIGN_CENTER
  167. textstyle 0
  168. textalignx 65
  169. forecolor 1 .682 0 1
  170. visible 1
  171. mouseEnter
  172. {
  173. show newgamebutton_glow
  174. }
  175. mouseExit
  176. {
  177. hide newgamebutton_glow
  178. }
  179. action
  180. {
  181. play "sound/interface/button1.wav" ;
  182. close all ;
  183. open multiplayermenu
  184. }
  185. }
  186. // Big button "PLAYER PROFILE"
  187. itemDef
  188. {
  189. name profilebutton_glow
  190. group mods
  191. style WINDOW_STYLE_SHADER
  192. rect 170 126 130 24
  193. background "gfx/menus/menu_buttonback" // Frame around button
  194. forecolor 1 1 1 1
  195. visible 0
  196. decoration
  197. }
  198. itemDef
  199. {
  200. name profilebutton
  201. group toprow
  202. text @MENUS_PROFILE
  203. descText @MENUS_PROFILE_DESC
  204. style WINDOW_STYLE_EMPTY
  205. type ITEM_TYPE_BUTTON
  206. rect 170 126 130 24
  207. textaligny 0
  208. font 3
  209. textscale 1.1
  210. textalign ITEM_ALIGN_CENTER
  211. textstyle 0
  212. textalignx 65
  213. forecolor 1 1 1 1
  214. visible 1
  215. mouseEnter
  216. {
  217. //show profilebutton_glow
  218. }
  219. mouseExit
  220. {
  221. //hide profilebutton_glow
  222. }
  223. }
  224. // Big button "CONTROLS"
  225. itemDef
  226. {
  227. name controlsbutton_glow
  228. group mods
  229. style WINDOW_STYLE_SHADER
  230. rect 340 126 130 24
  231. background "gfx/menus/menu_buttonback" // Frame around button
  232. forecolor 1 1 1 1
  233. visible 0
  234. decoration
  235. }
  236. itemDef {
  237. name controlsbutton
  238. group toprow
  239. text @MENUS_CONTROLS2
  240. descText @MENUS_CONFIGURE_GAME_CONTROLS
  241. type ITEM_TYPE_BUTTON
  242. style WINDOW_STYLE_EMPTY
  243. rect 340 126 130 24
  244. font 3
  245. textscale 1.1
  246. textaligny 0
  247. textalign ITEM_ALIGN_CENTER
  248. textstyle 0
  249. textalignx 65
  250. backcolor 0 0 0 0
  251. forecolor 1 .682 0 1
  252. visible 1
  253. mouseEnter
  254. {
  255. show controlsbutton_glow
  256. }
  257. mouseExit
  258. {
  259. hide controlsbutton_glow
  260. }
  261. action
  262. {
  263. play "sound/interface/button1.wav" ;
  264. close all ;
  265. open controlsmenu
  266. }
  267. }
  268. // Big button "SETUP"
  269. itemDef
  270. {
  271. name setupbutton_glow
  272. group mods
  273. style WINDOW_STYLE_SHADER
  274. rect 502 126 130 24
  275. background "gfx/menus/menu_buttonback" // Frame around button
  276. forecolor 1 1 1 1
  277. visible 0
  278. decoration
  279. }
  280. itemDef {
  281. name setupbutton
  282. group toprow
  283. text @MENUS_SETUP
  284. descText @MENUS_CONFIGURE_GAME_SETTINGS
  285. type ITEM_TYPE_BUTTON
  286. style WINDOW_STYLE_EMPTY
  287. rect 502 126 130 24
  288. font 3
  289. textscale 1.1
  290. textaligny 0
  291. textalign ITEM_ALIGN_CENTER
  292. textstyle 0
  293. textalignx 65
  294. backcolor 0 0 0 0
  295. forecolor 1 .682 0 1
  296. visible 1
  297. mouseEnter
  298. {
  299. show setupbutton_glow
  300. }
  301. mouseExit
  302. {
  303. hide setupbutton_glow
  304. }
  305. action
  306. {
  307. play "sound/interface/button1.wav" ;
  308. close all ;
  309. open setup_menu
  310. }
  311. }
  312. //----------------------------------------------------------------------------------------------
  313. //
  314. // OTHER MAIN MENU BUTTONS
  315. //
  316. //----------------------------------------------------------------------------------------------
  317. // EXIT button in lower left corner
  318. itemDef
  319. {
  320. name exitgamebutton_glow
  321. group mods
  322. style WINDOW_STYLE_SHADER
  323. rect 59 444 130 24
  324. background "gfx/menus/menu_buttonback" // Frame around button
  325. forecolor 1 1 1 1
  326. visible 0
  327. // appearance_slot 1
  328. decoration
  329. }
  330. itemDef
  331. {
  332. name exitgamebutton
  333. group exit
  334. text @MENUS_EXIT
  335. descText @MENUS_JEDI_KNIGHT_II
  336. type ITEM_TYPE_BUTTON
  337. style WINDOW_STYLE_EMPTY
  338. rect 59 444 130 24
  339. font 3
  340. textscale 1.1
  341. textalign ITEM_ALIGN_CENTER
  342. textstyle 3
  343. textalignx 65
  344. textaligny -1
  345. forecolor 1 .682 0 1
  346. visible 1
  347. mouseEnter
  348. {
  349. show exitgamebutton_glow
  350. }
  351. mouseExit
  352. {
  353. hide exitgamebutton_glow
  354. }
  355. action
  356. {
  357. play "sound/weapons/saber/saberoff.mp3"
  358. close all
  359. open quitMenu
  360. }
  361. }
  362. //-------------------------------
  363. //
  364. // PLAYER MENU SPECIFIC STUFF
  365. //
  366. //-------------------------------
  367. // Name entry field
  368. itemDef
  369. {
  370. name nameglow
  371. group mods
  372. style WINDOW_STYLE_SHADER
  373. rect 20 156 300 32
  374. background "gfx/menus/menu_buttonback" // Frame around button
  375. forecolor 1 1 1 1
  376. visible 0
  377. decoration
  378. }
  379. itemDef
  380. {
  381. name namefield
  382. type ITEM_TYPE_EDITFIELD
  383. style 0
  384. text @MENUS_NAME1
  385. cvar "ui_Name"
  386. maxchars 26
  387. rect 15 163 300 28
  388. textalign ITEM_ALIGN_LEFT
  389. textalignx 0
  390. textaligny -5
  391. font 2
  392. textscale 1
  393. forecolor .615 .615 .956 1
  394. outlinecolor 1 .5 .5 .5
  395. backcolor 0 0 0 0
  396. border 0
  397. bordercolor 0 0 0 0
  398. descText @MENUS_ENTER_YOUR_NAME_HERE
  399. visible 1
  400. action
  401. {
  402. play "sound/interface/button1.wav"
  403. }
  404. mouseenter
  405. {
  406. show nameglow
  407. }
  408. mouseexit
  409. {
  410. hide nameglow
  411. }
  412. }
  413. // Player Model label
  414. itemDef
  415. {
  416. name modeltitle
  417. style 0
  418. text @MENUS_CHARACTER_MODEL
  419. rect 320 184 0 0
  420. textalign ITEM_ALIGN_CENTER
  421. textalignx 0
  422. textaligny -3
  423. outlinecolor 1 .5 .5 .5
  424. backcolor 0 0 0 0
  425. font 2
  426. textscale 1
  427. forecolor .549 .854 1 1
  428. border 0
  429. bordercolor 0 0 0 0
  430. visible 1
  431. action
  432. {
  433. play "sound/interface/button1.wav" ;
  434. }
  435. }
  436. // Skin/Team Color Chooser
  437. itemDef
  438. {
  439. name setcolor
  440. style 0
  441. text @MENUS_TEAM_COLOR
  442. ownerdraw UI_SKIN_COLOR
  443. rect 50 209 160 20
  444. textalign ITEM_ALIGN_LEFT
  445. textalignx 0
  446. textaligny -5
  447. outlinecolor 1 .5 .5 .5
  448. backcolor 0 0 0 0
  449. font 2
  450. textscale .9
  451. forecolor .615 .615 .956 1
  452. border 0
  453. bordercolor 0 0 0 0
  454. descText @MENUS_CHOOSE_THE_COLOR_FOR
  455. visible 1
  456. action
  457. {
  458. play "sound/interface/button1.wav" ;
  459. }
  460. }
  461. // Scroll box with portraits.
  462. itemDef
  463. {
  464. name headlist
  465. rect 30 224 404 194
  466. // rect 126 215 80 200
  467. type ITEM_TYPE_LISTBOX
  468. style WINDOW_STYLE_FILLED
  469. elementwidth 64
  470. elementheight 64
  471. elementtype LISTBOX_IMAGE
  472. feeder FEEDER_Q3HEADS
  473. // horizontalscroll
  474. backcolor 0 0 0 1
  475. border 1
  476. bordercolor .5 .5 .5 1
  477. forecolor 1 1 1 1
  478. descText @MENUS_CHOOSE_THE_MODEL_FOR
  479. visible 1
  480. textscale 0.7
  481. action
  482. {
  483. play "sound/interface/button1.wav" ;
  484. }
  485. mouseenter
  486. {
  487. setitemcolor headlist bordercolor 1 0 0 1
  488. }
  489. mouseexit
  490. {
  491. setitemcolor headlist bordercolor .5 .5 .5 1
  492. }
  493. }
  494. // Custom skin
  495. itemDef
  496. {
  497. name customtitle
  498. style 0
  499. text @MENUS_CUSTOM
  500. rect 425 250 200 26
  501. textalign ITEM_ALIGN_CENTER
  502. textalignx 100
  503. textaligny -3
  504. outlinecolor 1 .5 .5 .5
  505. backcolor 0 0 0 0
  506. font 2
  507. textscale 1
  508. forecolor .549 .854 1 1
  509. visible 1
  510. decoration
  511. }
  512. itemDef
  513. {
  514. name custom
  515. group none
  516. background "gfx/mp/custom_mp_default"
  517. descText @MENUS_CUSTOMPLAYER_DESC
  518. type ITEM_TYPE_BUTTON
  519. style WINDOW_STYLE_SHADER
  520. rect 480 280 96 96
  521. font 3
  522. textscale 1
  523. textalignx 65
  524. textaligny -1
  525. textalign ITEM_ALIGN_CENTER
  526. textstyle 3
  527. forecolor .5 .5 .5 1
  528. visible 1
  529. mouseenter
  530. {
  531. setitemcolor custom forecolor 1 1 1 1
  532. }
  533. mouseexit
  534. {
  535. setitemcolor custom forecolor .5 .5 .5 1
  536. }
  537. action
  538. {
  539. play "sound/interface/button1.wav"
  540. close playerMenu
  541. open playerMenu2
  542. }
  543. }
  544. itemDef
  545. {
  546. name next_glow
  547. group mods
  548. style WINDOW_STYLE_SHADER
  549. rect 455 444 130 24
  550. background "gfx/menus/menu_buttonback"
  551. forecolor 1 1 1 1
  552. visible 0
  553. // appearance_slot 1
  554. decoration
  555. }
  556. itemDef
  557. {
  558. name next
  559. group none
  560. text @MENUS_APPLY_CAPS
  561. descText @MENUS_APPLY_PLAYER_SABER
  562. type ITEM_TYPE_BUTTON
  563. style WINDOW_STYLE_EMPTY
  564. rect 455 444 130 24
  565. font 3
  566. textscale 1
  567. textalignx 65
  568. textaligny -1
  569. textalign ITEM_ALIGN_CENTER
  570. textstyle 3
  571. forecolor 1 .682 0 1
  572. visible 1
  573. action
  574. {
  575. play "sound/interface/button1.wav"
  576. close all
  577. // uiScript "updatecharmodel"
  578. // uiScript "updatecharcvars"
  579. open saberMenu
  580. // open mainMenu
  581. }
  582. mouseEnter
  583. {
  584. show next_glow
  585. }
  586. mouseExit
  587. {
  588. hide next_glow
  589. }
  590. }
  591. }
  592. }