123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348 |
- //--------------------------------------------------------------
- //
- // MISSION FAILED MENU
- //
- // Displays choices after player death
- //
- //--------------------------------------------------------------
- {
- menuDef
- {
- name "missionfailed_menu"
- visible 0
- // Not full screen so we can see the game behind it.
- fullscreen 0
- rect 0 0 640 480
- focusColor 1 1 1 1
- style WINDOW_STYLE_FILLED
- border 1
- descX 320
- descY 458
- descScale 1
- descColor 1 .682 0 .8
- descAlignment ITEM_ALIGN_CENTER
- ignoreescape 1
- onClose
- {
- }
-
- onOpen
- {
- setcvar ui_missionfailed "0"
- }
-
- onESC
- {
- }
-
-
- // Top Background
- itemDef
- {
- name top_background
- rect 50 10 540 80
- style WINDOW_STYLE_FILLED
- backcolor .015 .015 .229 .5
- forecolor 0 0 0 .5
- visible 1
- decoration
- }
-
- // Bottom Background
- itemDef
- {
- name bottom_background
- rect 170 380 300 95
- style WINDOW_STYLE_FILLED
- backcolor .015 .015 .229 .5
- forecolor 0 0 0 .5
- visible 1
- decoration
- }
-
- // Title
- itemDef
- {
- name failed_title
- group title
- style WINDOW_STYLE_EMPTY
- background "gfx/menus/menu_blendbox"
- text @SP_INGAME_MISSIONFAILED
- rect 0 20 640 16
- font 3
- textscale 1
- textalign ITEM_ALIGN_CENTER
- textalignx 320
- textaligny -1
- forecolor 1 0 0 1
- visible 1
- decoration
- }
-
- // Text saying why you failed
- itemDef
- {
- name why_text
- group none
- background "gfx/menus/menu_blendbox"
- cvar ui_missionfailed_text
- rect 0 60 640 0
- font 3
- textscale .7
- textalign ITEM_ALIGN_CENTER
- textalignx 320
- textaligny -1
- forecolor 1 0 0 1
- visible 1
- decoration
- }
-
-
- //--------------------------------------------------------------------------------
- // BUTTON
- //--------------------------------------------------------------------------------
- itemDef
- {
- name button_glow
- group none
- style WINDOW_STYLE_SHADER
- rect 118 295 85 26
- background "gfx/menus/menu_buttonback" forecolor 1 1 1 1
- visible 0
- decoration
- }
- itemDef
- {
- name restartauto
- group grpControlbutton
- style WINDOW_STYLE_EMPTY
- type ITEM_TYPE_BUTTON
- rect 170 380 300 20
- text @MENUS_LOAD_AUTOSAVE
- desctext @MENUS_LOAD_AUTOSAVE_DESC
- textscale 1
- font 4
- textalign ITEM_ALIGN_CENTER
- textalignx 150
- forecolor 1 .682 0 1
- visible 1
-
- action
- {
- play "sound/misc/nomenu.wav"
- close all
- uiScript "load_auto" // Perform screen init
- }
-
- mouseEnter
- {
- show button_glow
- setitemrect button_glow 170 378 300 24
- }
- mouseExit
- {
- hide button_glow
- }
- }
- itemDef
- {
- name loadsave
- group grpControlbutton
- style WINDOW_STYLE_EMPTY
- type ITEM_TYPE_BUTTON
- rect 170 400 300 20
- text @MENUS_LOAD_SAVE_GAME
- desctext @MENUS_LOAD_SAVE_GAME_DESC
- textscale 1
- textalign ITEM_ALIGN_CENTER
- textalignx 150
- forecolor 1 .682 0 1
- visible 1
- font 4
-
- action
- {
- play "sound/misc/nomenu.wav"
- close all
- setcvar cl_paused "1"
- setcvar ui_missionfailed "1"
- open ingameloadMenu
- }
-
- mouseEnter
- {
- show button_glow
- setitemrect button_glow 170 398 300 24
- }
- mouseExit
- {
- hide button_glow
- }
- }
-
- itemDef
- {
- name instantload
- group grpControlbutton
- style WINDOW_STYLE_EMPTY
- type ITEM_TYPE_BUTTON
- rect 170 420 300 20
- text @MENUS_INSTANT_LOAD_CAPS
- desctext @MENUS_INSTANT_LOAD_CAPS_DESC
- textscale 1
- textalign ITEM_ALIGN_CENTER
- textalignx 150
- forecolor 1 .682 0 1
- visible 1
- font 4
-
- action
- {
- play "sound/misc/nomenu.wav"
- close all
- uiScript "load_quick"
- }
-
- mouseEnter
- {
- show button_glow
- setitemrect button_glow 170 418 300 24
- }
- mouseExit
- {
- hide button_glow
- }
- }
-
- itemDef
- {
- name missionselect
- group grpControlbutton
- style WINDOW_STYLE_EMPTY
- type ITEM_TYPE_BUTTON
- rect 170 440 300 20
- text @MENUS_NEW_MISSION
- desctext @MENUS_NEW_MISSION_DESC
- font 4
- textscale 1
- textalign ITEM_ALIGN_CENTER
- textalignx 150
- forecolor 1 .682 0 1
- visible 1
- cvartest "tier_storyinfo"
- showcvar
- {
- "1" "2" "3" "4" "5" "6"
- }
-
- action
- {
- play "sound/misc/nomenu.wav"
- setcvar cl_paused "1"
- uiScript decrementforcepowerlevel
- close all
- open ingameMissionSelect1
-
- }
-
- mouseEnter
- {
- show button_glow
- setitemrect button_glow 170 438 300 24
- }
- mouseExit
- {
- hide button_glow
- }
- }
-
- itemDef
- {
- name missionselect
- group grpControlbutton
- style WINDOW_STYLE_EMPTY
- type ITEM_TYPE_BUTTON
- rect 170 440 300 20
- text @MENUS_NEW_MISSION
- desctext @MENUS_NEW_MISSION_DESC
- font 4
- textscale 1
- textalign ITEM_ALIGN_CENTER
- textalignx 150
- forecolor 1 .682 0 1
- visible 1
- cvartest "tier_storyinfo"
- showcvar
- {
- "7" "8" "9" "10" "11" "12"
- }
-
- action
- {
- play "sound/misc/nomenu.wav"
- setcvar cl_paused "1"
- uiScript decrementforcepowerlevel
- close all
- open ingameMissionSelect2
-
- }
-
- mouseEnter
- {
- show button_glow
- setitemrect button_glow 170 438 300 24
- }
- mouseExit
- {
- hide button_glow
- }
- }
- itemDef
- {
- name missionselect
- group grpControlbutton
- style WINDOW_STYLE_EMPTY
- type ITEM_TYPE_BUTTON
- rect 170 440 300 20
- text @MENUS_NEW_MISSION
- desctext @MENUS_NEW_MISSION_DESC
- font 4
- textscale 1
- textalign ITEM_ALIGN_CENTER
- textalignx 150
- forecolor 1 .682 0 1
- visible 1
- cvartest "tier_storyinfo"
- showcvar
- {
- "13" "14" "15" "16" "17" "18"
- }
-
- action
- {
- play "sound/misc/nomenu.wav"
- setcvar cl_paused "1"
- uiScript decrementforcepowerlevel
- close all
- open ingameMissionSelect3
- }
-
- mouseEnter
- {
- show button_glow
- setitemrect button_glow 170 438 300 24
- }
- mouseExit
- {
- hide button_glow
- }
- }
-
- }
- }
|