demo_ForceSelect.menu 62 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491
  1. //----------------------------------------------------------------------------------------------
  2. //
  3. // Force Select Menu
  4. //
  5. // The player is allowed to allocate one point to any of the given force powers
  6. //
  7. //
  8. // Be sure not to change the names of the fields that end with
  9. // _hexpic
  10. // _fbutton
  11. // _level1desc
  12. // _level2desc
  13. // _level3desc
  14. //
  15. // Also don't change
  16. // allocate_text
  17. // allocated_text
  18. //
  19. //
  20. // The uiScript initallocforcepower sets the rank background for a force power
  21. //
  22. // The uiScript showforceleveldesc show the appropriate level description for that force power.
  23. //
  24. // The uiScript affectforcepowerlevel upgrades a force power rank. It
  25. // also greys out or ungreys the icons.
  26. //
  27. //----------------------------------------------------------------------------------------------
  28. {
  29. menuDef
  30. {
  31. name "demo_ForceSelect"
  32. fullScreen 1
  33. rect 0 0 640 480
  34. visible 1
  35. focusColor 1 1 1 1
  36. descX 320
  37. descY 424
  38. descScale 1
  39. descColor 1 .682 0 .8
  40. descAlignment ITEM_ALIGN_CENTER
  41. descTextStyle 2
  42. fadeClamp 1.0 // sets the fadeup alpha
  43. fadeCycle 25 // how often fade happens in milliseconds
  44. fadeAmount 0.05 // amount to adjust alpha per cycle
  45. onOpen
  46. {
  47. stopVoice
  48. uiScript "demosetforcelevels"
  49. // Update force power pics to current force power levels
  50. // Light powers
  51. uiScript "initallocforcepower" "absorb"
  52. uiScript "initallocforcepower" "heal"
  53. uiScript "initallocforcepower" "mindtrick"
  54. uiScript "initallocforcepower" "protect"
  55. // Core powers
  56. uiScript "initallocforcepower" "jump"
  57. uiScript "initallocforcepower" "pull"
  58. uiScript "initallocforcepower" "push"
  59. uiScript "initallocforcepower" "sense"
  60. uiScript "initallocforcepower" "speed"
  61. uiScript "initallocforcepower" "sabdef"
  62. uiScript "initallocforcepower" "saboff"
  63. uiScript "initallocforcepower" "sabthrow"
  64. // Dark powers
  65. uiScript "initallocforcepower" "drain"
  66. uiScript "initallocforcepower" "grip"
  67. uiScript "initallocforcepower" "lightning"
  68. uiScript "initallocforcepower" "rage"
  69. }
  70. onClose
  71. {
  72. uiScript recordforcelevels
  73. }
  74. onESC
  75. {
  76. play "sound/interface/menuroam.wav"
  77. }
  78. //----------------------------------------------------------------------------------------------
  79. // MENU BACKGROUND
  80. //----------------------------------------------------------------------------------------------
  81. itemDef
  82. {
  83. name background
  84. group none
  85. style WINDOW_STYLE_SHADER
  86. rect 0 0 640 480
  87. background "gfx/menus/forcemenu_back"
  88. forecolor 1 1 1 1
  89. visible 1
  90. decoration
  91. }
  92. itemDef
  93. {
  94. name button_glow
  95. group none
  96. style WINDOW_STYLE_SHADER
  97. rect 0 0 0 0
  98. background "gfx/menus/menu_buttonback"
  99. forecolor 1 1 1 1
  100. visible 0
  101. decoration
  102. }
  103. //----------------------------------------------------------------------------------------------
  104. // TEXT - Allocate Force power point
  105. //----------------------------------------------------------------------------------------------
  106. // Allocate force point
  107. itemDef
  108. {
  109. name allocate_text
  110. type ITEM_TYPE_TEXT
  111. rect 0 5 640 18
  112. text @MENUS_ALLOCATE_FP
  113. font 2
  114. forecolor 1 1 1 1
  115. textscale .80
  116. textalign ITEM_ALIGN_CENTER
  117. textalignx 320
  118. visible 1
  119. decoration
  120. }
  121. // Force point allocated
  122. itemDef
  123. {
  124. name allocated_text
  125. type ITEM_TYPE_TEXT
  126. rect 0 5 640 18
  127. text @MENUS_ALLOCATED_FP
  128. font 2
  129. forecolor 1 1 1 1
  130. textscale .80
  131. textalign ITEM_ALIGN_CENTER
  132. textalignx 320
  133. visible 0
  134. decoration
  135. }
  136. // Core Power message
  137. itemDef
  138. {
  139. name allocated_text_core
  140. type ITEM_TYPE_TEXT
  141. rect 0 5 640 18
  142. text @MENUS_COREPOWER_DESC
  143. font 2
  144. forecolor 1 1 1 1
  145. textscale .80
  146. textalign ITEM_ALIGN_CENTER
  147. textalignx 320
  148. visible 0
  149. decoration
  150. }
  151. //----------------------------------------------------------------------------------------------
  152. // So these will precache
  153. //----------------------------------------------------------------------------------------------
  154. itemDef
  155. {
  156. name precache
  157. group none
  158. style WINDOW_STYLE_SHADER
  159. rect 76 41 70 49
  160. background "gfx/menus/hex_pattern_1"
  161. forecolor .65 .65 .65 1
  162. visible 0
  163. decoration
  164. }
  165. itemDef
  166. {
  167. name precache
  168. group none
  169. style WINDOW_STYLE_SHADER
  170. rect 76 41 70 49
  171. background "gfx/menus/hex_pattern_2"
  172. forecolor .65 .65 .65 1
  173. visible 0
  174. decoration
  175. }
  176. itemDef
  177. {
  178. name precache
  179. group none
  180. style WINDOW_STYLE_SHADER
  181. rect 76 41 70 49
  182. background "gfx/menus/hex_pattern_3"
  183. forecolor .65 .65 .65 1
  184. visible 0
  185. decoration
  186. }
  187. itemDef
  188. {
  189. name precache
  190. group none
  191. style WINDOW_STYLE_SHADER
  192. rect 76 41 70 49
  193. background "gfx/menus/hex_pattern_1_gold"
  194. forecolor .65 .65 .65 1
  195. visible 0
  196. decoration
  197. }
  198. itemDef
  199. {
  200. name precache
  201. group none
  202. style WINDOW_STYLE_SHADER
  203. rect 76 41 70 49
  204. background "gfx/menus/hex_pattern_2_gold"
  205. forecolor .65 .65 .65 1
  206. visible 0
  207. decoration
  208. }
  209. itemDef
  210. {
  211. name precache
  212. group none
  213. style WINDOW_STYLE_SHADER
  214. rect 76 41 70 49
  215. background "gfx/menus/hex_pattern_3_gold"
  216. forecolor .65 .65 .65 1
  217. visible 0
  218. decoration
  219. }
  220. //----------------------------------------------------------------------------------------------
  221. // DEALLOCATION BUTTON - this button is hidden until a power is chosen then this
  222. // becomes active so the power can be deallocated
  223. //----------------------------------------------------------------------------------------------
  224. itemDef
  225. {
  226. name deallocate_fbutton
  227. group none
  228. type ITEM_TYPE_BUTTON
  229. rect 0 0 0 0
  230. forecolor 1 1 1 1
  231. visible 0
  232. // Decrement force power
  233. action
  234. {
  235. // Hide all force level descrptions and have script determine the level of this one
  236. hide leveltext
  237. uiScript "decrementcurrentforcepower"
  238. hide deallocate_fbutton
  239. show force_button
  240. show force_icon
  241. show force_desc
  242. // setfocus absorb_fbutton
  243. }
  244. }
  245. //----------------------------------------------------------------------------------------------
  246. // ABSORB BUTTONS AND BUTTON GRAPHICS
  247. //----------------------------------------------------------------------------------------------
  248. // The hex powerlevel graphic (this has to print first because it's additive)
  249. itemDef
  250. {
  251. name absorb_hexpic
  252. group hexpic
  253. style WINDOW_STYLE_SHADER
  254. rect 76 41 70 49
  255. background "gfx/menus/hex_pattern_0"
  256. forecolor .65 .65 .65 1
  257. visible 1
  258. decoration
  259. }
  260. itemDef
  261. {
  262. name absorb_iconpic
  263. group iconpic
  264. style WINDOW_STYLE_SHADER
  265. rect 33 30 64 64
  266. background "gfx/mp/NEW_f_icon_lt_absorb"
  267. forecolor .65 .65 .65 1
  268. visible 1
  269. decoration
  270. }
  271. itemDef
  272. {
  273. name absorb_fbutton
  274. group force_button
  275. type ITEM_TYPE_BUTTON
  276. rect 33 41 115 46
  277. forecolor 1 1 1 1
  278. visible 1
  279. desctext @MENUS_ADDFP
  280. // Show force power description
  281. mouseEnter
  282. {
  283. setitemcolor absorb_iconpic forecolor 1 1 1 1
  284. setitemcolor absorb_hexpic forecolor 1 1 1 1
  285. show force_icon
  286. show force_desc
  287. }
  288. mouseExit
  289. {
  290. setitemcolor absorb_iconpic forecolor .65 .65 .65 1
  291. setitemcolor absorb_hexpic forecolor .65 .65 .65 1
  292. }
  293. // Because this gets focus when the menu first opens.
  294. onFocus
  295. {
  296. setitemcolor absorb_iconpic forecolor 1 1 1 1
  297. setitemcolor absorb_hexpic forecolor 1 1 1 1
  298. // Hide all force level descrptions and have script determine the level of this one
  299. hide leveltext
  300. uiScript "showforceleveldesc" "absorb"
  301. setitembackground force_icon "gfx/mp/NEW_f_icon_lt_absorb"
  302. setitemtext force_desc @SP_INGAME_FORCE_ABSORB_DESC
  303. }
  304. // Increment force power
  305. action
  306. { // hide descriptions and let affectforcepowerlevel determine the corect one
  307. hide leveltext
  308. uiScript "affectforcepowerlevel" "absorb"
  309. hide force_button
  310. setitemrect deallocate_fbutton 33 41 115 46
  311. show deallocate_fbutton
  312. setitemcolor absorb_iconpic forecolor 1 1 1 1
  313. setitemcolor absorb_hexpic forecolor 1 1 1 1
  314. }
  315. }
  316. //----------------------------------------------------------------------------------------------
  317. // HEAL BUTTONS AND BUTTON GRAPHICS
  318. //----------------------------------------------------------------------------------------------
  319. // The hex powerlevel graphic (this has to print first because it's additive)
  320. itemDef
  321. {
  322. name heal_hexpic
  323. group hexpic
  324. style WINDOW_STYLE_SHADER
  325. rect 76 95 70 49
  326. background "gfx/menus/hex_pattern_0"
  327. forecolor .65 .65 .65 1
  328. visible 1
  329. decoration
  330. }
  331. itemDef
  332. {
  333. name heal_iconpic
  334. group iconpic
  335. style WINDOW_STYLE_SHADER
  336. rect 33 85 64 64
  337. background "gfx/mp/NEW_f_icon_lt_heal"
  338. forecolor .65 .65 .65 1
  339. visible 1
  340. decoration
  341. }
  342. itemDef
  343. {
  344. name heal_fbutton
  345. group force_button
  346. type ITEM_TYPE_BUTTON
  347. rect 33 95 115 46
  348. forecolor 1 1 1 1
  349. visible 1
  350. desctext @MENUS_ADDFP
  351. // Show force power description
  352. mouseEnter
  353. { // Because on opening, absorb is given focus
  354. setitemcolor absorb_iconpic forecolor .65 .65 .65 1
  355. setitemcolor absorb_hexpic forecolor .65 .65 .65 1
  356. setitemcolor heal_iconpic forecolor 1 1 1 1
  357. setitemcolor heal_hexpic forecolor 1 1 1 1
  358. // Hide all force level descrptions and have script determine the level of this one
  359. hide leveltext
  360. uiScript "showforceleveldesc" "heal"
  361. setitembackground force_icon "gfx/mp/NEW_f_icon_lt_heal"
  362. setitemtext force_desc @SP_INGAME_FORCE_HEAL_DESC
  363. show force_icon
  364. show force_desc
  365. }
  366. mouseExit
  367. {
  368. setitemcolor heal_iconpic forecolor .65 .65 .65 1
  369. setitemcolor heal_hexpic forecolor .65 .65 .65 1
  370. }
  371. // Increment force power
  372. action
  373. { // hide descriptions and let affectforcepowerlevel determine the corect one
  374. hide leveltext
  375. uiScript "affectforcepowerlevel" "heal"
  376. hide force_button
  377. setitemrect deallocate_fbutton 33 95 115 46
  378. show deallocate_fbutton
  379. setitemcolor heal_iconpic forecolor 1 1 1 1
  380. setitemcolor heal_hexpic forecolor 1 1 1 1
  381. }
  382. }
  383. //----------------------------------------------------------------------------------------------
  384. // MINDTRICK BUTTONS AND BUTTON GRAPHICS
  385. //----------------------------------------------------------------------------------------------
  386. // The hex powerlevel graphic (this has to print first because it's additive)
  387. itemDef
  388. {
  389. name mindtrick_hexpic
  390. group hexpic
  391. style WINDOW_STYLE_SHADER
  392. rect 76 149 70 49
  393. background "gfx/menus/hex_pattern_0"
  394. forecolor .65 .65 .65 1
  395. visible 1
  396. decoration
  397. }
  398. itemDef
  399. {
  400. name mindtrick_iconpic
  401. group iconpic
  402. style WINDOW_STYLE_SHADER
  403. rect 33 141 64 64
  404. background "gfx/mp/NEW_f_icon_lt_mind_trick"
  405. forecolor .65 .65 .65 1
  406. visible 1
  407. decoration
  408. }
  409. itemDef
  410. {
  411. name mindtrick_fbutton
  412. group force_button
  413. type ITEM_TYPE_BUTTON
  414. rect 33 149 115 46
  415. forecolor 1 1 1 1
  416. visible 1
  417. desctext @MENUS_ADDFP
  418. // Show force power description
  419. mouseEnter
  420. { // Because on opening, absorb is given focus
  421. setitemcolor absorb_iconpic forecolor .65 .65 .65 1
  422. setitemcolor absorb_hexpic forecolor .65 .65 .65 1
  423. setitemcolor mindtrick_iconpic forecolor 1 1 1 1
  424. setitemcolor mindtrick_hexpic forecolor 1 1 1 1
  425. // Hide all force level descrptions and have script determine the level of this one
  426. hide leveltext
  427. uiScript "showforceleveldesc" "mindtrick"
  428. setitembackground force_icon "gfx/mp/NEW_f_icon_lt_mind_trick"
  429. setitemtext force_desc @SP_INGAME_FORCE_MIND_TRICK_DESC
  430. show force_icon
  431. show force_desc
  432. }
  433. mouseExit
  434. {
  435. setitemcolor mindtrick_iconpic forecolor .65 .65 .65 1
  436. setitemcolor mindtrick_hexpic forecolor .65 .65 .65 1
  437. }
  438. // Increment force power
  439. action
  440. { // hide descriptions and let affectforcepowerlevel determine the corect one
  441. hide leveltext
  442. uiScript "affectforcepowerlevel" "mindtrick"
  443. hide force_button
  444. setitemrect deallocate_fbutton 33 149 115 46
  445. show deallocate_fbutton
  446. setitemcolor mindtrick_iconpic forecolor 1 1 1 1
  447. setitemcolor mindtrick_hexpic forecolor 1 1 1 1
  448. }
  449. }
  450. //----------------------------------------------------------------------------------------------
  451. // PROTECT BUTTONS AND BUTTON GRAPHICS
  452. //----------------------------------------------------------------------------------------------
  453. // The hex powerlevel graphic (this has to print first because it's additive)
  454. itemDef
  455. {
  456. name protect_hexpic
  457. group hexpic
  458. style WINDOW_STYLE_SHADER
  459. rect 76 205 70 49
  460. background "gfx/menus/hex_pattern_0"
  461. forecolor .65 .65 .65 1
  462. visible 1
  463. decoration
  464. }
  465. itemDef
  466. {
  467. name protect_iconpic
  468. group iconpic
  469. style WINDOW_STYLE_SHADER
  470. rect 33 196 64 64
  471. background "gfx/mp/NEW_f_icon_lt_protect"
  472. forecolor .65 .65 .65 1
  473. visible 1
  474. decoration
  475. }
  476. itemDef
  477. {
  478. name protect_fbutton
  479. group force_button
  480. type ITEM_TYPE_BUTTON
  481. rect 33 205 115 46
  482. forecolor 1 1 1 1
  483. visible 1
  484. desctext @MENUS_ADDFP
  485. // Show force power description
  486. mouseEnter
  487. { // Because on opening, absorb is given focus
  488. setitemcolor absorb_iconpic forecolor .65 .65 .65 1
  489. setitemcolor absorb_hexpic forecolor .65 .65 .65 1
  490. setitemcolor protect_iconpic forecolor 1 1 1 1
  491. setitemcolor protect_hexpic forecolor 1 1 1 1
  492. // Hide all force level descrptions and have script determine the level of this one
  493. hide leveltext
  494. uiScript "showforceleveldesc" "protect"
  495. setitembackground force_icon "gfx/mp/NEW_f_icon_lt_protect"
  496. setitemtext force_desc @SP_INGAME_FORCE_PROTECT_DESC
  497. show force_icon
  498. show force_desc
  499. }
  500. mouseExit
  501. {
  502. setitemcolor protect_iconpic forecolor .65 .65 .65 1
  503. setitemcolor protect_hexpic forecolor .65 .65 .65 1
  504. }
  505. // Increment force power
  506. action
  507. { // hide descriptions and let affectforcepowerlevel determine the corect one
  508. hide leveltext
  509. uiScript "affectforcepowerlevel" "protect"
  510. hide force_button
  511. setitemrect deallocate_fbutton 33 205 115 46
  512. show deallocate_fbutton
  513. setitemcolor protect_iconpic forecolor 1 1 1 1
  514. setitemcolor protect_hexpic forecolor 1 1 1 1
  515. }
  516. }
  517. //----------------------------------------------------------------------------------------------
  518. // JUMP BUTTONS AND BUTTON GRAPHICS
  519. //----------------------------------------------------------------------------------------------
  520. // The hex powerlevel graphic (this has to print first because it's additive)
  521. itemDef
  522. {
  523. name jump_hexpic
  524. group hexpic
  525. style WINDOW_STYLE_SHADER
  526. rect 225 41 70 49
  527. background "gfx/menus/hex_pattern_0"
  528. forecolor .65 .65 .65 1
  529. visible 1
  530. decoration
  531. }
  532. itemDef
  533. {
  534. name jump_iconpic
  535. group iconpic
  536. style WINDOW_STYLE_SHADER
  537. rect 184 30 64 64
  538. background "gfx/mp/NEW_f_icon_jump"
  539. forecolor .65 .65 .65 1
  540. visible 1
  541. decoration
  542. }
  543. itemDef
  544. {
  545. name jump_fbutton
  546. group force_button
  547. type ITEM_TYPE_BUTTON
  548. rect 184 41 115 46
  549. forecolor 1 1 1 1
  550. visible 1
  551. desctext @MENUS_COREPOWER_DESC
  552. // Show force power description
  553. mouseEnter
  554. { // Because on opening, absorb is given focus
  555. setitemcolor absorb_iconpic forecolor .65 .65 .65 1
  556. setitemcolor absorb_hexpic forecolor .65 .65 .65 1
  557. setitemcolor jump_iconpic forecolor 1 1 1 1
  558. setitemcolor jump_hexpic forecolor 1 1 1 1
  559. // Hide all force level descrptions and have script determine the level of this one
  560. hide leveltext
  561. uiScript "showforceleveldesc" "jump"
  562. setitembackground force_icon "gfx/mp/NEW_f_icon_jump"
  563. setitemtext force_desc @SP_INGAME_FORCE_JUMP_DESC
  564. show force_icon
  565. show force_desc
  566. }
  567. mouseExit
  568. {
  569. setitemcolor jump_iconpic forecolor .65 .65 .65 1
  570. setitemcolor jump_hexpic forecolor .65 .65 .65 1
  571. }
  572. }
  573. //----------------------------------------------------------------------------------------------
  574. // PULL BUTTONS AND BUTTON GRAPHICS
  575. //----------------------------------------------------------------------------------------------
  576. // The hex powerlevel graphic (this has to print first because it's additive)
  577. itemDef
  578. {
  579. name pull_hexpic
  580. group hexpic
  581. style WINDOW_STYLE_SHADER
  582. rect 225 95 70 49
  583. background "gfx/menus/hex_pattern_0"
  584. forecolor .65 .65 .65 1
  585. visible 1
  586. decoration
  587. }
  588. itemDef
  589. {
  590. name pull_iconpic
  591. group iconpic
  592. style WINDOW_STYLE_SHADER
  593. rect 184 85 64 64
  594. background "gfx/mp/NEW_f_icon_pull"
  595. forecolor .65 .65 .65 1
  596. visible 1
  597. decoration
  598. }
  599. itemDef
  600. {
  601. name pull_fbutton
  602. group force_button
  603. type ITEM_TYPE_BUTTON
  604. rect 184 95 115 46
  605. forecolor 1 1 1 1
  606. visible 1
  607. desctext @MENUS_COREPOWER_DESC
  608. // Show force power description
  609. mouseEnter
  610. { // Because on opening, absorb is given focus
  611. setitemcolor absorb_iconpic forecolor .65 .65 .65 1
  612. setitemcolor absorb_hexpic forecolor .65 .65 .65 1
  613. setitemcolor pull_iconpic forecolor 1 1 1 1
  614. setitemcolor pull_hexpic forecolor 1 1 1 1
  615. // Hide all force level descrptions and have script determine the level of this one
  616. hide leveltext
  617. uiScript "showforceleveldesc" "pull"
  618. setitembackground force_icon "gfx/mp/NEW_f_icon_pull"
  619. setitemtext force_desc @SP_INGAME_FORCE_PULL_DESC
  620. show force_icon
  621. show force_desc
  622. }
  623. mouseExit
  624. {
  625. setitemcolor pull_iconpic forecolor .65 .65 .65 1
  626. setitemcolor pull_hexpic forecolor .65 .65 .65 1
  627. }
  628. }
  629. //----------------------------------------------------------------------------------------------
  630. // PUSH BUTTONS AND BUTTON GRAPHICS
  631. //----------------------------------------------------------------------------------------------
  632. // The hex powerlevel graphic (this has to print first because it's additive)
  633. itemDef
  634. {
  635. name push_hexpic
  636. group hexpic
  637. style WINDOW_STYLE_SHADER
  638. rect 225 149 70 49
  639. background "gfx/menus/hex_pattern_0"
  640. forecolor .65 .65 .65 1
  641. visible 1
  642. decoration
  643. }
  644. itemDef
  645. {
  646. name push_iconpic
  647. group iconpic
  648. style WINDOW_STYLE_SHADER
  649. rect 184 141 64 64
  650. background "gfx/mp/NEW_f_icon_push"
  651. forecolor .65 .65 .65 1
  652. visible 1
  653. decoration
  654. }
  655. itemDef
  656. {
  657. name push_fbutton
  658. group force_button
  659. type ITEM_TYPE_BUTTON
  660. rect 184 149 115 46
  661. forecolor 1 1 1 1
  662. visible 1
  663. desctext @MENUS_COREPOWER_DESC
  664. // Show force power description
  665. mouseEnter
  666. { // Because on opening, absorb is given focus
  667. setitemcolor absorb_iconpic forecolor .65 .65 .65 1
  668. setitemcolor absorb_hexpic forecolor .65 .65 .65 1
  669. setitemcolor push_iconpic forecolor 1 1 1 1
  670. setitemcolor push_hexpic forecolor 1 1 1 1
  671. // Hide all force level descrptions and have script determine the level of this one
  672. hide leveltext
  673. uiScript "showforceleveldesc" "push"
  674. setitembackground force_icon "gfx/mp/NEW_f_icon_push"
  675. setitemtext force_desc @SP_INGAME_FORCE_PUSH_DESC
  676. show force_icon
  677. show force_desc
  678. }
  679. mouseExit
  680. {
  681. setitemcolor push_iconpic forecolor .65 .65 .65 1
  682. setitemcolor push_hexpic forecolor .65 .65 .65 1
  683. }
  684. }
  685. //----------------------------------------------------------------------------------------------
  686. // SENSE BUTTONS AND BUTTON GRAPHICS
  687. //----------------------------------------------------------------------------------------------
  688. // The hex powerlevel graphic (this has to print first because it's additive)
  689. itemDef
  690. {
  691. name sense_hexpic
  692. group hexpic
  693. style WINDOW_STYLE_SHADER
  694. rect 225 205 70 49
  695. background "gfx/menus/hex_pattern_0"
  696. forecolor .65 .65 .65 1
  697. visible 1
  698. decoration
  699. }
  700. itemDef
  701. {
  702. name sense_iconpic
  703. group iconpic
  704. style WINDOW_STYLE_SHADER
  705. rect 184 196 64 64
  706. background "gfx/mp/NEW_f_icon_sight"
  707. forecolor .65 .65 .65 1
  708. visible 1
  709. decoration
  710. }
  711. itemDef
  712. {
  713. name sense_fbutton
  714. group force_button
  715. type ITEM_TYPE_BUTTON
  716. rect 184 205 115 46
  717. forecolor 1 1 1 1
  718. visible 1
  719. desctext @MENUS_COREPOWER_DESC
  720. // Show force power description
  721. mouseEnter
  722. { // Because on opening, absorb is given focus
  723. setitemcolor absorb_iconpic forecolor .65 .65 .65 1
  724. setitemcolor absorb_hexpic forecolor .65 .65 .65 1
  725. setitemcolor sense_iconpic forecolor 1 1 1 1
  726. setitemcolor sense_hexpic forecolor 1 1 1 1
  727. // Hide all force level descrptions and have script determine the level of this one
  728. hide leveltext
  729. uiScript "showforceleveldesc" "sense"
  730. setitembackground force_icon "gfx/mp/NEW_f_icon_sight"
  731. setitemtext force_desc @SP_INGAME_FORCE_SENSE_DESC
  732. show force_icon
  733. show force_desc
  734. }
  735. mouseExit
  736. {
  737. setitemcolor sense_iconpic forecolor .65 .65 .65 1
  738. setitemcolor sense_hexpic forecolor .65 .65 .65 1
  739. }
  740. }
  741. //----------------------------------------------------------------------------------------------
  742. // SPEED BUTTONS AND BUTTON GRAPHICS
  743. //----------------------------------------------------------------------------------------------
  744. // The hex powerlevel graphic (this has to print first because it's additive)
  745. itemDef
  746. {
  747. name speed_hexpic
  748. group hexpic
  749. style WINDOW_STYLE_SHADER
  750. rect 380 41 70 49
  751. background "gfx/menus/hex_pattern_0"
  752. forecolor .65 .65 .65 1
  753. visible 1
  754. decoration
  755. }
  756. itemDef
  757. {
  758. name speed_iconpic
  759. group iconpic
  760. style WINDOW_STYLE_SHADER
  761. rect 336 30 64 64
  762. background "gfx/mp/NEW_f_icon_speed"
  763. forecolor .65 .65 .65 1
  764. visible 1
  765. decoration
  766. }
  767. itemDef
  768. {
  769. name speed_fbutton
  770. group force_button
  771. type ITEM_TYPE_BUTTON
  772. rect 336 41 115 46
  773. forecolor 1 1 1 1
  774. visible 1
  775. desctext @MENUS_COREPOWER_DESC
  776. // Show force power description
  777. mouseEnter
  778. { // Because on opening, absorb is given focus
  779. setitemcolor absorb_iconpic forecolor .65 .65 .65 1
  780. setitemcolor absorb_hexpic forecolor .65 .65 .65 1
  781. setitemcolor speed_iconpic forecolor 1 1 1 1
  782. setitemcolor speed_hexpic forecolor 1 1 1 1
  783. // Hide all force level descrptions and have script determine the level of this one
  784. hide leveltext
  785. uiScript "showforceleveldesc" "speed"
  786. setitembackground force_icon "gfx/mp/NEW_f_icon_speed"
  787. setitemtext force_desc @SP_INGAME_FORCE_SPEED_DESC
  788. show force_icon
  789. show force_desc
  790. }
  791. mouseExit
  792. {
  793. setitemcolor speed_iconpic forecolor .65 .65 .65 1
  794. setitemcolor speed_hexpic forecolor .65 .65 .65 1
  795. }
  796. }
  797. //----------------------------------------------------------------------------------------------
  798. // SABER DEFENSIVE BUTTONS AND BUTTON GRAPHICS
  799. //----------------------------------------------------------------------------------------------
  800. // The hex powerlevel graphic (this has to print first because it's additive
  801. itemDef
  802. {
  803. name sabdef_hexpic
  804. group hexpic
  805. style WINDOW_STYLE_SHADER
  806. rect 380 95 70 49
  807. background "gfx/menus/hex_pattern_0"
  808. forecolor .65 .65 .65 1
  809. visible 1
  810. decoration
  811. }
  812. itemDef
  813. {
  814. name sabdef_iconpic
  815. group iconpic
  816. style WINDOW_STYLE_SHADER
  817. rect 336 85 64 64
  818. background "gfx/mp/NEW_f_icon_saber_defend"
  819. forecolor .65 .65 .65 1
  820. visible 1
  821. decoration
  822. }
  823. itemDef
  824. {
  825. name sabdef_fbutton
  826. group force_button
  827. type ITEM_TYPE_BUTTON
  828. rect 336 95 115 46
  829. forecolor 1 1 1 1
  830. visible 1
  831. desctext @MENUS_COREPOWER_DESC
  832. // Show force power description
  833. mouseEnter
  834. { // Because on opening, absorb is given focus
  835. setitemcolor absorb_iconpic forecolor .65 .65 .65 1
  836. setitemcolor absorb_hexpic forecolor .65 .65 .65 1
  837. setitemcolor sabdef_iconpic forecolor 1 1 1 1
  838. setitemcolor sabdef_hexpic forecolor 1 1 1 1
  839. // Hide all force level descrptions and have script determine the level of this one
  840. hide leveltext
  841. uiScript "showforceleveldesc" "sabdef"
  842. setitembackground force_icon "gfx/mp/NEW_f_icon_saber_defend"
  843. setitemtext force_desc @SP_INGAME_FORCE_SABER_DEFENSE_DESC
  844. show force_icon
  845. show force_desc
  846. }
  847. mouseExit
  848. {
  849. setitemcolor sabdef_iconpic forecolor .65 .65 .65 1
  850. setitemcolor sabdef_hexpic forecolor .65 .65 .65 1
  851. }
  852. }
  853. //----------------------------------------------------------------------------------------------
  854. // SABER OFFENSIVE BUTTONS AND BUTTON GRAPHICS
  855. //----------------------------------------------------------------------------------------------
  856. // The hex powerlevel graphic (this has to print first because it's additive
  857. itemDef
  858. {
  859. name saboff_hexpic
  860. group hexpic
  861. style WINDOW_STYLE_SHADER
  862. rect 380 149 70 49
  863. background "gfx/menus/hex_pattern_0"
  864. forecolor .65 .65 .65 1
  865. visible 1
  866. decoration
  867. }
  868. itemDef
  869. {
  870. name saboff_iconpic
  871. group iconpic
  872. style WINDOW_STYLE_SHADER
  873. rect 336 141 64 64
  874. background "gfx/mp/NEW_f_icon_saber_attack"
  875. forecolor .65 .65 .65 1
  876. visible 1
  877. decoration
  878. }
  879. itemDef
  880. {
  881. name saboff_fbutton
  882. group force_button
  883. type ITEM_TYPE_BUTTON
  884. rect 336 149 115 46
  885. forecolor 1 1 1 1
  886. visible 1
  887. desctext @MENUS_COREPOWER_DESC
  888. // Show force power description
  889. mouseEnter
  890. { // Because on opening, absorb is given focus
  891. setitemcolor absorb_iconpic forecolor .65 .65 .65 1
  892. setitemcolor absorb_hexpic forecolor .65 .65 .65 1
  893. setitemcolor saboff_iconpic forecolor 1 1 1 1
  894. setitemcolor saboff_hexpic forecolor 1 1 1 1
  895. // Hide all force level descrptions and have script determine the level of this one
  896. hide leveltext
  897. uiScript "showforceleveldesc" "saboff"
  898. setitembackground force_icon "gfx/mp/NEW_f_icon_saber_attack"
  899. setitemtext force_desc @SP_INGAME_FORCE_SABER_OFFENSE_DESC
  900. show force_icon
  901. show force_desc
  902. }
  903. mouseExit
  904. {
  905. setitemcolor saboff_iconpic forecolor .65 .65 .65 1
  906. setitemcolor saboff_hexpic forecolor .65 .65 .65 1
  907. }
  908. }
  909. //----------------------------------------------------------------------------------------------
  910. // SABER THROW BUTTONS AND BUTTON GRAPHICS
  911. //----------------------------------------------------------------------------------------------
  912. // The hex powerlevel graphic (this has to print first because it's additive
  913. itemDef
  914. {
  915. name sabthrow_hexpic
  916. group hexpic
  917. style WINDOW_STYLE_SHADER
  918. rect 380 205 70 49
  919. background "gfx/menus/hex_pattern_0"
  920. forecolor .5 .5 .5 1
  921. visible 1
  922. decoration
  923. }
  924. itemDef
  925. {
  926. name sabthrow_iconpic
  927. group iconpic
  928. style WINDOW_STYLE_SHADER
  929. rect 336 196 64 64
  930. background "gfx/mp/NEW_f_icon_saber_throw"
  931. forecolor .5 .5 .5 1
  932. visible 1
  933. decoration
  934. }
  935. itemDef
  936. {
  937. name sabthrow_fbutton
  938. group force_button
  939. type ITEM_TYPE_BUTTON
  940. rect 336 205 115 46
  941. forecolor 1 1 1 1
  942. visible 1
  943. desctext @MENUS_COREPOWER_DESC
  944. // Show force power description
  945. mouseEnter
  946. { // Because on opening, absorb is given focus
  947. setitemcolor absorb_iconpic forecolor .65 .65 .65 1
  948. setitemcolor absorb_hexpic forecolor .65 .65 .65 1
  949. setitemcolor sabthrow_iconpic forecolor 1 1 1 1
  950. setitemcolor sabthrow_hexpic forecolor 1 1 1 1
  951. // Hide all force level descrptions and have script determine the level of this one
  952. hide leveltext
  953. uiScript "showforceleveldesc" "sabthrow"
  954. setitembackground force_icon "gfx/mp/NEW_f_icon_saber_throw"
  955. setitemtext force_desc @SP_INGAME_FORCE_SABER_THROW_DESC
  956. show force_icon
  957. show force_desc
  958. }
  959. mouseExit
  960. {
  961. setitemcolor sabthrow_iconpic forecolor .5 .5 .5 1
  962. setitemcolor sabthrow_hexpic forecolor .5 .5 .5 1
  963. }
  964. }
  965. //----------------------------------------------------------------------------------------------
  966. // DRAIN BUTTONS AND BUTTON GRAPHICS
  967. //----------------------------------------------------------------------------------------------
  968. // The hex powerlevel graphic (this has to print first because it's additive
  969. itemDef
  970. {
  971. name drain_hexpic
  972. group hexpic
  973. style WINDOW_STYLE_SHADER
  974. rect 527 41 70 49
  975. background "gfx/menus/hex_pattern_0"
  976. forecolor .5 .5 .5 1
  977. visible 1
  978. decoration
  979. }
  980. itemDef
  981. {
  982. name drain_iconpic
  983. group iconpic
  984. style WINDOW_STYLE_SHADER
  985. rect 484 30 64 64
  986. background "gfx/mp/NEW_f_icon_dk_drain"
  987. forecolor .5 .5 .5 1
  988. visible 1
  989. decoration
  990. }
  991. itemDef
  992. {
  993. name drain_fbutton
  994. group force_button
  995. type ITEM_TYPE_BUTTON
  996. rect 484 41 115 46
  997. forecolor 1 1 1 1
  998. visible 1
  999. desctext @MENUS_ADDFP
  1000. // Show force power description
  1001. mouseEnter
  1002. { // Because on opening, absorb is given focus
  1003. setitemcolor absorb_iconpic forecolor .65 .65 .65 1
  1004. setitemcolor absorb_hexpic forecolor .65 .65 .65 1
  1005. setitemcolor drain_iconpic forecolor 1 1 1 1
  1006. setitemcolor drain_hexpic forecolor 1 1 1 1
  1007. // Hide all force level descrptions and have script determine the level of this one
  1008. hide leveltext
  1009. uiScript "showforceleveldesc" "drain"
  1010. setitembackground force_icon "gfx/mp/NEW_f_icon_dk_drain"
  1011. setitemtext force_desc @SP_INGAME_FORCE_DRAIN_DESC
  1012. show force_icon
  1013. show force_desc
  1014. }
  1015. mouseExit
  1016. {
  1017. setitemcolor drain_iconpic forecolor .5 .5 .5 1
  1018. setitemcolor drain_hexpic forecolor .5 .5 .5 1
  1019. }
  1020. // Increment force power
  1021. action
  1022. { // hide descriptions and let affectforcepowerlevel determine the corect one
  1023. hide leveltext
  1024. uiScript "affectforcepowerlevel" "drain"
  1025. hide force_button
  1026. setitemrect deallocate_fbutton 484 41 115 46
  1027. show deallocate_fbutton
  1028. setitemcolor drain_iconpic forecolor 1 1 1 1
  1029. setitemcolor drain_hexpic forecolor 1 1 1 1
  1030. }
  1031. }
  1032. //----------------------------------------------------------------------------------------------
  1033. // GRIP BUTTONS AND BUTTON GRAPHICS
  1034. //----------------------------------------------------------------------------------------------
  1035. // The hex powerlevel graphic (this has to print first because it's additive
  1036. itemDef
  1037. {
  1038. name grip_hexpic
  1039. group hexpic
  1040. style WINDOW_STYLE_SHADER
  1041. rect 527 95 70 49
  1042. background "gfx/menus/hex_pattern_0"
  1043. forecolor .65 .65 .65 1
  1044. visible 1
  1045. decoration
  1046. }
  1047. itemDef
  1048. {
  1049. name grip_iconpic
  1050. group iconpic
  1051. style WINDOW_STYLE_SHADER
  1052. rect 484 85 64 64
  1053. background "gfx/mp/NEW_f_icon_dk_grip"
  1054. forecolor .65 .65 .65 1
  1055. visible 1
  1056. decoration
  1057. }
  1058. itemDef
  1059. {
  1060. name grip_fbutton
  1061. group force_button
  1062. type ITEM_TYPE_BUTTON
  1063. rect 484 95 115 46
  1064. forecolor 1 1 1 1
  1065. visible 1
  1066. desctext @MENUS_ADDFP
  1067. // Show force power description
  1068. mouseEnter
  1069. { // Because on opening, absorb is given focus
  1070. setitemcolor absorb_iconpic forecolor .65 .65 .65 1
  1071. setitemcolor absorb_hexpic forecolor .65 .65 .65 1
  1072. setitemcolor grip_iconpic forecolor 1 1 1 1
  1073. setitemcolor grip_hexpic forecolor 1 1 1 1
  1074. // Hide all force level descrptions and have script determine the level of this one
  1075. hide leveltext
  1076. uiScript "showforceleveldesc" "grip"
  1077. setitembackground force_icon "gfx/mp/NEW_f_icon_dk_grip"
  1078. setitemtext force_desc @SP_INGAME_FORCE_GRIP_DESC
  1079. show force_icon
  1080. show force_desc
  1081. }
  1082. mouseExit
  1083. {
  1084. setitemcolor grip_iconpic forecolor .65 .65 .65 1
  1085. setitemcolor grip_hexpic forecolor .65 .65 .65 1
  1086. }
  1087. // Increment force power
  1088. action
  1089. { // hide descriptions and let affectforcepowerlevel determine the corect one
  1090. hide leveltext
  1091. uiScript "affectforcepowerlevel" "grip"
  1092. hide force_button
  1093. setitemrect deallocate_fbutton 484 95 115 46
  1094. show deallocate_fbutton
  1095. setitemcolor grip_iconpic forecolor 1 1 1 1
  1096. setitemcolor grip_hexpic forecolor 1 1 1 1
  1097. }
  1098. }
  1099. //----------------------------------------------------------------------------------------------
  1100. // LIGHTNING BUTTONS AND BUTTON GRAPHICS
  1101. //----------------------------------------------------------------------------------------------
  1102. // The hex powerlevel graphic (this has to print first because it's additive
  1103. itemDef
  1104. {
  1105. name lightning_hexpic
  1106. group hexpic
  1107. style WINDOW_STYLE_SHADER
  1108. rect 527 149 70 49
  1109. background "gfx/menus/hex_pattern_0"
  1110. forecolor .65 .65 .65 1
  1111. visible 1
  1112. decoration
  1113. }
  1114. itemDef
  1115. {
  1116. name lightning_iconpic
  1117. group iconpic
  1118. style WINDOW_STYLE_SHADER
  1119. rect 484 141 64 64
  1120. background "gfx/mp/NEW_f_icon_dk_l1"
  1121. forecolor .65 .65 .65 1
  1122. visible 1
  1123. decoration
  1124. }
  1125. itemDef
  1126. {
  1127. name lightning_fbutton
  1128. group force_button
  1129. type ITEM_TYPE_BUTTON
  1130. rect 484 149 115 46
  1131. forecolor 1 1 1 1
  1132. visible 1
  1133. desctext @MENUS_ADDFP
  1134. // Show force power description
  1135. mouseEnter
  1136. { // Because on opening, absorb is given focus
  1137. setitemcolor absorb_iconpic forecolor .65 .65 .65 1
  1138. setitemcolor absorb_hexpic forecolor .65 .65 .65 1
  1139. setitemcolor lightning_iconpic forecolor 1 1 1 1
  1140. setitemcolor lightning_hexpic forecolor 1 1 1 1
  1141. // Hide all force level descrptions and have script determine the level of this one
  1142. hide leveltext
  1143. uiScript "showforceleveldesc" "lightning"
  1144. setitembackground force_icon "gfx/mp/NEW_f_icon_dk_l1"
  1145. setitemtext force_desc @SP_INGAME_FORCE_LIGHTNING_DESC
  1146. show force_icon
  1147. show force_desc
  1148. }
  1149. mouseExit
  1150. {
  1151. setitemcolor lightning_iconpic forecolor .65 .65 .65 1
  1152. setitemcolor lightning_hexpic forecolor .65 .65 .65 1
  1153. }
  1154. // Increment force power
  1155. action
  1156. { // hide descriptions and let affectforcepowerlevel determine the corect one
  1157. hide leveltext
  1158. uiScript "affectforcepowerlevel" "lightning"
  1159. hide force_button
  1160. setitemrect deallocate_fbutton 484 149 115 46
  1161. show deallocate_fbutton
  1162. setitemcolor lightning_iconpic forecolor 1 1 1 1
  1163. setitemcolor lightning_hexpic forecolor 1 1 1 1
  1164. }
  1165. }
  1166. //----------------------------------------------------------------------------------------------
  1167. // RAGE BUTTONS AND BUTTON GRAPHICS
  1168. //----------------------------------------------------------------------------------------------
  1169. // The hex powerlevel graphic (this has to print first because it's additive
  1170. itemDef
  1171. {
  1172. name rage_hexpic
  1173. group hexpic
  1174. style WINDOW_STYLE_SHADER
  1175. rect 527 205 70 49
  1176. background "gfx/menus/hex_pattern_0"
  1177. forecolor .65 .65 .65 1
  1178. visible 1
  1179. decoration
  1180. }
  1181. itemDef
  1182. {
  1183. name rage_iconpic
  1184. group iconpic
  1185. style WINDOW_STYLE_SHADER
  1186. rect 484 196 64 64
  1187. background "gfx/mp/NEW_f_icon_dk_rage"
  1188. forecolor .65 .65 .65 1
  1189. visible 1
  1190. decoration
  1191. }
  1192. itemDef
  1193. {
  1194. name rage_fbutton
  1195. group force_button
  1196. type ITEM_TYPE_BUTTON
  1197. rect 484 205 115 46
  1198. forecolor 1 1 1 1
  1199. visible 1
  1200. desctext @MENUS_ADDFP
  1201. // Show force power description
  1202. mouseEnter
  1203. { // Because on opening, absorb is given focus
  1204. setitemcolor absorb_iconpic forecolor .65 .65 .65 1
  1205. setitemcolor absorb_hexpic forecolor .65 .65 .65 1
  1206. setitemcolor rage_iconpic forecolor 1 1 1 1
  1207. setitemcolor rage_hexpic forecolor 1 1 1 1
  1208. // Hide all force level descrptions and have script determine the level of this one
  1209. hide leveltext
  1210. uiScript "showforceleveldesc" "rage"
  1211. setitembackground force_icon "gfx/mp/NEW_f_icon_dk_rage"
  1212. setitemtext force_desc @SP_INGAME_FORCE_RAGE_DESC
  1213. show force_icon
  1214. show force_desc
  1215. }
  1216. mouseExit
  1217. {
  1218. setitemcolor rage_iconpic forecolor .65 .65 .65 1
  1219. setitemcolor rage_hexpic forecolor .65 .65 .65 1
  1220. }
  1221. // Increment/decrement force power
  1222. action
  1223. { // hide descriptions and let affectforcepowerlevel determine the corect one
  1224. hide leveltext
  1225. uiScript "affectforcepowerlevel" "rage"
  1226. hide force_button
  1227. setitemrect deallocate_fbutton 484 205 115 46
  1228. show deallocate_fbutton
  1229. setitemcolor rage_iconpic forecolor 1 1 1 1
  1230. setitemcolor rage_hexpic forecolor 1 1 1 1
  1231. }
  1232. }
  1233. //----------------------------------------------------------------------------------------------
  1234. // BIG FORCE ICON AND FORCE DESCRIPTION
  1235. //----------------------------------------------------------------------------------------------
  1236. itemDef
  1237. {
  1238. name force_icon
  1239. group bigicons
  1240. style WINDOW_STYLE_SHADER
  1241. rect 30 265 128 128
  1242. forecolor 1 1 1 1
  1243. visible 0
  1244. decoration
  1245. }
  1246. itemDef
  1247. {
  1248. name force_desc
  1249. rect 157 264 460 100
  1250. font 4
  1251. type ITEM_TYPE_TEXTSCROLL
  1252. text "This is the text"
  1253. forecolor 1 1 1 1
  1254. textscale 1
  1255. textalign ITEM_ALIGN_LEFT
  1256. textalignx 0
  1257. textaligny -1
  1258. visible 0
  1259. autowrapped
  1260. lineHeight 14
  1261. decoration
  1262. }
  1263. //----------------------------------------------------------------------------------------------
  1264. // ABSORB LEVEL DESCRIPTION
  1265. //----------------------------------------------------------------------------------------------
  1266. // Level 1 description
  1267. itemDef
  1268. {
  1269. name absorb_level1desc
  1270. group leveltext
  1271. rect 157 364 460 60
  1272. text @SP_INGAME_FORCE_ABSORB_LVL1_DESC
  1273. font 4
  1274. forecolor 1 1 1 1
  1275. textscale 1
  1276. textalign ITEM_ALIGN_LEFT
  1277. textalignx 0
  1278. textaligny -1
  1279. visible 0
  1280. autowrapped
  1281. type ITEM_TYPE_TEXTSCROLL
  1282. lineHeight 13
  1283. }
  1284. // Level 2 description
  1285. itemDef
  1286. {
  1287. name absorb_level2desc
  1288. group leveltext
  1289. rect 157 364 460 60
  1290. text @SP_INGAME_FORCE_ABSORB_LVL2_DESC
  1291. font 4
  1292. forecolor 1 1 1 1
  1293. textscale 1
  1294. textalign ITEM_ALIGN_LEFT
  1295. textalignx 0
  1296. textaligny -1
  1297. visible 0
  1298. autowrapped
  1299. type ITEM_TYPE_TEXTSCROLL
  1300. lineHeight 13
  1301. }
  1302. // Level 3 description
  1303. itemDef
  1304. {
  1305. name absorb_level3desc
  1306. group leveltext
  1307. rect 157 364 460 60
  1308. text @SP_INGAME_FORCE_ABSORB_LVL3_DESC
  1309. font 4
  1310. forecolor 1 1 1 1
  1311. textscale 1
  1312. textalign ITEM_ALIGN_LEFT
  1313. textalignx 0
  1314. textaligny -1
  1315. visible 0
  1316. autowrapped
  1317. type ITEM_TYPE_TEXTSCROLL
  1318. lineHeight 13
  1319. }
  1320. //----------------------------------------------------------------------------------------------
  1321. // HEAL DESCRIPTION
  1322. //----------------------------------------------------------------------------------------------
  1323. itemDef
  1324. {
  1325. name heal_level1desc
  1326. group leveltext
  1327. rect 157 364 460 60
  1328. text @SP_INGAME_FORCE_HEAL_LVL1_DESC
  1329. font 4
  1330. forecolor 1 1 1 1
  1331. textscale 1
  1332. textalign ITEM_ALIGN_LEFT
  1333. textalignx 0
  1334. textaligny -1
  1335. visible 0
  1336. autowrapped
  1337. type ITEM_TYPE_TEXTSCROLL
  1338. lineHeight 13
  1339. }
  1340. itemDef
  1341. {
  1342. name heal_level2desc
  1343. group leveltext
  1344. rect 157 364 460 60
  1345. text @SP_INGAME_FORCE_HEAL_LVL2_DESC
  1346. font 4
  1347. forecolor 1 1 1 1
  1348. textscale 1
  1349. textalign ITEM_ALIGN_LEFT
  1350. textalignx 0
  1351. textaligny -1
  1352. visible 0
  1353. autowrapped
  1354. type ITEM_TYPE_TEXTSCROLL
  1355. lineHeight 13
  1356. }
  1357. itemDef
  1358. {
  1359. name heal_level3desc
  1360. group leveltext
  1361. rect 157 364 460 60
  1362. text @SP_INGAME_FORCE_HEAL_LVL3_DESC
  1363. font 4
  1364. forecolor 1 1 1 1
  1365. textscale 1
  1366. textalign ITEM_ALIGN_LEFT
  1367. textalignx 0
  1368. textaligny -1
  1369. visible 0
  1370. autowrapped
  1371. type ITEM_TYPE_TEXTSCROLL
  1372. lineHeight 13
  1373. }
  1374. //----------------------------------------------------------------------------------------------
  1375. // MIND TRICK DESCRIPTION
  1376. //----------------------------------------------------------------------------------------------
  1377. itemDef
  1378. {
  1379. name mindtrick_level1desc
  1380. group leveltext
  1381. rect 157 364 460 60
  1382. text @SP_INGAME_FORCE_MIND_TRICK_LVL1_DESC
  1383. font 4
  1384. forecolor 1 1 1 1
  1385. textscale 1
  1386. textalign ITEM_ALIGN_LEFT
  1387. textalignx 0
  1388. textaligny -1
  1389. visible 0
  1390. autowrapped
  1391. type ITEM_TYPE_TEXTSCROLL
  1392. lineHeight 13
  1393. }
  1394. itemDef
  1395. {
  1396. name mindtrick_level2desc
  1397. group leveltext
  1398. rect 157 364 460 60
  1399. text @SP_INGAME_FORCE_MIND_TRICK_LVL2_DESC
  1400. font 4
  1401. forecolor 1 1 1 1
  1402. textscale 1
  1403. textalign ITEM_ALIGN_LEFT
  1404. textalignx 0
  1405. textaligny -1
  1406. visible 0
  1407. autowrapped
  1408. type ITEM_TYPE_TEXTSCROLL
  1409. lineHeight 13
  1410. }
  1411. itemDef
  1412. {
  1413. name mindtrick_level3desc
  1414. group leveltext
  1415. rect 157 364 460 60
  1416. text @SP_INGAME_FORCE_MIND_TRICK_LVL3_DESC
  1417. font 4
  1418. forecolor 1 1 1 1
  1419. textscale 1
  1420. textalign ITEM_ALIGN_LEFT
  1421. textalignx 0
  1422. textaligny -1
  1423. visible 0
  1424. autowrapped
  1425. type ITEM_TYPE_TEXTSCROLL
  1426. lineHeight 13
  1427. }
  1428. //----------------------------------------------------------------------------------------------
  1429. // PROTECT DESCRIPTION
  1430. //----------------------------------------------------------------------------------------------
  1431. itemDef
  1432. {
  1433. name protect_level1desc
  1434. group leveltext
  1435. rect 157 364 460 60
  1436. text @SP_INGAME_FORCE_PROTECT_LVL1_DESC
  1437. font 4
  1438. forecolor 1 1 1 1
  1439. textscale 1
  1440. textalign ITEM_ALIGN_LEFT
  1441. textalignx 0
  1442. textaligny -1
  1443. visible 0
  1444. autowrapped
  1445. type ITEM_TYPE_TEXTSCROLL
  1446. lineHeight 13
  1447. }
  1448. itemDef
  1449. {
  1450. name protect_level2desc
  1451. group leveltext
  1452. rect 157 364 460 60
  1453. text @SP_INGAME_FORCE_PROTECT_LVL2_DESC
  1454. font 4
  1455. forecolor 1 1 1 1
  1456. textscale 1
  1457. textalign ITEM_ALIGN_LEFT
  1458. textalignx 0
  1459. textaligny -1
  1460. visible 0
  1461. autowrapped
  1462. type ITEM_TYPE_TEXTSCROLL
  1463. lineHeight 13
  1464. }
  1465. itemDef
  1466. {
  1467. name protect_level3desc
  1468. group leveltext
  1469. rect 157 364 460 60
  1470. text @SP_INGAME_FORCE_PROTECT_LVL3_DESC
  1471. font 4
  1472. forecolor 1 1 1 1
  1473. textscale 1
  1474. textalign ITEM_ALIGN_LEFT
  1475. textalignx 0
  1476. textaligny -1
  1477. visible 0
  1478. autowrapped
  1479. type ITEM_TYPE_TEXTSCROLL
  1480. lineHeight 13
  1481. }
  1482. //----------------------------------------------------------------------------------------------
  1483. //
  1484. // JUMP DESCRIPTION
  1485. //
  1486. //----------------------------------------------------------------------------------------------
  1487. itemDef
  1488. {
  1489. name jump_level1desc
  1490. group leveltext
  1491. rect 157 364 460 60
  1492. text @SP_INGAME_FORCE_JUMP_LVL1_DESC
  1493. font 4
  1494. forecolor 1 1 1 1
  1495. textscale 1
  1496. textalign ITEM_ALIGN_LEFT
  1497. textalignx 0
  1498. textaligny -1
  1499. visible 0
  1500. autowrapped
  1501. type ITEM_TYPE_TEXTSCROLL
  1502. lineHeight 13
  1503. }
  1504. itemDef
  1505. {
  1506. name jump_level2desc
  1507. group leveltext
  1508. rect 157 364 460 60
  1509. text @SP_INGAME_FORCE_JUMP_LVL2_DESC
  1510. font 4
  1511. forecolor 1 1 1 1
  1512. textscale 1
  1513. textalign ITEM_ALIGN_LEFT
  1514. textalignx 0
  1515. textaligny -1
  1516. visible 0
  1517. autowrapped
  1518. type ITEM_TYPE_TEXTSCROLL
  1519. lineHeight 13
  1520. }
  1521. itemDef
  1522. {
  1523. name jump_level3desc
  1524. group leveltext
  1525. rect 157 364 460 60
  1526. text @SP_INGAME_FORCE_JUMP_LVL3_DESC
  1527. font 4
  1528. forecolor 1 1 1 1
  1529. textscale 1
  1530. textalign ITEM_ALIGN_LEFT
  1531. textalignx 0
  1532. textaligny -1
  1533. visible 0
  1534. autowrapped
  1535. type ITEM_TYPE_TEXTSCROLL
  1536. lineHeight 13
  1537. }
  1538. //----------------------------------------------------------------------------------------------
  1539. // PULL DESCRIPTION
  1540. //----------------------------------------------------------------------------------------------
  1541. itemDef
  1542. {
  1543. name pull_level1desc
  1544. group leveltext
  1545. rect 157 364 460 60
  1546. text @SP_INGAME_FORCE_PULL_LVL1_DESC
  1547. font 4
  1548. forecolor 1 1 1 1
  1549. textscale 1
  1550. textalign ITEM_ALIGN_LEFT
  1551. textalignx 0
  1552. textaligny -1
  1553. visible 0
  1554. autowrapped
  1555. type ITEM_TYPE_TEXTSCROLL
  1556. lineHeight 13
  1557. }
  1558. itemDef
  1559. {
  1560. name pull_level2desc
  1561. group leveltext
  1562. rect 157 364 460 60
  1563. text @SP_INGAME_FORCE_PULL_LVL2_DESC
  1564. font 4
  1565. forecolor 1 1 1 1
  1566. textscale 1
  1567. textalign ITEM_ALIGN_LEFT
  1568. textalignx 0
  1569. textaligny -1
  1570. visible 0
  1571. autowrapped
  1572. type ITEM_TYPE_TEXTSCROLL
  1573. lineHeight 13
  1574. }
  1575. itemDef
  1576. {
  1577. name pull_level3desc
  1578. group leveltext
  1579. rect 157 364 460 60
  1580. text @SP_INGAME_FORCE_PULL_LVL3_DESC
  1581. font 4
  1582. forecolor 1 1 1 1
  1583. textscale 1
  1584. textalign ITEM_ALIGN_LEFT
  1585. textalignx 0
  1586. textaligny -1
  1587. visible 0
  1588. autowrapped
  1589. type ITEM_TYPE_TEXTSCROLL
  1590. lineHeight 13
  1591. }
  1592. //----------------------------------------------------------------------------------------------
  1593. // PUSH DESCRIPTION
  1594. //----------------------------------------------------------------------------------------------
  1595. itemDef
  1596. {
  1597. name push_level1desc
  1598. group leveltext
  1599. rect 157 364 460 60
  1600. text @SP_INGAME_FORCE_PUSH_LVL1_DESC
  1601. font 4
  1602. forecolor 1 1 1 1
  1603. textscale 1
  1604. textalign ITEM_ALIGN_LEFT
  1605. textalignx 0
  1606. textaligny -1
  1607. visible 0
  1608. autowrapped
  1609. type ITEM_TYPE_TEXTSCROLL
  1610. lineHeight 13
  1611. }
  1612. itemDef
  1613. {
  1614. name push_level2desc
  1615. group leveltext
  1616. rect 157 364 460 60
  1617. text @SP_INGAME_FORCE_PUSH_LVL2_DESC
  1618. font 4
  1619. forecolor 1 1 1 1
  1620. textscale 1
  1621. textalign ITEM_ALIGN_LEFT
  1622. textalignx 0
  1623. textaligny -1
  1624. visible 0
  1625. autowrapped
  1626. type ITEM_TYPE_TEXTSCROLL
  1627. lineHeight 13
  1628. }
  1629. itemDef
  1630. {
  1631. name push_level3desc
  1632. group leveltext
  1633. rect 157 364 460 60
  1634. text @SP_INGAME_FORCE_PUSH_LVL3_DESC
  1635. font 4
  1636. forecolor 1 1 1 1
  1637. textscale 1
  1638. textalign ITEM_ALIGN_LEFT
  1639. textalignx 0
  1640. textaligny -1
  1641. visible 0
  1642. autowrapped
  1643. type ITEM_TYPE_TEXTSCROLL
  1644. lineHeight 13
  1645. }
  1646. //----------------------------------------------------------------------------------------------
  1647. // SENSE DESCRIPTION
  1648. //----------------------------------------------------------------------------------------------
  1649. itemDef
  1650. {
  1651. name big_sense
  1652. group bigicons
  1653. style WINDOW_STYLE_SHADER
  1654. rect 30 265 128 128
  1655. background "gfx/mp/NEW_f_icon_sight"
  1656. forecolor 1 1 1 1
  1657. visible 0
  1658. decoration
  1659. }
  1660. itemDef
  1661. {
  1662. name sense_text
  1663. group mainpowertext
  1664. rect 157 264 460 120
  1665. text @SP_INGAME_FORCE_SENSE_DESC
  1666. font 4
  1667. forecolor 1 1 1 1
  1668. textscale 1
  1669. textalign ITEM_ALIGN_LEFT
  1670. textalignx 0
  1671. textaligny -1
  1672. visible 0
  1673. autowrapped
  1674. decoration
  1675. }
  1676. itemDef
  1677. {
  1678. name sense_level1desc
  1679. group leveltext
  1680. rect 157 364 460 60
  1681. text @SP_INGAME_FORCE_SENSE_LVL1_DESC
  1682. font 4
  1683. forecolor 1 1 1 1
  1684. textscale 1
  1685. textalign ITEM_ALIGN_LEFT
  1686. textalignx 0
  1687. textaligny -1
  1688. visible 0
  1689. autowrapped
  1690. type ITEM_TYPE_TEXTSCROLL
  1691. lineHeight 13
  1692. }
  1693. itemDef
  1694. {
  1695. name sense_level2desc
  1696. group leveltext
  1697. rect 157 364 460 60
  1698. text @SP_INGAME_FORCE_SENSE_LVL2_DESC
  1699. font 4
  1700. forecolor 1 1 1 1
  1701. textscale 1
  1702. textalign ITEM_ALIGN_LEFT
  1703. textalignx 0
  1704. textaligny -1
  1705. visible 0
  1706. autowrapped
  1707. type ITEM_TYPE_TEXTSCROLL
  1708. lineHeight 13
  1709. }
  1710. itemDef
  1711. {
  1712. name sense_level3desc
  1713. group leveltext
  1714. rect 157 364 460 60
  1715. text @SP_INGAME_FORCE_SENSE_LVL3_DESC
  1716. font 4
  1717. forecolor 1 1 1 1
  1718. textscale 1
  1719. textalign ITEM_ALIGN_LEFT
  1720. textalignx 0
  1721. textaligny -1
  1722. visible 0
  1723. autowrapped
  1724. type ITEM_TYPE_TEXTSCROLL
  1725. lineHeight 13
  1726. }
  1727. //----------------------------------------------------------------------------------------------
  1728. // SPEED DESCRIPTION
  1729. //----------------------------------------------------------------------------------------------
  1730. itemDef
  1731. {
  1732. name speed_level1desc
  1733. group leveltext
  1734. rect 157 364 460 60
  1735. text @SP_INGAME_FORCE_SPEED_LVL1_DESC
  1736. font 4
  1737. forecolor 1 1 1 1
  1738. textscale 1
  1739. textalign ITEM_ALIGN_LEFT
  1740. textalignx 0
  1741. textaligny -1
  1742. visible 0
  1743. autowrapped
  1744. type ITEM_TYPE_TEXTSCROLL
  1745. lineHeight 13
  1746. }
  1747. itemDef
  1748. {
  1749. name speed_level2desc
  1750. group leveltext
  1751. rect 157 364 460 60
  1752. text @SP_INGAME_FORCE_SPEED_LVL2_DESC
  1753. font 4
  1754. forecolor 1 1 1 1
  1755. textscale 1
  1756. textalign ITEM_ALIGN_LEFT
  1757. textalignx 0
  1758. textaligny -1
  1759. visible 0
  1760. autowrapped
  1761. type ITEM_TYPE_TEXTSCROLL
  1762. lineHeight 13
  1763. }
  1764. itemDef
  1765. {
  1766. name speed_level3desc
  1767. group leveltext
  1768. rect 157 364 460 60
  1769. text @SP_INGAME_FORCE_SPEED_LVL3_DESC
  1770. font 4
  1771. forecolor 1 1 1 1
  1772. textscale 1
  1773. textalign ITEM_ALIGN_LEFT
  1774. textalignx 0
  1775. textaligny -1
  1776. visible 0
  1777. autowrapped
  1778. type ITEM_TYPE_TEXTSCROLL
  1779. lineHeight 13
  1780. }
  1781. //----------------------------------------------------------------------------------------------
  1782. // SABER DEFENSE DESCRIPTION
  1783. //----------------------------------------------------------------------------------------------
  1784. itemDef
  1785. {
  1786. name sabdef_level1desc
  1787. group leveltext
  1788. rect 157 364 460 60
  1789. text @SP_INGAME_FORCE_SABER_DEFENSE_LVL1_DESC
  1790. font 4
  1791. forecolor 1 1 1 1
  1792. textscale 1
  1793. textalign ITEM_ALIGN_LEFT
  1794. textalignx 0
  1795. textaligny -1
  1796. visible 0
  1797. autowrapped
  1798. type ITEM_TYPE_TEXTSCROLL
  1799. lineHeight 13
  1800. }
  1801. itemDef
  1802. {
  1803. name sabdef_level2desc
  1804. group leveltext
  1805. rect 157 364 460 60
  1806. text @SP_INGAME_FORCE_SABER_DEFENSE_LVL2_DESC
  1807. font 4
  1808. forecolor 1 1 1 1
  1809. textscale 1
  1810. textalign ITEM_ALIGN_LEFT
  1811. textalignx 0
  1812. textaligny -1
  1813. visible 0
  1814. autowrapped
  1815. type ITEM_TYPE_TEXTSCROLL
  1816. lineHeight 13
  1817. }
  1818. itemDef
  1819. {
  1820. name sabdef_level3desc
  1821. group leveltext
  1822. rect 157 364 460 60
  1823. text @SP_INGAME_FORCE_SABER_DEFENSE_LVL3_DESC
  1824. font 4
  1825. forecolor 1 1 1 1
  1826. textscale 1
  1827. textalign ITEM_ALIGN_LEFT
  1828. textalignx 0
  1829. textaligny -1
  1830. visible 0
  1831. autowrapped
  1832. type ITEM_TYPE_TEXTSCROLL
  1833. lineHeight 13
  1834. }
  1835. //----------------------------------------------------------------------------------------------
  1836. // SABER OFFENSE DESCRIPTION
  1837. //----------------------------------------------------------------------------------------------
  1838. itemDef
  1839. {
  1840. name saboff_text
  1841. group mainpowertext
  1842. rect 157 264 460 120
  1843. text @SP_INGAME_FORCE_SABER_OFFENSE_DESC
  1844. font 4
  1845. forecolor 1 1 1 1
  1846. textscale 1
  1847. textalign ITEM_ALIGN_LEFT
  1848. textalignx 0
  1849. textaligny -1
  1850. visible 0
  1851. autowrapped
  1852. decoration
  1853. }
  1854. itemDef
  1855. {
  1856. name saboff_level1desc
  1857. group leveltext
  1858. rect 157 364 460 60
  1859. text @SP_INGAME_FORCE_SABER_OFFENSE_LVL1_DESC
  1860. font 4
  1861. forecolor 1 1 1 1
  1862. textscale 1
  1863. textalign ITEM_ALIGN_LEFT
  1864. textalignx 0
  1865. textaligny -1
  1866. visible 0
  1867. autowrapped
  1868. type ITEM_TYPE_TEXTSCROLL
  1869. lineHeight 13
  1870. }
  1871. itemDef
  1872. {
  1873. name saboff_level2desc
  1874. group leveltext
  1875. rect 157 364 460 60
  1876. text @SP_INGAME_FORCE_SABER_OFFENSE_LVL2_DESC
  1877. font 4
  1878. forecolor 1 1 1 1
  1879. textscale 1
  1880. textalign ITEM_ALIGN_LEFT
  1881. textalignx 0
  1882. textaligny -1
  1883. visible 0
  1884. autowrapped
  1885. type ITEM_TYPE_TEXTSCROLL
  1886. lineHeight 13
  1887. }
  1888. itemDef
  1889. {
  1890. name saboff_level3desc
  1891. group leveltext
  1892. rect 157 364 460 60
  1893. text @SP_INGAME_FORCE_SABER_OFFENSE_LVL3_DESC
  1894. font 4
  1895. forecolor 1 1 1 1
  1896. textscale 1
  1897. textalign ITEM_ALIGN_LEFT
  1898. textalignx 0
  1899. textaligny -1
  1900. visible 0
  1901. autowrapped
  1902. type ITEM_TYPE_TEXTSCROLL
  1903. lineHeight 13
  1904. }
  1905. //----------------------------------------------------------------------------------------------
  1906. // SABER THROW DESCRIPTION
  1907. //----------------------------------------------------------------------------------------------
  1908. itemDef
  1909. {
  1910. name sabthrow_level1desc
  1911. group leveltext
  1912. rect 157 364 460 60
  1913. text @SP_INGAME_FORCE_SABER_THROW_LVL1_DESC
  1914. font 4
  1915. forecolor 1 1 1 1
  1916. textscale 1
  1917. textalign ITEM_ALIGN_LEFT
  1918. textalignx 0
  1919. textaligny -1
  1920. visible 0
  1921. autowrapped
  1922. type ITEM_TYPE_TEXTSCROLL
  1923. lineHeight 13
  1924. }
  1925. itemDef
  1926. {
  1927. name sabthrow_level2desc
  1928. group leveltext
  1929. rect 157 364 460 60
  1930. text @SP_INGAME_FORCE_SABER_THROW_LVL2_DESC
  1931. font 4
  1932. forecolor 1 1 1 1
  1933. textscale 1
  1934. textalign ITEM_ALIGN_LEFT
  1935. textalignx 0
  1936. textaligny -1
  1937. visible 0
  1938. autowrapped
  1939. type ITEM_TYPE_TEXTSCROLL
  1940. lineHeight 13
  1941. }
  1942. itemDef
  1943. {
  1944. name sabthrow_level3desc
  1945. group leveltext
  1946. rect 157 364 460 60
  1947. text @SP_INGAME_FORCE_SABER_THROW_LVL3_DESC
  1948. font 4
  1949. forecolor 1 1 1 1
  1950. textscale 1
  1951. textalign ITEM_ALIGN_LEFT
  1952. textalignx 0
  1953. textaligny -1
  1954. visible 0
  1955. autowrapped
  1956. type ITEM_TYPE_TEXTSCROLL
  1957. lineHeight 13
  1958. }
  1959. //----------------------------------------------------------------------------------------------
  1960. // DRAIN DESCRIPTION
  1961. //----------------------------------------------------------------------------------------------
  1962. itemDef
  1963. {
  1964. name drain_level1desc
  1965. group leveltext
  1966. rect 157 364 460 60
  1967. text @SP_INGAME_FORCE_DRAIN_LVL1_DESC
  1968. font 4
  1969. forecolor 1 1 1 1
  1970. textscale 1
  1971. textalign ITEM_ALIGN_LEFT
  1972. textalignx 0
  1973. textaligny -1
  1974. visible 0
  1975. autowrapped
  1976. type ITEM_TYPE_TEXTSCROLL
  1977. lineHeight 13
  1978. }
  1979. itemDef
  1980. {
  1981. name drain_level2desc
  1982. group leveltext
  1983. rect 157 364 460 60
  1984. text @SP_INGAME_FORCE_DRAIN_LVL2_DESC
  1985. font 4
  1986. forecolor 1 1 1 1
  1987. textscale 1
  1988. textalign ITEM_ALIGN_LEFT
  1989. textalignx 0
  1990. textaligny -1
  1991. visible 0
  1992. autowrapped
  1993. type ITEM_TYPE_TEXTSCROLL
  1994. lineHeight 13
  1995. }
  1996. itemDef
  1997. {
  1998. name drain_level3desc
  1999. group leveltext
  2000. rect 157 364 460 60
  2001. text @SP_INGAME_FORCE_DRAIN_LVL3_DESC
  2002. font 4
  2003. forecolor 1 1 1 1
  2004. textscale 1
  2005. textalign ITEM_ALIGN_LEFT
  2006. textalignx 0
  2007. textaligny -1
  2008. visible 0
  2009. autowrapped
  2010. type ITEM_TYPE_TEXTSCROLL
  2011. lineHeight 13
  2012. }
  2013. //----------------------------------------------------------------------------------------------
  2014. // GRIP DESCRIPTION
  2015. //----------------------------------------------------------------------------------------------
  2016. itemDef
  2017. {
  2018. name grip_level1desc
  2019. group leveltext
  2020. rect 157 364 460 60
  2021. text @SP_INGAME_FORCE_GRIP_LVL1_DESC
  2022. font 4
  2023. forecolor 1 1 1 1
  2024. textscale 1
  2025. textalign ITEM_ALIGN_LEFT
  2026. textalignx 0
  2027. textaligny -1
  2028. visible 0
  2029. autowrapped
  2030. type ITEM_TYPE_TEXTSCROLL
  2031. lineHeight 13
  2032. }
  2033. itemDef
  2034. {
  2035. name grip_level2desc
  2036. group leveltext
  2037. rect 157 364 460 60
  2038. text @SP_INGAME_FORCE_GRIP_LVL2_DESC
  2039. font 4
  2040. forecolor 1 1 1 1
  2041. textscale 1
  2042. textalign ITEM_ALIGN_LEFT
  2043. textalignx 0
  2044. textaligny -1
  2045. visible 0
  2046. autowrapped
  2047. type ITEM_TYPE_TEXTSCROLL
  2048. lineHeight 13
  2049. }
  2050. itemDef
  2051. {
  2052. name grip_level3desc
  2053. group leveltext
  2054. rect 157 364 460 60
  2055. text @SP_INGAME_FORCE_GRIP_LVL3_DESC
  2056. font 4
  2057. forecolor 1 1 1 1
  2058. textscale 1
  2059. textalign ITEM_ALIGN_LEFT
  2060. textalignx 0
  2061. textaligny -1
  2062. visible 0
  2063. autowrapped
  2064. type ITEM_TYPE_TEXTSCROLL
  2065. lineHeight 13
  2066. }
  2067. //----------------------------------------------------------------------------------------------
  2068. // LIGHTNING DESCRIPTION
  2069. //----------------------------------------------------------------------------------------------
  2070. itemDef
  2071. {
  2072. name lightning_level1desc
  2073. group leveltext
  2074. rect 157 364 460 60
  2075. text @SP_INGAME_FORCE_LIGHTNING_LVL1_DESC
  2076. font 4
  2077. forecolor 1 1 1 1
  2078. textscale 1
  2079. textalign ITEM_ALIGN_LEFT
  2080. textalignx 0
  2081. textaligny -1
  2082. visible 0
  2083. autowrapped
  2084. type ITEM_TYPE_TEXTSCROLL
  2085. lineHeight 13
  2086. }
  2087. itemDef
  2088. {
  2089. name lightning_level2desc
  2090. group leveltext
  2091. rect 157 364 460 60
  2092. text @SP_INGAME_FORCE_LIGHTNING_LVL2_DESC
  2093. font 4
  2094. forecolor 1 1 1 1
  2095. textscale 1
  2096. textalign ITEM_ALIGN_LEFT
  2097. textalignx 0
  2098. textaligny -1
  2099. visible 0
  2100. autowrapped
  2101. type ITEM_TYPE_TEXTSCROLL
  2102. lineHeight 13
  2103. }
  2104. itemDef
  2105. {
  2106. name lightning_level3desc
  2107. group leveltext
  2108. rect 157 364 460 60
  2109. text @SP_INGAME_FORCE_LIGHTNING_LVL3_DESC
  2110. font 4
  2111. forecolor 1 1 1 1
  2112. textscale 1
  2113. textalign ITEM_ALIGN_LEFT
  2114. textalignx 0
  2115. textaligny -1
  2116. visible 0
  2117. autowrapped
  2118. type ITEM_TYPE_TEXTSCROLL
  2119. lineHeight 13
  2120. }
  2121. //----------------------------------------------------------------------------------------------
  2122. // RAGE DESCRIPTION
  2123. //----------------------------------------------------------------------------------------------
  2124. itemDef
  2125. {
  2126. name rage_level1desc
  2127. group leveltext
  2128. rect 157 364 460 60
  2129. text @SP_INGAME_FORCE_RAGE_LVL1_DESC
  2130. font 4
  2131. forecolor 1 1 1 1
  2132. textscale 1
  2133. textalign ITEM_ALIGN_LEFT
  2134. textalignx 0
  2135. textaligny -1
  2136. visible 0
  2137. autowrapped
  2138. type ITEM_TYPE_TEXTSCROLL
  2139. lineHeight 13
  2140. }
  2141. itemDef
  2142. {
  2143. name rage_level2desc
  2144. group leveltext
  2145. rect 157 364 460 60
  2146. text @SP_INGAME_FORCE_RAGE_LVL2_DESC
  2147. font 4
  2148. forecolor 1 1 1 1
  2149. textscale 1
  2150. textalign ITEM_ALIGN_LEFT
  2151. textalignx 0
  2152. textaligny -1
  2153. visible 0
  2154. autowrapped
  2155. type ITEM_TYPE_TEXTSCROLL
  2156. lineHeight 13
  2157. }
  2158. itemDef
  2159. {
  2160. name rage_level3desc
  2161. group leveltext
  2162. rect 157 384 460 40
  2163. text @SP_INGAME_FORCE_RAGE_LVL3_DESC
  2164. font 4
  2165. forecolor 1 1 1 1
  2166. textscale 1
  2167. textalign ITEM_ALIGN_LEFT
  2168. textalignx 0
  2169. textaligny -1
  2170. visible 0
  2171. autowrapped
  2172. type ITEM_TYPE_TEXTSCROLL
  2173. lineHeight 13
  2174. }
  2175. //----------------------------------------------------------------------------------------------
  2176. // BOTTOM ROW OF BUTTONS
  2177. //----------------------------------------------------------------------------------------------
  2178. itemDef
  2179. {
  2180. name backbut
  2181. type ITEM_TYPE_BUTTON
  2182. rect 30 447 140 24
  2183. text @MENUS_HELP
  2184. font 2
  2185. forecolor 1 .682 0 1
  2186. textscale 1
  2187. textalign ITEM_ALIGN_LEFT
  2188. textalignx 0
  2189. textaligny -1
  2190. desctext @MENUS_HELP_DESC1
  2191. visible 1
  2192. mouseEnter
  2193. {
  2194. }
  2195. mouseExit
  2196. {
  2197. }
  2198. // If we're backing up then we have to reset levels to what they were
  2199. action
  2200. {
  2201. play "sound/interface/menuroam.wav"
  2202. open ingameForceHelp
  2203. }
  2204. }
  2205. // do not change the name of this because it's made active/inactive in code
  2206. itemDef
  2207. {
  2208. name weaponbutton
  2209. type ITEM_TYPE_BUTTON
  2210. rect 336 447 140 24
  2211. text @MENUS_WEAPONS
  2212. font 2
  2213. forecolor 1 .682 0 1
  2214. textscale 1
  2215. textalign ITEM_ALIGN_LEFT
  2216. textalignx 0
  2217. textaligny -1
  2218. desctext @MENUS_CHOOSEWEAPONS
  2219. visible 1
  2220. mouseEnter
  2221. {
  2222. }
  2223. mouseExit
  2224. {
  2225. }
  2226. action
  2227. {
  2228. play "sound/interface/menuroam.wav"
  2229. close all
  2230. open demo_WpnSelect
  2231. }
  2232. }
  2233. //----------------------------------------------------------------------------------------------
  2234. //
  2235. // SCANLINES
  2236. //
  2237. //----------------------------------------------------------------------------------------------
  2238. itemDef
  2239. {
  2240. name scan
  2241. group none
  2242. style WINDOW_STYLE_SHADER
  2243. rect 0 0 640 640
  2244. background "gfx/menus/scanlines"
  2245. forecolor 1 1 1 1
  2246. visible 1
  2247. decoration
  2248. }
  2249. }
  2250. }