newgame_first.menu 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927
  1. //-----------------------------------------------------------------------
  2. // NEWGAME MENU
  3. //
  4. // Called only from main menu. Has the transition of fields from main menu
  5. // to new game menu
  6. //
  7. //-----------------------------------------------------------------------
  8. {
  9. menuDef
  10. {
  11. name "newgamefirstMenu"
  12. fullScreen 1 // MENU_TRUE
  13. rect 0 0 640 480 // Size and position of the menu
  14. visible 1 // Visible on open
  15. focusColor 1 1 1 1 // Focus color for text and items
  16. descX 320
  17. descY 426
  18. descScale 1
  19. descColor 1 .682 0 .8
  20. descAlignment ITEM_ALIGN_CENTER
  21. onOpen
  22. {
  23. play "sound/interface/transition.wav"
  24. setcvar g_spskill 1
  25. setcvar cg_crosshairForceHint 1
  26. setcvar handicap 100
  27. setfocus medbut
  28. hide diff1
  29. show diff2
  30. hide diff3
  31. hide diff4
  32. setitemcolor easybut forecolor 1 .682 0 1
  33. setitemcolor medbut forecolor 1 1 1 1
  34. setitemcolor hardbut forecolor 1 .682 0 1
  35. setitemcolor vhardbut forecolor 1 .682 0 1
  36. transition ring 161 114 320 320 321 273 0 0 20 25
  37. transition vid 200 144 320 320 321 273 0 0 10 15
  38. transition cwin 156 154 320 240 321 273 0 0 20 25
  39. transition lwin 0 150 320 240 -320 150 320 240 20 25
  40. transition lbut 36 310 130 24 170 126 130 24 20 25
  41. transition lbut_u 36 293 130 24 -284 293 130 24 20 25
  42. transition nbut 36 212 130 24 7 126 130 24 20 25
  43. transition nbut_u 36 194 130 24 -284 194 130 24 20 25
  44. transition rwin 320 150 320 240 640 150 320 240 20 25
  45. transition cbut 456 212 130 24 340 126 130 24 20 25
  46. transition cbut_u 448 194 146 24 768 194 146 24 20 25
  47. transition sbut 456 310 130 24 502 126 130 24 20 25
  48. transition sbut_u 456 292 130 24 776 310 130 24 20 25
  49. //newgame stuff
  50. //transition but_fr 160 480 320 320 160 160 320 320 15 25
  51. transition easy 225 526 190 40 225 196 190 40 15 25
  52. transition med 225 578 190 40 225 243 190 40 15 25
  53. transition hard 225 629 190 40 225 289 190 40 15 25
  54. transition vhard 225 680 190 40 225 335 190 40 15 25
  55. //menu bar
  56. // transition lf_fr -320 50 320 160 0 50 320 160 20 25
  57. transition lf_fr -320 50 320 160 0 50 320 160 2 25
  58. transition rt_fr 640 50 320 160 320 50 320 160 20 25
  59. //transition exit 255 444 130 24 59 444 130 24 20 25
  60. transition backbutton -320 444 130 24 59 444 130 24 20 25
  61. transition nextbutton 834 444 130 24 455 444 130 24 20 25
  62. fadein newgame_title
  63. fadein difficulty_background
  64. }
  65. onESC
  66. {
  67. setitemcolor newgame_title forecolor .549 .854 1 0
  68. setitemcolor difficulty_background backcolor 0 0 .6 0.5
  69. play "sound/interface/esc.wav"
  70. close newgamefirstMenu
  71. open mainMenu
  72. }
  73. //----------------------------------------------------------------------------------------------
  74. //
  75. // MENU BACKGROUND
  76. //
  77. //----------------------------------------------------------------------------------------------
  78. itemDef
  79. {
  80. name really_background
  81. group none
  82. style WINDOW_STYLE_SHADER
  83. rect 156 154 320 240
  84. background "gfx/menus/main_centerblue"
  85. forecolor 1 1 1 1
  86. visible 1
  87. decoration
  88. }
  89. itemDef
  90. {
  91. name vid
  92. group center
  93. style WINDOW_STYLE_SHADER
  94. rect 200 144 256 256
  95. background "gfx/menus/videologo"
  96. forecolor 1 1 1 1
  97. visible 1
  98. decoration
  99. }
  100. itemDef
  101. {
  102. name background_text
  103. group none
  104. style WINDOW_STYLE_SHADER
  105. rect 0 0 160 480
  106. background "gfx/menus/menu_side_text"
  107. forecolor 1 1 1 1
  108. visible 1
  109. decoration
  110. }
  111. itemDef
  112. {
  113. name background_text_b
  114. group none
  115. style WINDOW_STYLE_SHADER
  116. rect 480 0 160 480
  117. background "gfx/menus/menu_side_text_right"
  118. forecolor 1 1 1 1
  119. visible 1
  120. decoration
  121. }
  122. itemDef
  123. {
  124. name background
  125. group none
  126. style WINDOW_STYLE_SHADER
  127. rect 0 0 640 480
  128. background "gfx/menus/main_background"
  129. forecolor 1 1 1 1
  130. visible 1
  131. decoration
  132. }
  133. itemDef
  134. {
  135. name ring
  136. group none
  137. style WINDOW_STYLE_SHADER
  138. rect 161 114 320 320
  139. background "gfx/menus/menu_rotate_ring_b"
  140. forecolor 1 1 1 1
  141. visible 1
  142. decoration
  143. }
  144. itemDef
  145. {
  146. name cwin
  147. group none
  148. style WINDOW_STYLE_SHADER
  149. rect 156 154 320 240
  150. background "gfx/menus/main_centerwindow"
  151. forecolor 1 1 1 1
  152. visible 1
  153. decoration
  154. }
  155. itemDef
  156. {
  157. name lwin
  158. group none
  159. style WINDOW_STYLE_SHADER
  160. rect 0 150 320 240
  161. background "gfx/menus/main_leftwindow"
  162. forecolor 1 1 1 1
  163. visible 1
  164. decoration
  165. }
  166. itemDef
  167. {
  168. name rwin
  169. group none
  170. style WINDOW_STYLE_SHADER
  171. rect 320 150 320 240
  172. background "gfx/menus/main_rightwindow"
  173. forecolor 1 1 1 1
  174. visible 1
  175. decoration
  176. }
  177. // The starwars logo on the top
  178. itemDef
  179. {
  180. name starwars
  181. group none
  182. style WINDOW_STYLE_SHADER
  183. rect 107 8 428 112
  184. background "gfx/menus/jediacademy"
  185. forecolor 1 1 1 1
  186. visible 1
  187. decoration
  188. }
  189. //----------------------------------------------------------------------------------------------
  190. //
  191. // TOP MENU BUTTONS
  192. //
  193. //----------------------------------------------------------------------------------------------
  194. // Big button "NEW"
  195. itemDef
  196. {
  197. name newbutton_glow
  198. group none
  199. style WINDOW_STYLE_SHADER
  200. //rect 36 212 130 24
  201. rect 7 126 130 24
  202. background "gfx/menus/menu_buttonback"
  203. forecolor 1 1 1 1
  204. visible 0
  205. decoration
  206. }
  207. itemDef
  208. {
  209. name newgamebutton_undertext
  210. group nbut_u
  211. style WINDOW_STYLE_EMPTY
  212. type ITEM_TYPE_BUTTON
  213. rect 36 194 130 24
  214. text @MENUS_NEW
  215. font 1
  216. textscale .7
  217. textaligny 0
  218. textalign ITEM_ALIGN_CENTER
  219. textstyle 3
  220. textalignx 65
  221. forecolor .79 .64 .22 .2
  222. visible 0
  223. decoration
  224. }
  225. itemDef
  226. {
  227. name newgamebutton
  228. group nbut
  229. style WINDOW_STYLE_EMPTY
  230. type ITEM_TYPE_BUTTON
  231. rect 7 126 130 24
  232. text @MENUS_NEW
  233. descText @MENUS_START_A_NEW_GAME
  234. font 3
  235. textscale 1.1
  236. textaligny 0
  237. textalign ITEM_ALIGN_CENTER
  238. textstyle 1
  239. textalignx 65
  240. //forecolor .79 .64 .22 1
  241. forecolor 1 1 1 1
  242. visible 1
  243. mouseEnter
  244. {
  245. show newbutton_glow
  246. }
  247. mouseExit
  248. {
  249. hide newbutton_glow
  250. }
  251. }
  252. // Big button "LOAD"
  253. itemDef
  254. {
  255. name loadgamebutton_glow
  256. group none
  257. style WINDOW_STYLE_SHADER
  258. //rect 36 310 130 24
  259. rect 170 126 130 24
  260. background "gfx/menus/menu_buttonback" // Frame around button
  261. forecolor 1 1 1 1
  262. visible 0
  263. decoration
  264. }
  265. itemDef
  266. {
  267. name loadgamebutton_undertext
  268. group lbut_u
  269. style WINDOW_STYLE_EMPTY
  270. type ITEM_TYPE_BUTTON
  271. rect 36 293 130 24
  272. text @MENUS_LOAD
  273. font 1
  274. textscale .7
  275. textaligny 0
  276. textalign ITEM_ALIGN_CENTER
  277. textstyle 3
  278. textalignx 65
  279. forecolor .79 .64 .22 .2
  280. visible 0
  281. decoration
  282. }
  283. itemDef
  284. {
  285. name loadgamebutton
  286. group lbut
  287. text @MENUS_LOAD
  288. descText @MENUS_LOAD_A_SAVED_GAME
  289. style WINDOW_STYLE_EMPTY
  290. type ITEM_TYPE_BUTTON
  291. rect 36 310 130 24
  292. textaligny 0
  293. font 3
  294. textscale 1.1
  295. textalign ITEM_ALIGN_CENTER
  296. textstyle 1
  297. textalignx 65
  298. forecolor 1 .682 0 1
  299. visible 1
  300. mouseEnter
  301. {
  302. show loadgamebutton_glow
  303. show loadgamebutton_undertext
  304. }
  305. mouseExit
  306. {
  307. hide loadgamebutton_glow
  308. hide loadgamebutton_undertext
  309. }
  310. action
  311. {
  312. play "sound/interface/button1.wav"
  313. close all
  314. open loadgameMenu
  315. }
  316. }
  317. // Big button "CONTROLS"
  318. itemDef
  319. {
  320. name controlsbutton_glow
  321. group none
  322. style WINDOW_STYLE_SHADER
  323. //rect 441 212 160 24
  324. rect 340 126 130 24
  325. background "gfx/menus/menu_buttonback" // Frame around button
  326. forecolor 1 1 1 1
  327. visible 0
  328. decoration
  329. }
  330. itemDef
  331. {
  332. name controlsbutton_undertext
  333. group cbut_u
  334. style WINDOW_STYLE_EMPTY
  335. type ITEM_TYPE_BUTTON
  336. rect 448 194 146 24
  337. text @MENUS_CONTROLS2
  338. font 1
  339. textscale .7
  340. textaligny 0
  341. textalign ITEM_ALIGN_CENTER
  342. textstyle 3
  343. textalignx 65
  344. forecolor .79 .64 .22 .2
  345. visible 0
  346. decoration
  347. }
  348. itemDef {
  349. name controlsbutton
  350. group cbut
  351. text @MENUS_CONTROLS
  352. descText @MENUS_CONFIGURE_GAME_CONTROLS
  353. type ITEM_TYPE_BUTTON
  354. style WINDOW_STYLE_EMPTY
  355. rect 456 212 130 24
  356. font 3
  357. textscale 1.1
  358. textaligny 0
  359. textalign ITEM_ALIGN_CENTER
  360. textstyle 1
  361. textalignx 65
  362. backcolor 0 0 0 0
  363. forecolor 1 .682 0 1
  364. visible 1
  365. mouseEnter
  366. {
  367. show controlsbutton_glow
  368. show controlsbutton_undertext
  369. }
  370. mouseExit
  371. {
  372. hide controlsbutton_glow
  373. hide controlsbutton_undertext
  374. }
  375. action
  376. {
  377. play "sound/interface/button1.wav"
  378. close all
  379. open controlsMenu
  380. }
  381. }
  382. // Big button "SETUP"
  383. itemDef
  384. {
  385. name setupbutton_glow
  386. group none
  387. style WINDOW_STYLE_SHADER
  388. //rect 456 310 130 24
  389. rect 502 126 130 24
  390. background "gfx/menus/menu_buttonback" // Frame around button
  391. forecolor 1 1 1 1
  392. visible 0
  393. decoration
  394. }
  395. itemDef
  396. {
  397. name setupbutton_undertext
  398. group sbut_u
  399. style WINDOW_STYLE_EMPTY
  400. type ITEM_TYPE_BUTTON
  401. rect 456 292 130 24
  402. text @MENUS_SETUP
  403. font 1
  404. textscale .7
  405. textaligny 0
  406. textalign ITEM_ALIGN_CENTER
  407. textstyle 3
  408. textalignx 65
  409. forecolor .79 .64 .22 .2
  410. visible 0
  411. decoration
  412. }
  413. itemDef {
  414. name setupbutton
  415. group sbut
  416. text @MENUS_SETUP
  417. descText @MENUS_CONFIGURE_GAME_SETTINGS
  418. type ITEM_TYPE_BUTTON
  419. style WINDOW_STYLE_EMPTY
  420. rect 456 310 130 24
  421. font 3
  422. textscale 1.1
  423. textaligny 0
  424. textalign ITEM_ALIGN_CENTER
  425. textstyle 1
  426. textalignx 65
  427. backcolor 0 0 0 0
  428. forecolor 1 .682 0 1
  429. visible 1
  430. mouseEnter
  431. {
  432. show setupbutton_glow
  433. show setupbutton_undertext
  434. }
  435. mouseExit
  436. {
  437. hide setupbutton_glow
  438. hide setupbutton_undertext
  439. }
  440. action
  441. {
  442. play "sound/interface/button1.wav"
  443. close all
  444. open setupMenu
  445. }
  446. }
  447. //----------------------------------------------------------------------------------------------
  448. //
  449. // NEW GAME MENU specific stuff
  450. //
  451. //----------------------------------------------------------------------------------------------
  452. /*itemDef
  453. {
  454. name button_frame
  455. group but_fr
  456. style WINDOW_STYLE_SHADER
  457. rect 160 160 320 320
  458. background "gfx/menus/newgame_boxes"
  459. forecolor 1 1 1 1
  460. visible 1
  461. decoration
  462. }*/
  463. itemDef
  464. {
  465. name left_frame
  466. group lf_fr
  467. style WINDOW_STYLE_SHADER
  468. rect 0 50 320 160
  469. background "gfx/menus/menu_boxes_left"
  470. forecolor 1 1 1 1
  471. visible 1
  472. decoration
  473. }
  474. itemDef
  475. {
  476. name right_frame
  477. group rt_fr
  478. style WINDOW_STYLE_SHADER
  479. rect 320 50 320 160
  480. background "gfx/menus/menu_boxes_right"
  481. forecolor 1 1 1 1
  482. visible 1
  483. decoration
  484. }
  485. // Select a skill level title
  486. itemDef
  487. {
  488. name newgame_title
  489. group none
  490. style WINDOW_STYLE_SHADER
  491. background "gfx/menus/menu_blendbox"
  492. text @MENUS_SELECT_SKILL
  493. rect 100 164 440 16
  494. font 3
  495. textscale 0.7
  496. textalign ITEM_ALIGN_CENTER
  497. textalignx 225
  498. textaligny -1
  499. forecolor .549 .854 1 0
  500. visible 1
  501. decoration
  502. }
  503. itemDef
  504. {
  505. name diff1
  506. group none
  507. style WINDOW_STYLE_SHADER
  508. rect 225 196 190 40
  509. background "gfx/menus/menu_buttonback" // Box around difficulty 1
  510. forecolor 1 1 1 1
  511. visible 0
  512. decoration
  513. }
  514. // EASY difficulty button
  515. itemDef
  516. {
  517. name easybut
  518. group easy
  519. text @MENUS_APPRENTICE
  520. type ITEM_TYPE_BUTTON
  521. style WINDOW_STYLE_EMPTY
  522. font 3
  523. textscale 1
  524. textalign ITEM_ALIGN_CENTER
  525. textstyle 3
  526. rect 225 196 190 40
  527. textalignx 95
  528. textaligny 8
  529. forecolor 1 .682 0 1
  530. visible 1
  531. descText @MENUS_EASY_GAME_SETTINGS
  532. action
  533. {
  534. play "sound/interface/button1.wav"
  535. setcvar g_spskill 0
  536. setcvar cg_crosshairForceHint 1
  537. setcvar handicap 100
  538. show diff1
  539. hide diff2
  540. hide diff3
  541. hide diff4
  542. setitemcolor easybut forecolor 1 1 1 1
  543. setitemcolor medbut forecolor 1 .682 0 1
  544. setitemcolor hardbut forecolor 1 .682 0 1
  545. setitemcolor vhardbut forecolor 1 .682 0 1
  546. }
  547. }
  548. itemDef
  549. {
  550. name diff2
  551. group med
  552. style WINDOW_STYLE_SHADER
  553. rect 225 243 190 40
  554. background "gfx/menus/menu_buttonback" // Box around difficulty 2
  555. forecolor 1 1 1 1
  556. visible 1
  557. decoration
  558. }
  559. // MEDIUM difficulty button
  560. itemDef
  561. {
  562. name medbut
  563. group med
  564. text @MENUS_JEDI
  565. type ITEM_TYPE_BUTTON
  566. style WINDOW_STYLE_EMPTY
  567. font 3
  568. textscale 1
  569. rect 225 243 190 40
  570. textalignx 95
  571. textaligny 8
  572. textalign ITEM_ALIGN_CENTER
  573. textstyle 3
  574. forecolor 1 .682 0 1
  575. visible 1
  576. descText @MENUS_NORMAL_GAME_SETTINGS
  577. action
  578. {
  579. play "sound/interface/button1.wav"
  580. setcvar g_spskill 1
  581. setcvar cg_crosshairForceHint 1
  582. setcvar handicap 100
  583. hide diff1
  584. show diff2
  585. hide diff3
  586. hide diff4
  587. setitemcolor easybut forecolor 1 .682 0 1
  588. setitemcolor medbut forecolor 1 1 1 1
  589. setitemcolor hardbut forecolor 1 .682 0 1
  590. setitemcolor vhardbut forecolor 1 .682 0 1
  591. }
  592. }
  593. itemDef
  594. {
  595. name diff3
  596. group none
  597. style WINDOW_STYLE_SHADER
  598. rect 225 289 190 40
  599. background "gfx/menus/menu_buttonback" // Box around difficulty 3
  600. forecolor 1 1 1 1
  601. visible 0
  602. decoration
  603. }
  604. // HARD difficulty button
  605. itemDef
  606. {
  607. name hardbut
  608. group hard
  609. text @MENUS_JEDI_KNIGHT
  610. font 3
  611. textscale 1
  612. type ITEM_TYPE_BUTTON
  613. style WINDOW_STYLE_EMPTY
  614. rect 225 289 190 40
  615. textalignx 95
  616. textaligny 8
  617. textalign ITEM_ALIGN_CENTER
  618. textstyle 3
  619. forecolor 1 .682 0 1
  620. visible 1
  621. descText @MENUS_DIFFICULT_GAME_SETTINGS
  622. action
  623. {
  624. play "sound/interface/button1.wav"
  625. setcvar g_spskill 2
  626. setcvar cg_crosshairForceHint 0
  627. setcvar handicap 100
  628. hide diff1
  629. hide diff2
  630. show diff3
  631. hide diff4
  632. setitemcolor easybut forecolor 1 .682 0 1
  633. setitemcolor medbut forecolor 1 .682 0 1
  634. setitemcolor hardbut forecolor 1 1 1 1
  635. setitemcolor vhardbut forecolor 1 .682 0 1
  636. }
  637. }
  638. itemDef
  639. {
  640. name diff4
  641. group none
  642. style WINDOW_STYLE_SHADER
  643. rect 225 335 190 40
  644. background "gfx/menus/menu_buttonback" // Box around difficulty 4
  645. forecolor 1 1 1 1
  646. visible 0
  647. decoration
  648. }
  649. // VERY HARD difficulty button
  650. itemDef
  651. {
  652. name vhardbut
  653. group vhard
  654. text @MENUS_JEDI_MASTER
  655. font 3
  656. textscale 1
  657. type ITEM_TYPE_BUTTON
  658. style WINDOW_STYLE_EMPTY
  659. rect 225 335 190 40
  660. textalignx 95
  661. textaligny 8
  662. textalign ITEM_ALIGN_CENTER
  663. textstyle 3
  664. forecolor 1 .682 0 1
  665. visible 1
  666. descText @MENUS_EXTREMELY_DIFFICULT_GAME
  667. action
  668. {
  669. play "sound/interface/button1.wav"
  670. setcvar g_spskill 2
  671. setcvar cg_crosshairForceHint 0
  672. setcvar handicap 50
  673. hide diff1
  674. hide diff2
  675. hide diff3
  676. show diff4
  677. setitemcolor easybut forecolor 1 .682 0 1
  678. setitemcolor medbut forecolor 1 .682 0 1
  679. setitemcolor hardbut forecolor 1 .682 0 1
  680. setitemcolor vhardbut forecolor 1 1 1 1
  681. }
  682. }
  683. //----------------------------------------------------------------------------------------------
  684. //
  685. // OTHER MAIN MENU BUTTONS
  686. //
  687. //----------------------------------------------------------------------------------------------
  688. // BACK button in lower left corner
  689. itemDef
  690. {
  691. name backbutton_glow
  692. group mods
  693. style WINDOW_STYLE_SHADER
  694. rect 59 444 130 24
  695. background "gfx/menus/menu_buttonback" // Frame around button
  696. forecolor 1 1 1 1
  697. visible 0
  698. decoration
  699. }
  700. itemDef
  701. {
  702. name backbutton
  703. group fade_buttons
  704. text @MENUS_BACK
  705. descText @MENUS_BACKTOMAIN
  706. type ITEM_TYPE_BUTTON
  707. style WINDOW_STYLE_EMPTY
  708. rect 59 444 130 24
  709. font 3
  710. textscale 1.1
  711. textalign ITEM_ALIGN_CENTER
  712. textstyle 3
  713. textalignx 65
  714. textaligny -1
  715. forecolor 1 .682 0 1
  716. visible 1
  717. mouseEnter
  718. {
  719. show backbutton_glow
  720. }
  721. mouseExit
  722. {
  723. hide backbutton_glow
  724. }
  725. action
  726. {
  727. play "sound/interface/esc.wav"
  728. close all ;
  729. open mainMenu
  730. }
  731. }
  732. // EXIT button in lower left corner
  733. itemDef
  734. {
  735. name exitgamebutton_glow
  736. group mods
  737. style WINDOW_STYLE_SHADER
  738. rect 255 444 130 24
  739. background "gfx/menus/menu_buttonback" // Frame around button
  740. forecolor 1 1 1 1
  741. visible 0
  742. decoration
  743. }
  744. itemDef
  745. {
  746. name exitgamebutton
  747. group exit
  748. text @MENUS_EXIT
  749. descText @MENUS_JEDI_KNIGHT_II
  750. type ITEM_TYPE_BUTTON
  751. style WINDOW_STYLE_EMPTY
  752. rect 255 444 130 24
  753. font 3
  754. textscale 1.1
  755. textalign ITEM_ALIGN_CENTER
  756. textstyle 3
  757. textalignx 65
  758. textaligny -1
  759. forecolor 1 .682 0 1
  760. visible 1
  761. mouseEnter
  762. {
  763. show exitgamebutton_glow
  764. }
  765. mouseExit
  766. {
  767. hide exitgamebutton_glow
  768. }
  769. action
  770. {
  771. play "sound/weapons/saber/saberoff.mp3"
  772. close all
  773. open quitMenu
  774. }
  775. }
  776. // NEXT button
  777. itemDef
  778. {
  779. name next_glow
  780. group mods
  781. style WINDOW_STYLE_SHADER
  782. rect 455 444 130 24
  783. background "gfx/menus/menu_buttonback" // Frame around button
  784. forecolor 1 1 1 1
  785. visible 0
  786. decoration
  787. }
  788. itemDef
  789. {
  790. name nextbutton
  791. group fade_buttons
  792. text @MENUS_NEXT
  793. descText @MENUS_NEXT_DESC
  794. type ITEM_TYPE_BUTTON
  795. style WINDOW_STYLE_EMPTY
  796. rect 455 444 130 24
  797. font 3
  798. textscale 1
  799. textalignx 65
  800. textaligny -1
  801. textalign ITEM_ALIGN_CENTER
  802. textstyle 3
  803. forecolor 1 .682 0 1
  804. visible 1
  805. action
  806. {
  807. play "sound/interface/button1.wav"
  808. close all
  809. open characterMenu
  810. }
  811. mouseEnter
  812. {
  813. show next_glow
  814. }
  815. mouseExit
  816. {
  817. hide next_glow
  818. }
  819. }
  820. }
  821. }