main.menu 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550
  1. //----------------------------------------------------------------------------------------------
  2. //
  3. // MAIN MENU - called when game is first started
  4. //
  5. //----------------------------------------------------------------------------------------------
  6. {
  7. assetGlobalDef
  8. {
  9. smallFont "aurabesh" 18
  10. mediumFont "ergoec" 18
  11. bigFont "anewhope" 20
  12. smallFont "arialnb" 14
  13. cursor "cursor"
  14. itemFocusSound "sound/interface/menuroam.wav"
  15. itemFocusForce "fffx/interface/menuroam"
  16. fadeClamp 1.0 // sets the fadeup alpha
  17. fadeCycle 1 // how often fade happens in milliseconds
  18. fadeAmount 0.1 // amount to adjust alpha per cycle
  19. precacheSound
  20. {
  21. "sound/interface/choose_color.wav"
  22. "sound/interface/choose_head.wav"
  23. "sound/interface/choose_torso.wav"
  24. "sound/interface/choose_saber.wav"
  25. "sound/interface/choose_hilt.wav"
  26. "sound/interface/choose_blade.wav"
  27. "sound/interface/transition.wav"
  28. "sound/interface/esc.wav"
  29. "sound/interface/sub_select.wav"
  30. }
  31. focuscolor 0 0 1 1
  32. shadowColor 0.1 0.1 0.1 0.0 // shadow color
  33. }
  34. menuDef
  35. {
  36. name "mainMenu"
  37. fullScreen 1
  38. rect 0 0 640 480
  39. visible 1
  40. focusColor 1 1 1 1
  41. descX 320
  42. descY 426
  43. descScale 1
  44. descColor 1 .682 0 .8
  45. descAlignment ITEM_ALIGN_CENTER
  46. onOpen
  47. {
  48. setfocus newgamebutton
  49. }
  50. onESC
  51. {
  52. play "sound/interface/menuroam.wav" ;
  53. close mainMenu ;
  54. open quitMenu ;
  55. }
  56. //----------------------------------------------------------------------------------------------
  57. //
  58. // MENU BACKGROUND
  59. //
  60. //----------------------------------------------------------------------------------------------
  61. itemDef
  62. {
  63. name background_video
  64. group none
  65. style WINDOW_STYLE_SHADER
  66. rect 200 144 256 256
  67. background "gfx/menus/videologo"
  68. forecolor 1 1 1 1
  69. visible 1
  70. decoration
  71. }
  72. itemDef
  73. {
  74. name background_text
  75. group none
  76. style WINDOW_STYLE_SHADER
  77. rect 0 0 160 480
  78. background "gfx/menus/menu_side_text"
  79. forecolor 1 1 1 1
  80. visible 1
  81. decoration
  82. }
  83. itemDef
  84. {
  85. name background_text_b
  86. group none
  87. style WINDOW_STYLE_SHADER
  88. rect 480 0 160 480
  89. background "gfx/menus/menu_side_text_right"
  90. forecolor 1 1 1 1
  91. visible 1
  92. decoration
  93. }
  94. itemDef
  95. {
  96. name background
  97. group none
  98. style WINDOW_STYLE_SHADER
  99. rect 0 0 640 480
  100. background "gfx/menus/main_background"
  101. forecolor 1 1 1 1
  102. visible 1
  103. decoration
  104. }
  105. itemDef
  106. {
  107. name ring
  108. group none
  109. style WINDOW_STYLE_SHADER
  110. rect 193 145 256 256
  111. background "gfx/menus/main_ring"
  112. forecolor 1 1 1 1
  113. visible 1
  114. decoration
  115. }
  116. itemDef
  117. {
  118. name centerwindow
  119. group none
  120. style WINDOW_STYLE_SHADER
  121. rect 156 154 320 240
  122. background "gfx/menus/main_centerwindow"
  123. forecolor 1 1 1 1
  124. visible 1
  125. decoration
  126. }
  127. itemDef
  128. {
  129. name leftwindow
  130. group none
  131. style WINDOW_STYLE_SHADER
  132. rect 0 150 320 240
  133. background "gfx/menus/main_leftwindow"
  134. forecolor 1 1 1 1
  135. visible 1
  136. decoration
  137. }
  138. itemDef
  139. {
  140. name rightwindow
  141. group none
  142. style WINDOW_STYLE_SHADER
  143. rect 320 150 320 240
  144. background "gfx/menus/main_rightwindow"
  145. forecolor 1 1 1 1
  146. visible 1
  147. decoration
  148. }
  149. itemDef
  150. {
  151. name starwars
  152. group none
  153. style WINDOW_STYLE_SHADER
  154. rect 107 8 428 112
  155. background "gfx/menus/jediacademy"
  156. forecolor 1 1 1 1
  157. visible 1
  158. decoration
  159. }
  160. //----------------------------------------------------------------------------------------------
  161. // TOP MAIN MENU BUTTONS
  162. //----------------------------------------------------------------------------------------------
  163. itemDef
  164. {
  165. name button_glow
  166. group mods
  167. style WINDOW_STYLE_SHADER
  168. rect 0 0 0 0
  169. background "gfx/menus/menu_buttonback"
  170. forecolor 1 1 1 1
  171. visible 0
  172. decoration
  173. }
  174. // Big button "NEW"
  175. itemDef
  176. {
  177. name newgamebutton_undertext
  178. group toprow
  179. style WINDOW_STYLE_EMPTY
  180. type ITEM_TYPE_BUTTON
  181. rect 36 194 130 24
  182. text @MENUS_NEW
  183. font 1
  184. textscale .7
  185. textaligny 0
  186. textalign ITEM_ALIGN_CENTER
  187. textstyle 1
  188. textalignx 65
  189. forecolor .02 0 .33 1
  190. visible 0
  191. decoration
  192. }
  193. itemDef
  194. {
  195. name newgamebutton
  196. group toprow
  197. style WINDOW_STYLE_EMPTY
  198. type ITEM_TYPE_BUTTON
  199. rect 36 212 130 24
  200. text @MENUS_NEW
  201. descText @MENUS_START_A_NEW_GAME
  202. font 3
  203. textscale 1.1
  204. textaligny 0
  205. textalign ITEM_ALIGN_CENTER
  206. textstyle 1
  207. textalignx 65
  208. forecolor 1 .682 0 1
  209. visible 1
  210. mouseEnter
  211. {
  212. show button_glow
  213. setitemrect button_glow 16 210 210 32
  214. show newgamebutton_undertext
  215. }
  216. mouseExit
  217. {
  218. hide button_glow
  219. hide newgamebutton_undertext
  220. }
  221. action
  222. {
  223. play "sound/interface/button1.wav" ;
  224. close all ;
  225. open newgamefirstMenu
  226. }
  227. }
  228. // Big button "LOAD"
  229. itemDef
  230. {
  231. name loadgamebutton_undertext
  232. group toprow
  233. style WINDOW_STYLE_EMPTY
  234. type ITEM_TYPE_BUTTON
  235. rect 36 293 130 24
  236. text @MENUS_LOAD
  237. font 1
  238. textscale .7
  239. textaligny 0
  240. textalign ITEM_ALIGN_CENTER
  241. textstyle 1
  242. textalignx 65
  243. forecolor .02 0 .33 1
  244. visible 0
  245. decoration
  246. }
  247. itemDef
  248. {
  249. name loadgamebutton
  250. group toprow
  251. text @MENUS_LOAD
  252. descText @MENUS_LOAD_A_SAVED_GAME
  253. style WINDOW_STYLE_EMPTY
  254. type ITEM_TYPE_BUTTON
  255. rect 36 310 130 24
  256. textaligny 0
  257. font 3
  258. textscale 1.1
  259. textalign ITEM_ALIGN_CENTER
  260. textstyle 1
  261. textalignx 65
  262. forecolor 1 .682 0 1
  263. visible 1
  264. mouseEnter
  265. {
  266. show button_glow
  267. setitemrect button_glow 16 308 210 32
  268. show loadgamebutton_undertext
  269. }
  270. mouseExit
  271. {
  272. hide button_glow
  273. hide loadgamebutton_undertext
  274. }
  275. action
  276. {
  277. play "sound/interface/button1.wav" ;
  278. close all ;
  279. open loadgameMenu
  280. }
  281. }
  282. // Big button "CONTROLS"
  283. itemDef
  284. {
  285. name controlsbutton_undertext
  286. group toprow
  287. style WINDOW_STYLE_EMPTY
  288. type ITEM_TYPE_BUTTON
  289. rect 448 194 146 24
  290. text @MENUS_CONTROLS2
  291. font 1
  292. textscale .7
  293. textaligny 0
  294. textalign ITEM_ALIGN_CENTER
  295. textstyle 1
  296. textalignx 65
  297. forecolor .02 0 .33 1
  298. visible 0
  299. decoration
  300. }
  301. itemDef {
  302. name controlsbutton
  303. group toprow
  304. text @MENUS_CONTROLS
  305. descText @MENUS_CONFIGURE_GAME_CONTROLS
  306. type ITEM_TYPE_BUTTON
  307. style WINDOW_STYLE_EMPTY
  308. rect 456 212 130 24
  309. font 3
  310. textscale 1.1
  311. textaligny 0
  312. textalign ITEM_ALIGN_CENTER
  313. textstyle 1
  314. textalignx 65
  315. backcolor 0 0 0 0
  316. forecolor 1 .682 0 1
  317. visible 1
  318. mouseEnter
  319. {
  320. show button_glow
  321. setitemrect button_glow 416 210 210 32
  322. show controlsbutton_undertext
  323. }
  324. mouseExit
  325. {
  326. hide button_glow
  327. hide controlsbutton_undertext
  328. }
  329. action
  330. {
  331. play "sound/interface/button1.wav" ;
  332. close all ;
  333. open controlsMenu ;
  334. }
  335. }
  336. // Big button "SETUP"
  337. itemDef
  338. {
  339. name setupbutton_undertext
  340. group toprow
  341. style WINDOW_STYLE_EMPTY
  342. type ITEM_TYPE_BUTTON
  343. rect 456 292 130 24
  344. text @MENUS_SETUP
  345. font 1
  346. textscale .7
  347. textaligny 0
  348. textalign ITEM_ALIGN_CENTER
  349. textstyle 1
  350. textalignx 65
  351. forecolor .02 0 .33 1
  352. visible 0
  353. decoration
  354. }
  355. itemDef {
  356. name setupbutton
  357. group toprow
  358. text @MENUS_SETUP
  359. descText @MENUS_CONFIGURE_GAME_SETTINGS
  360. type ITEM_TYPE_BUTTON
  361. style WINDOW_STYLE_EMPTY
  362. rect 456 310 130 24
  363. font 3
  364. textscale 1.1
  365. textaligny 0
  366. textalign ITEM_ALIGN_CENTER
  367. textstyle 1
  368. textalignx 65
  369. backcolor 0 0 0 0
  370. forecolor 1 .682 0 1
  371. visible 1
  372. mouseEnter
  373. {
  374. show button_glow
  375. setitemrect button_glow 416 308 210 32
  376. show setupbutton_undertext
  377. }
  378. mouseExit
  379. {
  380. hide button_glow
  381. hide setupbutton_undertext
  382. }
  383. action
  384. {
  385. play "sound/interface/button1.wav" ;
  386. close all ;
  387. open setupMenu ;
  388. }
  389. }
  390. //----------------------------------------------------------------------------------------------
  391. // OTHER MAIN MENU BUTTONS
  392. //----------------------------------------------------------------------------------------------
  393. // EXIT button in lower left corner
  394. itemDef
  395. {
  396. name exitgamebutton
  397. group othermain
  398. text @MENUS_EXIT
  399. descText @MENUS_JEDI_KNIGHT_II
  400. type ITEM_TYPE_BUTTON
  401. style WINDOW_STYLE_EMPTY
  402. rect 255 444 130 24
  403. font 3
  404. textscale 1.1
  405. textalign ITEM_ALIGN_CENTER
  406. textstyle 3
  407. textalignx 65
  408. textaligny -1
  409. forecolor 1 .682 0 1
  410. visible 1
  411. mouseEnter
  412. {
  413. show button_glow
  414. setitemrect button_glow 215 440 210 32
  415. }
  416. mouseExit
  417. {
  418. hide button_glow
  419. }
  420. action
  421. {
  422. play "sound/weapons/saber/saberoff.mp3";
  423. close all ;
  424. open quitMenu
  425. }
  426. }
  427. /*itemDef
  428. {
  429. name temp_mission_glow
  430. group mods
  431. style WINDOW_STYLE_SHADER
  432. rect 65 414 130 24
  433. background "gfx/menus/menu_buttonback" // Frame around button
  434. forecolor 1 1 1 1
  435. visible 0
  436. decoration
  437. }
  438. itemDef
  439. {
  440. name temp_mission
  441. group mission
  442. text "TEMP MISSION SELECT"
  443. type ITEM_TYPE_BUTTON
  444. style WINDOW_STYLE_EMPTY
  445. rect 65 414 130 24
  446. font 2
  447. textscale .7
  448. textalign ITEM_ALIGN_CENTER
  449. textstyle 1
  450. textalignx 65
  451. textaligny -1
  452. forecolor .79 .64 .22 1
  453. visible 1
  454. mouseEnter
  455. {
  456. show temp_mission_glow
  457. }
  458. mouseExit
  459. {
  460. hide temp_mission_glow
  461. }
  462. action
  463. {
  464. play "sound/weapons/saber/saberoff.mp3";
  465. close all ;
  466. open ingameMissionSelect2
  467. }
  468. }
  469. itemDef
  470. {
  471. name temp_story
  472. group mission
  473. text "AbCdEfGhIjKlMnOpQrStUvWxYz1234567890"
  474. desctext "Start this map and walk forward."
  475. type ITEM_TYPE_BUTTON
  476. style WINDOW_STYLE_EMPTY
  477. rect 65 444 130 24
  478. font 4
  479. textscale 1
  480. textalign ITEM_ALIGN_CENTER
  481. textstyle 1
  482. textalignx 65
  483. textaligny -1
  484. forecolor .79 .64 .22 1
  485. visible 1
  486. mouseEnter
  487. {
  488. }
  489. mouseExit
  490. {
  491. }
  492. action
  493. {
  494. play "sound/weapons/saber/saberoff.mp3";
  495. close all ;
  496. exec "map mission"
  497. }
  498. }*/
  499. }
  500. }