newgame.menu 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736
  1. //-----------------------------------------------------------------------
  2. // NEWGAME MENU
  3. //
  4. // Called from all other menus other than main menu. This has no transition in it.
  5. //
  6. //-----------------------------------------------------------------------
  7. {
  8. menuDef
  9. {
  10. name "newgameMenu"
  11. fullScreen 1 // MENU_TRUE
  12. rect 0 0 640 480 // Size and position of the menu
  13. visible 1 // Visible on open
  14. focusColor 1 1 1 1 // Focus color for text and items
  15. descX 320
  16. descY 426
  17. descScale 1
  18. descColor 1 .682 0 .8
  19. descAlignment ITEM_ALIGN_CENTER
  20. onOpen
  21. {
  22. setcvar g_spskill 1
  23. setcvar cg_crosshairForceHint 1
  24. setcvar handicap 100
  25. setfocus medbut
  26. hide diff1
  27. show diff2
  28. hide diff3
  29. hide diff4
  30. setitemcolor easybut forecolor 1 .682 0 1
  31. setitemcolor medbut forecolor 1 1 1 1
  32. setitemcolor hardbut forecolor 1 .682 0 1
  33. setitemcolor vhardbut forecolor 1 .682 0 1
  34. }
  35. onESC
  36. {
  37. play "sound/interface/esc.wav"
  38. close newgameMenu ;
  39. open mainMenu ;
  40. }
  41. //----------------------------------------------------------------------------------------------
  42. //
  43. // MENU BACKGROUND
  44. //
  45. //----------------------------------------------------------------------------------------------
  46. itemDef
  47. {
  48. name really_background
  49. group none
  50. style WINDOW_STYLE_SHADER
  51. rect 156 154 320 240
  52. background "gfx/menus/main_centerblue"
  53. forecolor 1 1 1 1
  54. visible 1
  55. decoration
  56. }
  57. itemDef
  58. {
  59. name background_text
  60. group none
  61. style WINDOW_STYLE_SHADER
  62. rect 0 0 160 480
  63. background "gfx/menus/menu_side_text"
  64. forecolor 1 1 1 1
  65. visible 1
  66. decoration
  67. }
  68. itemDef
  69. {
  70. name background_text_b
  71. group none
  72. style WINDOW_STYLE_SHADER
  73. rect 480 0 160 480
  74. background "gfx/menus/menu_side_text_right"
  75. forecolor 1 1 1 1
  76. visible 1
  77. decoration
  78. }
  79. itemDef
  80. {
  81. name background
  82. group none
  83. style WINDOW_STYLE_SHADER
  84. rect 0 0 640 480
  85. background "gfx/menus/main_background"
  86. forecolor 1 1 1 1
  87. visible 1
  88. decoration
  89. }
  90. itemDef
  91. {
  92. name starwars
  93. group none
  94. style WINDOW_STYLE_SHADER
  95. rect 107 8 428 112
  96. background "gfx/menus/jediacademy"
  97. forecolor 1 1 1 1
  98. visible 1
  99. decoration
  100. }
  101. itemDef
  102. {
  103. name left_frame
  104. group lf_fr
  105. style WINDOW_STYLE_SHADER
  106. rect 0 50 320 160
  107. background "gfx/menus/menu_boxes_left"
  108. forecolor 1 1 1 1
  109. visible 1
  110. decoration
  111. }
  112. itemDef
  113. {
  114. name right_frame
  115. group rt_fr
  116. style WINDOW_STYLE_SHADER
  117. rect 320 50 320 160
  118. background "gfx/menus/menu_boxes_right"
  119. forecolor 1 1 1 1
  120. visible 1
  121. decoration
  122. }
  123. //----------------------------------------------------------------------------------------------
  124. //
  125. // TOP MAIN MENU BUTTONS
  126. //
  127. //----------------------------------------------------------------------------------------------
  128. // Big button "NEW"
  129. itemDef
  130. {
  131. name newbutton_glow
  132. group none
  133. style WINDOW_STYLE_SHADER
  134. rect 7 126 130 24
  135. background "gfx/menus/menu_buttonback"
  136. forecolor 1 1 1 1
  137. visible 0
  138. decoration
  139. }
  140. itemDef
  141. {
  142. name newgamebutton
  143. group nbut
  144. style WINDOW_STYLE_EMPTY
  145. type ITEM_TYPE_BUTTON
  146. rect 7 126 130 24
  147. text @MENUS_NEW
  148. descText @MENUS_START_A_NEW_GAME
  149. font 3
  150. textscale 1.1
  151. textaligny 0
  152. textalign ITEM_ALIGN_CENTER
  153. textstyle 1
  154. textalignx 65
  155. forecolor 1 1 1 1
  156. visible 1
  157. mouseEnter
  158. {
  159. show newbutton_glow
  160. }
  161. mouseExit
  162. {
  163. hide newbutton_glow
  164. }
  165. }
  166. // Big button "LOAD"
  167. itemDef
  168. {
  169. name loadgamebutton_glow
  170. group none
  171. style WINDOW_STYLE_SHADER
  172. rect 170 126 130 24
  173. background "gfx/menus/menu_buttonback"
  174. forecolor 1 1 1 1
  175. visible 0
  176. decoration
  177. }
  178. itemDef
  179. {
  180. name loadgamebutton
  181. group lbut
  182. text @MENUS_LOAD
  183. descText @MENUS_LOAD_A_SAVED_GAME
  184. style WINDOW_STYLE_EMPTY
  185. type ITEM_TYPE_BUTTON
  186. rect 170 126 130 24
  187. textaligny 0
  188. font 3
  189. textscale 1.1
  190. textalign ITEM_ALIGN_CENTER
  191. textstyle 1
  192. textalignx 65
  193. forecolor 1 .682 0 1
  194. visible 1
  195. mouseEnter
  196. {
  197. show loadgamebutton_glow
  198. }
  199. mouseExit
  200. {
  201. hide loadgamebutton_glow
  202. }
  203. action
  204. {
  205. play "sound/interface/button1.wav" ;
  206. close all ;
  207. open loadgameMenu
  208. }
  209. }
  210. // Big button "CONTROLS"
  211. itemDef
  212. {
  213. name controlsbutton_glow
  214. group none
  215. style WINDOW_STYLE_SHADER
  216. rect 340 126 130 24
  217. background "gfx/menus/menu_buttonback"
  218. forecolor 1 1 1 1
  219. visible 0
  220. decoration
  221. }
  222. itemDef {
  223. name controlsbutton
  224. group cbut
  225. text @MENUS_CONTROLS
  226. descText @MENUS_CONFIGURE_GAME_CONTROLS
  227. type ITEM_TYPE_BUTTON
  228. style WINDOW_STYLE_EMPTY
  229. rect 340 126 130 24
  230. font 3
  231. textscale 1.1
  232. textaligny 0
  233. textalign ITEM_ALIGN_CENTER
  234. textstyle 1
  235. textalignx 65
  236. backcolor 0 0 0 0
  237. forecolor 1 .682 0 1
  238. visible 1
  239. mouseEnter
  240. {
  241. show controlsbutton_glow
  242. }
  243. mouseExit
  244. {
  245. hide controlsbutton_glow
  246. }
  247. action
  248. {
  249. play "sound/interface/button1.wav" ;
  250. close all ;
  251. open controlsMenu ;
  252. }
  253. }
  254. // Big button "SETUP"
  255. itemDef
  256. {
  257. name setupbutton_glow
  258. group none
  259. style WINDOW_STYLE_SHADER
  260. rect 502 126 130 24
  261. background "gfx/menus/menu_buttonback"
  262. forecolor 1 1 1 1
  263. visible 0
  264. decoration
  265. }
  266. itemDef
  267. {
  268. name setupbutton
  269. group sbut
  270. text @MENUS_SETUP
  271. descText @MENUS_CONFIGURE_GAME_SETTINGS
  272. type ITEM_TYPE_BUTTON
  273. style WINDOW_STYLE_EMPTY
  274. rect 502 126 130 24
  275. font 3
  276. textscale 1.1
  277. textaligny 0
  278. textalign ITEM_ALIGN_CENTER
  279. textstyle 1
  280. textalignx 65
  281. backcolor 0 0 0 0
  282. forecolor 1 .682 0 1
  283. visible 1
  284. mouseEnter
  285. {
  286. show setupbutton_glow
  287. }
  288. mouseExit
  289. {
  290. hide setupbutton_glow
  291. }
  292. action
  293. {
  294. play "sound/interface/button1.wav" ;
  295. close all ;
  296. open setupMenu ;
  297. }
  298. }
  299. //----------------------------------------------------------------------------------------------
  300. //
  301. // OTHER MAIN MENU BUTTONS
  302. //
  303. //----------------------------------------------------------------------------------------------
  304. // BACK button in lower left corner
  305. itemDef
  306. {
  307. name backbutton_glow
  308. group mods
  309. style WINDOW_STYLE_SHADER
  310. rect 59 444 130 24
  311. background "gfx/menus/menu_buttonback" // Frame around button
  312. forecolor 1 1 1 1
  313. visible 0
  314. decoration
  315. }
  316. itemDef
  317. {
  318. name backbutton
  319. group exit
  320. text @MENUS_BACK
  321. descText @MENUS_BACKTOMAIN
  322. type ITEM_TYPE_BUTTON
  323. style WINDOW_STYLE_EMPTY
  324. rect 59 444 130 24
  325. font 3
  326. textscale 1.1
  327. textalign ITEM_ALIGN_CENTER
  328. textstyle 3
  329. textalignx 65
  330. textaligny -1
  331. forecolor 1 .682 0 1
  332. visible 1
  333. mouseEnter
  334. {
  335. show backbutton_glow
  336. }
  337. mouseExit
  338. {
  339. hide backbutton_glow
  340. }
  341. action
  342. {
  343. play "sound/interface/esc.wav"
  344. close all ;
  345. open mainMenu
  346. }
  347. }
  348. // EXIT button in lower left corner
  349. itemDef
  350. {
  351. name exitgamebutton_glow
  352. group mods
  353. style WINDOW_STYLE_SHADER
  354. rect 255 444 130 24
  355. background "gfx/menus/menu_buttonback" // Frame around button
  356. forecolor 1 1 1 1
  357. visible 0
  358. decoration
  359. }
  360. itemDef
  361. {
  362. name exitgamebutton
  363. group exit
  364. text @MENUS_EXIT
  365. descText @MENUS_JEDI_KNIGHT_II
  366. type ITEM_TYPE_BUTTON
  367. style WINDOW_STYLE_EMPTY
  368. rect 255 444 130 24
  369. font 3
  370. textscale 1.1
  371. textalign ITEM_ALIGN_CENTER
  372. textstyle 3
  373. textalignx 65
  374. textaligny -1
  375. forecolor 1 .682 0 1
  376. visible 1
  377. mouseEnter
  378. {
  379. show exitgamebutton_glow
  380. }
  381. mouseExit
  382. {
  383. hide exitgamebutton_glow
  384. }
  385. action
  386. {
  387. play "sound/weapons/saber/saberoff.mp3";
  388. close all ;
  389. open quitMenu
  390. }
  391. }
  392. //----------------------------------------------------------------------------------------------
  393. //
  394. // NEW GAME MENU specific stuff
  395. //
  396. //----------------------------------------------------------------------------------------------
  397. // New Game title
  398. itemDef
  399. {
  400. name newgame_title
  401. group title
  402. style WINDOW_STYLE_SHADER
  403. background "gfx/menus/menu_blendbox"
  404. text @MENUS_SELECT_SKILL
  405. rect 100 164 440 16
  406. font 3
  407. textscale 0.7
  408. textalign ITEM_ALIGN_CENTER
  409. textalignx 225
  410. textaligny -1
  411. forecolor .549 .854 1 1
  412. visible 1
  413. decoration
  414. }
  415. itemDef
  416. {
  417. name diff1
  418. group none
  419. style WINDOW_STYLE_SHADER
  420. rect 225 196 190 40
  421. background "gfx/menus/menu_buttonback" // Box around difficulty 1
  422. forecolor 1 1 1 1
  423. visible 0
  424. decoration
  425. }
  426. // EASY difficulty button
  427. itemDef
  428. {
  429. name easybut
  430. group easy
  431. text @MENUS_APPRENTICE
  432. type ITEM_TYPE_BUTTON
  433. style WINDOW_STYLE_EMPTY
  434. font 3
  435. textscale 1
  436. textalign ITEM_ALIGN_CENTER
  437. textstyle 3
  438. rect 225 196 190 40
  439. textalignx 95
  440. textaligny 8
  441. forecolor 1 .682 0 1
  442. visible 1
  443. descText @MENUS_EASY_GAME_SETTINGS
  444. action
  445. {
  446. play "sound/interface/button1.wav"
  447. setcvar g_spskill 0
  448. setcvar cg_crosshairForceHint 1
  449. setcvar handicap 100
  450. show diff1
  451. hide diff2
  452. hide diff3
  453. hide diff4
  454. setitemcolor easybut forecolor 1 1 1 1
  455. setitemcolor medbut forecolor 1 .682 0 1
  456. setitemcolor hardbut forecolor 1 .682 0 1
  457. setitemcolor vhardbut forecolor 1 .682 0 1
  458. }
  459. }
  460. itemDef
  461. {
  462. name diff2
  463. group med
  464. style WINDOW_STYLE_SHADER
  465. rect 225 243 190 40
  466. background "gfx/menus/menu_buttonback" // Box around difficulty 2
  467. forecolor 1 1 1 1
  468. visible 1
  469. decoration
  470. }
  471. // MEDIUM difficulty button
  472. itemDef
  473. {
  474. name medbut
  475. group med
  476. text @MENUS_JEDI
  477. type ITEM_TYPE_BUTTON
  478. style WINDOW_STYLE_EMPTY
  479. font 3
  480. textscale 1
  481. rect 225 243 190 40
  482. textalignx 95
  483. textaligny 8
  484. textalign ITEM_ALIGN_CENTER
  485. textstyle 3
  486. forecolor 1 .682 0 1
  487. visible 1
  488. descText @MENUS_NORMAL_GAME_SETTINGS
  489. action
  490. {
  491. play "sound/interface/button1.wav"
  492. setcvar g_spskill 1
  493. setcvar cg_crosshairForceHint 1
  494. setcvar handicap 100
  495. hide diff1 ;
  496. show diff2 ;
  497. hide diff3 ;
  498. hide diff4 ;
  499. setitemcolor easybut forecolor 1 .682 0 1
  500. setitemcolor medbut forecolor 1 1 1 1
  501. setitemcolor hardbut forecolor 1 .682 0 1
  502. setitemcolor vhardbut forecolor 1 .682 0 1
  503. }
  504. }
  505. itemDef
  506. {
  507. name diff3
  508. group none
  509. style WINDOW_STYLE_SHADER
  510. rect 225 289 190 40
  511. background "gfx/menus/menu_buttonback" // Box around difficulty 3
  512. forecolor 1 1 1 1
  513. visible 0
  514. decoration
  515. }
  516. // HARD difficulty button
  517. itemDef
  518. {
  519. name hardbut
  520. group hard
  521. text @MENUS_JEDI_KNIGHT
  522. font 3
  523. textscale 1
  524. type ITEM_TYPE_BUTTON
  525. style WINDOW_STYLE_EMPTY
  526. rect 225 289 190 40
  527. textalignx 95
  528. textaligny 8
  529. textalign ITEM_ALIGN_CENTER
  530. textstyle 3
  531. forecolor 1 .682 0 1
  532. visible 1
  533. descText @MENUS_DIFFICULT_GAME_SETTINGS
  534. action
  535. {
  536. play "sound/interface/button1.wav" ;
  537. setcvar g_spskill 2 ;
  538. setcvar cg_crosshairForceHint 0 ;
  539. setcvar handicap 100
  540. hide diff1 ;
  541. hide diff2 ;
  542. show diff3 ;
  543. hide diff4 ;
  544. setitemcolor easybut forecolor 1 .682 0 1
  545. setitemcolor medbut forecolor 1 .682 0 1
  546. setitemcolor hardbut forecolor 1 1 1 1
  547. setitemcolor vhardbut forecolor 1 .682 0 1
  548. }
  549. }
  550. itemDef
  551. {
  552. name diff4
  553. group none
  554. style WINDOW_STYLE_SHADER
  555. rect 225 335 190 40
  556. background "gfx/menus/menu_buttonback" // Box around difficulty 4
  557. forecolor 1 1 1 1
  558. visible 0
  559. decoration
  560. }
  561. // VERY HARD difficulty button
  562. itemDef
  563. {
  564. name vhardbut
  565. group vhard
  566. text @MENUS_JEDI_MASTER
  567. font 3
  568. textscale 1
  569. type ITEM_TYPE_BUTTON
  570. style WINDOW_STYLE_EMPTY
  571. rect 225 335 190 40
  572. textalignx 95
  573. textaligny 8
  574. textalign ITEM_ALIGN_CENTER
  575. textstyle 3
  576. forecolor 1 .682 0 1
  577. visible 1
  578. descText @MENUS_EXTREMELY_DIFFICULT_GAME
  579. action
  580. {
  581. play "sound/interface/button1.wav"
  582. setcvar g_spskill 2
  583. setcvar cg_crosshairForceHint 0
  584. setcvar handicap 50
  585. hide diff1 ;
  586. hide diff2 ;
  587. hide diff3 ;
  588. show diff4 ;
  589. setitemcolor easybut forecolor 1 .682 0 1
  590. setitemcolor medbut forecolor 1 .682 0 1
  591. setitemcolor hardbut forecolor 1 .682 0 1
  592. setitemcolor vhardbut forecolor 1 1 1 1
  593. }
  594. }
  595. // BEGIN button
  596. itemDef
  597. {
  598. name next_glow
  599. group mods
  600. style WINDOW_STYLE_SHADER
  601. rect 455 444 130 24
  602. background "gfx/menus/menu_buttonback" // Frame around button
  603. forecolor 1 1 1 1
  604. visible 0
  605. decoration
  606. }
  607. itemDef
  608. {
  609. name next
  610. group none
  611. text @MENUS_NEXT
  612. descText @MENUS_NEXT_DESC
  613. type ITEM_TYPE_BUTTON
  614. style WINDOW_STYLE_EMPTY
  615. rect 455 444 130 24
  616. font 3
  617. textscale 1
  618. textalignx 65
  619. textaligny -1
  620. textalign ITEM_ALIGN_CENTER
  621. textstyle 3
  622. forecolor 1 .682 0 1
  623. visible 1
  624. action
  625. {
  626. play "sound/interface/button1.wav" ;
  627. close all ;
  628. open characterMenu ;
  629. }
  630. mouseEnter
  631. {
  632. show next_glow
  633. }
  634. mouseExit
  635. {
  636. hide next_glow
  637. }
  638. }
  639. }
  640. }