datapadweapons.menu 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412
  1. //----------------------------------------------------------------------------------------------
  2. // Data Pad : Weapons Screen
  3. //
  4. //----------------------------------------------------------------------------------------------
  5. {
  6. menuDef
  7. {
  8. name "datapadWeaponsMenu"
  9. fullScreen 1 // MENU_TRUE
  10. rect 0 0 640 480 // Size and position of the menu
  11. visible 1 // Visible on open
  12. focusColor 1 1 1 1 // Focus color for text and items
  13. descX 320
  14. descY 444
  15. descScale 1
  16. descColor 1 .682 0 .8
  17. descAlignment ITEM_ALIGN_CENTER
  18. onESC
  19. {
  20. play "sound/interface/esc.wav"
  21. uiScript closedatapad // Close menu
  22. }
  23. onOpen
  24. {
  25. uiScript nextDataPadWeapon
  26. }
  27. //----------------------------------------------------------------------------------------------
  28. // MENU BACKGROUND
  29. //----------------------------------------------------------------------------------------------
  30. itemDef
  31. {
  32. name background
  33. group none
  34. rect 0 0 640 480
  35. style WINDOW_STYLE_SHADER
  36. background "gfx/menus/datapad"
  37. forecolor 1 1 1 1
  38. visible 1
  39. decoration
  40. }
  41. //----------------------------------------------------------------------------------------------
  42. // MISSION TEXT
  43. //----------------------------------------------------------------------------------------------
  44. itemDef
  45. {
  46. name weapons
  47. group none
  48. style WINDOW_STYLE_EMPTY
  49. type ITEM_TYPE_OWNERDRAW
  50. rect 50 150 95 40
  51. textscale .8
  52. forecolor .509 .609 .847 1
  53. visible 1
  54. ownerdraw 204 // UI_DATAPAD_WEAPONS
  55. }
  56. itemDef
  57. {
  58. name screen_title
  59. type ITEM_TYPE_TEXT
  60. rect 170 3 300 26
  61. text @MENUS_DATAPADTITLE
  62. font 3
  63. forecolor .549 .854 1 1
  64. textscale 1.2
  65. textalign ITEM_ALIGN_CENTER
  66. textalignx 150
  67. visible 1
  68. decoration
  69. }
  70. itemDef
  71. {
  72. name weapon1
  73. group none
  74. style WINDOW_STYLE_SHADER
  75. rect 0 0 640 480
  76. forecolor 1 1 1 1
  77. visible 0
  78. decoration
  79. }
  80. // Weapon Line 1
  81. itemDef
  82. {
  83. name weapon1_line1
  84. group none
  85. text @MENUS_THIS_IS_LINE_1
  86. font 2
  87. textscale 1
  88. textstyle 3
  89. rect 320 220 110 20
  90. textalign ITEM_ALIGN_LEFT
  91. textalignx 30
  92. textaligny 100
  93. decoration
  94. forecolor .433 .703 .722 1
  95. visible 0
  96. }
  97. itemDef
  98. {
  99. name prevweapon_on
  100. group none
  101. style WINDOW_STYLE_SHADER
  102. rect 245 382 32 26
  103. background "gfx/menus/dp_arrow_lon" // Frame
  104. forecolor 1 1 1 1
  105. decoration
  106. visible 0
  107. }
  108. itemDef
  109. {
  110. name prevweapon_off
  111. group none
  112. style WINDOW_STYLE_SHADER
  113. rect 245 382 32 26
  114. background "gfx/menus/dp_arrow_l" // Frame
  115. forecolor 1 1 1 1
  116. decoration
  117. visible 1
  118. }
  119. itemDef
  120. {
  121. name prevweapon
  122. group none
  123. style WINDOW_STYLE_EMPTY
  124. type ITEM_TYPE_BUTTON
  125. desctext @MENUS_DP_WEAPON_PREV
  126. rect 245 382 32 26
  127. font 2
  128. textscale 1
  129. textalignx 48
  130. textalign ITEM_ALIGN_CENTER
  131. forecolor 1 .682 0 1
  132. visible 1
  133. action
  134. {
  135. play "sound/interface/button1.wav" ;
  136. uiScript prevDataPadWeapon
  137. }
  138. mouseEnter
  139. {
  140. hide prevweapon_off
  141. show prevweapon_on
  142. }
  143. mouseExit
  144. {
  145. show prevweapon_off
  146. hide prevweapon_on
  147. }
  148. }
  149. itemDef
  150. {
  151. name nextweapon_on
  152. group none
  153. style WINDOW_STYLE_SHADER
  154. rect 364 382 32 26
  155. background "gfx/menus/dp_arrow_ron" // Frame
  156. forecolor 1 1 1 1
  157. decoration
  158. visible 0
  159. }
  160. itemDef
  161. {
  162. name nextweapon_off
  163. group none
  164. style WINDOW_STYLE_SHADER
  165. rect 364 382 32 26
  166. background "gfx/menus/dp_arrow_r" // Frame
  167. forecolor 1 1 1 1
  168. decoration
  169. visible 1
  170. }
  171. itemDef
  172. {
  173. name nextweapon
  174. group none
  175. style WINDOW_STYLE_EMPTY
  176. type ITEM_TYPE_BUTTON
  177. rect 364 382 32 26
  178. font 2
  179. desctext @MENUS_DP_WEAPON_NEXT
  180. textscale 1
  181. textalignx 48
  182. textalign ITEM_ALIGN_CENTER
  183. forecolor 1 .682 0 1
  184. visible 1
  185. action
  186. {
  187. play "sound/interface/button1.wav" ;
  188. uiScript nextDataPadWeapon
  189. }
  190. mouseEnter
  191. {
  192. hide nextweapon_off
  193. show nextweapon_on
  194. }
  195. mouseExit
  196. {
  197. show nextweapon_off
  198. hide nextweapon_on
  199. }
  200. }
  201. //----------------------------------------------------------------------------------------------
  202. // LOWER BUTTONS
  203. //----------------------------------------------------------------------------------------------
  204. itemDef
  205. {
  206. name mission
  207. group none
  208. style WINDOW_STYLE_EMPTY
  209. type ITEM_TYPE_BUTTON
  210. rect 20 420 120 25
  211. text @MENUS_DP_MISSION
  212. descText @MENUS_AN_OVERVIEW_OF_MISSION
  213. font 2
  214. textscale 1
  215. textalignx 60
  216. textalign ITEM_ALIGN_CENTER
  217. forecolor 1 .682 0 1
  218. visible 1
  219. mouseEnter
  220. {
  221. show button_glow
  222. setitemrect button_glow 10 419 150 30
  223. }
  224. mouseExit
  225. {
  226. hide button_glow
  227. }
  228. action
  229. {
  230. play "sound/interface/button1.wav" ;
  231. close all ;
  232. open datapadMissionMenu
  233. }
  234. }
  235. itemDef
  236. {
  237. name weapons
  238. group none
  239. style WINDOW_STYLE_EMPTY
  240. type ITEM_TYPE_BUTTON
  241. rect 140 420 120 25
  242. text @MENUS_WEAPONS
  243. descText @MENUS_VIEW_CURRENTLY_OWNED
  244. font 2
  245. textscale 1
  246. textalignx 60
  247. textalign ITEM_ALIGN_CENTER
  248. forecolor 1 1 1 1
  249. visible 1
  250. decoration
  251. }
  252. itemDef
  253. {
  254. name force
  255. group none
  256. style WINDOW_STYLE_EMPTY
  257. type ITEM_TYPE_BUTTON
  258. rect 260 420 120 25
  259. text @MENUS_DP_FORCE
  260. descText @MENUS_VIEW_CURRENT_FORCE_POWERS
  261. font 2
  262. textscale 1
  263. textalignx 60
  264. textalign ITEM_ALIGN_CENTER
  265. forecolor 1 .682 0 1
  266. visible 1
  267. mouseEnter
  268. {
  269. show button_glow
  270. setitemrect button_glow 250 419 150 30
  271. }
  272. mouseExit
  273. {
  274. hide button_glow
  275. }
  276. action
  277. {
  278. play "sound/interface/button1.wav" ;
  279. close all ;
  280. open datapadForcePowersMenu
  281. }
  282. }
  283. itemDef
  284. {
  285. name moves
  286. group none
  287. style WINDOW_STYLE_EMPTY
  288. type ITEM_TYPE_BUTTON
  289. rect 380 420 120 25
  290. text @MENUS_MOVES
  291. descText @MENUS_MOVES_DESC
  292. font 2
  293. textscale 1
  294. textalignx 60
  295. textalign ITEM_ALIGN_CENTER
  296. forecolor 1 .682 0 1
  297. visible 1
  298. mouseEnter
  299. {
  300. show button_glow
  301. setitemrect button_glow 370 419 150 30
  302. }
  303. mouseExit
  304. {
  305. hide button_glow
  306. }
  307. action
  308. {
  309. play "sound/interface/button1.wav" ;
  310. close all ;
  311. open datapadMovesMenu
  312. }
  313. }
  314. itemDef
  315. {
  316. name exit
  317. group none
  318. style WINDOW_STYLE_EMPTY
  319. type ITEM_TYPE_BUTTON
  320. rect 500 420 120 25
  321. text @MENUS_RESUME
  322. descText @MENUS_RETURN_TO_GAME
  323. font 2
  324. textscale 1
  325. textalignx 60
  326. textalign ITEM_ALIGN_CENTER
  327. forecolor 1 .682 0 1
  328. visible 1
  329. mouseEnter
  330. {
  331. show button_glow
  332. setitemrect button_glow 490 419 150 30
  333. }
  334. mouseExit
  335. {
  336. hide button_glow
  337. }
  338. action
  339. {
  340. play "sound/interface/button1.wav" ;
  341. uiScript closedatapad // Close menu
  342. }
  343. }
  344. itemDef
  345. {
  346. name button_glow
  347. group none
  348. style WINDOW_STYLE_SHADER
  349. rect 0 0 0 0
  350. background "gfx/menus/menu_buttonback"
  351. forecolor 1 1 1 1
  352. visible 0
  353. decoration
  354. }
  355. itemDef
  356. {
  357. name scan
  358. group none
  359. style WINDOW_STYLE_SHADER
  360. rect 0 0 640 640
  361. background "gfx/menus/scanlines"
  362. forecolor 1 1 1 1
  363. visible 1
  364. decoration
  365. }
  366. }
  367. }