ingamequit.menu 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784
  1. //----------------------------------------------------------------------------------------------
  2. //
  3. // QUIT MENU
  4. //
  5. //----------------------------------------------------------------------------------------------
  6. {
  7. menuDef
  8. {
  9. name "ingamequitMenu"
  10. visible 0
  11. fullScreen 1 // MENU_TRUE
  12. rect 0 0 640 480 // Size and position of the menu
  13. focusColor 1 1 1 1 // Focus color for text and items
  14. descX 320
  15. descY 426
  16. descScale 1
  17. descColor 1 .682 0 .8
  18. descAlignment ITEM_ALIGN_CENTER
  19. onOpen
  20. {
  21. hide abandongamegroup ;
  22. hide quitprogramgroup ;
  23. hide highlights ;
  24. show quitchoicegroup ;
  25. }
  26. onESC
  27. {
  28. play "sound/interface/esc.wav"
  29. hide abandongamegroup ;
  30. hide quitprogramgroup ;
  31. hide highlights ;
  32. show quitchoicegroup ;
  33. close all ;
  34. open ingameMainMenu ;
  35. }
  36. //----------------------------------------------------------------------------------------------
  37. //
  38. // MENU BACKGROUND
  39. //
  40. //----------------------------------------------------------------------------------------------
  41. itemDef
  42. {
  43. name really_background
  44. group none
  45. style WINDOW_STYLE_SHADER
  46. rect 156 154 320 240
  47. background "gfx/menus/main_centerblue"
  48. forecolor 1 1 1 1
  49. visible 1
  50. decoration
  51. }
  52. itemDef
  53. {
  54. name background_text
  55. group none
  56. style WINDOW_STYLE_SHADER
  57. rect 0 0 160 480
  58. background "gfx/menus/menu_side_text"
  59. forecolor 1 1 1 1
  60. visible 1
  61. decoration
  62. }
  63. itemDef
  64. {
  65. name background_text_b
  66. group none
  67. style WINDOW_STYLE_SHADER
  68. rect 480 0 160 480
  69. background "gfx/menus/menu_side_text_right"
  70. forecolor 1 1 1 1
  71. visible 1
  72. decoration
  73. }
  74. itemDef
  75. {
  76. name background
  77. group none
  78. style WINDOW_STYLE_SHADER
  79. rect 0 0 640 480
  80. background "gfx/menus/main_background"
  81. forecolor 1 1 1 1
  82. visible 1
  83. decoration
  84. }
  85. itemDef
  86. {
  87. name starwars
  88. group none
  89. style WINDOW_STYLE_SHADER
  90. rect 107 8 428 112
  91. background "gfx/menus/jediacademy"
  92. forecolor 1 1 1 1
  93. visible 1
  94. decoration
  95. }
  96. itemDef
  97. {
  98. name left_frame
  99. group lf_fr
  100. style WINDOW_STYLE_SHADER
  101. rect 0 50 320 160
  102. background "gfx/menus/menu_boxes_left"
  103. forecolor 1 1 1 1
  104. visible 1
  105. decoration
  106. }
  107. itemDef
  108. {
  109. name right_frame
  110. group rt_fr
  111. style WINDOW_STYLE_SHADER
  112. rect 320 50 320 160
  113. background "gfx/menus/menu_boxes_right"
  114. forecolor 1 1 1 1
  115. visible 1
  116. decoration
  117. }
  118. //----------------------------------------------------------------------------------------------
  119. //
  120. // TOP MENU BUTTONS
  121. //
  122. //----------------------------------------------------------------------------------------------
  123. // Big button "SAVE"
  124. itemDef
  125. {
  126. name savegamebutton_glow
  127. group mods
  128. style WINDOW_STYLE_SHADER
  129. rect 7 126 130 24
  130. background "gfx/menus/menu_buttonback" // Frame around button
  131. forecolor 1 1 1 1
  132. visible 0
  133. decoration
  134. }
  135. itemDef
  136. {
  137. name savegamebutton
  138. group nbut
  139. text @MENUS_SAVE
  140. descText @MENUS_SAVE_CURRENT_GAME
  141. style WINDOW_STYLE_EMPTY
  142. type ITEM_TYPE_BUTTON
  143. rect 7 126 130 24
  144. textaligny 0
  145. font 3
  146. textscale 1.1
  147. textalign ITEM_ALIGN_CENTER
  148. textstyle 1
  149. textalignx 65
  150. forecolor 1 .682 0 1
  151. visible 1
  152. mouseEnter
  153. {
  154. show savegamebutton_glow
  155. }
  156. mouseExit
  157. {
  158. hide savegamebutton_glow
  159. }
  160. action
  161. {
  162. play "sound/interface/button1.wav" ;
  163. close all ;
  164. open ingamesaveMenu
  165. }
  166. }
  167. // Big button "LOAD"
  168. itemDef
  169. {
  170. name loadgamebutton_glow
  171. group none
  172. style WINDOW_STYLE_SHADER
  173. rect 170 126 130 24
  174. background "gfx/menus/menu_buttonback"
  175. forecolor 1 1 1 1
  176. visible 0
  177. decoration
  178. }
  179. itemDef
  180. {
  181. name loadgamebutton
  182. group lbut
  183. text @MENUS_LOAD
  184. descText @MENUS_LOAD_A_SAVED_GAME
  185. style WINDOW_STYLE_EMPTY
  186. type ITEM_TYPE_BUTTON
  187. rect 170 126 130 24
  188. textaligny 0
  189. font 3
  190. textscale 1.1
  191. textalign ITEM_ALIGN_CENTER
  192. textstyle 1
  193. textalignx 65
  194. forecolor 1 .682 0 1
  195. visible 1
  196. mouseEnter
  197. {
  198. show loadgamebutton_glow
  199. }
  200. mouseExit
  201. {
  202. hide loadgamebutton_glow
  203. }
  204. action
  205. {
  206. play "sound/interface/button1.wav" ;
  207. close all ;
  208. open ingameloadMenu
  209. }
  210. }
  211. // Big button "CONTROLS"
  212. itemDef
  213. {
  214. name controlsbutton_glow
  215. group none
  216. style WINDOW_STYLE_SHADER
  217. rect 340 126 130 24
  218. background "gfx/menus/menu_buttonback"
  219. forecolor 1 1 1 1
  220. visible 0
  221. decoration
  222. }
  223. itemDef {
  224. name controlsbutton
  225. group cbut
  226. text @MENUS_CONTROLS
  227. descText @MENUS_CONFIGURE_GAME_CONTROLS
  228. type ITEM_TYPE_BUTTON
  229. style WINDOW_STYLE_EMPTY
  230. rect 340 126 130 24
  231. font 3
  232. textscale 1.1
  233. textaligny 0
  234. textalign ITEM_ALIGN_CENTER
  235. textstyle 1
  236. textalignx 65
  237. backcolor 0 0 0 0
  238. forecolor 1 .682 0 1
  239. visible 1
  240. mouseEnter
  241. {
  242. show controlsbutton_glow
  243. }
  244. mouseExit
  245. {
  246. hide controlsbutton_glow
  247. }
  248. action
  249. {
  250. play "sound/interface/button1.wav" ;
  251. close all ;
  252. open ingamecontrolsMenu ;
  253. }
  254. }
  255. // Big button "SETUP"
  256. itemDef
  257. {
  258. name setupbutton_glow
  259. group none
  260. style WINDOW_STYLE_SHADER
  261. rect 502 126 130 24
  262. background "gfx/menus/menu_buttonback"
  263. forecolor 1 1 1 1
  264. visible 0
  265. decoration
  266. }
  267. itemDef
  268. {
  269. name setupbutton
  270. group sbut
  271. text @MENUS_SETUP
  272. descText @MENUS_CONFIGURE_GAME_SETTINGS
  273. type ITEM_TYPE_BUTTON
  274. style WINDOW_STYLE_EMPTY
  275. rect 502 126 130 24
  276. font 3
  277. textscale 1.1
  278. textaligny 0
  279. textalign ITEM_ALIGN_CENTER
  280. textstyle 1
  281. textalignx 65
  282. backcolor 0 0 0 0
  283. forecolor 1 .682 0 1
  284. visible 1
  285. mouseEnter
  286. {
  287. show setupbutton_glow
  288. }
  289. mouseExit
  290. {
  291. hide setupbutton_glow
  292. }
  293. action
  294. {
  295. play "sound/interface/button1.wav" ;
  296. close all ;
  297. open ingamesetupMenu ;
  298. }
  299. }
  300. //----------------------------------------------------------------------------------------------
  301. //
  302. // OTHER MAIN MENU BUTTONS
  303. //
  304. //----------------------------------------------------------------------------------------------
  305. // RESUME button in the lower right corner
  306. itemDef
  307. {
  308. name resumebutton_glow
  309. group mods
  310. style WINDOW_STYLE_SHADER
  311. rect 455 444 130 24
  312. background "gfx/menus/menu_buttonback" // Frame around button
  313. forecolor 1 1 1 1
  314. visible 0
  315. decoration
  316. }
  317. itemDef
  318. {
  319. name resume
  320. group none
  321. style WINDOW_STYLE_EMPTY
  322. type ITEM_TYPE_BUTTON
  323. rect 455 444 130 24
  324. text @MENUS_RESUME
  325. descText @MENUS_RESUME_CURRENT_GAME
  326. font 3
  327. textscale 1
  328. textalign ITEM_ALIGN_CENTER
  329. textstyle 3
  330. textalignx 65
  331. textaligny -1
  332. forecolor 1 .682 0 1
  333. visible 1
  334. mouseEnter
  335. {
  336. show resumebutton_glow
  337. }
  338. mouseExit
  339. {
  340. hide resumebutton_glow
  341. }
  342. action
  343. {
  344. play "sound/interface/button1.wav" ;
  345. uiScript closeingame // Close menu
  346. }
  347. }
  348. //----------------------------------------------------------------------------------------------
  349. //
  350. // QUIT GAME MENU specific stuff
  351. //
  352. //----------------------------------------------------------------------------------------------
  353. // Quitting title
  354. itemDef
  355. {
  356. name quit_title
  357. group none
  358. text @MENUS_LEAVING_JEDI_KNIGHT_2
  359. style WINDOW_STYLE_SHADER
  360. background "gfx/menus/menu_blendbox"
  361. rect 100 164 440 16
  362. font 3
  363. textscale 0.7
  364. textalign ITEM_ALIGN_CENTER
  365. textalignx 225
  366. textaligny -1
  367. forecolor .549 .854 1 1
  368. visible 1
  369. decoration
  370. }
  371. itemDef
  372. {
  373. name quitgame_current_glow
  374. group highlights
  375. style WINDOW_STYLE_SHADER
  376. rect 220 210 200 30
  377. background "gfx/menus/menu_buttonback" // Frame around button
  378. forecolor 1 1 1 1
  379. decoration
  380. visible 0
  381. }
  382. // Quit current button
  383. itemDef
  384. {
  385. name quitgame_current
  386. group quitchoicegroup
  387. text @MENUS_ABANDON_GAME
  388. type ITEM_TYPE_BUTTON
  389. style WINDOW_STYLE_EMPTY
  390. rect 220 210 200 30
  391. font 2
  392. textscale 1
  393. textalign ITEM_ALIGN_CENTER
  394. textstyle 1
  395. textalignx 100
  396. textaligny -2
  397. descText @MENUS_QUIT_CURRENT_GAME_AND
  398. forecolor 1 .682 0 1
  399. visible 1
  400. action
  401. {
  402. play "sound/interface/button1.wav" ;
  403. show abandongamegroup ;
  404. hide quitchoicegroup ;
  405. hide quitprogramgroup ;
  406. hide highlights ;
  407. }
  408. mouseEnter
  409. {
  410. show quitgame_current_glow
  411. }
  412. mouseExit
  413. {
  414. hide quitgame_current_glow
  415. }
  416. }
  417. itemDef
  418. {
  419. name quitgame_program_glow
  420. group highlights
  421. style WINDOW_STYLE_SHADER
  422. rect 220 280 200 30
  423. background "gfx/menus/menu_buttonback" // Frame around button
  424. forecolor 1 1 1 1
  425. decoration
  426. visible 0
  427. }
  428. // Quit program button
  429. itemDef
  430. {
  431. name quitgame_program
  432. group quitchoicegroup
  433. text @MENUS_QUIT_PROGRAM
  434. type ITEM_TYPE_BUTTON
  435. style WINDOW_STYLE_EMPTY
  436. rect 220 280 200 30
  437. font 2
  438. textscale 1
  439. textalign ITEM_ALIGN_CENTER
  440. textstyle 1
  441. textalignx 100
  442. textaligny -2
  443. descText @MENUS_LEAVE_THE_PROGRAM_ENTIRELY
  444. forecolor 1 .682 0 1
  445. visible 1
  446. action
  447. {
  448. play "sound/interface/button1.wav" ;
  449. show quitprogramgroup ;
  450. hide abandongamegroup ;
  451. hide quitchoicegroup ;
  452. hide highlights ;
  453. }
  454. mouseEnter
  455. {
  456. show quitgame_program_glow
  457. }
  458. mouseExit
  459. {
  460. hide quitgame_program_glow
  461. }
  462. }
  463. //----------------------------------------------------------------------------------------------
  464. //
  465. // Abandon game Confirmation
  466. //
  467. //----------------------------------------------------------------------------------------------
  468. // Quit current button
  469. itemDef
  470. {
  471. name fakequitgame_current
  472. group abandongamegroup
  473. text @MENUS_ABANDON_GAME
  474. type ITEM_TYPE_BUTTON
  475. style WINDOW_STYLE_EMPTY
  476. rect 220 210 200 30
  477. font 2
  478. textscale 1
  479. textalign ITEM_ALIGN_CENTER
  480. textstyle 1
  481. textalignx 100
  482. textaligny -2
  483. forecolor 1 1 1 1
  484. visible 0
  485. decoration
  486. }
  487. itemDef
  488. {
  489. name abandongame_cancel_glow
  490. group highlights
  491. style WINDOW_STYLE_SHADER
  492. rect 78 384 130 24
  493. background "gfx/menus/menu_buttonback" // Frame around button
  494. forecolor 1 1 1 1
  495. decoration
  496. visible 0
  497. }
  498. // CANCEL button
  499. itemDef
  500. {
  501. name abandongame_cancel
  502. group abandongamegroup
  503. text @MENUS_NO
  504. type ITEM_TYPE_BUTTON
  505. style WINDOW_STYLE_EMPTY
  506. rect 78 384 130 24
  507. font 3
  508. textscale 1
  509. textalignx 65
  510. textaligny -1
  511. textalign ITEM_ALIGN_CENTER
  512. textstyle 1
  513. descText @MENUS_DO_NOT_ABANDON
  514. forecolor 1 .682 0 1
  515. visible 1
  516. action
  517. {
  518. play "sound/interface/button1.wav" ;
  519. hide abandongamegroup ;
  520. hide quitprogramgroup ;
  521. hide highlights ;
  522. show quitchoicegroup ;
  523. }
  524. mouseEnter
  525. {
  526. show abandongame_cancel_glow
  527. }
  528. mouseExit
  529. {
  530. hide abandongame_cancel_glow
  531. }
  532. }
  533. itemDef
  534. {
  535. name abandongame_yes_glow
  536. group highlights
  537. style WINDOW_STYLE_SHADER
  538. rect 434 384 130 24
  539. background "gfx/menus/menu_buttonback" // Frame around button
  540. forecolor 1 1 1 1
  541. decoration
  542. visible 0
  543. }
  544. // YES button
  545. itemDef
  546. {
  547. name abandongame_yes
  548. group abandongamegroup
  549. text @MENUS_YES
  550. type ITEM_TYPE_BUTTON
  551. style WINDOW_STYLE_EMPTY
  552. rect 434 384 130 24
  553. font 3
  554. textscale 1
  555. textalignx 65
  556. textaligny -1
  557. textalign ITEM_ALIGN_CENTER
  558. textstyle 1
  559. descText @MENUS_ABANDON
  560. forecolor 1 .682 0 1
  561. visible 1
  562. action
  563. {
  564. play "sound/interface/button1.wav" ;
  565. hide abandongamegroup ;
  566. hide quitprogramgroup ;
  567. hide highlights ;
  568. show quitchoicegroup ;
  569. uiScript Leave //disconnect and start over
  570. }
  571. mouseEnter
  572. {
  573. show abandongame_yes_glow
  574. }
  575. mouseExit
  576. {
  577. hide abandongame_yes_glow
  578. }
  579. }
  580. //----------------------------------------------------------------------------------------------
  581. //
  582. // Leave game Confirmation
  583. //
  584. //----------------------------------------------------------------------------------------------
  585. // Quit program button
  586. itemDef
  587. {
  588. name fakequitgame_program
  589. group quitprogramgroup
  590. text @MENUS_QUIT_PROGRAM
  591. type ITEM_TYPE_BUTTON
  592. style WINDOW_STYLE_EMPTY
  593. rect 220 280 200 30
  594. font 2
  595. textscale 1
  596. textalign ITEM_ALIGN_CENTER
  597. textstyle 1
  598. textalignx 100
  599. textaligny -2
  600. forecolor 1 1 1 1
  601. visible 0
  602. decoration
  603. }
  604. itemDef
  605. {
  606. name quitprogram_cancel_glow
  607. group highlights
  608. style WINDOW_STYLE_SHADER
  609. rect 78 384 130 24
  610. background "gfx/menus/menu_buttonback" // Frame around button
  611. forecolor 1 1 1 1
  612. decoration
  613. visible 0
  614. }
  615. // CANCEL button
  616. itemDef
  617. {
  618. name quitprogram_cancel
  619. group quitprogramgroup
  620. text @MENUS_NO
  621. type ITEM_TYPE_BUTTON
  622. style WINDOW_STYLE_EMPTY
  623. rect 78 384 130 24
  624. font 3
  625. textscale 1
  626. textalignx 65
  627. textaligny -1
  628. textalign ITEM_ALIGN_CENTER
  629. textstyle 1
  630. descText @MENUS_DO_NOT_LEAVE_JEDI_KNIGHT
  631. forecolor 1 .682 0 1
  632. visible 1
  633. action
  634. {
  635. play "sound/interface/button1.wav" ;
  636. hide quitprogramgroup ;
  637. hide abandongamegroup ;
  638. hide highlights ;
  639. show quitchoicegroup ;
  640. }
  641. mouseEnter
  642. {
  643. show quitprogram_cancel_glow
  644. }
  645. mouseExit
  646. {
  647. hide quitprogram_cancel_glow
  648. }
  649. }
  650. itemDef
  651. {
  652. name quitprogram_yes_glow
  653. group highlights
  654. style WINDOW_STYLE_SHADER
  655. rect 434 384 130 24
  656. background "gfx/menus/menu_buttonback" // Frame around button
  657. forecolor 1 1 1 1
  658. decoration
  659. visible 0
  660. }
  661. // YES button
  662. itemDef
  663. {
  664. name quitprogram_yes
  665. group quitprogramgroup
  666. text @MENUS_YES
  667. type ITEM_TYPE_BUTTON
  668. style WINDOW_STYLE_EMPTY
  669. rect 434 384 130 24
  670. font 3
  671. textscale 1
  672. textalignx 65
  673. textaligny -1
  674. textalign ITEM_ALIGN_CENTER
  675. textstyle 1
  676. descText @MENUS_JEDI_KNIGHT_II
  677. forecolor 1 .682 0 1
  678. visible 1
  679. cvartest "com_demo"
  680. hidecvar
  681. {
  682. "1"
  683. }
  684. action
  685. {
  686. play "sound/interface/button1.wav" ;
  687. uiScript Quit // Quit the game
  688. }
  689. mouseEnter
  690. {
  691. show quitprogram_yes_glow
  692. }
  693. mouseExit
  694. {
  695. hide quitprogram_yes_glow
  696. }
  697. }
  698. // YES button
  699. itemDef
  700. {
  701. name quitprogram_yes
  702. group quitprogramgroup
  703. text @MENUS_YES
  704. type ITEM_TYPE_BUTTON
  705. style WINDOW_STYLE_EMPTY
  706. rect 434 384 130 24
  707. font 3
  708. textscale 1
  709. textalignx 65
  710. textaligny -1
  711. textalign ITEM_ALIGN_CENTER
  712. textstyle 1
  713. descText @MENUS_JEDI_KNIGHT_II
  714. forecolor 1 .682 0 1
  715. visible 1
  716. cvartest "com_demo"
  717. hidecvar
  718. {
  719. "0"
  720. }
  721. action
  722. {
  723. play "sound/interface/button1.wav" ;
  724. close all ;
  725. open demo_sellscreen1 ;
  726. }
  727. mouseEnter
  728. {
  729. show quitprogram_yes_glow
  730. }
  731. mouseExit
  732. {
  733. hide quitprogram_yes_glow
  734. }
  735. }
  736. }
  737. }