saber.menu 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821
  1. //----------------------------------------------------------------------------------------------
  2. //
  3. // SABER CREATION MENU - called from main menu at the the start of a new game,
  4. // and also when player is allowed to upgrade the fighting style and choose a new saber
  5. //
  6. // values allowed for "ui_fightingstylesallowed" for styles player can choose from
  7. // 0 - none
  8. // 1 - Medium and Heavy
  9. // 2 - Fast and Heavy
  10. // 3 - Fast and Medium
  11. // 4 - Forced to take Fast
  12. // 5 - Forced to take Medium
  13. // 6 - Forced to take Strong
  14. //
  15. //----------------------------------------------------------------------------------------------
  16. {
  17. menuDef
  18. {
  19. name "saberMenu"
  20. fullScreen 1 // MENU_TRUE
  21. rect 0 0 640 480 // Size and position of the menu
  22. visible 1 // Visible on open
  23. focusColor 1 1 1 1 // Focus color for text and items
  24. descX 320
  25. descY 426
  26. descScale 1
  27. descColor 1 .682 0 .8
  28. descAlignment ITEM_ALIGN_CENTER
  29. onOpen
  30. {
  31. uiScript "resetsabercvardefaults"
  32. uiScript "getsabercvars"
  33. uiScript "updatefightingstylechoices"
  34. uiScript "saber_hilt"
  35. uiScript "saber_color"
  36. uiScript "saber2_hilt"
  37. uiScript "saber2_color"
  38. setitemcolor typebut_single forecolor .65 .65 1 1
  39. setitemcolor typebut_dual forecolor .65 .65 1 1
  40. setitemcolor typebut_staff forecolor .65 .65 1 1
  41. }
  42. onESC
  43. {
  44. play "sound/interface/esc.wav"
  45. uiScript "updatesabercvars"
  46. uiScript closesabermenu
  47. }
  48. //----------------------------------------------------------------------------------------------
  49. //
  50. // MENU BACKGROUND
  51. //
  52. //----------------------------------------------------------------------------------------------
  53. itemDef
  54. {
  55. name background
  56. group none
  57. style WINDOW_STYLE_SHADER
  58. rect 0 0 640 480
  59. background "gfx/menus/sabermenu_back"
  60. forecolor 1 1 1 1
  61. visible 1
  62. decoration
  63. }
  64. itemDef
  65. {
  66. name box1
  67. group none
  68. style WINDOW_STYLE_SHADER
  69. rect 4 66 219 165
  70. background "gfx/menus/sabermenu_box"
  71. forecolor 1 1 1 1
  72. visible 1
  73. decoration
  74. }
  75. itemDef
  76. {
  77. name box2top
  78. group none
  79. style WINDOW_STYLE_SHADER
  80. rect 212 66 219 60
  81. background "gfx/menus/sabermenu_box_top"
  82. forecolor 1 1 1 1
  83. visible 1
  84. decoration
  85. }
  86. itemDef
  87. {
  88. name box2middle
  89. group none
  90. style WINDOW_STYLE_SHADER
  91. rect 212 126 219 0
  92. background "gfx/menus/sabermenu_box_middle"
  93. forecolor 1 1 1 1
  94. visible 1
  95. decoration
  96. }
  97. itemDef
  98. {
  99. name box2bottom
  100. group none
  101. style WINDOW_STYLE_SHADER
  102. rect 212 126 219 60
  103. background "gfx/menus/sabermenu_box_bottom"
  104. forecolor 1 1 1 1
  105. visible 1
  106. decoration
  107. }
  108. itemDef
  109. {
  110. name box3top
  111. group none
  112. style WINDOW_STYLE_SHADER
  113. rect 418 66 219 60
  114. background "gfx/menus/sabermenu_box_top"
  115. forecolor 1 1 1 1
  116. visible 1
  117. decoration
  118. }
  119. itemDef
  120. {
  121. name box3middle
  122. group none
  123. style WINDOW_STYLE_SHADER
  124. rect 418 126 219 0
  125. background "gfx/menus/sabermenu_box_middle"
  126. forecolor 1 1 1 1
  127. visible 1
  128. decoration
  129. }
  130. itemDef
  131. {
  132. name box3bottom
  133. group none
  134. style WINDOW_STYLE_SHADER
  135. rect 418 126 219 60
  136. background "gfx/menus/sabermenu_box_bottom"
  137. forecolor 1 1 1 1
  138. visible 1
  139. decoration
  140. }
  141. itemDef
  142. {
  143. name styleboxleft
  144. group none
  145. style WINDOW_STYLE_SHADER
  146. rect 227 183 198 40
  147. background "gfx/menus/sabermenu_stylebox_left"
  148. forecolor 1 1 1 1
  149. visible 1
  150. decoration
  151. }
  152. itemDef
  153. {
  154. name styleboxright
  155. group none
  156. style WINDOW_STYLE_SHADER
  157. rect 425 183 198 40
  158. background "gfx/menus/sabermenu_stylebox_right"
  159. forecolor 1 1 1 1
  160. visible 1
  161. decoration
  162. }
  163. //----------------------------------------------------------------------------------------------
  164. // TOP MAIN MENU BUTTONS
  165. //----------------------------------------------------------------------------------------------
  166. itemDef
  167. {
  168. name button_glow
  169. group none
  170. style WINDOW_STYLE_SHADER
  171. rect 0 0 0 0
  172. background "gfx/menus/menu_buttonback"
  173. forecolor 1 1 1 1
  174. visible 0
  175. decoration
  176. }
  177. // Big button "NEW"
  178. itemDef
  179. {
  180. name newgamebutton
  181. group nbut
  182. style WINDOW_STYLE_EMPTY
  183. type ITEM_TYPE_BUTTON
  184. rect 7 16 130 24
  185. text @MENUS_NEW
  186. descText @MENUS_START_A_NEW_GAME
  187. font 3
  188. textscale 1.1
  189. textaligny 0
  190. textalign ITEM_ALIGN_CENTER
  191. textstyle 1
  192. textalignx 65
  193. forecolor 1 1 1 1
  194. visible 1
  195. cvarTest saber_menu
  196. showCvar { "0" }
  197. mouseEnter
  198. {
  199. show button_glow
  200. setitemrect button_glow 0 14 200 30
  201. }
  202. mouseExit
  203. {
  204. hide button_glow
  205. }
  206. }
  207. // Big button "LOAD"
  208. itemDef
  209. {
  210. name loadgamebutton
  211. group lbut
  212. text @MENUS_LOAD
  213. descText @MENUS_LOAD_A_SAVED_GAME
  214. style WINDOW_STYLE_EMPTY
  215. type ITEM_TYPE_BUTTON
  216. rect 170 16 130 24
  217. textaligny 0
  218. font 3
  219. textscale 1.1
  220. textalign ITEM_ALIGN_CENTER
  221. textstyle 1
  222. textalignx 65
  223. forecolor 1 .682 0 1
  224. visible 1
  225. cvarTest saber_menu
  226. showCvar { "0" }
  227. mouseEnter
  228. {
  229. show button_glow
  230. setitemrect button_glow 130 14 200 30
  231. }
  232. mouseExit
  233. {
  234. hide button_glow
  235. }
  236. action
  237. {
  238. play "sound/interface/button1.wav"
  239. uiScript "updatesabercvars"
  240. close all
  241. open loadgameMenu
  242. }
  243. }
  244. // Big button "CONTROLS"
  245. itemDef
  246. {
  247. name controlsbutton_glow
  248. group none
  249. style WINDOW_STYLE_SHADER
  250. rect 340 16 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 controlsbutton
  259. group cbut
  260. text @MENUS_CONTROLS
  261. descText @MENUS_CONFIGURE_GAME_CONTROLS
  262. type ITEM_TYPE_BUTTON
  263. style WINDOW_STYLE_EMPTY
  264. rect 340 16 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. cvarTest saber_menu
  275. showCvar { "0" }
  276. mouseEnter
  277. {
  278. show button_glow
  279. setitemrect button_glow 310 14 200 30
  280. }
  281. mouseExit
  282. {
  283. hide button_glow
  284. }
  285. action
  286. {
  287. play "sound/interface/button1.wav"
  288. uiScript "updatesabercvars"
  289. close all
  290. open controlsMenu
  291. }
  292. }
  293. // Big button "SETUP"
  294. itemDef
  295. {
  296. name setupbutton_glow
  297. group none
  298. style WINDOW_STYLE_SHADER
  299. rect 502 16 130 24
  300. background "gfx/menus/menu_buttonback"
  301. forecolor 1 1 1 1
  302. visible 0
  303. decoration
  304. }
  305. itemDef
  306. {
  307. name setupbutton
  308. group sbut
  309. text @MENUS_SETUP
  310. descText @MENUS_CONFIGURE_GAME_SETTINGS
  311. type ITEM_TYPE_BUTTON
  312. style WINDOW_STYLE_EMPTY
  313. rect 502 16 130 24
  314. font 3
  315. textscale 1.1
  316. textaligny 0
  317. textalign ITEM_ALIGN_CENTER
  318. textstyle 1
  319. textalignx 65
  320. backcolor 0 0 0 0
  321. forecolor 1 .682 0 1
  322. visible 1
  323. cvarTest saber_menu
  324. showCvar { "0" }
  325. mouseEnter
  326. {
  327. show button_glow
  328. setitemrect button_glow 472 14 200 30
  329. }
  330. mouseExit
  331. {
  332. hide button_glow
  333. }
  334. action
  335. {
  336. play "sound/interface/button1.wav"
  337. uiScript "updatesabercvars"
  338. close all
  339. open setupMenu
  340. }
  341. }
  342. itemDef
  343. {
  344. name left_frame
  345. group lf_fr
  346. style WINDOW_STYLE_SHADER
  347. rect 0 -60 320 160
  348. background "gfx/menus/menu_boxes_left"
  349. forecolor 1 1 1 1
  350. visible 1
  351. decoration
  352. }
  353. itemDef
  354. {
  355. name right_frame
  356. group rt_fr
  357. style WINDOW_STYLE_SHADER
  358. rect 320 -60 320 160
  359. background "gfx/menus/menu_boxes_right"
  360. forecolor 1 1 1 1
  361. visible 1
  362. decoration
  363. }
  364. //----------------------------------------------------------------------------------------------
  365. // SABER MENU specific stuff
  366. //----------------------------------------------------------------------------------------------
  367. itemDef
  368. {
  369. name title_glow
  370. group none
  371. style WINDOW_STYLE_SHADER
  372. rect 100 48 440 20
  373. background "gfx/menus/menu_blendbox"
  374. forecolor 1 1 1 1
  375. visible 1
  376. decoration
  377. }
  378. // CREATION title
  379. itemDef
  380. {
  381. name creation_title
  382. group title
  383. style WINDOW_STYLE_EMPTY
  384. text @MENUS_LIGHTSABER_CREATION
  385. rect 100 50 440 16
  386. font 3
  387. textscale 0.7
  388. textalign ITEM_ALIGN_CENTER
  389. textalignx 225
  390. textaligny -1
  391. forecolor .549 .854 1 1
  392. cvarTest saber_menu
  393. hideCvar { "1" "2" }
  394. visible 1
  395. decoration
  396. }
  397. itemDef
  398. {
  399. name creation_title2
  400. group title
  401. style WINDOW_STYLE_EMPTY
  402. text @MENUS_NEW_SABER
  403. rect 100 50 440 16
  404. font 3
  405. textscale 0.7
  406. textalign ITEM_ALIGN_CENTER
  407. textalignx 225
  408. textaligny -1
  409. forecolor .549 .854 1 1
  410. cvarTest saber_menu
  411. showCvar { "1" "2" }
  412. visible 1
  413. decoration
  414. }
  415. //----------------------------------------------------------------------------------------------
  416. // SABER TYPE BUTTONS (standard, dual, two handed)
  417. //----------------------------------------------------------------------------------------------
  418. itemDef
  419. {
  420. name typebut
  421. group none
  422. text @MENUS_SABER_TYPE
  423. descText @MENUS_SABER_TYPE_DESC
  424. style WINDOW_STYLE_EMPTY
  425. rect 32 96 160 24
  426. font 3
  427. textscale 1
  428. textstyle 1
  429. textalignx 0
  430. textaligny 0
  431. textalign ITEM_ALIGN_LEFT
  432. backcolor 0 0 0 0
  433. forecolor .549 .854 1 1
  434. visible 1
  435. decoration
  436. }
  437. itemDef
  438. {
  439. name typebut_glow
  440. group none
  441. style WINDOW_STYLE_SHADER
  442. rect 0 0 0 0
  443. background "gfx/menus/menu_buttonback"
  444. forecolor 1 1 1 1
  445. visible 0
  446. decoration
  447. }
  448. // This prints the first time in, so you don't get a highlite on the single
  449. itemDef
  450. {
  451. name type_single_title
  452. group none
  453. text @MENUS_SINGLESABER
  454. descText @MENUS_SINGLESABER_DESC
  455. style WINDOW_STYLE_EMPTY
  456. rect 32 132 0 0
  457. font 4
  458. textscale 1
  459. textstyle 1
  460. textalign ITEM_ALIGN_LEFT
  461. textalignx 0
  462. textaligny 0
  463. forecolor 1 1 1 1
  464. visible 1
  465. cvarTest ui_sabermenu
  466. showCvar { "0" }
  467. }
  468. itemDef
  469. {
  470. name typebut_single
  471. group none
  472. text @MENUS_SINGLESABER
  473. descText @MENUS_SINGLESABER_DESC
  474. type ITEM_TYPE_BUTTON
  475. style WINDOW_STYLE_EMPTY
  476. rect 32 132 160 16
  477. font 4
  478. textscale 1
  479. textstyle 1
  480. textalign ITEM_ALIGN_LEFT
  481. textalignx 0
  482. textaligny 0
  483. forecolor 1 1 1 1
  484. visible 1
  485. cvarTest ui_sabermenu
  486. hideCvar { "0" }
  487. mouseEnter
  488. {
  489. show typebut_glow
  490. setitemrect typebut_glow 5 130 210 20
  491. }
  492. mouseExit
  493. {
  494. hide typebut_glow
  495. }
  496. action
  497. {
  498. play "sound/interface/choose_saber.wav"
  499. setcvar ui_saber_type "single"
  500. uiScript "saber_type"
  501. setcvar ui_saber "single_1"
  502. setcvar ui_saber2 ""
  503. uiScript "saber_hilt"
  504. uiScript "saber_color"
  505. uiScript "saber2_hilt"
  506. uiScript "saber2_color"
  507. setitemcolor typebut_single forecolor 1 1 1 1
  508. setitemcolor typebut_dual forecolor .65 .65 1 1
  509. setitemcolor typebut_staff forecolor .65 .65 1 1
  510. transition2 box2middle 212 126 219 0 20 5
  511. transition2 box2bottom 212 126 219 60 20 5
  512. transition2 box3middle 418 126 219 0 20 5
  513. transition2 box3bottom 418 126 219 60 20 5
  514. transition2 styleboxleft 227 183 198 40 20 5
  515. transition2 styleboxright 425 183 198 40 20 5
  516. transition2 saber 12 -80 615 615 20 10
  517. uiScript "updatefightingstylechoices"
  518. }
  519. }
  520. itemDef
  521. {
  522. name typebut_dual
  523. group none
  524. text @MENUS_DUALSABERS
  525. descText @MENUS_DUALSABERS_DESC
  526. type ITEM_TYPE_BUTTON
  527. style WINDOW_STYLE_EMPTY
  528. rect 32 152 160 16
  529. font 4
  530. textscale 1
  531. textstyle 1
  532. textalign ITEM_ALIGN_LEFT
  533. textalignx 0
  534. textaligny 0
  535. forecolor 1 1 1 1
  536. visible 1
  537. cvarTest saber_menu
  538. showCvar { "2" }
  539. mouseEnter
  540. {
  541. show typebut_glow
  542. setitemrect typebut_glow 5 150 210 20
  543. }
  544. mouseExit
  545. {
  546. hide typebut_glow
  547. }
  548. action
  549. {
  550. play "sound/interface/choose_saber.wav"
  551. setcvar ui_saber_type "dual"
  552. uiScript "saber_type"
  553. setcvar ui_saber "single_1"
  554. setcvar ui_saber2 "single_1"
  555. uiScript "saber_hilt"
  556. uiScript "saber_color"
  557. uiScript "saber2_hilt"
  558. uiScript "saber2_color"
  559. setitemcolor typebut_single forecolor .65 .65 1 1
  560. setitemcolor typebut_dual forecolor 1 1 1 1
  561. setitemcolor typebut_staff forecolor .65 .65 1 1
  562. transition2 box2middle 212 126 219 44 20 5
  563. transition2 box2bottom 212 170 219 60 20 5
  564. transition2 box3middle 418 126 219 44 20 5
  565. transition2 box3bottom 418 170 219 60 20 5
  566. transition2 styleboxleft 425 183 0 40 20 5
  567. transition2 styleboxright 425 183 0 40 20 5
  568. transition2 saber 12 -130 615 615 20 5
  569. uiScript "updatefightingstylechoices"
  570. }
  571. }
  572. itemDef
  573. {
  574. name typebut_staff
  575. group none
  576. text @MENUS_SABERSTAFF
  577. descText @MENUS_SABERSTAFF_DESC
  578. type ITEM_TYPE_BUTTON
  579. style WINDOW_STYLE_EMPTY
  580. rect 32 172 160 16
  581. font 4
  582. textscale 1
  583. textstyle 1
  584. textalign ITEM_ALIGN_LEFT
  585. textalignx 0
  586. textaligny 0
  587. forecolor 1 1 1 1
  588. visible 1
  589. cvarTest saber_menu
  590. showCvar { "2" }
  591. mouseEnter
  592. {
  593. show typebut_glow
  594. setitemrect typebut_glow 5 170 210 20
  595. }
  596. mouseExit
  597. {
  598. hide typebut_glow
  599. }
  600. action
  601. {
  602. play "sound/interface/choose_saber.wav"
  603. setcvar ui_saber_type "staff"
  604. uiScript "saber_type"
  605. setcvar ui_saber "dual_1"
  606. setcvar ui_saber2 ""
  607. uiScript "saber_hilt"
  608. uiScript "saber_color"
  609. uiScript "saber2_hilt"
  610. uiScript "saber2_color"
  611. setitemcolor typebut_single forecolor .65 .65 1 1
  612. setitemcolor typebut_dual forecolor .65 .65 1 1
  613. setitemcolor typebut_staff forecolor 1 1 1 1
  614. transition2 box2middle 212 126 219 44 20 5
  615. transition2 box2bottom 212 170 219 60 20 5
  616. transition2 box3middle 418 126 219 44 20 5
  617. transition2 box3bottom 418 170 219 60 20 5
  618. transition2 styleboxleft 425 183 0 40 20 5
  619. transition2 styleboxright 425 183 0 40 20 5
  620. transition2 saber 12 -80 615 615 20 10
  621. uiScript "updatefightingstylechoices"
  622. }
  623. }
  624. //----------------------------------------------------------------------------------------------
  625. //HILTS
  626. //----------------------------------------------------------------------------------------------
  627. itemDef
  628. {
  629. name hilttype
  630. group none
  631. text @MENUS_SABER_HILTS
  632. descText @MENUS_SABER_HILTS_DESC
  633. style WINDOW_STYLE_EMPTY
  634. rect 240 96 160 24
  635. font 3
  636. textscale 1
  637. textstyle 1
  638. textalignx 0
  639. textaligny 0
  640. textalign ITEM_ALIGN_LEFT
  641. backcolor 0 0 0 0
  642. forecolor .549 .854 1 1
  643. visible 1
  644. decoration
  645. }
  646. // HILT BUTTON 1 - SINGLE or DUAL
  647. itemDef
  648. {
  649. name hiltbut_glow
  650. group none
  651. style WINDOW_STYLE_SHADER
  652. rect 210 130 210 20
  653. background "gfx/menus/menu_buttonback"
  654. forecolor 1 1 1 1
  655. visible 0
  656. decoration
  657. }
  658. itemDef
  659. {
  660. name hiltbut
  661. group none
  662. text @MENUS_HILT1
  663. descText @MENUS_HILT1_DESC
  664. type ITEM_TYPE_MULTI
  665. style WINDOW_STYLE_EMPTY
  666. rect 240 132 160 16
  667. font 4
  668. textscale 1
  669. textalign ITEM_ALIGN_LEFT
  670. textstyle 1
  671. textalignx 0
  672. textaligny 0
  673. forecolor .65 .65 1 1
  674. cvarTest ui_saber_type
  675. hideCvar { "staff" }
  676. cvar "ui_saber"
  677. //FIXME: read these from sabers.cfg + *.sab?
  678. cvarStrList
  679. {
  680. @MENUS_SINGLE_HILT1 "single_1"
  681. @MENUS_SINGLE_HILT2 "single_2"
  682. @MENUS_SINGLE_HILT3 "single_3"
  683. @MENUS_SINGLE_HILT4 "single_4"
  684. @MENUS_SINGLE_HILT5 "single_5"
  685. @MENUS_SINGLE_HILT6 "single_6"
  686. @MENUS_SINGLE_HILT7 "single_7"
  687. @MENUS_SINGLE_HILT8 "single_8"
  688. @MENUS_SINGLE_HILT9 "single_9"
  689. }
  690. visible 1
  691. mouseEnter
  692. {
  693. show hiltbut_glow
  694. }
  695. mouseExit
  696. {
  697. hide hiltbut_glow
  698. }
  699. action
  700. {
  701. play "sound/interface/choose_hilt.wav"
  702. uiScript "saber_hilt"
  703. }
  704. }
  705. // HILT BUTTON 1 - STAVES
  706. itemDef
  707. {
  708. name hiltbut_staves
  709. group none
  710. text @MENUS_HILT1
  711. descText @MENUS_HILT1_DESC
  712. type ITEM_TYPE_MULTI
  713. style WINDOW_STYLE_EMPTY
  714. rect 240 132 160 16
  715. font 4
  716. textscale 1
  717. textstyle 1
  718. textalign ITEM_ALIGN_LEFT
  719. textalignx 0
  720. textaligny 0
  721. forecolor .65 .65 1 1
  722. cvarTest ui_saber_type
  723. hideCvar { "single"; "dual" }
  724. cvar "ui_saber"
  725. //FIXME: read these from sabers.cfg + *.sab?
  726. cvarStrList
  727. {
  728. @MENUS_STAFF_HILT1 "dual_1"
  729. @MENUS_STAFF_HILT2 "dual_2"
  730. @MENUS_STAFF_HILT3 "dual_3"
  731. @MENUS_STAFF_HILT4 "dual_4"
  732. @MENUS_STAFF_HILT5 "dual_5"
  733. }
  734. visible 1
  735. mouseEnter
  736. {
  737. show hiltbut_glow
  738. }
  739. mouseExit
  740. {
  741. hide hiltbut_glow
  742. }
  743. action
  744. {
  745. play "sound/interface/choose_hilt.wav"
  746. uiScript "saber_hilt"
  747. }
  748. }
  749. // HILT BUTTON 2 - DUAL
  750. itemDef
  751. {
  752. name hiltbut2_glow
  753. group none
  754. style WINDOW_STYLE_SHADER
  755. rect 210 150 210 20
  756. background "gfx/menus/menu_buttonback"
  757. forecolor 1 1 1 1
  758. visible 0
  759. cvarTest ui_saber_type
  760. hideCvar { "single"; "staff" }
  761. decoration
  762. }
  763. itemDef
  764. {
  765. name hiltbut2
  766. group none
  767. text @MENUS_HILT2
  768. descText @MENUS_HILT2_DESC
  769. type ITEM_TYPE_MULTI
  770. style WINDOW_STYLE_EMPTY
  771. rect 240 152 160 16
  772. font 4
  773. textscale 1
  774. textstyle 1
  775. textalign ITEM_ALIGN_LEFT
  776. textalignx 0
  777. textaligny 0
  778. forecolor .65 .65 1 1
  779. cvarTest ui_saber_type
  780. hideCvar { "single"; "staff" }
  781. cvar "ui_saber2"
  782. //FIXME: read these from sabers.cfg + *.sab?
  783. cvarStrList
  784. {
  785. @MENUS_SINGLE_HILT1 "single_1"
  786. @MENUS_SINGLE_HILT2 "single_2"
  787. @MENUS_SINGLE_HILT3 "single_3"
  788. @MENUS_SINGLE_HILT4 "single_4"
  789. @MENUS_SINGLE_HILT5 "single_5"
  790. @MENUS_SINGLE_HILT6 "single_6"
  791. @MENUS_SINGLE_HILT7 "single_7"
  792. @MENUS_SINGLE_HILT8 "single_8"
  793. @MENUS_SINGLE_HILT9 "single_9"
  794. }
  795. visible 1
  796. mouseEnter
  797. {
  798. show hiltbut2_glow
  799. }
  800. mouseExit
  801. {
  802. hide hiltbut2_glow
  803. }
  804. action
  805. {
  806. play "sound/interface/choose_hilt.wav"
  807. uiScript "saber2_hilt"
  808. }
  809. }
  810. //----------------------------------------------------------------------------------------------
  811. //BLADE COLORS
  812. //----------------------------------------------------------------------------------------------
  813. itemDef
  814. {
  815. name bladecolor_title
  816. group none
  817. text @MENUS_BLADE_COLOR
  818. descText @MENUS_BLADE_COLOR_DESC
  819. style WINDOW_STYLE_EMPTY
  820. rect 446 96 160 24
  821. font 3
  822. textscale 1
  823. textstyle 1
  824. textalignx 0
  825. textaligny 0
  826. textalign ITEM_ALIGN_LEFT
  827. backcolor 0 0 0 0
  828. forecolor .549 .854 1 1
  829. visible 1
  830. decoration
  831. }
  832. // COLOR 1 BUTTON
  833. /*itemDef
  834. {
  835. name colorbut_glow
  836. group none
  837. style WINDOW_STYLE_SHADER
  838. rect 446 136 160 16
  839. background "gfx/menus/menu_buttonback"
  840. forecolor 1 1 1 1
  841. visible 0
  842. decoration
  843. }
  844. itemDef
  845. {
  846. name colorbut
  847. group none
  848. text @MENUS_COLOR1
  849. descText @MENUS_COLOR1_DESC
  850. type ITEM_TYPE_MULTI
  851. style WINDOW_STYLE_EMPTY
  852. rect 446 136 160 16
  853. font 2
  854. textscale .8
  855. textstyle 1
  856. textalign ITEM_ALIGN_LEFT
  857. textalignx 0
  858. textaligny -4
  859. forecolor 1 1 1 1
  860. visible 1
  861. cvar "ui_saber_color"
  862. cvarStrList
  863. {
  864. "red" "red"
  865. "orange" "orange"
  866. "yellow" "yellow"
  867. "green" "green"
  868. "blue" "blue"
  869. "purple" "purple"
  870. }
  871. mouseEnter
  872. {
  873. show colorbut_glow
  874. }
  875. mouseExit
  876. {
  877. hide colorbut_glow
  878. }
  879. action
  880. {
  881. play "sound/interface/choose_blade.wav"
  882. uiScript "saber_color"
  883. }
  884. }*/
  885. itemDef
  886. {
  887. name blueicon
  888. group sabericons
  889. descText @MENUS_COLOR1_DESC
  890. style WINDOW_STYLE_SHADER
  891. type ITEM_TYPE_BUTTON
  892. rect 446 124 24 24
  893. background "gfx/menus/saber_icon_blue"
  894. forecolor .75 .75 .75 1
  895. border 1
  896. bordersize 1
  897. bordercolor .33 .33 .5 1
  898. visible 1
  899. mouseEnter
  900. {
  901. setitemcolor blueicon forecolor 1 1 1 1
  902. setitemcolor blueicon bordercolor .66 .66 1 1
  903. }
  904. mouseExit
  905. {
  906. setitemcolor blueicon forecolor .75 .75 .75 1
  907. setitemcolor blueicon bordercolor .33 .33 .5 1
  908. }
  909. action
  910. {
  911. play "sound/interface/choose_blade.wav"
  912. //uiScript "saber_color"
  913. setcvar "ui_saber_color" "blue"
  914. }
  915. }
  916. itemDef
  917. {
  918. name greenicon
  919. group sabericons
  920. descText @MENUS_COLOR1_DESC
  921. style WINDOW_STYLE_SHADER
  922. type ITEM_TYPE_BUTTON
  923. rect 480 124 24 24
  924. background "gfx/menus/saber_icon_green"
  925. forecolor .75 .75 .75 1
  926. border 1
  927. bordersize 1
  928. bordercolor .33 .33 .5 1
  929. visible 1
  930. mouseEnter
  931. {
  932. setitemcolor greenicon forecolor 1 1 1 1
  933. setitemcolor greenicon bordercolor .66 .66 1 1
  934. }
  935. mouseExit
  936. {
  937. setitemcolor greenicon forecolor .75 .75 .75 1
  938. setitemcolor greenicon bordercolor .33 .33 .5 1
  939. }
  940. action
  941. {
  942. play "sound/interface/choose_blade.wav"
  943. //uiScript "saber_color"
  944. setcvar "ui_saber_color" "green"
  945. }
  946. }
  947. itemDef
  948. {
  949. name orangeicon
  950. group sabericons
  951. descText @MENUS_COLOR1_DESC
  952. style WINDOW_STYLE_SHADER
  953. type ITEM_TYPE_BUTTON
  954. rect 514 124 24 24
  955. background "gfx/menus/saber_icon_orange"
  956. forecolor .75 .75 .75 1
  957. border 1
  958. bordersize 1
  959. bordercolor .33 .33 .5 1
  960. visible 1
  961. mouseEnter
  962. {
  963. setitemcolor orangeicon forecolor 1 1 1 1
  964. setitemcolor orangeicon bordercolor .66 .66 1 1
  965. }
  966. mouseExit
  967. {
  968. setitemcolor orangeicon forecolor .75 .75 .75 1
  969. setitemcolor orangeicon bordercolor .33 .33 .5 1
  970. }
  971. action
  972. {
  973. play "sound/interface/choose_blade.wav"
  974. //uiScript "saber_color"
  975. setcvar "ui_saber_color" "orange"
  976. }
  977. }
  978. itemDef
  979. {
  980. name purpleicon
  981. group sabericons
  982. descText @MENUS_COLOR1_DESC
  983. style WINDOW_STYLE_SHADER
  984. type ITEM_TYPE_BUTTON
  985. rect 548 124 24 24
  986. background "gfx/menus/saber_icon_purple"
  987. forecolor .75 .75 .75 1
  988. border 1
  989. bordersize 1
  990. bordercolor .33 .33 .5 1
  991. visible 1
  992. mouseEnter
  993. {
  994. setitemcolor purpleicon forecolor 1 1 1 1
  995. setitemcolor purpleicon bordercolor .66 .66 1 1
  996. }
  997. mouseExit
  998. {
  999. setitemcolor purpleicon forecolor .75 .75 .75 1
  1000. setitemcolor purpleicon bordercolor .33 .33 .5 1
  1001. }
  1002. action
  1003. {
  1004. play "sound/interface/choose_blade.wav"
  1005. //uiScript "saber_color"
  1006. setcvar "ui_saber_color" "purple"
  1007. }
  1008. }
  1009. itemDef
  1010. {
  1011. name yellowicon
  1012. group sabericons
  1013. descText @MENUS_COLOR1_DESC
  1014. style WINDOW_STYLE_SHADER
  1015. type ITEM_TYPE_BUTTON
  1016. rect 582 124 24 24
  1017. background "gfx/menus/saber_icon_yellow"
  1018. forecolor .75 .75 .75 1
  1019. border 1
  1020. bordersize 1
  1021. bordercolor .33 .33 .5 1
  1022. visible 1
  1023. mouseEnter
  1024. {
  1025. setitemcolor yellowicon forecolor 1 1 1 1
  1026. setitemcolor yellowicon bordercolor .66 .66 1 1
  1027. }
  1028. mouseExit
  1029. {
  1030. setitemcolor yellowicon forecolor .75 .75 .75 1
  1031. setitemcolor yellowicon bordercolor .33 .33 .5 1
  1032. }
  1033. action
  1034. {
  1035. play "sound/interface/choose_blade.wav"
  1036. //uiScript "saber_color"
  1037. setcvar "ui_saber_color" "yellow"
  1038. }
  1039. }
  1040. // COLOR 2 BUTTON
  1041. itemDef
  1042. {
  1043. name colorbut2
  1044. group none
  1045. text @MENUS_COLOR2
  1046. descText @MENUS_COLOR2_DESC
  1047. //type ITEM_TYPE_MULTI
  1048. style WINDOW_STYLE_EMPTY
  1049. rect 446 152 160 16
  1050. font 2
  1051. textscale .8
  1052. textstyle 1
  1053. textalign ITEM_ALIGN_LEFT
  1054. textalignx 0
  1055. textaligny -4
  1056. forecolor .79 .64 .22 1
  1057. visible 1
  1058. decoration
  1059. cvarTest ui_saber_type
  1060. hideCvar { "single"; "staff" }
  1061. /*cvar "ui_saber2_color"
  1062. cvarStrList
  1063. {
  1064. "red" "red"
  1065. "orange" "orange"
  1066. "yellow" "yellow"
  1067. "green" "green"
  1068. "blue" "blue"
  1069. "purple" "purple"
  1070. }
  1071. mouseEnter
  1072. {
  1073. show colorbut2_glow
  1074. }
  1075. mouseExit
  1076. {
  1077. hide colorbut2_glow
  1078. }
  1079. action
  1080. {
  1081. play "sound/interface/choose_blade.wav"
  1082. uiScript "saber2_color"
  1083. }*/
  1084. }
  1085. itemDef
  1086. {
  1087. name blueicon2
  1088. group sabericons2
  1089. descText @MENUS_COLOR2_DESC
  1090. style WINDOW_STYLE_SHADER
  1091. type ITEM_TYPE_BUTTON
  1092. rect 446 170 24 24
  1093. background "gfx/menus/saber_icon_blue"
  1094. forecolor .75 .75 .75 1
  1095. border 1
  1096. bordersize 1
  1097. bordercolor .33 .33 .5 1
  1098. visible 1
  1099. cvarTest ui_saber_type
  1100. hideCvar { "single"; "staff" }
  1101. mouseEnter
  1102. {
  1103. setitemcolor blueicon2 forecolor 1 1 1 1
  1104. setitemcolor blueicon2 bordercolor .66 .66 1 1
  1105. }
  1106. mouseExit
  1107. {
  1108. setitemcolor blueicon2 forecolor .75 .75 .75 1
  1109. setitemcolor blueicon2 bordercolor .33 .33 .5 1
  1110. }
  1111. action
  1112. {
  1113. play "sound/interface/choose_blade.wav"
  1114. //uiScript "saber_color"
  1115. setcvar "ui_saber2_color" "blue"
  1116. }
  1117. }
  1118. itemDef
  1119. {
  1120. name greenicon2
  1121. group sabericons2
  1122. descText @MENUS_COLOR2_DESC
  1123. style WINDOW_STYLE_SHADER
  1124. type ITEM_TYPE_BUTTON
  1125. rect 480 170 24 24
  1126. background "gfx/menus/saber_icon_green"
  1127. forecolor .75 .75 .75 1
  1128. border 1
  1129. bordersize 1
  1130. bordercolor .33 .33 .5 1
  1131. visible 1
  1132. cvarTest ui_saber_type
  1133. hideCvar { "single"; "staff" }
  1134. mouseEnter
  1135. {
  1136. setitemcolor greenicon2 forecolor 1 1 1 1
  1137. setitemcolor greenicon2 bordercolor .66 .66 1 1
  1138. }
  1139. mouseExit
  1140. {
  1141. setitemcolor greenicon2 forecolor .75 .75 .75 1
  1142. setitemcolor greenicon2 bordercolor .33 .33 .5 1
  1143. }
  1144. action
  1145. {
  1146. play "sound/interface/choose_blade.wav"
  1147. //uiScript "saber_color"
  1148. setcvar "ui_saber2_color" "green"
  1149. }
  1150. }
  1151. itemDef
  1152. {
  1153. name orangeicon2
  1154. group sabericons2
  1155. style WINDOW_STYLE_SHADER
  1156. descText @MENUS_COLOR2_DESC
  1157. type ITEM_TYPE_BUTTON
  1158. rect 514 170 24 24
  1159. background "gfx/menus/saber_icon_orange"
  1160. forecolor .75 .75 .75 1
  1161. border 1
  1162. bordersize 1
  1163. bordercolor .33 .33 .5 1
  1164. visible 1
  1165. cvarTest ui_saber_type
  1166. hideCvar { "single"; "staff" }
  1167. mouseEnter
  1168. {
  1169. setitemcolor orangeicon2 forecolor 1 1 1 1
  1170. setitemcolor orangeicon2 bordercolor .66 .66 1 1
  1171. }
  1172. mouseExit
  1173. {
  1174. setitemcolor orangeicon2 forecolor .75 .75 .75 1
  1175. setitemcolor orangeicon2 bordercolor .33 .33 .5 1
  1176. }
  1177. action
  1178. {
  1179. play "sound/interface/choose_blade.wav"
  1180. //uiScript "saber_color"
  1181. setcvar "ui_saber2_color" "orange"
  1182. }
  1183. }
  1184. itemDef
  1185. {
  1186. name purpleicon2
  1187. group sabericons2
  1188. style WINDOW_STYLE_SHADER
  1189. type ITEM_TYPE_BUTTON
  1190. descText @MENUS_COLOR2_DESC
  1191. rect 548 170 24 24
  1192. background "gfx/menus/saber_icon_purple"
  1193. forecolor .75 .75 .75 1
  1194. border 1
  1195. bordersize 1
  1196. bordercolor .33 .33 .5 1
  1197. visible 1
  1198. cvarTest ui_saber_type
  1199. hideCvar { "single"; "staff" }
  1200. mouseEnter
  1201. {
  1202. setitemcolor purpleicon2 forecolor 1 1 1 1
  1203. setitemcolor purpleicon2 bordercolor .66 .66 1 1
  1204. }
  1205. mouseExit
  1206. {
  1207. setitemcolor purpleicon2 forecolor .75 .75 .75 1
  1208. setitemcolor purpleicon2 bordercolor .33 .33 .5 1
  1209. }
  1210. action
  1211. {
  1212. play "sound/interface/choose_blade.wav"
  1213. //uiScript "saber_color"
  1214. setcvar "ui_saber2_color" "purple"
  1215. }
  1216. }
  1217. itemDef
  1218. {
  1219. name yellowicon2
  1220. group sabericons2
  1221. style WINDOW_STYLE_SHADER
  1222. type ITEM_TYPE_BUTTON
  1223. rect 582 170 24 24
  1224. descText @MENUS_COLOR2_DESC
  1225. background "gfx/menus/saber_icon_yellow"
  1226. forecolor .75 .75 .75 1
  1227. border 1
  1228. bordersize 1
  1229. bordercolor .33 .33 .5 1
  1230. visible 1
  1231. cvarTest ui_saber_type
  1232. hideCvar { "single"; "staff" }
  1233. mouseEnter
  1234. {
  1235. setitemcolor yellowicon2 forecolor 1 1 1 1
  1236. setitemcolor yellowicon2 bordercolor .66 .66 1 1
  1237. }
  1238. mouseExit
  1239. {
  1240. setitemcolor yellowicon2 forecolor .75 .75 .75 1
  1241. setitemcolor yellowicon2 bordercolor .33 .33 .5 1
  1242. }
  1243. action
  1244. {
  1245. play "sound/interface/choose_blade.wav"
  1246. //uiScript "saber_color"
  1247. setcvar "ui_saber2_color" "yellow"
  1248. }
  1249. }
  1250. //----------------------------------------------------------------------------------------------
  1251. // SABER COMBAT STYLES
  1252. //----------------------------------------------------------------------------------------------
  1253. itemDef
  1254. {
  1255. name fightingstylebutton0
  1256. group stylebuttons
  1257. text @MENUS_SABERSTYLE
  1258. descText @MENUS_FIGHTINGSTYLE
  1259. type ITEM_TYPE_MULTI
  1260. style WINDOW_STYLE_EMPTY
  1261. rect 240 190 0 0
  1262. font 3
  1263. textscale 1
  1264. textalign ITEM_ALIGN_LEFT
  1265. textstyle 1
  1266. textalignx 0
  1267. textaligny 0
  1268. forecolor .65 .65 1 1
  1269. //cvarTest ui_fightingstylesallowed
  1270. cvarTest saber_menu
  1271. showCvar { "0" }
  1272. cvar "ui_newfightingstyle"
  1273. cvarStrList
  1274. {
  1275. @MENUS_COMBATSTYLEMEDIUM "1"
  1276. }
  1277. visible 1
  1278. }
  1279. /*
  1280. itemDef
  1281. {
  1282. name fightingstylebutton1
  1283. group stylebuttons
  1284. text @MENUS_SABERSTYLE
  1285. // descText @MENUS_ADDFIGHTINGSTYLE
  1286. type ITEM_TYPE_MULTI
  1287. style WINDOW_STYLE_EMPTY
  1288. rect 240 190 380 24
  1289. font 3
  1290. textscale 1
  1291. textalign ITEM_ALIGN_LEFT
  1292. textstyle 1
  1293. textalignx 0
  1294. textaligny 0
  1295. forecolor .65 .65 1 1
  1296. cvarTest ui_fightingstylesallowed
  1297. showCvar { "1" }
  1298. cvar "ui_newfightingstyle"
  1299. cvarStrList
  1300. {
  1301. @MENUS_COMBATSTYLEMEDIUM "1"
  1302. @MENUS_COMBATSTYLEHEAVY "2"
  1303. }
  1304. visible 1
  1305. mouseEnter
  1306. {
  1307. // show fightingstyle_glow
  1308. }
  1309. mouseExit
  1310. {
  1311. // hide fightingstyle_glow
  1312. }
  1313. action
  1314. {
  1315. play "sound/interface/button1.wav"
  1316. }
  1317. }
  1318. itemDef
  1319. {
  1320. name fightingstylebutton2
  1321. group none
  1322. text @MENUS_SABERSTYLE
  1323. // descText @MENUS_ADDFIGHTINGSTYLE
  1324. type ITEM_TYPE_MULTI
  1325. style WINDOW_STYLE_EMPTY
  1326. rect 240 190 380 24
  1327. font 3
  1328. textscale 1
  1329. textalign ITEM_ALIGN_LEFT
  1330. textstyle 1
  1331. textalignx 0
  1332. textaligny 0
  1333. forecolor .65 .65 1 1
  1334. cvarTest ui_fightingstylesallowed
  1335. showCvar { "2" }
  1336. cvar "ui_newfightingstyle"
  1337. cvarStrList
  1338. {
  1339. @MENUS_COMBATSTYLEFAST "0"
  1340. @MENUS_COMBATSTYLEHEAVY "2"
  1341. }
  1342. visible 1
  1343. decoration
  1344. mouseEnter
  1345. {
  1346. // show fightingstyle_glow
  1347. }
  1348. mouseExit
  1349. {
  1350. // hide fightingstyle_glow
  1351. }
  1352. action
  1353. {
  1354. play "sound/interface/button1.wav"
  1355. }
  1356. }
  1357. itemDef
  1358. {
  1359. name fightingstylebutton3
  1360. group stylebuttons
  1361. text @MENUS_SABERSTYLE
  1362. // descText @MENUS_ADDFIGHTINGSTYLE
  1363. type ITEM_TYPE_MULTI
  1364. style WINDOW_STYLE_EMPTY
  1365. rect 240 190 380 24
  1366. font 3
  1367. textscale 1
  1368. textalign ITEM_ALIGN_LEFT
  1369. textstyle 1
  1370. textalignx 0
  1371. textaligny 0
  1372. forecolor .65 .65 1 1
  1373. cvarTest ui_fightingstylesallowed
  1374. showCvar { "3" }
  1375. cvar "ui_newfightingstyle"
  1376. cvarStrList
  1377. {
  1378. @MENUS_COMBATSTYLEFAST "0"
  1379. @MENUS_COMBATSTYLEMEDIUM "1"
  1380. }
  1381. visible 1
  1382. mouseEnter
  1383. {
  1384. // show fightingstyle_glow
  1385. }
  1386. mouseExit
  1387. {
  1388. // hide fightingstyle_glow
  1389. }
  1390. action
  1391. {
  1392. play "sound/interface/button1.wav"
  1393. }
  1394. }
  1395. */
  1396. itemDef
  1397. {
  1398. name fightingstylebutton4
  1399. group stylebuttons
  1400. text @MENUS_FIGHTINGSTYLE_FAST
  1401. type ITEM_TYPE_TEXT
  1402. style WINDOW_STYLE_EMPTY
  1403. rect 240 190 0 0
  1404. font 3
  1405. textscale 1
  1406. textalign ITEM_ALIGN_LEFT
  1407. textstyle 1
  1408. textalignx 0
  1409. textaligny 0
  1410. forecolor .65 .65 1 1
  1411. cvarTest ui_fightingstylesallowed
  1412. showCvar { "4" }
  1413. visible 1
  1414. }
  1415. itemDef
  1416. {
  1417. name fightingstylebutton5
  1418. group stylebuttons
  1419. text @MENUS_FIGHTINGSTYLE_MED
  1420. type ITEM_TYPE_TEXT
  1421. style WINDOW_STYLE_EMPTY
  1422. rect 240 190 0 0
  1423. font 3
  1424. textscale 1
  1425. textalign ITEM_ALIGN_LEFT
  1426. textstyle 1
  1427. textalignx 0
  1428. textaligny 0
  1429. forecolor .65 .65 1 1
  1430. cvarTest ui_fightingstylesallowed
  1431. showCvar { "5" }
  1432. visible 1
  1433. }
  1434. itemDef
  1435. {
  1436. name fightingstylebutton6
  1437. group stylebuttons
  1438. text @MENUS_FIGHTINGSTYLE_STRONG
  1439. type ITEM_TYPE_TEXT
  1440. style WINDOW_STYLE_EMPTY
  1441. rect 240 190 0 0
  1442. font 3
  1443. textscale 1
  1444. textalign ITEM_ALIGN_LEFT
  1445. textstyle 1
  1446. textalignx 0
  1447. textaligny 0
  1448. forecolor .65 .65 1 1
  1449. cvarTest ui_fightingstylesallowed
  1450. showCvar { "6" }
  1451. visible 1
  1452. }
  1453. itemDef
  1454. {
  1455. name fightingstyle_glow
  1456. group none
  1457. style WINDOW_STYLE_SHADER
  1458. rect 240 190 380 24
  1459. background "gfx/menus/menu_buttonback"
  1460. forecolor 1 1 1 1
  1461. visible 0
  1462. decoration
  1463. }
  1464. //----------------------------------------------------------------------------------------------
  1465. //SABER MODELS
  1466. //----------------------------------------------------------------------------------------------
  1467. //FIRST SABER
  1468. itemDef
  1469. {
  1470. name saber
  1471. group models
  1472. type ITEM_TYPE_MODEL
  1473. //rect 12 -130 615 615
  1474. rect 12 -80 615 615
  1475. asset_model "models/weapons2/saber_1/saber_1.glm"
  1476. isSaber 1
  1477. model_angle 180
  1478. model_rotation 20
  1479. model_g2mins 0 0 0
  1480. model_g2maxs 20 20 20
  1481. model_fovx 75
  1482. model_fovy 75
  1483. visible 1
  1484. decoration
  1485. }
  1486. //SECOND SABER
  1487. itemDef
  1488. {
  1489. name saber2
  1490. group models
  1491. type ITEM_TYPE_MODEL
  1492. rect 12 -50 615 615
  1493. asset_model "models/weapons2/saber_1/saber_1.glm"
  1494. isSaber2 1
  1495. model_angle 180
  1496. model_rotation 20
  1497. model_g2mins 0 0 0
  1498. model_g2maxs 20 20 20
  1499. model_fovx 75
  1500. model_fovy 75
  1501. visible 1
  1502. cvarTest ui_saber_type
  1503. hideCvar { "single" "staff" }
  1504. decoration
  1505. }
  1506. //----------------------------------------------------------------------------------------------
  1507. // OTHER MAIN MENU BUTTONS
  1508. //----------------------------------------------------------------------------------------------
  1509. // BACK button in lower left corner
  1510. itemDef
  1511. {
  1512. name backbutton_glow
  1513. group mods
  1514. style WINDOW_STYLE_SHADER
  1515. rect 59 444 130 24
  1516. background "gfx/menus/menu_buttonback" // Frame around button
  1517. forecolor 1 1 1 1
  1518. visible 0
  1519. decoration
  1520. }
  1521. itemDef
  1522. {
  1523. name backbutton
  1524. group exit
  1525. text @MENUS_BACK
  1526. descText @MENUS_BACKUP_ONE_MENU
  1527. type ITEM_TYPE_BUTTON
  1528. style WINDOW_STYLE_EMPTY
  1529. rect 59 444 130 24
  1530. font 3
  1531. textscale 1.1
  1532. textalign ITEM_ALIGN_CENTER
  1533. textstyle 3
  1534. textalignx 65
  1535. textaligny -1
  1536. forecolor 1 .682 0 1
  1537. visible 1
  1538. cvarTest saber_menu
  1539. showCvar { "0" }
  1540. mouseEnter
  1541. {
  1542. show backbutton_glow
  1543. }
  1544. mouseExit
  1545. {
  1546. hide backbutton_glow
  1547. }
  1548. action
  1549. {
  1550. play "sound/interface/esc.wav"
  1551. close all ;
  1552. open characterMenu
  1553. }
  1554. }
  1555. // EXIT button in lower left corner
  1556. itemDef
  1557. {
  1558. name exitgamebutton_glow
  1559. group mods
  1560. style WINDOW_STYLE_SHADER
  1561. rect 255 444 130 24
  1562. background "gfx/menus/menu_buttonback"
  1563. forecolor 1 1 1 1
  1564. visible 0
  1565. decoration
  1566. }
  1567. itemDef
  1568. {
  1569. name exitgamebutton
  1570. group exit
  1571. text @MENUS_EXIT
  1572. descText @MENUS_JEDI_KNIGHT_II
  1573. type ITEM_TYPE_BUTTON
  1574. style WINDOW_STYLE_EMPTY
  1575. rect 255 444 130 24
  1576. font 3
  1577. textscale 1.1
  1578. textalign ITEM_ALIGN_CENTER
  1579. textstyle 3
  1580. textalignx 65
  1581. textaligny -1
  1582. forecolor 1 .682 0 1
  1583. visible 1
  1584. cvarTest saber_menu
  1585. showCvar { "0" }
  1586. mouseEnter
  1587. {
  1588. show exitgamebutton_glow
  1589. }
  1590. mouseExit
  1591. {
  1592. hide exitgamebutton_glow
  1593. }
  1594. action
  1595. {
  1596. play "sound/weapons/saber/saberoff.mp3"
  1597. uiScript "updatesabercvars"
  1598. close all
  1599. open quitMenu
  1600. }
  1601. }
  1602. //BEGIN GAME BUTTON
  1603. itemDef
  1604. {
  1605. name begingamebutton_glow
  1606. group mods
  1607. style WINDOW_STYLE_SHADER
  1608. rect 455 444 130 24
  1609. background "gfx/menus/menu_buttonback"
  1610. forecolor 1 1 1 1
  1611. visible 0
  1612. decoration
  1613. }
  1614. itemDef
  1615. {
  1616. name newgame_begin
  1617. group none
  1618. text @MENUS_BEGIN_GAME
  1619. descText @MENUS_START_JEDI_KNIGHT_III
  1620. type ITEM_TYPE_BUTTON
  1621. style WINDOW_STYLE_EMPTY
  1622. rect 455 444 130 24
  1623. font 3
  1624. textscale 1
  1625. textalignx 65
  1626. textaligny -1
  1627. textalign ITEM_ALIGN_CENTER
  1628. textstyle 3
  1629. forecolor 1 .682 0 1
  1630. visible 1
  1631. cvarTest saber_menu
  1632. showCvar { "0" }
  1633. action
  1634. {
  1635. uiScript "updatesabercvars"
  1636. uiScript "updatefightingstyle"
  1637. uiScript startgame
  1638. }
  1639. mouseEnter
  1640. {
  1641. show begingamebutton_glow
  1642. }
  1643. mouseExit
  1644. {
  1645. hide begingamebutton_glow
  1646. }
  1647. }
  1648. itemDef
  1649. {
  1650. name continue
  1651. group none
  1652. text @MENUS_CONTINUE
  1653. descText @MENUS_NEW_MISSION_DESC
  1654. type ITEM_TYPE_BUTTON
  1655. style WINDOW_STYLE_EMPTY
  1656. rect 455 444 130 24
  1657. font 3
  1658. textscale 1
  1659. textalignx 65
  1660. textaligny -1
  1661. textalign ITEM_ALIGN_CENTER
  1662. textstyle 3
  1663. forecolor 1 .682 0 1
  1664. visible 1
  1665. cvarTest saber_menu
  1666. hideCvar { "0" }
  1667. action
  1668. {
  1669. uiScript "updatesabercvars"
  1670. uiScript "updatefightingstyle"
  1671. close all
  1672. setcvar tier_storyinfo "13"
  1673. open ingameGotoTier
  1674. setcvar storyhead "kyle"
  1675. // HACK We're expecting to go to a mission screen from here
  1676. playvoice "sound/chars/storyinfo/13.mp3"
  1677. }
  1678. mouseEnter
  1679. {
  1680. show begingamebutton_glow
  1681. }
  1682. mouseExit
  1683. {
  1684. hide begingamebutton_glow
  1685. }
  1686. }
  1687. }
  1688. }