saber.menu 31 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382
  1. //----------------------------------------------------------------------------------------------
  2. //
  3. // MP SABER CREATION MENU - called from main menu at the the start of a new game,
  4. // and also when player is allowed to upgrade is style and choose a new saber
  5. //
  6. //----------------------------------------------------------------------------------------------
  7. {
  8. menuDef
  9. {
  10. name "saberMenu"
  11. fullScreen 1 // MENU_TRUE
  12. rect 0 0 640 480 // Size and position of the menu
  13. visible 1 // Visible on open
  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. uiScript setsaberboxesandhilts
  23. uiScript "getsabercvars"
  24. uiScript "saber_hilt"
  25. uiScript "saber_color"
  26. uiScript "saber2_hilt"
  27. uiScript "saber2_color"
  28. setitemcolor typebut_single forecolor .65 .65 1 1
  29. setitemcolor typebut_dual forecolor .65 .65 1 1
  30. setitemcolor typebut_staff forecolor .65 .65 1 1
  31. uiScript getsaberhiltinfo
  32. }
  33. onESC
  34. {
  35. play "sound/interface/menuroam.wav"
  36. uiScript "updatesabercvars"
  37. close saberMenu
  38. open characterMenu
  39. }
  40. //----------------------------------------------------------------------------------------------
  41. //
  42. // MENU BACKGROUND
  43. //
  44. //----------------------------------------------------------------------------------------------
  45. itemDef
  46. {
  47. name background
  48. group none
  49. style WINDOW_STYLE_SHADER
  50. rect 0 0 640 480
  51. background "gfx/menus/sabermenu_back"
  52. forecolor 1 1 1 1
  53. visible 1
  54. decoration
  55. }
  56. itemDef
  57. {
  58. name box1
  59. group none
  60. style WINDOW_STYLE_SHADER
  61. rect 4 66 219 165
  62. background "gfx/menus/sabermenu_box"
  63. forecolor 1 1 1 1
  64. visible 1
  65. decoration
  66. }
  67. itemDef
  68. {
  69. name box2top
  70. group none
  71. style WINDOW_STYLE_SHADER
  72. rect 212 66 219 60
  73. background "gfx/menus/sabermenu_box_top"
  74. forecolor 1 1 1 1
  75. visible 0
  76. decoration
  77. }
  78. itemDef
  79. {
  80. name box2middle
  81. group none
  82. style WINDOW_STYLE_SHADER
  83. rect 212 126 219 0
  84. background "gfx/menus/sabermenu_box_middle"
  85. forecolor 1 1 1 1
  86. visible 0
  87. decoration
  88. }
  89. itemDef
  90. {
  91. name box2bottom
  92. group none
  93. style WINDOW_STYLE_SHADER
  94. rect 212 126 219 60
  95. background "gfx/menus/sabermenu_box_bottom"
  96. forecolor 1 1 1 1
  97. visible 0
  98. decoration
  99. }
  100. itemDef
  101. {
  102. name box3top
  103. group none
  104. style WINDOW_STYLE_SHADER
  105. rect 418 66 219 60
  106. background "gfx/menus/sabermenu_box_top"
  107. forecolor 1 1 1 1
  108. visible 1
  109. decoration
  110. }
  111. itemDef
  112. {
  113. name box3middle
  114. group none
  115. style WINDOW_STYLE_SHADER
  116. rect 418 126 219 0
  117. background "gfx/menus/sabermenu_box_middle"
  118. forecolor 1 1 1 1
  119. visible 1
  120. decoration
  121. }
  122. itemDef
  123. {
  124. name box3bottom
  125. group none
  126. style WINDOW_STYLE_SHADER
  127. rect 418 126 219 60
  128. background "gfx/menus/sabermenu_box_bottom"
  129. forecolor 1 1 1 1
  130. visible 1
  131. decoration
  132. }
  133. //----------------------------------------------------------------------------------------------
  134. //
  135. // TOP MAIN MENU BUTTONS
  136. //
  137. //----------------------------------------------------------------------------------------------
  138. itemDef
  139. {
  140. name button_glow
  141. group none
  142. style WINDOW_STYLE_SHADER
  143. rect 0 0 0 0
  144. background "gfx/menus/menu_buttonback"
  145. forecolor 1 1 1 1
  146. visible 0
  147. decoration
  148. }
  149. itemDef
  150. {
  151. name newgamebutton
  152. group nbut
  153. style WINDOW_STYLE_EMPTY
  154. type ITEM_TYPE_BUTTON
  155. rect 7 16 130 24
  156. text @MENUS_PLAY
  157. descText @MENUS_START_PLAYING_NOW
  158. font 3
  159. textscale 1.1
  160. textaligny 0
  161. textalign ITEM_ALIGN_CENTER
  162. textstyle 0
  163. textalignx 65
  164. forecolor 1 .682 0 1
  165. visible 1
  166. mouseEnter
  167. {
  168. show button_glow
  169. setitemrect button_glow 7 14 130 30
  170. }
  171. mouseExit
  172. {
  173. hide button_glow
  174. }
  175. action
  176. {
  177. close all ;
  178. open multiplayermenu
  179. }
  180. }
  181. // Big button "PROFILE"
  182. itemDef
  183. {
  184. name profilebutton
  185. group lbut
  186. text @MENUS_PROFILE
  187. descText @MENUS_PROFILE_DESC
  188. style WINDOW_STYLE_EMPTY
  189. type ITEM_TYPE_BUTTON
  190. rect 170 16 130 24
  191. textaligny 0
  192. font 3
  193. textscale 1.1
  194. textalign ITEM_ALIGN_CENTER
  195. textstyle 0
  196. textalignx 65
  197. forecolor 1 1 1 1
  198. visible 1
  199. mouseEnter
  200. {
  201. }
  202. mouseExit
  203. {
  204. }
  205. action
  206. {
  207. }
  208. }
  209. // Big button "CONTROLS"
  210. itemDef {
  211. name controlsbutton
  212. group cbut
  213. text @MENUS_CONTROLS
  214. descText @MENUS_CONFIGURE_GAME_CONTROLS
  215. type ITEM_TYPE_BUTTON
  216. style WINDOW_STYLE_EMPTY
  217. rect 340 16 130 24
  218. font 3
  219. textscale 1.1
  220. textaligny 0
  221. textalign ITEM_ALIGN_CENTER
  222. textstyle 0
  223. textalignx 65
  224. backcolor 0 0 0 0
  225. forecolor 1 .682 0 1
  226. visible 1
  227. mouseEnter
  228. {
  229. show button_glow
  230. setitemrect button_glow 340 14 130 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 controlsMenu
  242. }
  243. }
  244. // Big button "SETUP"
  245. itemDef
  246. {
  247. name setupbutton
  248. group sbut
  249. text @MENUS_SETUP
  250. descText @MENUS_CONFIGURE_GAME_SETTINGS
  251. type ITEM_TYPE_BUTTON
  252. style WINDOW_STYLE_EMPTY
  253. rect 502 16 130 24
  254. font 3
  255. textscale 1.1
  256. textaligny 0
  257. textalign ITEM_ALIGN_CENTER
  258. textstyle 0
  259. textalignx 65
  260. backcolor 0 0 0 0
  261. forecolor 1 .682 0 1
  262. visible 1
  263. mouseEnter
  264. {
  265. show button_glow
  266. setitemrect button_glow 502 14 130 30
  267. }
  268. mouseExit
  269. {
  270. hide button_glow
  271. }
  272. action
  273. {
  274. play "sound/interface/button1.wav"
  275. uiScript "updatesabercvars"
  276. close all
  277. open setupMenu
  278. }
  279. }
  280. //----------------------------------------------------------------------------------------------
  281. //
  282. // OTHER MAIN MENU BUTTONS
  283. //
  284. //----------------------------------------------------------------------------------------------
  285. // EXIT button in lower left corner
  286. itemDef
  287. {
  288. name exitgamebutton_glow
  289. group mods
  290. style WINDOW_STYLE_SHADER
  291. rect 59 444 130 24
  292. background "gfx/menus/menu_buttonback"
  293. forecolor 1 1 1 1
  294. visible 0
  295. decoration
  296. }
  297. itemDef
  298. {
  299. name exitgamebutton
  300. group exit
  301. text @MENUS_EXIT
  302. descText @MENUS_JEDI_KNIGHT_II
  303. type ITEM_TYPE_BUTTON
  304. style WINDOW_STYLE_EMPTY
  305. rect 59 444 130 24
  306. font 3
  307. textscale 1.1
  308. textalign ITEM_ALIGN_CENTER
  309. textstyle 3
  310. textalignx 65
  311. textaligny -1
  312. forecolor 1 .682 0 1
  313. visible 1
  314. mouseEnter
  315. {
  316. show exitgamebutton_glow
  317. }
  318. mouseExit
  319. {
  320. hide exitgamebutton_glow
  321. }
  322. action
  323. {
  324. play "sound/weapons/saber/saberoff.mp3"
  325. uiScript "updatesabercvars"
  326. close all
  327. open quitMenu
  328. }
  329. }
  330. itemDef
  331. {
  332. name left_frame
  333. group lf_fr
  334. style WINDOW_STYLE_SHADER
  335. rect 0 -60 320 160
  336. background "gfx/menus/menu_boxes_left"
  337. forecolor 1 1 1 1
  338. visible 1
  339. decoration
  340. }
  341. itemDef
  342. {
  343. name right_frame
  344. group rt_fr
  345. style WINDOW_STYLE_SHADER
  346. rect 320 -60 320 160
  347. background "gfx/menus/menu_boxes_right"
  348. forecolor 1 1 1 1
  349. visible 1
  350. decoration
  351. }
  352. //----------------------------------------------------------------------------------------------
  353. //
  354. // SABER MENU specific stuff
  355. //
  356. //----------------------------------------------------------------------------------------------
  357. // CREATION title
  358. itemDef
  359. {
  360. name creation_title
  361. group title
  362. style WINDOW_STYLE_SHADER
  363. background "gfx/menus/menu_blendbox"
  364. text @MENUS_LIGHTSABER_CREATION
  365. rect 100 54 440 16
  366. font 3
  367. textscale 0.7
  368. textalign ITEM_ALIGN_CENTER
  369. textalignx 225
  370. textaligny -1
  371. forecolor .549 .854 1 1
  372. visible 1
  373. decoration
  374. }
  375. //----------------------------------------------------------------------------------------------
  376. // SABER TYPE BUTTONS (standard, dual, two handed)
  377. //----------------------------------------------------------------------------------------------
  378. itemDef
  379. {
  380. name typebut
  381. group none
  382. text @MENUS_SABER_TYPE
  383. descText @MENUS_SABER_TYPE_DESC
  384. style WINDOW_STYLE_EMPTY
  385. rect 32 96 160 24
  386. font 3
  387. textscale 1
  388. textstyle 0
  389. textalignx 0
  390. textaligny 0
  391. textalign ITEM_ALIGN_LEFT
  392. backcolor 0 0 0 0
  393. forecolor .549 .854 1 1
  394. visible 1
  395. decoration
  396. }
  397. itemDef
  398. {
  399. name typebut_single_glow
  400. group none
  401. style WINDOW_STYLE_SHADER
  402. rect 32 132 180 16
  403. background "gfx/menus/menu_buttonback"
  404. forecolor 1 1 1 1
  405. visible 0
  406. decoration
  407. //cvarTest ui_saber_type
  408. //showCvar { "single" }
  409. }
  410. itemDef
  411. {
  412. name typebut_dual_glow
  413. group none
  414. style WINDOW_STYLE_SHADER
  415. rect 32 152 180 16
  416. background "gfx/menus/menu_buttonback"
  417. forecolor 1 1 1 1
  418. visible 0
  419. decoration
  420. //cvarTest ui_saber_type
  421. //showCvar { "dual" }
  422. }
  423. itemDef
  424. {
  425. name typebut_staff_glow
  426. group none
  427. style WINDOW_STYLE_SHADER
  428. rect 32 172 180 16
  429. background "gfx/menus/menu_buttonback"
  430. forecolor 1 1 1 1
  431. visible 0
  432. decoration
  433. //cvarTest ui_saber_type
  434. //showCvar { "staff" }
  435. }
  436. itemDef
  437. {
  438. name typebut_single
  439. group none
  440. text @MENUS_SINGLESABER
  441. descText @MENUS_SINGLESABER_DESC
  442. type ITEM_TYPE_BUTTON
  443. style WINDOW_STYLE_EMPTY
  444. rect 32 132 160 16
  445. font 4
  446. textscale 1
  447. textstyle 0
  448. textalign ITEM_ALIGN_LEFT
  449. textalignx 0
  450. textaligny 0
  451. forecolor 1 1 1 1
  452. visible 1
  453. mouseEnter
  454. {
  455. show typebut_single_glow
  456. }
  457. mouseExit
  458. {
  459. hide typebut_single_glow
  460. }
  461. action
  462. {
  463. play "sound/interface/choose_saber.wav"
  464. setcvar ui_saber_type "single"
  465. uiScript "saber_type"
  466. setcvar ui_saber "single_1"
  467. setcvar ui_saber2 "none"
  468. uiScript "saber_hilt"
  469. uiScript "saber_color"
  470. uiScript "saber2_hilt"
  471. uiScript "saber2_color"
  472. setitemcolor typebut_single forecolor 1 1 1 1
  473. setitemcolor typebut_dual forecolor .65 .65 1 1
  474. setitemcolor typebut_staff forecolor .65 .65 1 1
  475. // transition2 box2middle 212 126 219 0 20 5
  476. // transition2 box2bottom 212 126 219 60 20 5
  477. transition2 box3middle 418 126 219 0 20 5
  478. transition2 box3bottom 418 126 219 60 20 5
  479. show sabstyle
  480. transition2 saber 12 "-80" 615 615 20 10
  481. }
  482. }
  483. itemDef
  484. {
  485. name typebut_dual
  486. group none
  487. text @MENUS_DUALSABERS
  488. descText @MENUS_DUALSABERS_DESC
  489. type ITEM_TYPE_BUTTON
  490. style WINDOW_STYLE_EMPTY
  491. rect 32 152 160 16
  492. font 4
  493. textscale 1
  494. textstyle 0
  495. textalign ITEM_ALIGN_LEFT
  496. textalignx 0
  497. textaligny 0
  498. forecolor 1 1 1 1
  499. visible 1
  500. mouseEnter
  501. {
  502. show typebut_dual_glow
  503. }
  504. mouseExit
  505. {
  506. hide typebut_dual_glow
  507. }
  508. action
  509. {
  510. play "sound/interface/choose_saber.wav"
  511. setcvar ui_saber_type "dual"
  512. uiScript "saber_type"
  513. setcvar ui_saber "single_1"
  514. setcvar ui_saber2 "single_1"
  515. uiScript "saber_hilt"
  516. uiScript "saber_color"
  517. uiScript "saber2_hilt"
  518. uiScript "saber2_color"
  519. setitemcolor typebut_single forecolor .65 .65 1 1
  520. setitemcolor typebut_dual forecolor 1 1 1 1
  521. setitemcolor typebut_staff forecolor .65 .65 1 1
  522. // transition2 box2middle 212 126 219 44 20 5
  523. // transition2 box2bottom 212 170 219 60 20 5
  524. transition2 box3middle 418 126 219 44 20 5
  525. transition2 box3bottom 418 170 219 60 20 5
  526. hide sabstyle
  527. transition2 saber 12 "-130" 615 615 20 5
  528. }
  529. }
  530. itemDef
  531. {
  532. name typebut_staff
  533. group none
  534. text @MENUS_SABERSTAFF
  535. descText @MENUS_SABERSTAFF_DESC
  536. type ITEM_TYPE_BUTTON
  537. style WINDOW_STYLE_EMPTY
  538. rect 32 172 160 16
  539. font 4
  540. textscale 1
  541. textstyle 0
  542. textalign ITEM_ALIGN_LEFT
  543. textalignx 0
  544. textaligny 0
  545. forecolor 1 1 1 1
  546. visible 1
  547. mouseEnter
  548. {
  549. show typebut_staff_glow
  550. }
  551. mouseExit
  552. {
  553. hide typebut_staff_glow
  554. }
  555. action
  556. {
  557. play "sound/interface/choose_saber.wav"
  558. setcvar ui_saber_type "staff"
  559. uiScript "saber_type"
  560. setcvar ui_saber "dual_1"
  561. setcvar ui_saber2 "none"
  562. uiScript "saber_hilt"
  563. uiScript "saber_color"
  564. uiScript "saber2_hilt"
  565. uiScript "saber2_color"
  566. setitemcolor typebut_single forecolor .65 .65 1 1
  567. setitemcolor typebut_dual forecolor .65 .65 1 1
  568. setitemcolor typebut_staff forecolor 1 1 1 1
  569. // transition2 box2middle 212 126 219 44 20 5
  570. // transition2 box2bottom 212 170 219 60 20 5
  571. transition2 box3middle 418 126 219 44 20 5
  572. transition2 box3bottom 418 170 219 60 20 5
  573. hide sabstyle
  574. transition2 saber 12 "-80" 615 615 20 10
  575. }
  576. }
  577. //----------------------------------------------------------------------------------------------
  578. //HILTS
  579. //----------------------------------------------------------------------------------------------
  580. itemDef
  581. {
  582. name hilttype
  583. group none
  584. text @MENUS_HILT1
  585. descText @MENUS_HILT1_DESC
  586. style WINDOW_STYLE_EMPTY
  587. rect 240 80 160 24
  588. font 3
  589. textscale .7
  590. textstyle 0
  591. textalignx 80
  592. textaligny 0
  593. textalign ITEM_ALIGN_CENTER
  594. backcolor 0 0 0 0
  595. forecolor .549 .854 1 1
  596. visible 1
  597. decoration
  598. }
  599. // HILT BUTTON 1 - SINGLE
  600. itemDef
  601. {
  602. name hiltbut
  603. group none
  604. rect 240 95 160 120
  605. type ITEM_TYPE_LISTBOX
  606. style WINDOW_STYLE_EMPTY
  607. elementwidth 120
  608. elementheight 16
  609. font 4
  610. textaligny 16
  611. textscale 1
  612. border 1
  613. bordersize 1
  614. bordercolor 0 0 .8 1
  615. forecolor .615 .615 .956 1
  616. backcolor 0 0 .5 .25
  617. outlinecolor .5 .5 .5 .5
  618. elementtype LISTBOX_TEXT
  619. feeder FEEDER_SABER_SINGLE_INFO
  620. // text @MENUS_HILT1
  621. descText @MENUS_HILT1_DESC
  622. elementtype LISTBOX_TEXT
  623. textalign ITEM_ALIGN_LEFT
  624. cvarTest ui_saber_type
  625. hideCvar { "staff" ; "dual" }
  626. visible 1
  627. action
  628. {
  629. play "sound/interface/choose_hilt.wav"
  630. uiScript "setscreensaberhilt"
  631. uiScript "saber_hilt"
  632. }
  633. }
  634. // HILT BUTTON 1 - STAVES
  635. itemDef
  636. {
  637. name hiltbut_staves
  638. group none
  639. rect 240 95 160 120
  640. type ITEM_TYPE_LISTBOX
  641. style WINDOW_STYLE_EMPTY
  642. elementwidth 120
  643. elementheight 16
  644. font 4
  645. textaligny 16
  646. textscale 1
  647. border 1
  648. bordersize 1
  649. bordercolor 0 0 .8 1
  650. forecolor .615 .615 .956 1
  651. backcolor 0 0 .5 .25
  652. outlinecolor .5 .5 .5 .5
  653. elementtype LISTBOX_TEXT
  654. feeder FEEDER_SABER_STAFF_INFO
  655. descText @MENUS_HILT1_DESC
  656. cvarTest ui_saber_type
  657. hideCvar { "single"; "dual" }
  658. visible 1
  659. action
  660. {
  661. play "sound/interface/choose_hilt.wav"
  662. uiScript "setscreensaberstaff"
  663. uiScript "saber_hilt"
  664. }
  665. }
  666. itemDef
  667. {
  668. name hilttype
  669. group none
  670. text @MENUS_HILT2
  671. descText @MENUS_HILT2_DESC
  672. style WINDOW_STYLE_EMPTY
  673. rect 240 150 160 24
  674. font 3
  675. textscale .7
  676. textstyle 0
  677. textalignx 80
  678. textaligny 0
  679. textalign ITEM_ALIGN_CENTER
  680. backcolor 0 0 0 0
  681. forecolor .549 .854 1 1
  682. cvarTest ui_saber_type
  683. hideCvar { "single"; "staff" }
  684. visible 1
  685. decoration
  686. }
  687. // HILT BUTTON 1 - DUAL
  688. itemDef
  689. {
  690. name hiltbut1
  691. group none
  692. rect 240 95 160 54
  693. type ITEM_TYPE_LISTBOX
  694. style WINDOW_STYLE_EMPTY
  695. elementwidth 120
  696. elementheight 16
  697. font 4
  698. textaligny 16
  699. textscale 1
  700. border 1
  701. bordersize 1
  702. bordercolor 0 0 .8 1
  703. forecolor .615 .615 .956 1
  704. backcolor 0 0 .5 .25
  705. outlinecolor .5 .5 .5 .5
  706. elementtype LISTBOX_TEXT
  707. feeder FEEDER_SABER_SINGLE_INFO
  708. // text @MENUS_HILT1
  709. descText @MENUS_HILT1_DESC
  710. elementtype LISTBOX_TEXT
  711. textalign ITEM_ALIGN_LEFT
  712. cvarTest ui_saber_type
  713. hideCvar { "single"; "staff" }
  714. visible 1
  715. action
  716. {
  717. play "sound/interface/choose_hilt.wav"
  718. uiScript "setscreensaberhilt1"
  719. uiScript "saber_hilt"
  720. }
  721. }
  722. // HILT BUTTON 2 - DUAL
  723. itemDef
  724. {
  725. name hiltbut2
  726. group none
  727. rect 240 165 160 54
  728. type ITEM_TYPE_LISTBOX
  729. style WINDOW_STYLE_EMPTY
  730. elementwidth 120
  731. elementheight 16
  732. font 4
  733. textaligny 16
  734. textscale 1
  735. border 1
  736. bordersize 1
  737. bordercolor 0 0 .8 1
  738. forecolor .615 .615 .956 1
  739. backcolor 0 0 .5 .25
  740. outlinecolor .5 .5 .5 .5
  741. elementtype LISTBOX_TEXT
  742. feeder FEEDER_SABER_SINGLE_INFO
  743. // text @MENUS_HILT2
  744. descText @MENUS_HILT2_DESC
  745. forecolor .615 .615 .956 1
  746. cvarTest ui_saber_type
  747. hideCvar { "single"; "staff" }
  748. visible 1
  749. action
  750. {
  751. play "sound/interface/choose_hilt.wav"
  752. uiScript "setscreensaberhilt2"
  753. uiScript "saber2_hilt"
  754. }
  755. }
  756. //----------------------------------------------------------------------------------------------
  757. //BLADE COLORS
  758. //----------------------------------------------------------------------------------------------
  759. itemDef
  760. {
  761. name color_title
  762. group none
  763. text @MENUS_BLADE_COLOR
  764. descText @MENUS_BLADE_COLOR_DESC
  765. style WINDOW_STYLE_EMPTY
  766. rect 446 96 160 24
  767. font 3
  768. textscale 1
  769. textstyle 0
  770. textalignx 0
  771. textaligny 0
  772. textalign ITEM_ALIGN_LEFT
  773. backcolor 0 0 0 0
  774. forecolor .549 .854 1 1
  775. visible 1
  776. decoration
  777. }
  778. itemDef
  779. {
  780. name blueicon
  781. group sabericons
  782. descText @MENUS_COLOR1_DESC
  783. style WINDOW_STYLE_SHADER
  784. type ITEM_TYPE_BUTTON
  785. rect 446 124 24 24
  786. background "gfx/menus/saber_icon_blue"
  787. forecolor .75 .75 .75 1
  788. border 1
  789. bordersize 1
  790. bordercolor .33 .33 .5 1
  791. visible 1
  792. mouseEnter
  793. {
  794. setitemcolor blueicon forecolor 1 1 1 1
  795. setitemcolor blueicon bordercolor .66 .66 1 1
  796. }
  797. mouseExit
  798. {
  799. setitemcolor blueicon forecolor .75 .75 .75 1
  800. setitemcolor blueicon bordercolor .33 .33 .5 1
  801. }
  802. action
  803. {
  804. play "sound/interface/choose_blade.wav"
  805. setcvar ui_saber_color "blue"
  806. }
  807. }
  808. itemDef
  809. {
  810. name greenicon
  811. group sabericons
  812. descText @MENUS_COLOR1_DESC
  813. style WINDOW_STYLE_SHADER
  814. type ITEM_TYPE_BUTTON
  815. rect 473 124 24 24
  816. background "gfx/menus/saber_icon_green"
  817. forecolor .75 .75 .75 1
  818. border 1
  819. bordersize 1
  820. bordercolor .33 .33 .5 1
  821. visible 1
  822. mouseEnter
  823. {
  824. setitemcolor greenicon forecolor 1 1 1 1
  825. setitemcolor greenicon bordercolor .66 .66 1 1
  826. }
  827. mouseExit
  828. {
  829. setitemcolor greenicon forecolor .75 .75 .75 1
  830. setitemcolor greenicon bordercolor .33 .33 .5 1
  831. }
  832. action
  833. {
  834. play "sound/interface/choose_blade.wav"
  835. setcvar ui_saber_color "green"
  836. }
  837. }
  838. itemDef
  839. {
  840. name orangeicon
  841. group sabericons
  842. descText @MENUS_COLOR1_DESC
  843. style WINDOW_STYLE_SHADER
  844. type ITEM_TYPE_BUTTON
  845. rect 500 124 24 24
  846. background "gfx/menus/saber_icon_orange"
  847. forecolor .75 .75 .75 1
  848. border 1
  849. bordersize 1
  850. bordercolor .33 .33 .5 1
  851. visible 1
  852. mouseEnter
  853. {
  854. setitemcolor orangeicon forecolor 1 1 1 1
  855. setitemcolor orangeicon bordercolor .66 .66 1 1
  856. }
  857. mouseExit
  858. {
  859. setitemcolor orangeicon forecolor .75 .75 .75 1
  860. setitemcolor orangeicon bordercolor .33 .33 .5 1
  861. }
  862. action
  863. {
  864. play "sound/interface/choose_blade.wav"
  865. setcvar ui_saber_color "orange"
  866. }
  867. }
  868. itemDef
  869. {
  870. name purpleicon
  871. group sabericons
  872. descText @MENUS_COLOR1_DESC
  873. style WINDOW_STYLE_SHADER
  874. type ITEM_TYPE_BUTTON
  875. rect 527 124 24 24
  876. background "gfx/menus/saber_icon_purple"
  877. forecolor .75 .75 .75 1
  878. border 1
  879. bordersize 1
  880. bordercolor .33 .33 .5 1
  881. visible 1
  882. mouseEnter
  883. {
  884. setitemcolor purpleicon forecolor 1 1 1 1
  885. setitemcolor purpleicon bordercolor .66 .66 1 1
  886. }
  887. mouseExit
  888. {
  889. setitemcolor purpleicon forecolor .75 .75 .75 1
  890. setitemcolor purpleicon bordercolor .33 .33 .5 1
  891. }
  892. action
  893. {
  894. play "sound/interface/choose_blade.wav"
  895. setcvar ui_saber_color "purple"
  896. }
  897. }
  898. itemDef
  899. {
  900. name yellowicon
  901. group sabericons
  902. descText @MENUS_COLOR1_DESC
  903. style WINDOW_STYLE_SHADER
  904. type ITEM_TYPE_BUTTON
  905. rect 554 124 24 24
  906. background "gfx/menus/saber_icon_yellow"
  907. forecolor .75 .75 .75 1
  908. border 1
  909. bordersize 1
  910. bordercolor .33 .33 .5 1
  911. visible 1
  912. mouseEnter
  913. {
  914. setitemcolor yellowicon forecolor 1 1 1 1
  915. setitemcolor yellowicon bordercolor .66 .66 1 1
  916. }
  917. mouseExit
  918. {
  919. setitemcolor yellowicon forecolor .75 .75 .75 1
  920. setitemcolor yellowicon bordercolor .33 .33 .5 1
  921. }
  922. action
  923. {
  924. play "sound/interface/choose_blade.wav"
  925. setcvar ui_saber_color "yellow"
  926. }
  927. }
  928. itemDef
  929. {
  930. name redicon
  931. group sabericons
  932. descText @MENUS_COLOR1_DESC
  933. style WINDOW_STYLE_SHADER
  934. type ITEM_TYPE_BUTTON
  935. rect 581 124 24 24
  936. background "gfx/menus/saber_icon_red"
  937. forecolor .75 .75 .75 1
  938. border 1
  939. bordersize 1
  940. bordercolor .33 .33 .5 1
  941. visible 1
  942. mouseEnter
  943. {
  944. setitemcolor redicon forecolor 1 1 1 1
  945. setitemcolor redicon bordercolor .66 .66 1 1
  946. }
  947. mouseExit
  948. {
  949. setitemcolor redicon forecolor .75 .75 .75 1
  950. setitemcolor redicon bordercolor .33 .33 .5 1
  951. }
  952. action
  953. {
  954. play "sound/interface/choose_blade.wav"
  955. setcvar ui_saber_color "red"
  956. }
  957. }
  958. // COLOR 2 BUTTON
  959. itemDef
  960. {
  961. name colorbut2
  962. group none
  963. text @MENUS_COLOR2
  964. descText @MENUS_COLOR2_DESC
  965. //type ITEM_TYPE_MULTI
  966. style WINDOW_STYLE_EMPTY
  967. rect 446 152 160 16
  968. font 2
  969. textscale .8
  970. textstyle 0
  971. textalign ITEM_ALIGN_LEFT
  972. textalignx 0
  973. textaligny -4
  974. forecolor .549 .854 1 1
  975. visible 1
  976. decoration
  977. cvarTest ui_saber_type
  978. hideCvar { "single"; "staff" }
  979. }
  980. itemDef
  981. {
  982. name blueicon2
  983. group sabericons2
  984. style WINDOW_STYLE_SHADER
  985. type ITEM_TYPE_BUTTON
  986. rect 446 170 24 24
  987. background "gfx/menus/saber_icon_blue"
  988. forecolor .75 .75 .75 1
  989. border 1
  990. bordersize 1
  991. bordercolor .33 .33 .5 1
  992. visible 1
  993. cvarTest ui_saber_type
  994. hideCvar { "single"; "staff" }
  995. mouseEnter
  996. {
  997. setitemcolor blueicon2 forecolor 1 1 1 1
  998. setitemcolor blueicon2 bordercolor .66 .66 1 1
  999. }
  1000. mouseExit
  1001. {
  1002. setitemcolor blueicon2 forecolor .75 .75 .75 1
  1003. setitemcolor blueicon2 bordercolor .33 .33 .5 1
  1004. }
  1005. action
  1006. {
  1007. play "sound/interface/choose_blade.wav"
  1008. setcvar ui_saber2_color "blue"
  1009. }
  1010. }
  1011. itemDef
  1012. {
  1013. name greenicon2
  1014. group sabericons2
  1015. style WINDOW_STYLE_SHADER
  1016. type ITEM_TYPE_BUTTON
  1017. rect 473 170 24 24
  1018. background "gfx/menus/saber_icon_green"
  1019. forecolor .75 .75 .75 1
  1020. border 1
  1021. bordersize 1
  1022. bordercolor .33 .33 .5 1
  1023. visible 1
  1024. cvarTest ui_saber_type
  1025. hideCvar { "single"; "staff" }
  1026. mouseEnter
  1027. {
  1028. setitemcolor greenicon2 forecolor 1 1 1 1
  1029. setitemcolor greenicon2 bordercolor .66 .66 1 1
  1030. }
  1031. mouseExit
  1032. {
  1033. setitemcolor greenicon2 forecolor .75 .75 .75 1
  1034. setitemcolor greenicon2 bordercolor .33 .33 .5 1
  1035. }
  1036. action
  1037. {
  1038. play "sound/interface/choose_blade.wav"
  1039. setcvar ui_saber2_color "green"
  1040. }
  1041. }
  1042. itemDef
  1043. {
  1044. name orangeicon2
  1045. group sabericons2
  1046. style WINDOW_STYLE_SHADER
  1047. type ITEM_TYPE_BUTTON
  1048. rect 500 170 24 24
  1049. background "gfx/menus/saber_icon_orange"
  1050. forecolor .75 .75 .75 1
  1051. border 1
  1052. bordersize 1
  1053. bordercolor .33 .33 .5 1
  1054. visible 1
  1055. cvarTest ui_saber_type
  1056. hideCvar { "single"; "staff" }
  1057. mouseEnter
  1058. {
  1059. setitemcolor orangeicon2 forecolor 1 1 1 1
  1060. setitemcolor orangeicon2 bordercolor .66 .66 1 1
  1061. }
  1062. mouseExit
  1063. {
  1064. setitemcolor orangeicon2 forecolor .75 .75 .75 1
  1065. setitemcolor orangeicon2 bordercolor .33 .33 .5 1
  1066. }
  1067. action
  1068. {
  1069. play "sound/interface/choose_blade.wav"
  1070. setcvar ui_saber2_color "orange"
  1071. }
  1072. }
  1073. itemDef
  1074. {
  1075. name purpleicon2
  1076. group sabericons2
  1077. style WINDOW_STYLE_SHADER
  1078. type ITEM_TYPE_BUTTON
  1079. rect 527 170 24 24
  1080. background "gfx/menus/saber_icon_purple"
  1081. forecolor .75 .75 .75 1
  1082. border 1
  1083. bordersize 1
  1084. bordercolor .33 .33 .5 1
  1085. visible 1
  1086. cvarTest ui_saber_type
  1087. hideCvar { "single"; "staff" }
  1088. mouseEnter
  1089. {
  1090. setitemcolor purpleicon2 forecolor 1 1 1 1
  1091. setitemcolor purpleicon2 bordercolor .66 .66 1 1
  1092. }
  1093. mouseExit
  1094. {
  1095. setitemcolor purpleicon2 forecolor .75 .75 .75 1
  1096. setitemcolor purpleicon2 bordercolor .33 .33 .5 1
  1097. }
  1098. action
  1099. {
  1100. play "sound/interface/choose_blade.wav"
  1101. setcvar ui_saber2_color "purple"
  1102. }
  1103. }
  1104. itemDef
  1105. {
  1106. name yellowicon2
  1107. group sabericons2
  1108. style WINDOW_STYLE_SHADER
  1109. type ITEM_TYPE_BUTTON
  1110. rect 554 170 24 24
  1111. background "gfx/menus/saber_icon_yellow"
  1112. forecolor .75 .75 .75 1
  1113. border 1
  1114. bordersize 1
  1115. bordercolor .33 .33 .5 1
  1116. visible 1
  1117. cvarTest ui_saber_type
  1118. hideCvar { "single"; "staff" }
  1119. mouseEnter
  1120. {
  1121. setitemcolor yellowicon2 forecolor 1 1 1 1
  1122. setitemcolor yellowicon2 bordercolor .66 .66 1 1
  1123. }
  1124. mouseExit
  1125. {
  1126. setitemcolor yellowicon2 forecolor .75 .75 .75 1
  1127. setitemcolor yellowicon2 bordercolor .33 .33 .5 1
  1128. }
  1129. action
  1130. {
  1131. play "sound/interface/choose_blade.wav"
  1132. setcvar ui_saber2_color "yellow"
  1133. }
  1134. }
  1135. itemDef
  1136. {
  1137. name redicon2
  1138. group sabericons2
  1139. style WINDOW_STYLE_SHADER
  1140. type ITEM_TYPE_BUTTON
  1141. rect 581 170 24 24
  1142. background "gfx/menus/saber_icon_red"
  1143. forecolor .75 .75 .75 1
  1144. border 1
  1145. bordersize 1
  1146. bordercolor .33 .33 .5 1
  1147. visible 1
  1148. cvarTest ui_saber_type
  1149. hideCvar { "single"; "staff" }
  1150. mouseEnter
  1151. {
  1152. setitemcolor redicon2 forecolor 1 1 1 1
  1153. setitemcolor redicon2 bordercolor .66 .66 1 1
  1154. }
  1155. mouseExit
  1156. {
  1157. setitemcolor redicon2 forecolor .75 .75 .75 1
  1158. setitemcolor redicon2 bordercolor .33 .33 .5 1
  1159. }
  1160. action
  1161. {
  1162. play "sound/interface/choose_blade.wav"
  1163. setcvar ui_saber2_color "red"
  1164. }
  1165. }
  1166. ////////////////////////
  1167. //SABER MODELS
  1168. ////////////////////////
  1169. //FIRST SABER
  1170. itemDef
  1171. {
  1172. name saber
  1173. group models
  1174. type ITEM_TYPE_MODEL
  1175. rect 12 -80 615 615
  1176. asset_model "models/weapons2/saber_reborn/saber_w.glm"
  1177. isSaber 1
  1178. model_angle 180
  1179. model_rotation 20
  1180. model_g2mins 0 0 0
  1181. model_g2maxs 20 20 20
  1182. model_fovx 75
  1183. model_fovy 75
  1184. visible 1
  1185. decoration
  1186. }
  1187. //SECOND SABER
  1188. itemDef
  1189. {
  1190. name saber2
  1191. group models
  1192. type ITEM_TYPE_MODEL
  1193. rect 12 -50 615 615
  1194. asset_model "models/weapons2/saber_reborn/saber_w.glm"
  1195. isSaber2 1
  1196. model_angle 180
  1197. model_rotation 20
  1198. model_g2mins 0 0 0
  1199. model_g2maxs 20 20 20
  1200. model_fovx 75
  1201. model_fovy 75
  1202. visible 1
  1203. cvarTest ui_saber_type
  1204. hideCvar { "single"; "staff" }
  1205. decoration
  1206. }
  1207. //APPLY BUTTON
  1208. /*itemDef
  1209. {
  1210. name applybutton_glow
  1211. group none
  1212. style WINDOW_STYLE_SHADER
  1213. rect 255 444 130 24
  1214. background "gfx/menus/menu_buttonback"
  1215. forecolor 1 1 1 1
  1216. visible 0
  1217. decoration
  1218. }
  1219. itemDef
  1220. {
  1221. name apply
  1222. group none
  1223. text @MENUS_APPLY
  1224. descText @MENUS_APPLY
  1225. type ITEM_TYPE_BUTTON
  1226. style WINDOW_STYLE_EMPTY
  1227. rect 255 444 130 24
  1228. font 3
  1229. textscale 1
  1230. textalignx 65
  1231. textaligny -1
  1232. textalign ITEM_ALIGN_CENTER
  1233. textstyle 3
  1234. forecolor 1 .682 0 1
  1235. visible 1
  1236. action
  1237. {
  1238. uiScript "updatesabercvars"
  1239. play "sound/interface/button1.wav"
  1240. close all
  1241. open mainMenu
  1242. }
  1243. mouseEnter
  1244. {
  1245. show applybutton_glow
  1246. }
  1247. mouseExit
  1248. {
  1249. hide applybutton_glow
  1250. }
  1251. }*/
  1252. //BEGIN GAME BUTTON
  1253. itemDef
  1254. {
  1255. name begingamebutton_glow
  1256. group mods
  1257. style WINDOW_STYLE_SHADER
  1258. rect 455 444 130 24
  1259. background "gfx/menus/menu_buttonback"
  1260. forecolor 1 1 1 1
  1261. visible 0
  1262. decoration
  1263. }
  1264. itemDef
  1265. {
  1266. name newgame_begin
  1267. group none
  1268. text @MENUS_APPLY
  1269. descText @MENUS_APPLY_SABER_CHANGES
  1270. type ITEM_TYPE_BUTTON
  1271. style WINDOW_STYLE_EMPTY
  1272. rect 455 444 130 24
  1273. font 3
  1274. textscale 1
  1275. textalignx 65
  1276. textaligny -1
  1277. textalign ITEM_ALIGN_CENTER
  1278. textstyle 3
  1279. forecolor 1 .682 0 1
  1280. visible 1
  1281. action
  1282. {
  1283. uiScript "updatesabercvars"
  1284. close sabermenu
  1285. open main
  1286. }
  1287. mouseEnter
  1288. {
  1289. show begingamebutton_glow
  1290. }
  1291. mouseExit
  1292. {
  1293. hide begingamebutton_glow
  1294. }
  1295. }
  1296. }
  1297. }