credits.menu 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442
  1. // CREDITS MENU
  2. {
  3. menuDef
  4. {
  5. name "creditsMenu"
  6. fullScreen 1 // MENU_TRUE
  7. rect 0 0 640 480 // Size and position of the menu
  8. visible 1 // Visible on open
  9. focusColor 1 1 1 1 // Focus color for text and items
  10. appearanceIncrement 75 // In miliseconds
  11. descX 320
  12. descY 434
  13. descScale 1
  14. descColor .235 .882 .847 1 // Focus color for text and items
  15. descAlignment ITEM_ALIGN_CENTER
  16. onOpen
  17. {
  18. exec "music music/cairn_bay/impbasee_action" ;
  19. setfocus newgamebutton ;
  20. }
  21. onClose
  22. {
  23. exec "music music/cairn_bay/impbasee_explore" ;
  24. }
  25. onESC
  26. {
  27. play "sound/interface/button1.wav" ;
  28. close all ;
  29. open mainMenu ;
  30. }
  31. //----------------------------------------------------------------------------------------------
  32. //
  33. // MENU BACKGROUND
  34. //
  35. //----------------------------------------------------------------------------------------------
  36. itemDef
  37. {
  38. name frame_pic
  39. group none
  40. style WINDOW_STYLE_SHADER
  41. rect 0 0 640 480
  42. background "gfx/menus/menu1" // Frame
  43. forecolor 1 1 1 1
  44. visible 1
  45. decoration
  46. }
  47. // The saber glow on the left
  48. itemDef
  49. {
  50. name saberglow
  51. group none
  52. style WINDOW_STYLE_SHADER
  53. rect 30 0 90 480
  54. background "gfx/menus/menu3" // Frame
  55. forecolor 0.8 0.8 0.8 1
  56. visible 1
  57. decoration
  58. }
  59. // The starwars logo on the top
  60. itemDef
  61. {
  62. name starwars
  63. group none
  64. style WINDOW_STYLE_SHADER
  65. rect 143 12 470 93
  66. background "gfx/menus/menu4" // Frame
  67. forecolor 1 1 1 1
  68. visible 1
  69. decoration
  70. }
  71. // The saber halo on the left
  72. itemDef
  73. {
  74. name saberhalo
  75. group none
  76. style WINDOW_STYLE_SHADER
  77. rect -425 -185 1000 1000
  78. background "gfx/menus/menu2" // Frame
  79. forecolor 0.5 0.5 0.5 1
  80. visible 1
  81. decoration
  82. }
  83. itemDef
  84. {
  85. name logomodel
  86. group none
  87. type ITEM_TYPE_MODEL
  88. rect -123 48 400 400
  89. model_angle 90
  90. model_rotation 3.5
  91. asset_model "models/map_objects/bespin/jk2logo.md3"
  92. // model_fovx 37
  93. // model_fovy 34
  94. // model_origin 100 100 100
  95. visible 1
  96. decoration
  97. }
  98. // The saber halo on the left
  99. itemDef
  100. {
  101. name saberhalo2
  102. group none
  103. style WINDOW_STYLE_SHADER
  104. rect -225 15 600 600
  105. background "gfx/menus/menu2b" // Frame
  106. forecolor 0.25 0.25 0.25 1
  107. visible 1
  108. decoration
  109. }
  110. //----------------------------------------------------------------------------------------------
  111. //
  112. // TOP MAIN MENU BUTTONS
  113. //
  114. //----------------------------------------------------------------------------------------------
  115. // Big button "NEW"
  116. itemDef
  117. {
  118. name newgamebutton_glow
  119. group mods
  120. style WINDOW_STYLE_SHADER
  121. rect 115 115 130 24
  122. background "gfx/menus/menu_buttonback" // Frame around button
  123. forecolor 1 1 1 1
  124. visible 0
  125. // appearance_slot 1
  126. decoration
  127. }
  128. itemDef
  129. {
  130. name newgamebutton
  131. group toprow
  132. style WINDOW_STYLE_EMPTY
  133. type ITEM_TYPE_BUTTON
  134. rect 115 115 130 24
  135. text @MENUS_NEW
  136. descText @MENUS_START_A_NEW_GAME
  137. font 3
  138. textscale 0.9
  139. textaligny 0
  140. textalign ITEM_ALIGN_CENTER
  141. textstyle 3
  142. textalignx 65
  143. forecolor 0.64 0.65 1 1
  144. visible 1
  145. mouseEnter
  146. {
  147. show newgamebutton_glow
  148. }
  149. mouseExit
  150. {
  151. hide newgamebutton_glow
  152. }
  153. action
  154. {
  155. play "sound/interface/button1.wav" ;
  156. close all ;
  157. open newgameMenu
  158. }
  159. }
  160. // Big button "LOAD"
  161. itemDef
  162. {
  163. name loadgamebutton_glow
  164. group mods
  165. style WINDOW_STYLE_SHADER
  166. rect 245 115 130 24
  167. background "gfx/menus/menu_buttonback" // Frame around button
  168. forecolor 1 1 1 1
  169. visible 0
  170. // appearance_slot 1
  171. decoration
  172. }
  173. itemDef
  174. {
  175. name loadgamebutton
  176. group toprow
  177. text @MENUS_LOAD
  178. descText @MENUS_LOAD_A_SAVED_GAME
  179. style WINDOW_STYLE_EMPTY
  180. type ITEM_TYPE_BUTTON
  181. rect 245 115 130 24
  182. textaligny 0
  183. font 3
  184. textscale 0.9
  185. textalign ITEM_ALIGN_CENTER
  186. textstyle 3
  187. textalignx 65
  188. forecolor 0.64 0.65 1 1
  189. visible 1
  190. mouseEnter
  191. {
  192. show loadgamebutton_glow
  193. }
  194. mouseExit
  195. {
  196. hide loadgamebutton_glow
  197. }
  198. action
  199. {
  200. play "sound/interface/button1.wav" ;
  201. close all ;
  202. open loadgameMenu
  203. }
  204. }
  205. // Big button "CONTROLS"
  206. itemDef
  207. {
  208. name controlsbutton_glow
  209. group mods
  210. style WINDOW_STYLE_SHADER
  211. rect 375 115 130 24
  212. background "gfx/menus/menu_buttonback" // Frame around button
  213. forecolor 1 1 1 1
  214. visible 0
  215. // appearance_slot 1
  216. decoration
  217. }
  218. itemDef {
  219. name controlsbutton
  220. group toprow
  221. text @MENUS_CONTROLS2
  222. descText @MENUS_CONFIGURE_GAME_CONTROLS
  223. type ITEM_TYPE_BUTTON
  224. style WINDOW_STYLE_EMPTY
  225. rect 375 115 130 24
  226. font 3
  227. textscale 0.9
  228. textaligny 0
  229. textalign ITEM_ALIGN_CENTER
  230. textstyle 3
  231. textalignx 65
  232. backcolor 0 0 0 0
  233. forecolor 0.64 0.65 1 1
  234. visible 1
  235. mouseEnter
  236. {
  237. show controlsbutton_glow
  238. }
  239. mouseExit
  240. {
  241. hide controlsbutton_glow
  242. }
  243. action
  244. {
  245. play "sound/interface/button1.wav" ;
  246. close all ;
  247. open controlsMenu ;
  248. }
  249. }
  250. // Big button "SETUP"
  251. itemDef
  252. {
  253. name setupbutton_glow
  254. group mods
  255. style WINDOW_STYLE_SHADER
  256. rect 505 115 130 24
  257. background "gfx/menus/menu_buttonback" // Frame around button
  258. forecolor 1 1 1 1
  259. visible 0
  260. // appearance_slot 1
  261. decoration
  262. }
  263. itemDef {
  264. name setupbutton
  265. group toprow
  266. text @MENUS_SETUP
  267. descText @MENUS_CONFIGURE_GAME_SETTINGS
  268. type ITEM_TYPE_BUTTON
  269. style WINDOW_STYLE_EMPTY
  270. rect 505 115 130 24
  271. font 3
  272. textscale 0.9
  273. textaligny 0
  274. textalign ITEM_ALIGN_CENTER
  275. textstyle 3
  276. textalignx 65
  277. backcolor 0 0 0 0
  278. forecolor 0.64 0.65 1 1
  279. visible 1
  280. mouseEnter
  281. {
  282. show setupbutton_glow
  283. }
  284. mouseExit
  285. {
  286. hide setupbutton_glow
  287. }
  288. action
  289. {
  290. play "sound/interface/button1.wav" ;
  291. close all ;
  292. open setupMenu ;
  293. }
  294. }
  295. itemDef
  296. {
  297. name header_line
  298. group toprow
  299. style WINDOW_STYLE_SHADER
  300. rect 125 136 500 4
  301. background "gfx/menus/menu_line" // Frame
  302. forecolor 1 1 1 1
  303. visible 1
  304. decoration
  305. }
  306. //----------------------------------------------------------------------------------------------
  307. //
  308. // OTHER MAIN MENU BUTTONS
  309. //
  310. //----------------------------------------------------------------------------------------------
  311. // EXIT button in lower left corner
  312. itemDef
  313. {
  314. name exitgamebutton_glow
  315. group mods
  316. style WINDOW_STYLE_SHADER
  317. rect 115 444 130 24
  318. background "gfx/menus/menu_buttonback" // Frame around button
  319. forecolor 1 1 1 1
  320. visible 0
  321. // appearance_slot 1
  322. decoration
  323. }
  324. itemDef
  325. {
  326. name exitgamebutton
  327. group othermain
  328. text @MENUS_EXIT
  329. descText @MENUS_JEDI_KNIGHT_II
  330. type ITEM_TYPE_BUTTON
  331. style WINDOW_STYLE_EMPTY
  332. rect 115 444 130 24
  333. font 3
  334. textscale 1
  335. textalign ITEM_ALIGN_CENTER
  336. textstyle 3
  337. textalignx 65
  338. textaligny -1
  339. forecolor 0.65 0.65 1 1
  340. visible 1
  341. mouseEnter
  342. {
  343. show exitgamebutton_glow
  344. }
  345. mouseExit
  346. {
  347. hide exitgamebutton_glow
  348. }
  349. action
  350. {
  351. play "sound/weapons/saber/saberoff.mp3";
  352. close all ;
  353. open quitMenu
  354. }
  355. }
  356. //----------------------------------------------------------------------------------------------
  357. //
  358. // CREDITS FIELDS
  359. //
  360. //----------------------------------------------------------------------------------------------
  361. // Credits title
  362. itemDef
  363. {
  364. name credits_title
  365. group none
  366. style WINDOW_STYLE_SHADER
  367. background "gfx/menus/menu_blendbox"
  368. text @MENUS_CREDITS
  369. rect 150 145 450 16
  370. font 3
  371. textscale 0.7
  372. textalign ITEM_ALIGN_CENTER
  373. textalignx 225
  374. textaligny -1
  375. forecolor 1 1 1 1
  376. visible 1
  377. // appearance_slot 2
  378. decoration
  379. }
  380. itemDef
  381. {
  382. name confirm
  383. group none
  384. text @MENUS_TO_BE_DETERMINED
  385. font 2
  386. textscale 1
  387. textstyle 3
  388. rect 320 220 110 20
  389. textalign ITEM_ALIGN_CENTER
  390. textalignx 0
  391. textaligny 0
  392. decoration
  393. forecolor .433 .703 .722 1
  394. visible 1
  395. // appearance_slot 2
  396. }
  397. }
  398. }