ingame.menu 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474
  1. //----------------------------------------------------------------------------------------------
  2. // INGAME MAIN MENU
  3. //
  4. // Ingame main menu
  5. //
  6. //----------------------------------------------------------------------------------------------
  7. {
  8. assetGlobalDef
  9. {
  10. smallFont "aurabesh" 18
  11. mediumFont "ergoec" 18
  12. bigFont "anewhope" 20
  13. smallFont "arialnb" 18
  14. cursor "cursor"
  15. itemFocusSound "sound/interface/menuroam.wav"
  16. itemFocusForce "fffx/interface/menuroam"
  17. forceChosenSound "sound/effects/hologram_on"
  18. forceUnchosenSound "sound/effects/hologram_off"
  19. datapadmoveRollSound "sound/player/roll1"
  20. datapadmoveJumpSound "sound/weapons/force/jump"
  21. datapadmoveSaberSound1 "sound/weapons/saber/saberhup1"
  22. datapadmoveSaberSound2 "sound/weapons/saber/saberhup2"
  23. datapadmoveSaberSound3 "sound/weapons/saber/saberhup3"
  24. datapadmoveSaberSound4 "sound/weapons/saber/saberhup4"
  25. datapadmoveSaberSound5 "sound/weapons/saber/saberhup5"
  26. datapadmoveSaberSound6 "sound/weapons/saber/saberhup6"
  27. fadeClamp 1.0 // sets the fadeup alpha
  28. fadeCycle 1 // how often fade happens in milliseconds
  29. fadeAmount 0.1 // amount to adjust alpha per cycle
  30. shadowColor 0.1 0.1 0.1 0.0 // shadow color
  31. focuscolor 0 0 1 1
  32. precacheSound
  33. {
  34. "sound/interface/choose_color.wav"
  35. "sound/interface/choose_head.wav"
  36. "sound/interface/choose_torso.wav"
  37. "sound/interface/choose_saber.wav"
  38. "sound/interface/choose_hilt.wav"
  39. "sound/interface/choose_blade.wav"
  40. "sound/interface/transition.wav"
  41. "sound/interface/esc.wav"
  42. "sound/interface/sub_select.wav"
  43. }
  44. }
  45. menuDef
  46. {
  47. name "ingameMainMenu"
  48. fullScreen 1 // MENU_TRUE
  49. rect 0 0 640 480 // Size and position of the menu
  50. visible 1 // Visible on open
  51. focusColor 1 1 1 1 // Focus color for text and items
  52. descX 320
  53. descY 426
  54. descScale 1
  55. descColor 1 .682 0 .8
  56. descAlignment ITEM_ALIGN_CENTER
  57. onOpen
  58. {
  59. setfocus resume ;
  60. }
  61. onESC
  62. {
  63. play "sound/interface/esc.wav"
  64. uiScript closeingame // Close menu
  65. }
  66. //----------------------------------------------------------------------------------------------
  67. //
  68. // MENU BACKGROUND
  69. //
  70. //----------------------------------------------------------------------------------------------
  71. itemDef
  72. {
  73. name really_background
  74. group none
  75. style WINDOW_STYLE_SHADER
  76. rect 156 154 320 240
  77. background "gfx/menus/main_centerblue"
  78. forecolor 1 1 1 1
  79. visible 1
  80. decoration
  81. }
  82. itemDef
  83. {
  84. name background_text
  85. group none
  86. style WINDOW_STYLE_SHADER
  87. rect 0 0 160 480
  88. background "gfx/menus/menu_side_text"
  89. forecolor 1 1 1 1
  90. visible 1
  91. decoration
  92. }
  93. itemDef
  94. {
  95. name background_text_b
  96. group none
  97. style WINDOW_STYLE_SHADER
  98. rect 480 0 160 480
  99. background "gfx/menus/menu_side_text_right"
  100. forecolor 1 1 1 1
  101. visible 1
  102. decoration
  103. }
  104. itemDef
  105. {
  106. name background
  107. group none
  108. style WINDOW_STYLE_SHADER
  109. rect 0 0 640 480
  110. background "gfx/menus/main_background"
  111. forecolor 1 1 1 1
  112. visible 1
  113. decoration
  114. }
  115. itemDef
  116. {
  117. name starwars
  118. group none
  119. style WINDOW_STYLE_SHADER
  120. rect 107 8 428 112
  121. background "gfx/menus/jediacademy"
  122. forecolor 1 1 1 1
  123. visible 1
  124. decoration
  125. }
  126. itemDef
  127. {
  128. name left_frame
  129. group lf_fr
  130. style WINDOW_STYLE_SHADER
  131. rect 0 50 320 160
  132. background "gfx/menus/menu_boxes_left"
  133. forecolor 1 1 1 1
  134. visible 1
  135. decoration
  136. }
  137. itemDef
  138. {
  139. name right_frame
  140. group rt_fr
  141. style WINDOW_STYLE_SHADER
  142. rect 320 50 320 160
  143. background "gfx/menus/menu_boxes_right"
  144. forecolor 1 1 1 1
  145. visible 1
  146. decoration
  147. }
  148. //----------------------------------------------------------------------------------------------
  149. //
  150. // TOP MENU BUTTONS
  151. //
  152. //----------------------------------------------------------------------------------------------
  153. // Big button "SAVE"
  154. itemDef
  155. {
  156. name savegamebutton_glow
  157. group mods
  158. style WINDOW_STYLE_SHADER
  159. rect 7 126 130 24
  160. background "gfx/menus/menu_buttonback" // Frame around button
  161. forecolor 1 1 1 1
  162. visible 0
  163. decoration
  164. }
  165. itemDef
  166. {
  167. name savegamebutton
  168. group nbut
  169. text @MENUS_SAVE
  170. descText @MENUS_SAVE_CURRENT_GAME
  171. style WINDOW_STYLE_EMPTY
  172. type ITEM_TYPE_BUTTON
  173. rect 7 126 130 24
  174. textaligny 0
  175. font 3
  176. textscale 1.1
  177. textalign ITEM_ALIGN_CENTER
  178. textstyle 1
  179. textalignx 65
  180. forecolor 1 .682 0 1
  181. visible 1
  182. mouseEnter
  183. {
  184. show savegamebutton_glow
  185. }
  186. mouseExit
  187. {
  188. hide savegamebutton_glow
  189. }
  190. action
  191. {
  192. play "sound/interface/button1.wav" ;
  193. close all ;
  194. open ingamesaveMenu
  195. }
  196. }
  197. // Big button "LOAD"
  198. itemDef
  199. {
  200. name loadgamebutton_glow
  201. group none
  202. style WINDOW_STYLE_SHADER
  203. rect 170 126 130 24
  204. background "gfx/menus/menu_buttonback"
  205. forecolor 1 1 1 1
  206. visible 0
  207. decoration
  208. }
  209. itemDef
  210. {
  211. name loadgamebutton
  212. group lbut
  213. text @MENUS_LOAD
  214. descText @MENUS_LOAD_A_SAVED_GAME
  215. style WINDOW_STYLE_EMPTY
  216. type ITEM_TYPE_BUTTON
  217. rect 170 126 130 24
  218. textaligny 0
  219. font 3
  220. textscale 1.1
  221. textalign ITEM_ALIGN_CENTER
  222. textstyle 1
  223. textalignx 65
  224. forecolor 1 .682 0 1
  225. visible 1
  226. mouseEnter
  227. {
  228. show loadgamebutton_glow
  229. }
  230. mouseExit
  231. {
  232. hide loadgamebutton_glow
  233. }
  234. action
  235. {
  236. play "sound/interface/button1.wav" ;
  237. close all ;
  238. open ingameloadMenu
  239. }
  240. }
  241. // Big button "CONTROLS"
  242. itemDef
  243. {
  244. name controlsbutton_glow
  245. group none
  246. style WINDOW_STYLE_SHADER
  247. rect 340 126 130 24
  248. background "gfx/menus/menu_buttonback"
  249. forecolor 1 1 1 1
  250. visible 0
  251. decoration
  252. }
  253. itemDef {
  254. name controlsbutton
  255. group cbut
  256. text @MENUS_CONTROLS
  257. descText @MENUS_CONFIGURE_GAME_CONTROLS
  258. type ITEM_TYPE_BUTTON
  259. style WINDOW_STYLE_EMPTY
  260. rect 340 126 130 24
  261. font 3
  262. textscale 1.1
  263. textaligny 0
  264. textalign ITEM_ALIGN_CENTER
  265. textstyle 1
  266. textalignx 65
  267. backcolor 0 0 0 0
  268. forecolor 1 .682 0 1
  269. visible 1
  270. mouseEnter
  271. {
  272. show controlsbutton_glow
  273. }
  274. mouseExit
  275. {
  276. hide controlsbutton_glow
  277. }
  278. action
  279. {
  280. play "sound/interface/button1.wav" ;
  281. close all ;
  282. open ingamecontrolsMenu ;
  283. }
  284. }
  285. // Big button "SETUP"
  286. itemDef
  287. {
  288. name setupbutton_glow
  289. group none
  290. style WINDOW_STYLE_SHADER
  291. rect 502 126 130 24
  292. background "gfx/menus/menu_buttonback"
  293. forecolor 1 1 1 1
  294. visible 0
  295. decoration
  296. }
  297. itemDef
  298. {
  299. name setupbutton
  300. group sbut
  301. text @MENUS_SETUP
  302. descText @MENUS_CONFIGURE_GAME_SETTINGS
  303. type ITEM_TYPE_BUTTON
  304. style WINDOW_STYLE_EMPTY
  305. rect 502 126 130 24
  306. font 3
  307. textscale 1.1
  308. textaligny 0
  309. textalign ITEM_ALIGN_CENTER
  310. textstyle 1
  311. textalignx 65
  312. backcolor 0 0 0 0
  313. forecolor 1 .682 0 1
  314. visible 1
  315. mouseEnter
  316. {
  317. show setupbutton_glow
  318. }
  319. mouseExit
  320. {
  321. hide setupbutton_glow
  322. }
  323. action
  324. {
  325. play "sound/interface/button1.wav" ;
  326. close all ;
  327. open ingamesetupMenu ;
  328. }
  329. }
  330. //----------------------------------------------------------------------------------------------
  331. //
  332. // OTHER MAIN MENU BUTTONS
  333. //
  334. //----------------------------------------------------------------------------------------------
  335. // EXIT button in lower left corner
  336. itemDef
  337. {
  338. name exitgamebutton_glow
  339. group mods
  340. style WINDOW_STYLE_SHADER
  341. rect 255 444 130 24
  342. background "gfx/menus/menu_buttonback" // Frame around button
  343. forecolor 1 1 1 1
  344. visible 0
  345. decoration
  346. }
  347. itemDef
  348. {
  349. name exitgamebutton
  350. group exit
  351. text @MENUS_EXIT
  352. descText @MENUS_JEDI_KNIGHT_II
  353. type ITEM_TYPE_BUTTON
  354. style WINDOW_STYLE_EMPTY
  355. rect 255 444 130 24
  356. font 3
  357. textscale 1.1
  358. textalign ITEM_ALIGN_CENTER
  359. textstyle 3
  360. textalignx 65
  361. textaligny -1
  362. forecolor 1 .682 0 1
  363. visible 1
  364. mouseEnter
  365. {
  366. show exitgamebutton_glow
  367. }
  368. mouseExit
  369. {
  370. hide exitgamebutton_glow
  371. }
  372. action
  373. {
  374. play "sound/weapons/saber/saberoff.mp3";
  375. close all ;
  376. open ingamequitMenu
  377. }
  378. }
  379. // RESUME button in the lower right corner
  380. itemDef
  381. {
  382. name resumebutton_glow
  383. group mods
  384. style WINDOW_STYLE_SHADER
  385. rect 455 444 130 24
  386. background "gfx/menus/menu_buttonback" // Frame around button
  387. forecolor 1 1 1 1
  388. visible 0
  389. decoration
  390. }
  391. itemDef
  392. {
  393. name resume
  394. group none
  395. style WINDOW_STYLE_EMPTY
  396. type ITEM_TYPE_BUTTON
  397. rect 455 444 130 24
  398. text @MENUS_RESUME
  399. descText @MENUS_RESUME_CURRENT_GAME
  400. font 3
  401. textscale 1
  402. textalign ITEM_ALIGN_CENTER
  403. textstyle 3
  404. textalignx 65
  405. textaligny -1
  406. forecolor 1 .682 0 1
  407. visible 1
  408. mouseEnter
  409. {
  410. show resumebutton_glow
  411. }
  412. mouseExit
  413. {
  414. hide resumebutton_glow
  415. }
  416. action
  417. {
  418. play "sound/interface/button1.wav" ;
  419. uiScript closeingame // Close menu
  420. }
  421. }
  422. }
  423. }