rules.menu 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596
  1. //----------------------------------------------------------------------------------------------
  2. // MULTIPLAYER RULES
  3. //
  4. // Rules main menu.From here you can get at any of the rules menus.
  5. //
  6. //----------------------------------------------------------------------------------------------
  7. {
  8. menuDef
  9. {
  10. name "rulesMenu"
  11. fullScreen 1
  12. rect 0 0 640 480 // Size and position of the menu
  13. visible 0
  14. focusColor 1 1 1 1 // Focus color for text and items
  15. descX 320
  16. descY 424
  17. descScale 1
  18. descColor 1 .682 0 .8
  19. descAlignment ITEM_ALIGN_CENTER
  20. onOpen
  21. {
  22. setcvar "ui_rules_backout" 0 ;
  23. }
  24. onESC
  25. {
  26. play "sound/interface/esc.wav" ;
  27. close rulesMenu ;
  28. open multiplayerMenu ;
  29. }
  30. //----------------------------------------------------------------------------------------------
  31. //
  32. // MENU BACKGROUND
  33. //
  34. //----------------------------------------------------------------------------------------------
  35. itemDef
  36. {
  37. name really_background
  38. group none
  39. style WINDOW_STYLE_SHADER
  40. rect 156 154 320 240
  41. background "gfx/menus/main_centerblue"
  42. forecolor 1 1 1 1
  43. visible 1
  44. decoration
  45. }
  46. itemDef
  47. {
  48. name background_text
  49. group none
  50. style WINDOW_STYLE_SHADER
  51. rect 0 0 160 480
  52. background "gfx/menus/menu_side_text"
  53. forecolor 1 1 1 1
  54. visible 1
  55. decoration
  56. }
  57. itemDef
  58. {
  59. name background_text_b
  60. group none
  61. style WINDOW_STYLE_SHADER
  62. rect 480 0 160 480
  63. background "gfx/menus/menu_side_text_right"
  64. forecolor 1 1 1 1
  65. visible 1
  66. decoration
  67. }
  68. itemDef
  69. {
  70. name background
  71. group none
  72. style WINDOW_STYLE_SHADER
  73. rect 0 0 640 480
  74. background "gfx/menus/main_background"
  75. forecolor 1 1 1 1
  76. visible 1
  77. decoration
  78. }
  79. itemDef
  80. {
  81. name starwars
  82. group none
  83. style WINDOW_STYLE_SHADER
  84. rect 107 8 428 112
  85. background "gfx/menus/jediacademy"
  86. forecolor 1 1 1 1
  87. visible 1
  88. decoration
  89. }
  90. itemDef
  91. {
  92. name left_frame
  93. group lf_fr
  94. style WINDOW_STYLE_SHADER
  95. rect 0 50 320 160
  96. background "gfx/menus/menu_boxes_left"
  97. forecolor 1 1 1 1
  98. visible 1
  99. decoration
  100. }
  101. itemDef
  102. {
  103. name right_frame
  104. group rt_fr
  105. style WINDOW_STYLE_SHADER
  106. rect 320 50 320 160
  107. background "gfx/menus/menu_boxes_right"
  108. forecolor 1 1 1 1
  109. visible 1
  110. decoration
  111. }
  112. //----------------------------------------------------------------------------------------------
  113. // TOP MENU BUTTONS
  114. //----------------------------------------------------------------------------------------------
  115. itemDef
  116. {
  117. name button_glow
  118. group none
  119. style WINDOW_STYLE_SHADER
  120. rect 0 0 0 0
  121. background "gfx/menus/menu_buttonback"
  122. forecolor 1 1 1 1
  123. visible 0
  124. decoration
  125. }
  126. // Big button "PLAY"
  127. itemDef
  128. {
  129. name playbutton
  130. group toprow
  131. style WINDOW_STYLE_EMPTY
  132. type ITEM_TYPE_BUTTON
  133. rect 7 126 130 24
  134. text @MENUS_PLAY
  135. descText @MENUS_START_PLAYING_NOW
  136. font 3
  137. textscale 1.1
  138. textaligny 0
  139. textalign ITEM_ALIGN_CENTER
  140. textstyle 0
  141. textalignx 65
  142. forecolor 1 .682 0 1
  143. visible 1
  144. mouseEnter
  145. {
  146. show button_glow
  147. setitemrect button_glow 0 124 180 30
  148. }
  149. mouseExit
  150. {
  151. hide button_glow
  152. }
  153. action
  154. {
  155. play "sound/interface/button1.wav" ;
  156. close all ;
  157. open multiplayermenu
  158. }
  159. }
  160. // Big button "PLAYER PROFILE"
  161. itemDef
  162. {
  163. name profilebutton
  164. group toprow
  165. text @MENUS_PROFILE
  166. descText @MENUS_PROFILE_DESC
  167. style WINDOW_STYLE_EMPTY
  168. type ITEM_TYPE_BUTTON
  169. rect 170 126 130 24
  170. textaligny 0
  171. font 3
  172. textscale 1.1
  173. textalign ITEM_ALIGN_CENTER
  174. textstyle 0
  175. textalignx 65
  176. forecolor 1 .682 0 1
  177. visible 1
  178. mouseEnter
  179. {
  180. show button_glow
  181. setitemrect button_glow 120 124 230 30
  182. }
  183. mouseExit
  184. {
  185. hide button_glow
  186. }
  187. action
  188. {
  189. play "sound/interface/button1.wav" ;
  190. close all ;
  191. open playerMenu
  192. }
  193. }
  194. // Big button "CONTROLS"
  195. itemDef
  196. {
  197. name controlsbutton
  198. group toprow
  199. text @MENUS_CONTROLS2
  200. descText @MENUS_CONFIGURE_GAME_CONTROLS
  201. type ITEM_TYPE_BUTTON
  202. style WINDOW_STYLE_EMPTY
  203. rect 340 126 130 24
  204. font 3
  205. textscale 1.1
  206. textaligny 0
  207. textalign ITEM_ALIGN_CENTER
  208. textstyle 0
  209. textalignx 65
  210. backcolor 0 0 0 0
  211. forecolor 1 .682 0 1
  212. visible 1
  213. mouseEnter
  214. {
  215. show button_glow
  216. setitemrect button_glow 290 124 230 30
  217. }
  218. mouseExit
  219. {
  220. hide button_glow
  221. }
  222. action
  223. {
  224. play "sound/interface/button1.wav" ;
  225. close all ;
  226. open controlsMenu ;
  227. }
  228. }
  229. // Big button "SETUP"
  230. itemDef
  231. {
  232. name setupbutton
  233. group toprow
  234. text @MENUS_SETUP
  235. descText @MENUS_CONFIGURE_GAME_SETTINGS
  236. type ITEM_TYPE_BUTTON
  237. style WINDOW_STYLE_EMPTY
  238. rect 502 126 130 24
  239. font 3
  240. textscale 1.1
  241. textaligny 0
  242. textalign ITEM_ALIGN_CENTER
  243. textstyle 0
  244. textalignx 65
  245. backcolor 0 0 0 0
  246. forecolor 1 .682 0 1
  247. visible 1
  248. mouseEnter
  249. {
  250. show button_glow
  251. setitemrect button_glow 452 124 230 30
  252. }
  253. mouseExit
  254. {
  255. hide button_glow
  256. }
  257. action
  258. {
  259. play "sound/interface/button1.wav" ;
  260. close all ;
  261. open setup_menu
  262. }
  263. }
  264. //----------------------------------------------------------------------------------------------
  265. // SECOND ROW MENU BUTTONS
  266. //----------------------------------------------------------------------------------------------
  267. itemDef
  268. {
  269. name title_glow
  270. group none
  271. style WINDOW_STYLE_SHADER
  272. rect 150 162 340 20
  273. background "gfx/menus/menu_buttonback"
  274. forecolor 1 1 1 1
  275. visible 1
  276. decoration
  277. }
  278. itemDef
  279. {
  280. name default_rulesheader
  281. group rulesheader
  282. style WINDOW_STYLE_EMPTY
  283. text @MENUS_RULES
  284. rect 100 164 440 16
  285. font 3
  286. textscale 0.7
  287. textalign ITEM_ALIGN_CENTER
  288. textalignx 225
  289. textaligny -1
  290. forecolor .549 .854 1 1
  291. visible 1
  292. decoration
  293. }
  294. // GAMES
  295. itemDef
  296. {
  297. name gamesmenubutton
  298. group default_submenu
  299. text @MENUS_GAMES
  300. descText @MENUS_GAME_RULES
  301. type ITEM_TYPE_BUTTON
  302. style WINDOW_STYLE_EMPTY
  303. rect 225 190 190 40
  304. font 3
  305. textscale 1
  306. textalign ITEM_ALIGN_CENTER
  307. textstyle 0
  308. textalignx 95
  309. textaligny 8
  310. forecolor 1 .682 0 1
  311. visible 1
  312. mouseEnter
  313. {
  314. show button_glow
  315. setitemrect button_glow 175 196 300 30
  316. }
  317. mouseExit
  318. {
  319. hide button_glow
  320. }
  321. action
  322. {
  323. play "sound/interface/button1.wav" ;
  324. close "rulesMenu" ;
  325. open "rulesMenu_games" ;
  326. }
  327. }
  328. // Games
  329. itemDef
  330. {
  331. name forcemenubutton
  332. group default_submenu
  333. text @MENUS_FORCE_POWERS
  334. descText @MENUS_FORCE_RULES
  335. type ITEM_TYPE_BUTTON
  336. style WINDOW_STYLE_EMPTY
  337. rect 225 230 190 40
  338. font 3
  339. textscale 1
  340. textalign ITEM_ALIGN_CENTER
  341. textstyle 0
  342. textalignx 95
  343. textaligny 8
  344. forecolor 1 .682 0 1
  345. visible 1
  346. mouseEnter
  347. {
  348. show button_glow
  349. setitemrect button_glow 175 236 300 30
  350. }
  351. mouseExit
  352. {
  353. hide button_glow
  354. }
  355. action
  356. {
  357. play "sound/interface/button1.wav" ;
  358. close "rulesMenu" ;
  359. open "rulesMenu_force" ;
  360. }
  361. }
  362. // Weapons
  363. itemDef
  364. {
  365. name weaponmenubutton
  366. group default_submenu
  367. text @MENUS_WEAPONS
  368. descText @MENUS_WEAPON_RULES
  369. type ITEM_TYPE_BUTTON
  370. style WINDOW_STYLE_EMPTY
  371. rect 225 270 190 40
  372. font 3
  373. textscale 1
  374. textalign ITEM_ALIGN_CENTER
  375. textstyle 0
  376. textalignx 95
  377. textaligny 8
  378. forecolor 1 .682 0 1
  379. visible 1
  380. action
  381. {
  382. play "sound/interface/button1.wav" ;
  383. close "rulesMenu" ;
  384. open "rulesMenu_weapons" ;
  385. }
  386. mouseEnter
  387. {
  388. show button_glow
  389. setitemrect button_glow 175 276 300 30
  390. }
  391. mouseExit
  392. {
  393. hide button_glow
  394. }
  395. }
  396. // Items
  397. itemDef
  398. {
  399. name itemmenubutton
  400. group default_submenu
  401. text @MENUS_ITEMS
  402. descText @MENUS_ITEM_RULES
  403. type ITEM_TYPE_BUTTON
  404. style WINDOW_STYLE_EMPTY
  405. rect 225 310 190 40
  406. font 3
  407. textscale 1
  408. textalign ITEM_ALIGN_CENTER
  409. textstyle 0
  410. textalignx 95
  411. textaligny 8
  412. forecolor 1 .682 0 1
  413. visible 1
  414. action
  415. {
  416. play "sound/interface/button1.wav" ;
  417. close "rulesMenu" ;
  418. open "rulesMenu_items" ;
  419. }
  420. mouseEnter
  421. {
  422. show button_glow
  423. setitemrect button_glow 175 316 300 30
  424. }
  425. mouseExit
  426. {
  427. hide button_glow
  428. }
  429. }
  430. // Move
  431. itemDef
  432. {
  433. name itemmenubutton
  434. group default_submenu
  435. text @MENUS_MOVES
  436. descText @MENUS_MOVE_RULES
  437. type ITEM_TYPE_BUTTON
  438. style WINDOW_STYLE_EMPTY
  439. rect 225 350 190 40
  440. font 3
  441. textscale 1
  442. textalign ITEM_ALIGN_CENTER
  443. textstyle 0
  444. textalignx 95
  445. textaligny 8
  446. forecolor 1 .682 0 1
  447. visible 1
  448. action
  449. {
  450. play "sound/interface/button1.wav" ;
  451. close "rulesMenu" ;
  452. open "rulesMenu_moves" ;
  453. }
  454. mouseEnter
  455. {
  456. show button_glow
  457. setitemrect button_glow 175 356 300 30
  458. }
  459. mouseExit
  460. {
  461. hide button_glow
  462. }
  463. }
  464. //----------------------------------------------------------------------------------------------
  465. // BOTTOM BUTTONS
  466. //----------------------------------------------------------------------------------------------
  467. // BACK button
  468. itemDef
  469. {
  470. name backbutton
  471. group fade_buttons
  472. text @MENUS_BACK
  473. descText @MENUS_BACKTOMAIN
  474. type ITEM_TYPE_BUTTON
  475. style WINDOW_STYLE_EMPTY
  476. rect 59 444 130 24
  477. font 3
  478. textscale 1.1
  479. textalign ITEM_ALIGN_CENTER
  480. textstyle 3
  481. textalignx 65
  482. textaligny -1
  483. forecolor 1 .682 0 1
  484. visible 1
  485. mouseEnter
  486. {
  487. show button_glow
  488. setitemrect button_glow 30 441 190 30
  489. }
  490. mouseExit
  491. {
  492. hide button_glow
  493. }
  494. action
  495. {
  496. play "sound/interface/esc.wav" ;
  497. close all ;
  498. open mainMenu
  499. }
  500. }
  501. // EXIT button
  502. itemDef
  503. {
  504. name exitgamebutton
  505. group othermain
  506. text @MENUS_EXIT
  507. descText @MENUS_LEAVE_JEDI_KNIGHT_II
  508. type ITEM_TYPE_BUTTON
  509. style WINDOW_STYLE_EMPTY
  510. rect 255 444 130 24
  511. font 3
  512. textscale 1.1
  513. textalign ITEM_ALIGN_CENTER
  514. textstyle 0
  515. textalignx 65
  516. textaligny -1
  517. forecolor 1 .682 0 1
  518. visible 1
  519. mouseEnter
  520. {
  521. show button_glow
  522. setitemrect button_glow 225 441 190 30
  523. }
  524. mouseExit
  525. {
  526. hide button_glow
  527. }
  528. action
  529. {
  530. play "sound/weapons/saber/saberoff.mp3";
  531. close all ;
  532. open quitMenu
  533. }
  534. }
  535. }
  536. }