quit.menu 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507
  1. //----------------------------------------------------------------------------------------------
  2. //
  3. // QUIT MENU
  4. //
  5. //----------------------------------------------------------------------------------------------
  6. {
  7. menuDef
  8. {
  9. name "quitMenu"
  10. visible 0
  11. fullScreen 1
  12. rect 0 0 640 480
  13. focusColor 1 1 1 1
  14. descX 320
  15. descY 426
  16. descScale 1
  17. descColor 1 .682 0 .8
  18. descAlignment ITEM_ALIGN_CENTER
  19. onESC
  20. {
  21. play "sound/interface/esc.wav"
  22. close quitMenu ;
  23. open mainMenu ;
  24. }
  25. onOpen
  26. {
  27. setfocus quitgame_cancel
  28. }
  29. //----------------------------------------------------------------------------------------------
  30. // MENU BACKGROUND
  31. //----------------------------------------------------------------------------------------------
  32. itemDef
  33. {
  34. name really_background
  35. group none
  36. style WINDOW_STYLE_SHADER
  37. rect 156 154 320 240
  38. background "gfx/menus/main_centerblue"
  39. forecolor 1 1 1 1
  40. visible 1
  41. decoration
  42. }
  43. itemDef
  44. {
  45. name background_text
  46. group none
  47. style WINDOW_STYLE_SHADER
  48. rect 0 0 160 480
  49. background "gfx/menus/menu_side_text"
  50. forecolor 1 1 1 1
  51. visible 1
  52. decoration
  53. }
  54. itemDef
  55. {
  56. name background_text_b
  57. group none
  58. style WINDOW_STYLE_SHADER
  59. rect 480 0 160 480
  60. background "gfx/menus/menu_side_text_right"
  61. forecolor 1 1 1 1
  62. visible 1
  63. decoration
  64. }
  65. itemDef
  66. {
  67. name background
  68. group none
  69. style WINDOW_STYLE_SHADER
  70. rect 0 0 640 480
  71. background "gfx/menus/main_background"
  72. forecolor 1 1 1 1
  73. visible 1
  74. decoration
  75. }
  76. itemDef
  77. {
  78. name starwars
  79. group none
  80. style WINDOW_STYLE_SHADER
  81. rect 107 8 428 112
  82. background "gfx/menus/jediacademy"
  83. forecolor 1 1 1 1
  84. visible 1
  85. decoration
  86. }
  87. itemDef
  88. {
  89. name left_frame
  90. group lf_fr
  91. style WINDOW_STYLE_SHADER
  92. rect 0 50 320 160
  93. background "gfx/menus/menu_boxes_left"
  94. forecolor 1 1 1 1
  95. visible 1
  96. decoration
  97. }
  98. itemDef
  99. {
  100. name right_frame
  101. group rt_fr
  102. style WINDOW_STYLE_SHADER
  103. rect 320 50 320 160
  104. background "gfx/menus/menu_boxes_right"
  105. forecolor 1 1 1 1
  106. visible 1
  107. decoration
  108. }
  109. //----------------------------------------------------------------------------------------------
  110. // TOP MAIN MENU BUTTONS
  111. //----------------------------------------------------------------------------------------------
  112. // Big button "NEW"
  113. itemDef
  114. {
  115. name newbutton_glow
  116. group none
  117. style WINDOW_STYLE_SHADER
  118. rect 7 126 130 24
  119. background "gfx/menus/menu_buttonback"
  120. forecolor 1 1 1 1
  121. visible 0
  122. decoration
  123. }
  124. itemDef
  125. {
  126. name newgamebutton
  127. group nbut
  128. style WINDOW_STYLE_EMPTY
  129. type ITEM_TYPE_BUTTON
  130. rect 7 126 130 24
  131. text @MENUS_NEW
  132. descText @MENUS_START_A_NEW_GAME
  133. font 3
  134. textscale 1.1
  135. textaligny 0
  136. textalign ITEM_ALIGN_CENTER
  137. textstyle 1
  138. textalignx 65
  139. forecolor 1 .682 0 1
  140. visible 1
  141. mouseEnter
  142. {
  143. show newbutton_glow
  144. }
  145. mouseExit
  146. {
  147. hide newbutton_glow
  148. }
  149. action
  150. {
  151. play "sound/interface/button1.wav" ;
  152. close all ;
  153. open newgameMenu
  154. }
  155. }
  156. // Big button "LOAD"
  157. itemDef
  158. {
  159. name loadgamebutton_glow
  160. group none
  161. style WINDOW_STYLE_SHADER
  162. rect 170 126 130 24
  163. background "gfx/menus/menu_buttonback"
  164. forecolor 1 1 1 1
  165. visible 0
  166. decoration
  167. }
  168. itemDef
  169. {
  170. name loadgamebutton
  171. group lbut
  172. text @MENUS_LOAD
  173. descText @MENUS_LOAD_A_SAVED_GAME
  174. style WINDOW_STYLE_EMPTY
  175. type ITEM_TYPE_BUTTON
  176. rect 170 126 130 24
  177. textaligny 0
  178. font 3
  179. textscale 1.1
  180. textalign ITEM_ALIGN_CENTER
  181. textstyle 1
  182. textalignx 65
  183. forecolor 1 .682 0 1
  184. visible 1
  185. mouseEnter
  186. {
  187. show loadgamebutton_glow
  188. }
  189. mouseExit
  190. {
  191. hide loadgamebutton_glow
  192. }
  193. action
  194. {
  195. play "sound/interface/button1.wav" ;
  196. close all ;
  197. open loadgameMenu
  198. }
  199. }
  200. // Big button "CONTROLS"
  201. itemDef
  202. {
  203. name controlsbutton_glow
  204. group none
  205. style WINDOW_STYLE_SHADER
  206. rect 340 126 130 24
  207. background "gfx/menus/menu_buttonback"
  208. forecolor 1 1 1 1
  209. visible 0
  210. decoration
  211. }
  212. itemDef {
  213. name controlsbutton
  214. group cbut
  215. text @MENUS_CONTROLS
  216. descText @MENUS_CONFIGURE_GAME_CONTROLS
  217. type ITEM_TYPE_BUTTON
  218. style WINDOW_STYLE_EMPTY
  219. rect 340 126 130 24
  220. font 3
  221. textscale 1.1
  222. textaligny 0
  223. textalign ITEM_ALIGN_CENTER
  224. textstyle 1
  225. textalignx 65
  226. backcolor 0 0 0 0
  227. forecolor 1 .682 0 1
  228. visible 1
  229. mouseEnter
  230. {
  231. show controlsbutton_glow
  232. }
  233. mouseExit
  234. {
  235. hide controlsbutton_glow
  236. }
  237. action
  238. {
  239. play "sound/interface/button1.wav" ;
  240. close all ;
  241. open controlsMenu ;
  242. }
  243. }
  244. // Big button "SETUP"
  245. itemDef
  246. {
  247. name setupbutton_glow
  248. group none
  249. style WINDOW_STYLE_SHADER
  250. rect 502 126 130 24
  251. background "gfx/menus/menu_buttonback"
  252. forecolor 1 1 1 1
  253. visible 0
  254. decoration
  255. }
  256. itemDef
  257. {
  258. name setupbutton
  259. group sbut
  260. text @MENUS_SETUP
  261. descText @MENUS_CONFIGURE_GAME_SETTINGS
  262. type ITEM_TYPE_BUTTON
  263. style WINDOW_STYLE_EMPTY
  264. rect 502 126 130 24
  265. font 3
  266. textscale 1.1
  267. textaligny 0
  268. textalign ITEM_ALIGN_CENTER
  269. textstyle 1
  270. textalignx 65
  271. backcolor 0 0 0 0
  272. forecolor 1 .682 0 1
  273. visible 1
  274. mouseEnter
  275. {
  276. show setupbutton_glow
  277. }
  278. mouseExit
  279. {
  280. hide setupbutton_glow
  281. }
  282. action
  283. {
  284. play "sound/interface/button1.wav" ;
  285. close all ;
  286. open setupMenu ;
  287. }
  288. }
  289. //----------------------------------------------------------------------------------------------
  290. // QUIT MENU specific stuff
  291. //----------------------------------------------------------------------------------------------
  292. itemDef
  293. {
  294. name quit_title
  295. group none
  296. text @MENUS_LEAVING_JEDI_KNIGHT_2
  297. style WINDOW_STYLE_SHADER
  298. background "gfx/menus/menu_blendbox"
  299. rect 100 164 440 16
  300. font 3
  301. textscale 0.7
  302. textalign ITEM_ALIGN_CENTER
  303. textalignx 225
  304. textaligny -1
  305. forecolor .549 .854 1 1
  306. visible 1
  307. decoration
  308. }
  309. itemDef
  310. {
  311. name confirm
  312. group none
  313. text @MENUS_QUIT_JEDI_KNIGHT_II
  314. rect 0 250 640 20
  315. font 2
  316. textstyle 1
  317. textscale 1
  318. textalign ITEM_ALIGN_CENTER
  319. textalignx 320
  320. textaligny 0
  321. forecolor 1 1 1 1
  322. visible 1
  323. decoration
  324. }
  325. //----------------------------------------------------------------------------------------------
  326. // CANCEL button
  327. //----------------------------------------------------------------------------------------------
  328. itemDef
  329. {
  330. name quitgame_no_button
  331. group none
  332. style WINDOW_STYLE_SHADER
  333. rect 59 444 130 24
  334. background "gfx/menus/menu_buttonback"
  335. forecolor 1 1 1 1
  336. visible 0
  337. decoration
  338. }
  339. itemDef
  340. {
  341. name quitgame_no
  342. group none
  343. text @MENUS_NO
  344. descText @MENUS_DO_NOT_LEAVE_JEDI_KNIGHT
  345. type ITEM_TYPE_BUTTON
  346. style WINDOW_STYLE_EMPTY
  347. rect 59 444 130 24
  348. font 3
  349. textscale 1
  350. textalignx 65
  351. textaligny -1
  352. textalign ITEM_ALIGN_CENTER
  353. textstyle 1
  354. forecolor 1 .682 0 1
  355. visible 1
  356. action
  357. {
  358. play "sound/interface/esc.wav"
  359. close quitMenu
  360. open mainMenu
  361. }
  362. mouseEnter
  363. {
  364. show quitgame_no_button
  365. }
  366. mouseExit
  367. {
  368. hide quitgame_no_button
  369. }
  370. }
  371. //----------------------------------------------------------------------------------------------
  372. // CONFIRM button
  373. //----------------------------------------------------------------------------------------------
  374. itemDef
  375. {
  376. name quitgame_yes_button
  377. group none
  378. style WINDOW_STYLE_SHADER
  379. rect 454 444 130 24
  380. background "gfx/menus/menu_buttonback"
  381. forecolor 1 1 1 1
  382. visible 0
  383. decoration
  384. }
  385. itemDef
  386. {
  387. name quitgame_yes
  388. group none
  389. text @MENUS_YES
  390. descText @MENUS_JEDI_KNIGHT_II
  391. type ITEM_TYPE_BUTTON
  392. style WINDOW_STYLE_EMPTY
  393. rect 454 444 130 24
  394. font 3
  395. textscale 1
  396. textalignx 65
  397. textaligny -1
  398. textalign ITEM_ALIGN_CENTER
  399. textstyle 1
  400. forecolor 1 .682 0 1
  401. visible 1
  402. cvartest "com_demo"
  403. hidecvar
  404. {
  405. "1"
  406. }
  407. action
  408. {
  409. play "sound/interface/button1.wav"
  410. uiScript Quit
  411. }
  412. mouseEnter
  413. {
  414. show quitgame_yes_button
  415. }
  416. mouseExit
  417. {
  418. hide quitgame_yes_button
  419. }
  420. }
  421. itemDef
  422. {
  423. name quitgame_yes
  424. group none
  425. text @MENUS_YES
  426. descText @MENUS_JEDI_KNIGHT_II
  427. type ITEM_TYPE_BUTTON
  428. style WINDOW_STYLE_EMPTY
  429. rect 454 444 130 24
  430. font 3
  431. textscale 1
  432. textalignx 65
  433. textaligny -1
  434. textalign ITEM_ALIGN_CENTER
  435. textstyle 1
  436. forecolor 1 .682 0 1
  437. visible 1
  438. cvartest "com_demo"
  439. hidecvar
  440. {
  441. "0"
  442. }
  443. action
  444. {
  445. play "sound/interface/button1.wav"
  446. close all
  447. open demo_sellscreen1
  448. }
  449. mouseEnter
  450. {
  451. show quitgame_yes_button
  452. }
  453. mouseExit
  454. {
  455. hide quitgame_yes_button
  456. }
  457. }
  458. }
  459. }