missionfailed.menu 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. //--------------------------------------------------------------
  2. //
  3. // MISSION FAILED MENU
  4. //
  5. // Displays choices after player death
  6. //
  7. //--------------------------------------------------------------
  8. {
  9. menuDef
  10. {
  11. name "missionfailed_menu"
  12. visible 0
  13. // Not full screen so we can see the game behind it.
  14. fullscreen 0
  15. rect 0 0 640 480
  16. focusColor 1 1 1 1
  17. style WINDOW_STYLE_FILLED
  18. border 1
  19. descX 320
  20. descY 458
  21. descScale 1
  22. descColor 1 .682 0 .8
  23. descAlignment ITEM_ALIGN_CENTER
  24. ignoreescape 1
  25. onClose
  26. {
  27. }
  28. onOpen
  29. {
  30. setcvar ui_missionfailed "0"
  31. }
  32. onESC
  33. {
  34. }
  35. // Top Background
  36. itemDef
  37. {
  38. name top_background
  39. rect 50 10 540 80
  40. style WINDOW_STYLE_FILLED
  41. backcolor .015 .015 .229 .5
  42. forecolor 0 0 0 .5
  43. visible 1
  44. decoration
  45. }
  46. // Bottom Background
  47. itemDef
  48. {
  49. name bottom_background
  50. rect 170 380 300 95
  51. style WINDOW_STYLE_FILLED
  52. backcolor .015 .015 .229 .5
  53. forecolor 0 0 0 .5
  54. visible 1
  55. decoration
  56. }
  57. // Title
  58. itemDef
  59. {
  60. name failed_title
  61. group title
  62. style WINDOW_STYLE_EMPTY
  63. background "gfx/menus/menu_blendbox"
  64. text @SP_INGAME_MISSIONFAILED
  65. rect 0 20 640 16
  66. font 3
  67. textscale 1
  68. textalign ITEM_ALIGN_CENTER
  69. textalignx 320
  70. textaligny -1
  71. forecolor 1 0 0 1
  72. visible 1
  73. decoration
  74. }
  75. // Text saying why you failed
  76. itemDef
  77. {
  78. name why_text
  79. group none
  80. background "gfx/menus/menu_blendbox"
  81. cvar ui_missionfailed_text
  82. rect 0 60 640 0
  83. font 3
  84. textscale .7
  85. textalign ITEM_ALIGN_CENTER
  86. textalignx 320
  87. textaligny -1
  88. forecolor 1 0 0 1
  89. visible 1
  90. decoration
  91. }
  92. //--------------------------------------------------------------------------------
  93. // BUTTON
  94. //--------------------------------------------------------------------------------
  95. itemDef
  96. {
  97. name button_glow
  98. group none
  99. style WINDOW_STYLE_SHADER
  100. rect 118 295 85 26
  101. background "gfx/menus/menu_buttonback" forecolor 1 1 1 1
  102. visible 0
  103. decoration
  104. }
  105. itemDef
  106. {
  107. name restartauto
  108. group grpControlbutton
  109. style WINDOW_STYLE_EMPTY
  110. type ITEM_TYPE_BUTTON
  111. rect 170 380 300 20
  112. text @MENUS_LOAD_AUTOSAVE
  113. desctext @MENUS_LOAD_AUTOSAVE_DESC
  114. textscale 1
  115. font 4
  116. textalign ITEM_ALIGN_CENTER
  117. textalignx 150
  118. forecolor 1 .682 0 1
  119. visible 1
  120. action
  121. {
  122. play "sound/misc/nomenu.wav"
  123. close all
  124. uiScript "load_auto" // Perform screen init
  125. }
  126. mouseEnter
  127. {
  128. show button_glow
  129. setitemrect button_glow 170 378 300 24
  130. }
  131. mouseExit
  132. {
  133. hide button_glow
  134. }
  135. }
  136. itemDef
  137. {
  138. name loadsave
  139. group grpControlbutton
  140. style WINDOW_STYLE_EMPTY
  141. type ITEM_TYPE_BUTTON
  142. rect 170 400 300 20
  143. text @MENUS_LOAD_SAVE_GAME
  144. desctext @MENUS_LOAD_SAVE_GAME_DESC
  145. textscale 1
  146. textalign ITEM_ALIGN_CENTER
  147. textalignx 150
  148. forecolor 1 .682 0 1
  149. visible 1
  150. font 4
  151. action
  152. {
  153. play "sound/misc/nomenu.wav"
  154. close all
  155. setcvar cl_paused "1"
  156. setcvar ui_missionfailed "1"
  157. open ingameloadMenu
  158. }
  159. mouseEnter
  160. {
  161. show button_glow
  162. setitemrect button_glow 170 398 300 24
  163. }
  164. mouseExit
  165. {
  166. hide button_glow
  167. }
  168. }
  169. itemDef
  170. {
  171. name instantload
  172. group grpControlbutton
  173. style WINDOW_STYLE_EMPTY
  174. type ITEM_TYPE_BUTTON
  175. rect 170 420 300 20
  176. text @MENUS_INSTANT_LOAD_CAPS
  177. desctext @MENUS_INSTANT_LOAD_CAPS_DESC
  178. textscale 1
  179. textalign ITEM_ALIGN_CENTER
  180. textalignx 150
  181. forecolor 1 .682 0 1
  182. visible 1
  183. font 4
  184. action
  185. {
  186. play "sound/misc/nomenu.wav"
  187. close all
  188. uiScript "load_quick"
  189. }
  190. mouseEnter
  191. {
  192. show button_glow
  193. setitemrect button_glow 170 418 300 24
  194. }
  195. mouseExit
  196. {
  197. hide button_glow
  198. }
  199. }
  200. itemDef
  201. {
  202. name missionselect
  203. group grpControlbutton
  204. style WINDOW_STYLE_EMPTY
  205. type ITEM_TYPE_BUTTON
  206. rect 170 440 300 20
  207. text @MENUS_NEW_MISSION
  208. desctext @MENUS_NEW_MISSION_DESC
  209. font 4
  210. textscale 1
  211. textalign ITEM_ALIGN_CENTER
  212. textalignx 150
  213. forecolor 1 .682 0 1
  214. visible 1
  215. cvartest "tier_storyinfo"
  216. showcvar
  217. {
  218. "1" "2" "3" "4" "5" "6"
  219. }
  220. action
  221. {
  222. play "sound/misc/nomenu.wav"
  223. setcvar cl_paused "1"
  224. uiScript decrementforcepowerlevel
  225. close all
  226. open ingameMissionSelect1
  227. }
  228. mouseEnter
  229. {
  230. show button_glow
  231. setitemrect button_glow 170 438 300 24
  232. }
  233. mouseExit
  234. {
  235. hide button_glow
  236. }
  237. }
  238. itemDef
  239. {
  240. name missionselect
  241. group grpControlbutton
  242. style WINDOW_STYLE_EMPTY
  243. type ITEM_TYPE_BUTTON
  244. rect 170 440 300 20
  245. text @MENUS_NEW_MISSION
  246. desctext @MENUS_NEW_MISSION_DESC
  247. font 4
  248. textscale 1
  249. textalign ITEM_ALIGN_CENTER
  250. textalignx 150
  251. forecolor 1 .682 0 1
  252. visible 1
  253. cvartest "tier_storyinfo"
  254. showcvar
  255. {
  256. "7" "8" "9" "10" "11" "12"
  257. }
  258. action
  259. {
  260. play "sound/misc/nomenu.wav"
  261. setcvar cl_paused "1"
  262. uiScript decrementforcepowerlevel
  263. close all
  264. open ingameMissionSelect2
  265. }
  266. mouseEnter
  267. {
  268. show button_glow
  269. setitemrect button_glow 170 438 300 24
  270. }
  271. mouseExit
  272. {
  273. hide button_glow
  274. }
  275. }
  276. itemDef
  277. {
  278. name missionselect
  279. group grpControlbutton
  280. style WINDOW_STYLE_EMPTY
  281. type ITEM_TYPE_BUTTON
  282. rect 170 440 300 20
  283. text @MENUS_NEW_MISSION
  284. desctext @MENUS_NEW_MISSION_DESC
  285. font 4
  286. textscale 1
  287. textalign ITEM_ALIGN_CENTER
  288. textalignx 150
  289. forecolor 1 .682 0 1
  290. visible 1
  291. cvartest "tier_storyinfo"
  292. showcvar
  293. {
  294. "13" "14" "15" "16" "17" "18"
  295. }
  296. action
  297. {
  298. play "sound/misc/nomenu.wav"
  299. setcvar cl_paused "1"
  300. uiScript decrementforcepowerlevel
  301. close all
  302. open ingameMissionSelect3
  303. }
  304. mouseEnter
  305. {
  306. show button_glow
  307. setitemrect button_glow 170 438 300 24
  308. }
  309. mouseExit
  310. {
  311. hide button_glow
  312. }
  313. }
  314. }
  315. }