datapadmission.menu 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. //----------------------------------------------------------------------------------------------
  2. // Data Pad : Mission Objectives Screen
  3. //
  4. //----------------------------------------------------------------------------------------------
  5. {
  6. menuDef
  7. {
  8. name "datapadMissionMenu"
  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. //----------------------------------------------------------------------------------------------
  24. // MENU BACKGROUND
  25. //----------------------------------------------------------------------------------------------
  26. itemDef
  27. {
  28. name background
  29. group none
  30. rect 0 0 640 480
  31. style WINDOW_STYLE_SHADER
  32. background "gfx/menus/datapad"
  33. forecolor 1 1 1 1
  34. visible 1
  35. decoration
  36. }
  37. //----------------------------------------------------------------------------------------------
  38. // MISSION TEXT
  39. //----------------------------------------------------------------------------------------------
  40. itemDef
  41. {
  42. name mission2
  43. group none
  44. style WINDOW_STYLE_EMPTY
  45. type ITEM_TYPE_OWNERDRAW
  46. rect 50 40 0 0 //This is set in the code
  47. textscale .4
  48. forecolor .509 .609 .847 1
  49. visible 1
  50. ownerdraw 203 // UI_DATAPAD_MISSION
  51. }
  52. itemDef
  53. {
  54. name screen_title
  55. type ITEM_TYPE_TEXT
  56. rect 170 3 300 26
  57. text @MENUS_DATAPADTITLE
  58. font 3
  59. forecolor .549 .854 1 1
  60. textscale 1.2
  61. textalign ITEM_ALIGN_CENTER
  62. textalignx 150
  63. visible 1
  64. decoration
  65. }
  66. //----------------------------------------------------------------------------------------------
  67. // LOWER BUTTONS
  68. //----------------------------------------------------------------------------------------------
  69. itemDef
  70. {
  71. name mission
  72. group none
  73. style WINDOW_STYLE_EMPTY
  74. type ITEM_TYPE_BUTTON
  75. rect 20 420 120 25
  76. text @MENUS_DP_MISSION
  77. descText @MENUS_AN_OVERVIEW_OF_MISSION
  78. font 2
  79. textscale 1
  80. textalignx 60
  81. textalign ITEM_ALIGN_CENTER
  82. forecolor 1 1 1 1
  83. visible 1
  84. decoration
  85. }
  86. itemDef
  87. {
  88. name weapons
  89. group none
  90. style WINDOW_STYLE_EMPTY
  91. type ITEM_TYPE_BUTTON
  92. rect 140 420 120 25
  93. text @MENUS_WEAPONS
  94. descText @MENUS_VIEW_CURRENTLY_OWNED
  95. font 2
  96. textscale 1
  97. textalignx 60
  98. textalign ITEM_ALIGN_CENTER
  99. forecolor 1 .682 0 1
  100. visible 1
  101. mouseEnter
  102. {
  103. show button_glow
  104. setitemrect button_glow 130 419 150 30
  105. }
  106. mouseExit
  107. {
  108. hide button_glow
  109. }
  110. action
  111. {
  112. play "sound/interface/button1.wav" ;
  113. close all ;
  114. open datapadWeaponsMenu
  115. }
  116. }
  117. itemDef
  118. {
  119. name force
  120. group none
  121. style WINDOW_STYLE_EMPTY
  122. type ITEM_TYPE_BUTTON
  123. rect 260 420 120 25
  124. text @MENUS_DP_FORCE
  125. descText @MENUS_VIEW_CURRENT_FORCE_POWERS
  126. font 2
  127. textscale 1
  128. textalignx 60
  129. textalign ITEM_ALIGN_CENTER
  130. forecolor 1 .682 0 1
  131. visible 1
  132. mouseEnter
  133. {
  134. show button_glow
  135. setitemrect button_glow 250 419 150 30
  136. }
  137. mouseExit
  138. {
  139. hide button_glow
  140. }
  141. action
  142. {
  143. play "sound/interface/button1.wav" ;
  144. close all ;
  145. open datapadForcePowersMenu
  146. }
  147. }
  148. itemDef
  149. {
  150. name moves
  151. group none
  152. style WINDOW_STYLE_EMPTY
  153. type ITEM_TYPE_BUTTON
  154. rect 380 420 120 25
  155. text @MENUS_MOVES
  156. descText @MENUS_MOVES_DESC
  157. font 2
  158. textscale 1
  159. textalignx 60
  160. textalign ITEM_ALIGN_CENTER
  161. forecolor 1 .682 0 1
  162. visible 1
  163. mouseEnter
  164. {
  165. show button_glow
  166. setitemrect button_glow 370 419 150 30
  167. }
  168. mouseExit
  169. {
  170. hide button_glow
  171. }
  172. action
  173. {
  174. play "sound/interface/button1.wav" ;
  175. close all ;
  176. open datapadMovesMenu
  177. }
  178. }
  179. itemDef
  180. {
  181. name exit
  182. group none
  183. style WINDOW_STYLE_EMPTY
  184. type ITEM_TYPE_BUTTON
  185. rect 500 420 120 25
  186. text @MENUS_RESUME
  187. descText @MENUS_RETURN_TO_GAME
  188. font 2
  189. textscale 1
  190. textalignx 60
  191. textalign ITEM_ALIGN_CENTER
  192. forecolor 1 .682 0 1
  193. visible 1
  194. mouseEnter
  195. {
  196. show button_glow
  197. setitemrect button_glow 490 419 150 30
  198. }
  199. mouseExit
  200. {
  201. hide button_glow
  202. }
  203. action
  204. {
  205. play "sound/interface/button1.wav" ;
  206. uiScript closedatapad // Close menu
  207. }
  208. }
  209. itemDef
  210. {
  211. name button_glow
  212. group none
  213. style WINDOW_STYLE_SHADER
  214. rect 0 0 0 0
  215. background "gfx/menus/menu_buttonback"
  216. forecolor 1 1 1 1
  217. visible 0
  218. decoration
  219. }
  220. itemDef
  221. {
  222. name scan
  223. group none
  224. style WINDOW_STYLE_SHADER
  225. rect 0 0 640 640
  226. background "gfx/menus/scanlines"
  227. forecolor 1 1 1 1
  228. visible 1
  229. decoration
  230. }
  231. }
  232. }