datapadforcepowers.menu 7.4 KB

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