ingameForceSelect.menu 64 KB

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