UGX-Mods Login

or login with an authentication provider below
Sign In with Google
Sign In with Twitter
Sign In with Discord
Sign In with Steam
Sign In with Facebook
Sign In with Twitch

BIKs in WaW - Tips and Tricks

broken avatar :(
Created 9 years ago
by Deleted User
0 Members and 1 Guest are viewing this topic.
11,521 views
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
Hey guys, it's Ray here with another tutorial. I'm going to cover a few tricks related to bik files.
Please note that this tutorial will not cover converting video files to bik
CONTENTS:
1) Including the loadscreen BIKs in mod hassle-free
2) Play on main menu
3) Play ingame
4) Play on model


Including the loadscreen BIKs in mod hassle-free

The way I've seen people include bik files within mods (like UGX Map Manager and everything else - copy bik to main/video but if you didnt have WaW properly installed like me, the bik wouldn't get copied) is kind of messy. The simple trick is to include your BIK in the IWD, just copy the BIK to mods/mapname/video, tick it in launcher and compile. Don't forget to name your bik mapname_load.bik!

Disclaimer: Launcher layout may be different because I use a modified one that I made.

Play on main menu

Now this part is where you may fuck up your menufiles, so be sure to make a backup of raw/ui and raw/ui_mp. Done? Good. Now copy your BIK to raw/bik and open raw/ui/main.menu in a text editor of your choice.
Find this
Code Snippet
Plaintext
ui_cinematic front_end_sp 3
ui_cinematic is a console command that plays a BIK file and is used in the WaW main menu.
front_end_sp is the name of the cinematic that it should open. Note that it loads them from fastfiles and you cant just put the bik in the IWD. Which is why we copied the BIK to raw/bik.
3 is to tell the game that the cinematic should be looped. I don't know what 1 and 2 do, but 0 or empty plays the bik only once. Replace all instances of front_end_sp with your cinematic names. Save. Now open mod.csv and add these lines:
Code Snippet
Plaintext
rawfile,bik/bikname.bik
menufile,ui/main.menu
Compile. You should see your new prepared video background playing on WaW main menu :D

Play ingame

First, let me tell you about the functions related to cinematics.
Code Snippet
Plaintext
Cinematic
CinematicInGame
CinematicInGameLoopFromFastfile
CinematicInGameLoopResident
CinematicInGameSync

Cinematic
Code Snippet
Plaintext
Cinematic( "bik_name", 5 );
Plays a specified cinematic. Blocks game flow.
Required:
<name> (string) - the name of the BIK file to load; BIK should be in the video directory of the IWD.
<exit_time> (float) - how long the bik fades out.

CinematicInGame
Code Snippet
Plaintext
CinematicInGame( "bik_name" );
Plays a specified cinematic. Doesn't block game flow unlike Cinematic.
Required:
<name> (string) - the name of the BIK file to load; BIK should be in the video directory of the IWD.

CinematicInGameLoopFromFastfile
Code Snippet
Plaintext
CinematicInGameLoopFromFastfile( "bik_name" );
Plays a specified cinematic in a loop. Doesn't block game flow. Recommended to use on models.
Required:
<name> (string) - the name of the BIK file to load; BIK should be included as rawfile in mod.csv the way I said earlier (bik needs to be in raw/bik)

CinematicInGameLoopResident
Code Snippet
Plaintext
CinematicInGameLoopResident( "bik_name" );
Plays a specified cinematic in a loop. Doesn't block game flow. Recommended to use on models.
Required:
<name> (string) - the name of the BIK file to load; BIK should be in the video directory of the IWD.

CinematicInGameSync
Code Snippet
Plaintext
CinematicInGameSync( "bik_name" );
Plays a specified cinematic and fades out. Doesn't have an argument for fade out timer. Blocks game flow until fade out starts. This was used in CoD4 campaign to make the game seamlessly transition from loading screen to game and can be used the same way in WaW (need to edit _introscreen.gsc to remove the black fade in).
Required:
<name> (string) - the name of the BIK file to load; BIK should be in the video directory of the IWD.

Play on model

Playing BIKs on models is easy. Although, bear in mind, you can play one BIK at a time but luckily, you can modify UV maps on the models so you can have 64 separate screens like the monitors on BO1 menu. That's how the bik file for monitors in BO1 menu looks:

As you can see, each screen has it's own space on the 8x8 grid, so you can use that for an EE for example and have hints on each separate display.
Now, let's grab a model to play the BIK on. If you have cod4 models, you probably have the com_tv1_cinematic model. BIKs are played on cinematic_3d materials everywhere where possible. Think of biks being a color map on a model unlit material.
This is the model I'm going to use

Put the model somewhere in the map, it doesn't need to be a script_model, it can be a misc_model as well. Fuck it, make a tower made of those TVs stacked on each other. Now, let's go to the scripting part.
Code Snippet
Plaintext
setsaveddvar("cg_cinematicFullScreen","0");
CinematicInGameLoopResident("bik_name");
We need to set the cg_cinematicFullScreen dvar to 0 to tell the game that we don't want to play a fullscreen cinematic and that we want to play it in the game world.
Second line is the function for playing the bik in a loop. Refer to the function list above. Replace bik_name with your bik's name and put the BIK in mods/mapname/video, save the script and compile the mod.
Final result should look like this (this gif is 6 months old btw):

Hope you found this useful and thanks for checking out this tutorial.
broken avatar :(
×
broken avatar :(
Relentless Mapper
Location: al
Date Registered: 21 August 2011
Last active: 6 days ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
Nuclear
My Groups
More
×
KDXDARK's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Nuclear
Nuclear
DARKLEGION's requested title
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
KDXDARK's Contact & Social Links
wow nice tut +1
broken avatar :(
×
broken avatar :(
Location: gbNewport
Date Registered: 2 November 2014
Last active: 2 years ago
Posts
1,265
Respect
Forum Rank
Zombie Colossus
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Embrace the Darkness
×
Tim Smith's Groups
Tim Smith's Contact & Social Linkstimsmith90THEREALBaDBoY17TimSmithMy clan Website
gg man thanks for the tut +1
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 14 September 2013
Last active: 4 years ago
Posts
1,895
Respect
Forum Rank
Zombie Destroyer
Primary Group
Community Scripter
My Groups
More
My Contact & Social Links
More
Personal Quote
BE ORIGINAL
Signature
×
MakeCents's Groups
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
Community Scripter Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community.
BO3 Modtools Alpha
BO3 Modtools Alpha
This user has access to the Black Ops 3 Modtools Alpha
Dude, if this works, awesome +8. I have played around with bik files in game and have failed. The best I was able to do was to get the bik running for the host only, fullscreen and windowed. Will be attempting that menu bik file one at least.

Have you experienced any issues like any of these only working for the host?
broken avatar :(
×
broken avatar :(
Location: 00
Date Registered: 20 June 2014
Last active: 9 days ago
Posts
768
Respect
Forum Rank
The Decider
Primary Group
Member
Personal Quote
Behold the power of Mirror Force
Signature
The greatest failure is not to try and fail, but is to fail without trying.
×
Ramiabdh's Groups
Ramiabdh's Contact & Social Links
Fuckin awesome man +1

I can see pretty much potential from this
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 16 June 2013
Last active: 1 year ago
Posts
1,005
Respect
Forum Rank
Zombie Colossus
Primary Group
Community Mapper
My Groups
More
My Contact & Social Links
More
Signature
Hey if you had tons of fun on playing my maps please DONATE :)

play ESTATE now, and claim your mansion back from the undead!
×
jei9363's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
jei9363's Contact & Social Linksjei9363jei9363jayingardia
damn a lot easier than gifs and fx nice +1
broken avatar :(
  • DeletedUser
  • Deleted Member
×
broken avatar :(
DeletedUser
This user is deleted :(
Dude, if this works, awesome +8. I have played around with bik files in game and have failed. The best I was able to do was to get the bik running for the host only, fullscreen and windowed. Will be attempting that menu bik file one at least.

Have you experienced any issues like any of these only working for the host?
I haven't tried coop yet.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 16 June 2013
Last active: 1 year ago
Posts
1,005
Respect
Forum Rank
Zombie Colossus
Primary Group
Community Mapper
My Groups
More
My Contact & Social Links
More
×
jei9363's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
jei9363's Contact & Social Linksjei9363jei9363jayingardia
moved video from main/video to...



still



 :-[
Last Edit: October 22, 2015, 09:50:10 pm by jei9363
broken avatar :(
  • steviewonder87
  • Deleted Member
×
broken avatar :(
steviewonder87
This user is deleted :(
moved video from main/video to...

(Image removed from quote.)

still

(Image removed from quote.)

 :-[
Drag it directly into your appdata/mods/mapname folder, it should work then.
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 16 June 2013
Last active: 1 year ago
Posts
1,005
Respect
Forum Rank
Zombie Colossus
Primary Group
Community Mapper
My Groups
More
My Contact & Social Links
More
×
jei9363's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
jei9363's Contact & Social Linksjei9363jei9363jayingardia
Drag it directly into your appdata/mods/mapname folder, it should work then.

nope. thats for packing the map and "maybe" the installer will put it in the downloader's main/video. but it never works
broken avatar :(
×
broken avatar :(
Location: de
Date Registered: 5 April 2013
Last active: 3 months ago
Posts
279
Respect
Forum Rank
Mr. Elemental
Primary Group
Donator ♥
My Groups
More
My Contact & Social Links
More
Signature
×
IHammY/'s Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Uhm how do you get them onto models that initially werent meant to have biks on them doe?
broken avatar :(
×
broken avatar :(
Location: nlApeldoorn
Date Registered: 17 December 2013
Last active: 1 year ago
Posts
1,187
Respect
1,404Add +1
Forum Rank
Zombie Colossus
Primary Group
Community Scripter Elite
My Groups
More
My Contact & Social Links
More
Personal Quote
It aint much, if it aint Dutch
Signature
×
BluntStuffy's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Community Scripter Elite Has shown excellence and experience in the area of custom scripting in the UGX-Mods community.
Oil Rig Beta Access
Oil Rig Beta Access
BluntStuffy's Contact & Social LinksBluntstuffy@BluntZombieBluntStuffyStuffyZombie
Uhm how do you get them onto models that initially werent meant to have biks on them doe?

re-convert the model, and put the cinematic_3d texture where you want the 'video-screen'
broken avatar :(
×
broken avatar :(
Location: usPennyslvania, United States
Date Registered: 25 October 2015
Last active: 7 years ago
Posts
63
Respect
Forum Rank
Rotting Walker
Primary Group
Member
My Contact & Social Links
More
Personal Quote
Just a gamer and modding novice...
Signature
"All life's a Transformers movie; no one knows what's going on. " - Sounder 2015
nope. thats for packing the map and "maybe" the installer will put it in the downloader's main/video. but it never works

It also has to be in root/main/video as your_map_name_load.bik. Then recompile.
broken avatar :(
×
broken avatar :(
Relentless Mapper
Location: al
Date Registered: 21 August 2011
Last active: 6 days ago
Posts
1,322
Respect
Forum Rank
Zombie Colossus
Primary Group
Nuclear
My Groups
More
×
KDXDARK's Groups
Donator ♥ Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum.
Nuclear
Nuclear
DARKLEGION's requested title
Community Mapper Has released one or more maps to the UGX-Mods community which have been added to the UGX Map Manager.
KDXDARK's Contact & Social Links
moved video from main/video to...

(Image removed from quote.)

still

(Image removed from quote.)

 :-[
i gotta say that i discover how to add it, you have to put it into raw/video :please: i think its a little bit late :please:
broken avatar :(
×
broken avatar :(
Location: us
Date Registered: 22 September 2015
Last active: 2 days ago
Posts
256
Respect
Forum Rank
Mr. Elemental
Primary Group
Member
My Contact & Social Links
More
Signature
×
AllMoDs's Groups
i did what this tut said to get bik to play on main menu didn't work had to add this in main.menu
itemDef
{
   style         WINDOW_STYLE_FILLED
   rect         FULLSCREEN_WIDE
   backcolor      1 1 1 1
   visible         1
   background      cinematic
   ownerdraw      UI_CINEMATIC
   decoration
}

put in 2 places
1st under
 "#ifdef CONSOLE"

and under this

"CHOICE_MENU_TITLE( "@MENU_SOLO_COOP_MENU" )
#endif // #ifdef CONSOLE"

and now it plays hop this helps others with same prob

my main.menu after edit
Spoiler: click to open...
// CONSOLE SP - Main

#include "ui/menudef.h"
#include "ui_mp/common_macro.inc"
#include "ui/mission_select/missiondefs.menu"


#ifdef CONSOLE
   #define LOGO_START_X         -300//375
   #define LOGO_START_Y         -125//70
   #undef   SIGNED_IN_RECT
   #define SIGNED_IN_RECT         -250 60 250 15
#endif

#ifdef PC
   #define LOGO_START_X         -300
   #define LOGO_START_Y         -160
   #undef   SIGNED_IN_RECT
   #define SIGNED_IN_RECT         -350 60 250 15
#endif

#define CHOICE_SIZE_X         150
#define CHOICE_SIZE_Y         22

#define CHOICE_X_START         0
#define CHOICE_Y_START         120

#ifdef XENON
   #undef   CHOICE_Y_START
   #define CHOICE_Y_START      45//40//58//72
#endif

#ifdef PS3
   #undef   CHOICE_Y_START
   #define CHOICE_Y_START      45//92//106//120
#endif

#ifdef PC
   #undef   CHOICE_Y_START
   #define CHOICE_Y_START      50//106//120
   #undef   CHOICE_X_START
   #define CHOICE_X_START         30
#endif

#define CHOICE_SEP_OFFSET_Y      -2

#define CHOICE_GROUP         "main"

#ifdef PC
   #undef CHOICE_SEP_1
   #define CHOICE_SEP_1         3
   #define CHOICE_SEP_2         6
#endif
#ifdef CONSOLE
   #define CHOICE_SEP_1         3
#endif

#define ARCADE_DESC_ORIGIN   CHOICE_SIZE_X CHOICE_Y(5)
#define CLEARUIHINT   exec "set ui_hint_text @NULL_EMPTY"; hide "desc_arrow"

#define ACTION_LOCKOUT_CLOSE \
   execnow "ui_cinematic sp_menus_bg_coop 3" \
   play "mouse_click"; \
   close main_lockout; \
   setdvar ui_skipMainLockout "0" \
   execnow "makeLocalClientActive;"; \
   open main_text;


#include "ui_mp/menustyle.inc"
#include "ui/choices_setup_common.menu"
#include "ui/online_status.inc"
{
   assetGlobalDef
   {
      fadeClamp      1.0                  // sets the fadeup alpha
      fadeCycle      1                  // how often fade happens in milliseconds
      fadeAmount      0.1                  // amount to adjust alpha per cycle
   }
   
   menuDef
   {
      name         main
      fullScreen      1            
      rect         0 0 640 480            // Size and position of the menu
      focusColor      COLOR_FOCUSED   // Menu focus color for text and items
      soundloop       "music_mainmenu"
      onOpen
      {
         
         
            #if COOP_EPD
                open main_lockout
         #elif defined( CONSOLE )
            uiScript openMenuOnDvar "ui_skipMainLockout" 0 "main_lockout"
            uiScript openMenuOnDvar "ui_skipMainLockout" 1 "main_text"
         #else
            // IW COD4 version:
            //open main_text;
            //uiScript addPlayerProfiles;
            //uiScript openMenuOnDvar com_playerProfile "" player_profile;
            //uiScript openMenuOnDvarNot ui_playerProfileCount 1 player_profile;
            //uiScript stopRefresh;
            // COD5 DW License Auth version:
            open main_text;
            uiScript openMainMenuPlayerProfileScriptCallback;
            uiScript stopRefresh;
         #endif
      }
      onClose
      {
         
         
         #ifdef CONSOLE
            close main_text;         
            close main_lockout;
         #endif
      }
   }
   
#ifdef CONSOLE
   menuDef
   {
      name         main_lockout
      fullScreen      0            
      rect         0 0 640 480            // Size and position of the menu
      focusColor      1 1 1 0.85            // Menu focus color for text and items
      onOpen
      {
         setfocus sp;
         execnow "ui_cinematic bink_front_end_screen_home 3"
#if COOP_EPD
         uiScript openMenuOnDvar "ui_epd_disclaimer" 0 "epd_disclaimer";
#endif
      }
      onClose
      {
//         close main_lockout;
//         open main_text;
      }
      onESC
      {
         ingameclose main;
      }
      onFocus
      {
         execnow "AcceptInputFromAllControls"
      }
      
#ifdef PS3
      execKeyInt BUTTON_START
      {
         ACTION_LOCKOUT_CLOSE;
      }
#endif // PS3

      #undef FOOTNOTE_RECT
      #define FOOTNOTE_RECT( x, y )         x y 640 22 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_BOTTOM
      CHOICE_FOOTNOTE( "@MENU_LEGAL_LINE", -140, -22 )

      //#include "ui/bg.inc"
      itemDef   
      {
         rect         -250 -120 512 128 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER
         origin         0 0
         forecolor      1 1 1 1
         style         WINDOW_STYLE_SHADER
         background      "logo_cod2"
         decoration
         visible         1
      }

#if !COOP_EPD
      #undef FOG_SCROLL_TIME
      #define FOG_SCROLL_TIME 40000

      itemDef
      {
         style         WINDOW_STYLE_SHADER
         rect         -107 0 1708 480
         exp            rect X((-107) - ((float(milliseconds() % FOG_SCROLL_TIME) / FOG_SCROLL_TIME) * (854)))
         background      "animbg_fogscrollthin"
         forecolor      .37 .15 .07 1
         visible         1
         decoration
      }
#endif // #if !COOP_EPD

      itemDef
      {
         name         sp
         text         "@MENU_PRESS_START"
         type         ITEM_TYPE_BUTTON
         rect         -60 50 120 20 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_CENTER
         forecolor      1 1 1 0.85
         textalign      ITEM_ALIGN_MIDDLE_CENTER
         textfont      CHOICE_TEXTFONT
         visible         1
         action
         {
#if !COOP_EPD
            execnow "ui_cinematic sp_menus_bg_coop 3"
#endif // #if !COOP_EPD
            play "mouse_click";
            close main_lockout;
            setdvar ui_skipMainLockout "0"
            execnow "makeLocalClientActive;";
#if !COOP_EPD
            open main_text;
#else
                // main_text
                //  onOpen
                CLEARUIHINT
               
                setdvar ui_version_show "0";
                execnow "Updatedvarsfromprofile";
#if !COOP_EPD
                execnow "select_save_device";
#endif // #if !COOP_EPD

                profilehide levelselect_noprofile;
                profileshow levelselect;
                profilehide newgame_noprofile;
                profileshow newgame;

                //open main_online

               // main_online
                //  onFocus
             exec "endsplitscreensignin";

                //  xbox live menu item
                exec "xsigninlive";
                exec "systemlink 0";
                exec "splitscreen 0";
                exec "onlinegame 1";
                exec "exec "XBOXLIVE_MP_CFG;
                exec "party_maxplayers 9";
                exec "xblive_privatematch 0";
                exec "xblive_rankedmatch 0";
                exec "party_timerVisible 0";
                exec "xstartprivateparty";
                setdvar ui_mptype "0";
                exec "set ui_gametype cmp; set ui_mapname ber2"
                open menu_xboxlive;
#endif // #if !COOP_EPD
            }
      }
   }
#endif // #ifdef CONSOLE

    // This menu is called to devmap into credits because devmapping from
    // main_text will give main the focus and unlock all the controllers.
    // Having this menu do the devmap prevents main from getting focus.
   menuDef
   {
      name         credits_menu
      fullScreen      1            
      rect         0 0 640 480            // Size and position of the menu
      focusColor      COLOR_FOCUSED   // Menu focus color for text and items
      onOpen
      {
            execnow "map credits";
      }
   }

   #define LOCAL_ZOMBIE_RESET\
      exec "set zombiemode 0";
   #define LOCAL_ARCADEMODE_RESET\
      exec "set arcademode 0";
   #define LOCAL_NETWORK_RESET\
      exec "set onlinegame 0; set systemlink 0";
   #define SET_DEFAULT_MAP_AND_MODE\
      exec "set ui_gametype cmp; set ui_mapname "FIRST_PLAYABLE_CAMPAIGN_LEVEL
   #define SET_ARCADE_MODE\
      exec "set arcademode 1"; \
      execOnDvarStringValue "ui_gametype" zom "set arcademode 0";
   #define RESET_GAMEMODES \
      LOCAL_ZOMBIE_RESET \
      LOCAL_ARCADEMODE_RESET \
      exec "set ui_gametype cmp;"

   menuDef
   {
      name         main_text
      fullScreen      1
      rect         0 0 640 480
      focusColor      COLOR_FOCUSED
      soundloop       "music_mainmenu"
      style         WINDOW_STYLE_EMPTY
      onOpen
      {
         CLEARUIHINT
         
#ifdef CONSOLE
         setdvar ui_version_show "0";
         setdvar ui_skipMainLockout "0";
         execnow "ui_cinematic sp_menus_bg_coop 3"
         execnow "Updatedvarsfromprofile";
         exec "set cg_gameMessageWidth 455";
#if !COOP_EPD
         execnow "select_save_device";
#endif // #if !COOP_EPD

         profilehide levelselect_noprofile;
         profileshow levelselect;
         profilehide newgame_noprofile;
         profileshow newgame;
         profileshow optionsselect;
         profilehide optionsselect_noprofile;
         
         //showhidenewgameresume;

         focusfirst;
#else // #ifdef CONSOLE
         execnow "ui_cinematic sp_menus_bg_coop 3"
         setdvar ui_showOnlineOfflineButton "1";

         //savegameshow resume;
         //savegamehide newgame;
#endif

#ifdef PS3
         uiScript openmenuondvar ui_show_autosave_warning 1 "popmenu_autosave_warning_lockout"
#endif //PS3

#if GERMAN_ZOMBIE_BUILD
         setdvar allow_zombies_german 1
#else // #if GERMAN_ZOMBIE_BUILD
         setdvar allow_zombies_german 0
#endif // #if GERMAN_ZOMBIE_BUILD
         uiScript openmenuondvar ui_sp_unlock 1 "popmenu_sp_unlock";
      }
      onFocus
      {
#ifdef CONSOLE
         execnow "AcceptInputFromActiveControl"
         execnow "EnableSpecialInput";
#endif // #ifdef CONSOLE
         execnow "ui_cinematic sp_menus_bg_coop 3"
         setdvar ui_showOnlineOfflineButton "1";
      }
      onEsc
      {
#ifdef CONSOLE
         execnow "DisableSpecialInput";
         close main_text;
         open main_lockout;
#endif // #ifdef CONSOLE
      }

#ifdef CONSOLE
      itemDef
      {
         style         WINDOW_STYLE_FILLED
         rect         FULLSCREEN_WIDE
         backcolor      1 1 1 1
         visible         1
         background      cinematic
         ownerdraw      UI_CINEMATIC
         decoration
      }
      itemDef
      {
         name         unlocked_missions
         text         "@MENU_CHEAT_ENABLED"
         type         ITEM_TYPE_TEXT
         textscale      .3
         style         WINDOW_STYLE_FILLED
         textfont      UI_FONT_NORMAL
         textalign      ITEM_ALIGN_LEFT
         rect         50 380 100 17
         forecolor      COLOR_TITLE
         visible         when( 0 )
         decoration
      }
#endif // #ifdef CONSOLE

      // background
      #include "ui/bg.inc"

#ifdef CONSOLE
      // --------------------- MOTD -----------------------      
      #include "ui/info_box.inc"
      CHOICE_MENU_TITLE( "@MENU_MAIN_MENU" )
#else
      CHOICE_MENU_TITLE( "@MENU_SOLO_COOP_MENU" )
#endif // #ifdef CONSOLE

      itemDef
      {
         style         WINDOW_STYLE_FILLED
         rect         FULLSCREEN_WIDE
         backcolor      1 1 1 1
         visible         1
         background      cinematic
         ownerdraw      UI_CINEMATIC
         decoration
      }
      itemDef
      {
         rect         LOGO_START_X LOGO_START_Y 256 64 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_BOTTOM
         forecolor      1 1 1 1
         style         WINDOW_STYLE_SHADER
         background      "logo_cod2"
         visible         when( !localVarBool( ui_hideBack ) );
         decoration
      }

      // draws signin status
      SIGNIN_STATUS
#ifdef PC
      ONLINE_OFFLINE_BUTTON
#endif // #ifdef PC

#define SETUP_ACTION_SOLO \
         execnow "nosplitscreen"; \
         exec "xstopprivateparty"\
         exec "xstopparty"\
         exec "systemlink 0"; \
         exec "splitscreen 0"; \
         exec "xblive_rankedmatch 0"; \
         exec "onlinegame 0"; \
         exec "arcademode 0" \
         exec "zombiemode 0" \
         exec "ui_hostOptionsEnabled 0" \
         SET_DEFAULT_MAP_AND_MODE \
         open main_solo; \

#define SETUP_ACTION_SOLO_DEV \
         execnow "nosplitscreen"; \
         exec "xsignin"; \
         exec "systemlink 0"; \
         exec "splitscreen 0"; \
         exec "xblive_rankedmatch 0"; \
         exec "onlinegame 0"; \
         exec "arcademode 0" \
         open levels_game; \      

#define SETUP_ACTION_CREDITS \
         setdvar credits_load 1; \
         setdvar credits_frommenu 1; \
         setdvar systemlink 0; \
         setdvar onlinegame 0; \
         setdvar splitscreen 0; \
         setvdar arcademode 0; \
         LOCAL_ZOMBIE_RESET; \   
         close main_text; \
         close main; \
         open credits_menu

#ifdef CONSOLE
         CHOICE_BUTTON_BG( 1, 1 )
         CHOICE_HIGHLIGHT( 1, 1 )
         CHOICE_BUTTON_VIS_NOHI( 1, "@MENU_SOLO_CAP", SETUP_ACTION_SOLO, when ( !dvarbool( cg_development ) ); )
         CHOICE_BUTTON_VIS_NOHI( 1, "@MENU_SOLO_CAP", SETUP_ACTION_SOLO, when ( dvarbool( cg_development) ); )

           CHOICE_BUTTON( 2, "@MENU_COOPERATIVE", open main_online )
         CHOICE_BUTTON( 3, "@MENU_MULTIPLAYER", setdvar ui_changed_exe 1; exec "wait;wait;wait"; uiScript startMultiplayer )

         //CHOICE_SEPARATOR( CHOICE_SEP_1 )
         CHOICE_BUTTON_BG( 4, 1 )
         CHOICE_HIGHLIGHT( 4, 1 )
         CHOICE_BUTTON_NOHI_EX( 4, "@MENU_OPTIONS_UPPER_CASE", open options;, name optionsselect )
         CHOICE_BUTTON_NOHI_EX( 4, "@MENU_OPTIONS_UPPER_CASE", open popup_options_noprofile;, name optionsselect_noprofile )

         CHOICE_BUTTON_BG( 5, 1 )
         CHOICE_HIGHLIGHT( 5, 1 )
         CHOICE_BUTTON_VIS_NOHI( 5, "@MENU_CREDITS", SETUP_ACTION_CREDITS, when( dvarInt( mis_01 ) < dvarInt( mis_01_unlock ) ); )
         //CHOICE_BUTTON_VIS( 5, "@MENU_CREDITS", setdvar credits_load 1; setdvar credits_frommenu 1; LOCAL_ZOMBIE_RESET; open credits_menu, when( dvarInt( mis_01 ) >= 20 ); )
         //CHOICE_BUTTON_VIS_NOHI( 5, "@MENU_CREDITS", setdvar credits_load 1; LOCAL_ZOMBIE_RESET; open credits_menu, when( dvarInt( mis_01 ) < 20 ) )
         CHOICE_BUTTON_VIS_NOHI( 5, "@MENU_CREDITS", SETUP_ACTION_CREDITS, when( dvarInt( mis_01 ) >= dvarInt( mis_01_unlock ) ) )
#endif
            
#ifdef PC
         // all buttons will be hidden when option menus are opened, LocalVarBool(ui_hideBack)
         //CHOICE_BUTTON_VIS( 1, "@MENU_NEWGAME", open popmenu_newgame, when( !localVarBool( ui_hideBack ) ); name new )
         //CHOICE_BUTTON_BG( 1, when( !localvarBool( ui_hideBack ) ); )
         //CHOICE_HIGHLIGHT( 1, 1 )
         //CHOICE_BUTTON_FOCUS_VIS_NOHI_EX( 1, "@MENU_NEWGAME", exec DEVMAP_LEVEL_TRAINING; LOCAL_ZOMBIE_RESET, ;, ;, when( !localvarBool( ui_hideBack ) );, name newgame )
         //CHOICE_BUTTON_FOCUS_VIS_NOHI_EX( 1, "@MENU_RESUMEGAME", open resume_popmenu; LOCAL_ZOMBIE_RESET, ;, ;, when( !localvarBool( ui_hideBack ) );, name resume )*/
         CHOICE_BUTTON_VIS( 1, "Dragonball Z Zombies Saga 1", exec "map nazi_zombie_dbzzs1", when( !localvarBool( ui_hideBack ) ); )
         CHOICE_BUTTON_VIS( 2, "@MENU_COOPERATIVE", open main_online; LOCAL_ZOMBIE_RESET, when( !localvarBool( ui_hideBack ) ); )
         CHOICE_BUTTON_VIS( 3, "@MENU_MULTIPLAYER", open multi_popmenu, when( !localvarBool( ui_hideBack ) ); )
         CHOICE_SEPARATOR_VIS( CHOICE_SEP_1, when( !localvarBool( ui_hideBack ) ); )
         //CHOICE_BUTTON_VIS( 3, "Join LAN Game", open menu_lan; LOCAL_ZOMBIE_RESET, when( !localvarBool( ui_hideBack ) ); )
         CHOICE_BUTTON_VIS( 4, "@MENU_SELECT_ONLINE_PROFILE", execOnDvarIntValue dw_loggedin 0 "dwconnect"; setdvar ui_playerProfileAlreadyChosen 0; open player_profile, when( !localvarBool( ui_hideBack ) ); )
         //CHOICE_BUTTON_VIS( 5, "@MENU_ARCADEMODE", open popmenu_arcade; LOCAL_ZOMBIE_RESET, when( dvarInt( mis_01 ) >= 20 && !localvarBool( ui_hideBack ) ); )
         //CHOICE_DBUTTON_VIS( 5, "@MENU_ARCADEMODE", when( dvarInt( mis_01 ) < 20 && !localvarBool( ui_hideBack ) ); )   
         CHOICE_BUTTON_VIS( 5, "@MENU_FRIENDS_CAP", open menu_pc_friends;, when( !localvarBool( ui_hideBack ) ); )
         CHOICE_NEWICON_VIS( 5, "specialty_new", when( hasinvites() || haspendingfriends() ); )
         CHOICE_BUTTON_VIS( 6, "@MENU_OPTIONS_CONTROLS_CAP", open options_new_pc;, when( !localvarBool( ui_hideBack ) ); )

         CHOICE_SEPARATOR_VIS( CHOICE_SEP_2, when( !localvarBool( ui_hideBack ) ); )
         CHOICE_BUTTON_VIS( 7, "@MENU_MODS", open mods_menu;, when( !localvarBool( ui_hideBack ) ) )
                  
         CHOICE_BUTTON_BG( 8, 1 )
         CHOICE_HIGHLIGHT( 8, 1 )
         CHOICE_BUTTON_VIS_NOHI( 8, "@MENU_CREDITS", SETUP_ACTION_CREDITS, when( !localvarBool( ui_hideBack ) && dvarInt( mis_01 ) < dvarInt( mis_01_unlock ) ); )
         CHOICE_BUTTON_VIS_NOHI( 8, "@MENU_CREDITS", SETUP_ACTION_CREDITS, when( !localvarBool( ui_hideBack ) && dvarInt( mis_01 ) >= dvarInt( mis_01_unlock ) ); )
         //CHOICE_BUTTON_VIS( 10, "@MENU_MULTIPLAYER", open multi_popmenu, when( !localvarBool( ui_hideBack ) ); )
         CHOICE_BUTTON_VIS( 9, "@MENU_QUIT", open quit_popmenu, when( !localvarBool( ui_hideBack ) ); )
         
#endif // #ifdef PC

/*
#ifdef XENON
         // ----------------- BEGIN Message of the day ------------------------      
         #define   INFO_BOX_ORIENT            1
         #define INFO_BOX_TITLE_HEIGHT      20
         #define INFO_BOX_WIDTH            (CHOICE_SIZE_X-(INFO_BOX_TITLE_HEIGHT/4))
         #define INFO_BOX_HEIGHT            126
         #define INFO_BOX_X               (CHOICE_X_START)
         #define INFO_BOX_Y               304
         #define ORIGIN_INFO_BOX_TITLE      INFO_BOX_X INFO_BOX_Y
   
         #define INFO_TEXT            dvarString( "motd" )
         #define INFO_TITLE            "@MENU_MESSAGE_OF_THE_DAY"
         
         #include "ui_mp/info_box.inc"
#endif
*/
      #include "ui/safearea.menu"
   }

#ifdef XENON
   #undef   CHOICE_Y_START
   #define CHOICE_Y_START      45//40//58//72
#endif

#ifdef PS3
   #undef   CHOICE_Y_START
   #define CHOICE_Y_START      92//106//120
#endif
   menuDef
   {
      name         main_solo
      fullScreen      1
      rect         0 0 640 480
      focusColor      COLOR_FOCUSED
      soundloop       "music_mainmenu"
      onOpen
      {
         //clear hint for arcade mode description
         CLEARUIHINT
         LOCAL_ZOMBIE_RESET
         
#ifdef CONSOLE
         setdvar ui_version_show "0";

         profilehide levelselect_noprofile;
         profileshow levelselect;
         profileshow resume_nosavedevice;

         profilehide newgame_noprofile;
         profileshow newgame;
         profileshow newgame_nosavegame;
         profileshow newgame_nosavedevice;
         
         //showhidenewgameresume;

         focusfirst;
#else
         execnow "update_sv_savegameavailable";
#endif

         uiScript openmenuondvar ui_sp_unlock 1 "popmenu_sp_unlock";
      }
      onFocus
      {
      }
      onEsc
      {
         close main_solo;
      }

      // background
      #include "ui/sp_top_bg.inc"
      #include "ui/navcontrols.inc"

      CHOICE_MENU_TITLE( "@MENU_SOLO_CAMPAIGN_CAP" )
      itemDef
      {
         rect         LOGO_START_X LOGO_START_Y 256 64 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_BOTTOM
         forecolor      1 1 1 1
         style         WINDOW_STYLE_SHADER
         background      "logo_cod2"
#ifdef CONSOLE
         visible         1
#else
         visible         when( !localVarBool( ui_hideBack ) );
#endif         
         decoration
      }

      // draws signin status
      SIGNIN_STATUS

#ifdef XENON

         //CHOICE_BUTTON_BG( 1, 1 )
         //CHOICE_HIGHLIGHT( 1, 1 )
         //CHOICE_BUTTON_VIS( 1, "@MENU_RESUMEGAME", open resume_popmenu; LOCAL_NETWORK_RESET; LOCAL_ZOMBIE_RESET, when( dvarbool( sv_saveGameAvailable ) ); )
         //CHOICE_BUTTON_VIS( 1, "@MENU_RESUMEGAME", open save_corrupted; LOCAL_NETWORK_RESET; LOCAL_ZOMBIE_RESET, when( !dvarbool( sv_saveGameAvailable ) && dvarbool( sv_saveGameNotReadable ) ); )
         CHOICE_BUTTON_FOCUS_VIS_EX_ADV( 1,"@MENU_RESUMEGAME_CAP", open resume_popmenu; LOCAL_NETWORK_RESET; LOCAL_ZOMBIE_RESET, LOCAL_ZOMBIE_RESET, ;, when( dvarbool( sv_saveGameAvailable ) ), ;, dvarbool( sv_saveGameAvailable ) )
         CHOICE_BUTTON_FOCUS_VIS_EX_ADV( 1, "@MENU_RESUMEGAME_CAP", open save_corrupted; LOCAL_NETWORK_RESET; LOCAL_ZOMBIE_RESET, LOCAL_ZOMBIE_RESET, ;, when( !dvarbool( sv_saveGameAvailable ) && dvarbool( sv_saveGameNotReadable ) ), ;, !dvarbool( sv_saveGameAvailable ) && dvarbool( sv_saveGameNotReadable ) )
         //CHOICE_DBUTTON_VIS( 1, "@MENU_RESUMEGAME", when( !dvarbool( sv_saveGameAvailable ) && !dvarbool( sv_saveGameNotReadable ) ); )
         
         CHOICE_BUTTON_BG( 2, 1 )
         CHOICE_HIGHLIGHT( 2, 1 )
         CHOICE_BUTTON_FOCUS_VIS_NOHI_EX( 2, "@MENU_NEWGAME", setdvar ui_newgame_nextmenu 4; open popmenu_content_warning; LOCAL_NETWORK_RESET; LOCAL_ZOMBIE_RESET, ;, ;, when( !dvarbool( sv_saveDeviceAvailable ) ), name newgame_nosavedevice )
         CHOICE_BUTTON_FOCUS_VIS_NOHI_EX( 2, "@MENU_NEWGAME", setdvar ui_newgame_nextmenu 3; open popmenu_content_warning; LOCAL_NETWORK_RESET; LOCAL_ZOMBIE_RESET, ;, ;, 1, name newgame_noprofile )
         CHOICE_BUTTON_FOCUS_VIS_NOHI_EX( 2, "@MENU_NEWGAME", setdvar ui_newgame_nextmenu 2; open popmenu_content_warning; LOCAL_NETWORK_RESET; LOCAL_ZOMBIE_RESET, ;, ;, when( dvarbool( sv_saveDeviceAvailable ) && ( dvarbool( sv_saveGameAvailable ) || dvarbool( sv_saveGameNotReadable ) ) ), name newgame_nosavegame )
         CHOICE_BUTTON_FOCUS_VIS_NOHI_EX( 2, "@MENU_NEWGAME", setdvar ui_newgame_nextmenu 1; open popmenu_content_warning; LOCAL_NETWORK_RESET; LOCAL_ZOMBIE_RESET, ;, ;, when( dvarbool( sv_saveDeviceAvailable ) && !dvarbool( sv_saveGameAvailable ) && !dvarbool( sv_saveGameNotReadable ) ), name newgame )

         CHOICE_BUTTON_BG( 3, 1 )
         CHOICE_HIGHLIGHT( 3, 1 )
         CHOICE_BUTTON_FOCUS_VIS_NOHI_EX( 3, "@MENU_MISSION_SELECT", open popmenu_savedevice_unavailable_warning_mission; LOCAL_NETWORK_RESET; LOCAL_ZOMBIE_RESET, ;, ;, when( !dvarbool( sv_saveDeviceAvailable ) ), name resume_nosavedevice )
         CHOICE_BUTTON_FOCUS_VIS_NOHI_EX( 3, "@MENU_MISSION_SELECT", open levels; LOCAL_NETWORK_RESET; LOCAL_ZOMBIE_RESET, ;, ;, when( dvarbool( sv_saveDeviceAvailable ) ), name levelselect )
         CHOICE_BUTTON_FOCUS_VIS_NOHI_EX( 3, "@MENU_MISSION_SELECT", open noprofilewarning_levelselect; LOCAL_NETWORK_RESET; LOCAL_ZOMBIE_RESET, ;, ;, 1, name levelselect_noprofile )   

         //CHOICE_SEPARATOR( CHOICE_SEP_1 )
         //CHOICE_BUTTON_FOCUS_VIS_EX_ADV( 4, "@MENU_ARCADEMODE", open popmenu_arcade; LOCAL_NETWORK_RESET;, CLEARUIHINT, CLEARUIHINT, when( dvarInt( mis_01 ) >= 20 );, ;, dvarInt( mis_01 ) >= 20 )
         //CHOICE_BUTTON_FOCUS_VIS_NOHI_EX( 4, "", ;, exec "set ui_hint_text @MENU_ARCADE_UNLOCK_DESC"; show "desc_arrow", CLEARUIHINT, when( dvarInt( mis_01 ) < 20 );, ; )
         //CHOICE_DBUTTON_VIS( 4, "@MENU_ARCADEMODE", when( dvarInt( mis_01 ) < 20 ); )

#endif
      
#ifdef PS3      
      
         CHOICE_BUTTON_FOCUS_VIS_ADV( 1, "@MENU_RESUMEGAME_CAP", open resume_popmenu; LOCAL_ZOMBIE_RESET, ;, ;, when( dvarbool( sv_saveGameAvailable ) ), dvarbool( sv_saveGameAvailable ) )
         CHOICE_BUTTON_FOCUS_VIS_ADV( 1, "@MENU_RESUMEGAME_CAP", open save_corrupted; LOCAL_ZOMBIE_RESET, ;, ;, when( !dvarbool( sv_saveGameAvailable ) && dvarbool( sv_saveGameNotReadable ) ), !dvarbool( sv_saveGameAvailable ) && dvarbool( sv_saveGameNotReadable ) )
         //CHOICE_DBUTTON_VIS( 1, "@MENU_RESUMEGAME", when( !dvarbool( sv_saveGameAvailable ) && !dvarbool( sv_saveGameNotReadable ) ); )
         
         CHOICE_BUTTON_FOCUS_VIS_ADV( 2, "@MENU_NEWGAME", setdvar ui_newgame_nextmenu 1; open popmenu_content_warning; LOCAL_ZOMBIE_RESET, ;, ;, when( !dvarbool( sv_saveGameAvailable ) || dvarbool( sv_saveGameNotReadable ) ), !dvarbool( sv_saveGameAvailable ) || dvarbool( sv_saveGameNotReadable ) )
         CHOICE_BUTTON_FOCUS_VIS_ADV( 2, "@MENU_NEWGAME", setdvar ui_newgame_nextmenu 2; open popmenu_content_warning; LOCAL_ZOMBIE_RESET, ;, ;, when( dvarbool( sv_saveGameAvailable ) && !dvarbool( sv_saveGameNotReadable ) ), dvarbool( sv_saveGameAvailable ) && !dvarbool( sv_saveGameNotReadable ) )

         //CHOICE_BUTTON( 3, "@MENU_MISSION_SELECT", open levels_game; LOCAL_ZOMBIE_RESET )
         CHOICE_BUTTON_FOCUS_VIS_EX( 3, "@MENU_MISSION_SELECT", open levels;  LOCAL_NETWORK_RESET; LOCAL_ZOMBIE_RESET, ;, ;, when( dvarint( mis_01 ) >= 1 ), name levelselect )
   
         //CHOICE_BUTTON_FOCUS_VIS_EX_ADV( 4, "@MENU_ARCADEMODE", open popmenu_arcade;, CLEARUIHINT, CLEARUIHINT, when( dvarInt( mis_01 ) >= 20 );, ;, dvarInt( mis_01 ) >= 20 )
         //CHOICE_BUTTON_FOCUS_VIS_NOHI_EX( 4, "", ;, exec "set ui_hint_text @MENU_ARCADE_UNLOCK_DESC"; show "desc_arrow", CLEARUIHINT, when( dvarInt( mis_01 ) < 20 );, ; )
         //CHOICE_DBUTTON_VIS( 4, "@MENU_ARCADEMODE", when( dvarInt( mis_01 ) < 20 ); )

#endif
      
#ifdef PC
         // all buttons will be hidden when option menus are opened, LocalVarBool(ui_hideBack)

         CHOICE_BUTTON_FOCUS_VIS_ADV( 1, "@MENU_RESUMEGAME_CAP", open resume_popmenu; LOCAL_NETWORK_RESET; LOCAL_ZOMBIE_RESET, ;, ;, when( dvarbool( sv_saveGameAvailable ) && !localvarBool( ui_hideBack ) ), dvarbool( sv_saveGameAvailable ) && !localvarBool( ui_hideBack ) )
         
         CHOICE_BUTTON_BG( 2, when( !localvarBool( ui_hideBack ) ); )
         CHOICE_HIGHLIGHT( 2, 1 )
         CHOICE_BUTTON_FOCUS_VIS_NOHI_EX( 2, "@MENU_NEWGAME", open popmenu_newgame; LOCAL_NETWORK_RESET; LOCAL_ARCADE_RESET; LOCAL_ZOMBIE_RESET, ;, ;, when( !localvarBool( ui_hideBack ) && !dvarBool(sv_saveGameAvailable) );, name newgame )
         CHOICE_BUTTON_FOCUS_VIS_NOHI_EX( 2, "@MENU_NEWGAME", open popmenu_overwrite_warning; LOCAL_NETWORK_RESET; LOCAL_ARCADE_RESET; LOCAL_ZOMBIE_RESET, ;, ;, when( !localvarBool( ui_hideBack ) && dvarBool(sv_saveGameAvailable) );, name newgame )

      
         CHOICE_BUTTON_VIS( 3, "@MENU_MISSION_SELECT", open levels; LOCAL_NETWORK_RESET; LOCAL_ZOMBIE_RESET, when( !localvarBool( ui_hideBack ) ); )
         //CHOICE_BUTTON_VIS( 4, "@MENU_SELECT_PROFILE", setdvar ui_playerProfileAlreadyChosen 0; open player_profile, when( !localvarBool( ui_hideBack ) ); )

         //CHOICE_BUTTON_VIS( 4, "@MENU_ARCADEMODE", open popmenu_arcade; LOCAL_NETWORK_RESET; LOCAL_ZOMBIE_RESET, when( dvarInt( mis_01 ) >= 20 && !localvarBool( ui_hideBack ) ); )
         //CHOICE_DBUTTON_VIS( 4, "@MENU_ARCADEMODE", when( dvarInt( mis_01 ) < 20 && !localvarBool( ui_hideBack ) ); )
#endif // #ifdef PC
      
      #include "ui/safearea.menu"
   }
   
   menuDef
   {
      name         main_online
      fullScreen      1
      rect         0 0 640 480
      focusColor      COLOR_FOCUSED
      soundloop       "music_mainmenu"
      onOpen
      {
         
         
         //clear hint for arcade mode description
         CLEARUIHINT
         LOCAL_ZOMBIE_RESET
         
#ifdef CONSOLE
         setdvar ui_version_show "0";

         profilehide levelselect_noprofile;
         profileshow levelselect;
         profilehide newgame_noprofile;
         profileshow newgame;
         
         //showhidenewgameresume;

         focusfirst;
#endif

#ifdef PC
         setdvar dw_active 1
#endif
         uiScript openmenuondvar ui_sp_unlock 1 "popmenu_sp_unlock";
      }
      onClose
      {
         
      }
      onFocus
      {
         //execnow "ui_cinematic front_end_coop 3"
         #ifdef PC
         // setdvar onlinegame "1"
         #endif
      }
#undef BACK_OPEN
#define BACK_OPEN \
         exec "xstopprivateparty"; \
         exec "xstopparty"; \
         exec "set splitscreen 0"; \
         exec "set arcademode 0"; \
         LOCAL_ZOMBIE_RESET \
         LOCAL_NETWORK_RESET   \
         close main_online;

      onEsc
      {
         
         BACK_OPEN   
      }

      // background
      #include "ui/blurredbg.inc"
      #include "ui/navcontrols.inc"

      CHOICE_MENU_TITLE( "@MENU_COOP_CAMPAIGN_CAP" )

      itemDef
      {
         rect         LOGO_START_X LOGO_START_Y 256 64 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_BOTTOM
         forecolor      1 1 1 1
         style         WINDOW_STYLE_SHADER
         background      "logo_cod2"
#ifdef CONSOLE
         visible         1
#else
         visible         when( !localVarBool( ui_hideBack ) );
#endif
         decoration
      }
      
      // draws signin status
      SIGNIN_STATUS

#ifdef CONSOLE
   #define SETUP_ACTION_PUBLIC_GAME \
      exec "xblive_privatematch 0"; \
      open menu_xboxlive;
#endif // #ifdef CONSOLE

#define SETUP_ACTION_SUMMARY_RESET \
      uiScript closeMenuOnDvar "ui_lobbypopup" summary "popup_summary_body"; \
      setdvar ui_lobbypopup ""; \
      setdvar ui_lobbypopup_text "";

#ifdef PC
   #define SETUP_ACTION_PUBLIC_GAME \
         exec "sv_privateclients 1"; \
         exec "xstartpublicpartyhost"; \
         exec "updategamerprofile"; \
         open "menu_xboxlive_lobby";
         
   #define SETUP_ACTION_HOSTONLINE \
         exec "systemlink 0"; \
         exec "splitscreen 0"; \
         exec "onlinegame 1"; \
         exec "exec "XBOXLIVE_MP_CFG; \
         exec "party_maxplayers 4"; \
         exec "xblive_privatematch 0"; \
         exec "xblive_rankedmatch 0"; \
         exec "party_timerVisible 0"; \
         exec "xstartprivateparty"; \
         setdvar ui_mptype "0"; \
         SET_ARCADE_MODE \
         SET_DEFAULT_MAP_AND_MODE \
         SETUP_ACTION_PUBLIC_GAME
         

#else
   #define SETUP_ACTION_XBOXLIVE \
         exec "xsigninlive"; \
         exec "systemlink 0"; \
         exec "splitscreen 0"; \
         exec "onlinegame 1"; \
         exec "exec "XBOXLIVE_MP_CFG; \
         exec "party_maxplayers 4"; \
         exec "xblive_privatematch 0"; \
         exec "xblive_rankedmatch 0"; \
         exec "party_timerVisible 0"; \
         exec "xstartprivateparty"; \
         setdvar ui_mptype "0"; \
         SETUP_ACTION_PUBLIC_GAME \
         SETUP_ACTION_SUMMARY_RESET \
         SET_DEFAULT_MAP_AND_MODE
#endif // #ifdef PC
         
#define SETUP_ACTION_SYSTEMLINK \
         exec "xsignin"; \
         exec "systemlink 1"; \
         exec "splitscreen 0"; \
         exec "xblive_rankedmatch 0"; \
         exec "onlinegame 0"; \
         exec "exec "SYSTEMLINK_MP_CFG; \
         setdvar ui_mptype "1"; \
         open systemlink_popup; \
         LOCAL_ZOMBIE_RESET \
         SET_ARCADE_MODE \
         SET_DEFAULT_MAP_AND_MODE
         
#define SETUP_ACTION_SYSTEMLINK_LOBBY \
         exec "xsignin"; \
         exec "systemlink 1"; \
         exec "splitscreen 0"; \
         exec "onlinegame 0"; \
         exec "exec "SYSTEMLINK_MP_CFG; \
         exec "party_maxplayers 4"; \
         exec "xblive_privatematch 0"; \
         exec "xblive_rankedmatch 0"; \
         exec "party_timerVisible 0"; \
         setdvar ui_mptype "0"; \
         open menu_systemlink_popmenu;/*menu_systemlink_popmenu menu_systemlink_party;*/ \
         LOCAL_ZOMBIE_RESET \
         SET_ARCADE_MODE \
         SET_DEFAULT_MAP_AND_MODE

#define SETUP_ACTION_SPLITSCREEN_LOBBY \
         exec "splitscreen 1"; \
         exec "endsplitscreensignin"; \
         exec "xblive_rankedmatch 0"; \
         exec "onlinegame 0"; \
         exec "systemlink 0"; \
         setdvar ui_mptype "0"; \
         open menu_splitscreen_lobby; \
         LOCAL_ZOMBIE_RESET \
         SET_ARCADE_MODE \
         SET_DEFAULT_MAP_AND_MODE

#define SETUP_ACTION_GAMEBROWSER \
         exec "systemlink 0"; \
         exec "splitscreen 0"; \
         exec "onlinegame 1"; \
         exec "xblive_privatematch 0"; \
         exec "xblive_rankedmatch 0"; \
         exec "party_timerVisible 0"; \
         setdvar ui_mptype "0"; \
         SETUP_ACTION_SUMMARY_RESET \
         open pc_join_unranked;

#define SETUP_ACTION_HOSTLAN \
         exec "systemlink 1"; \
         exec "onlinegame 1"; \
         exec "exec "SYSTEMLINK_MP_CFG; \
         exec "party_maxplayers 4"; \
         exec "xblive_privatematch 1"; \
         exec "xblive_rankedmatch 0"; \
         exec "party_timerVisible 0"; \
         exec "xstartprivateparty"; \
         setdvar ui_mptype "0"; \
         SETUP_ACTION_PUBLIC_GAME \
         SET_ARCADE_MODE \
         SETUP_ACTION_SUMMARY_RESET \
         SET_DEFAULT_MAP_AND_MODE
         
         
      #ifdef XENON
         CHOICE_BUTTON_BG( 1, 1 );
         CHOICE_HIGHLIGHT( 1, 1 );
         CHOICE_BUTTON_FOCUS_VIS_NOHI_EX( 1, "@PLATFORM_XBOX_LIVE", SETUP_ACTION_XBOXLIVE, CLEARUIHINT;, ;, when( dvarBool( ui_ethernetLinkActive ) ), name xboxliveselect )
         CHOICE_BUTTON_FOCUS_VIS_NOHI_EX( 1, "@PLATFORM_XBOX_LIVE", open error_netconnect_popmenu;, CLEARUIHINT;, ;, when( !dvarBool( ui_ethernetLinkActive ) ), name xboxliveselect_nolink )
         
         CHOICE_BUTTON_FOCUS_VIS_EX( 2, "@MENU_SPLIT_SCREEN", SETUP_ACTION_SPLITSCREEN_LOBBY, CLEARUIHINT;, ;, 1, name splitscreenselect )

         CHOICE_BUTTON_BG( 3, 1 );
         CHOICE_HIGHLIGHT( 3, 1 );
         CHOICE_BUTTON_FOCUS_VIS_NOHI_EX( 3, "@PLATFORM_SYSTEM_LINK", SETUP_ACTION_SYSTEMLINK_LOBBY, CLEARUIHINT;, ;, when( dvarBool( ui_ethernetLinkActive ) ), name systemlinkselect )
         CHOICE_BUTTON_FOCUS_VIS_NOHI_EX( 3, "@PLATFORM_SYSTEM_LINK", open error_netconnect_popmenu;, CLEARUIHINT;, ;, when( !dvarBool( ui_ethernetLinkActive ) ), name systemlinkselect_nolink )
         
      #endif
      
      #ifdef PS3
         CHOICE_BUTTON_FOCUS_VIS_EX( 1, "@PLATFORM_PLAY_ONLINE", SETUP_ACTION_XBOXLIVE, CLEARUIHINT;, ;, 1, name xboxliveselect )
         CHOICE_BUTTON_FOCUS_VIS_EX( 2, "@MENU_SPLIT_SCREEN", SETUP_ACTION_SPLITSCREEN_LOBBY, CLEARUIHINT;, ;, 1, name splitscreenselect )
         CHOICE_BUTTON_FOCUS_VIS_EX( 3, "@PLATFORM_SYSTEM_LINK", SETUP_ACTION_SYSTEMLINK_LOBBY, CLEARUIHINT;, ;, 1, name systemlinkselect )      
      #endif
      
      #ifdef PC
         // all buttons will be hidden when option menus are opened, LocalVarBool(ui_hideBack)
         //CHOICE_BUTTON_BG( 1, 1 )
         //CHOICE_HIGHLIGHT( 1, 1 )
         //CHOICE_BUTTON_FOCUS_VIS_NOHI_EX( 1, "@PLATFORM_PLAY_ONLINE", SETUP_ACTION_XBOXLIVE, CLEARUIHINT;, ;, 1, name xboxliveselect )
         //
         //CHOICE_BUTTON_BG( 2, 1 )
         //CHOICE_HIGHLIGHT( 2, 1 )
         //CHOICE_BUTTON_FOCUS_VIS_NOHI_EX( 2, "@PLATFORM_SYSTEM_LINK", SETUP_ACTION_SYSTEMLINK_LOBBY, CLEARUIHINT;, ;, 1, name systemlinkselect )                        
         
         #define SETUP_ACTION_CHALLENGES \
               statSetUsingTable( 263, 1 ); \
               /*exec "uploadstats";*/ \
               open menu_challenges

         #define SETUP_ACTION_COLLECTIBLES \
            open menu_collectibles;

         #undef CHOICE_SEP_1
         #define CHOICE_SEP_1         1

         #undef CHOICE_SEP_2
         #define CHOICE_SEP_2         3

         CHOICE_BUTTON_BG( 1, when( !localVarBool( ui_hideBack ) ) )
         CHOICE_HIGHLIGHT( 1, 1 )
         CHOICE_BUTTON_FOCUS_VIS_NOHI_EX( 1, "@MENU_FIND_GAME", SETUP_ACTION_GAMEBROWSER, CLEARUIHINT;, ;, when( !localVarBool( ui_hideBack ) ), name gamebrowser )

         CHOICE_BUTTON_FOCUS_VIS( 2, "@MENU_HOST_ONLINE_CAP", SETUP_ACTION_HOSTONLINE, exec "set ui_hint_text @MPUI_DESC_HOST_ONLINE", CLEARUIHINT, when( !localVarBool( ui_hideBack ) && dvarBool( dw_loggedin ) ) )
         CHOICE_BUTTON_FOCUS_VIS_NOHI( 2, "", ;, exec "set ui_hint_text @MPUI_DESC_HOST_ONLINE_LOCKED", CLEARUIHINT, when( !localVarBool( ui_hideBack ) && !dvarBool( dw_loggedin ) ) )
         CHOICE_DBUTTON_VIS( 2, "@MENU_HOST_ONLINE_CAP", when( !localVarBool( ui_hideBack ) && !dvarBool( dw_loggedin ) ) )

         CHOICE_BUTTON_BG( 3, when( !localVarBool( ui_hideBack ) ) )
         CHOICE_HIGHLIGHT( 3, 1 )
         CHOICE_BUTTON_FOCUS_VIS_NOHI_EX( 3, "@MENU_HOST_LAN_CAP", SETUP_ACTION_HOSTLAN, CLEARUIHINT;, ;, when( !localVarBool( ui_hideBack ) ), name hostlan )

         CHOICE_BUTTON_BG( 4, when( !localVarBool( ui_hideBack ) ) )
         CHOICE_HIGHLIGHT( 4, 1 )
         CHOICE_BUTTON_FOCUS_VIS_NOHI_EX( 4, "@MENU_RANK_AND_CHALLENGES_CAP", SETUP_ACTION_CHALLENGES, CLEARUIHINT;, ;, when( !localVarBool( ui_hideBack ) ), name challenges )               
         
         CHOICE_BUTTON_BG( 5, when( !localVarBool( ui_hideBack ) ) )
         CHOICE_HIGHLIGHT( 5, 1 )
         CHOICE_BUTTON_FOCUS_VIS_NOHI_EX( 5, "@MENU_DEATHCARDS", SETUP_ACTION_COLLECTIBLES, CLEARUIHINT;, ;, when( !localVarBool( ui_hideBack ) ), name deathcards )               

         CHOICE_FOOTNOTE_VIS( "@MENU_GAME_EXPERIENCE_MAY_CHANGE", 40, 430, when( !localvarBool( ui_hideBack ) && !localvarBool( ui_inOverlay ) ) )
      #endif // #ifdef PC

#ifdef CONSOLE
      #undef FOOTNOTE_RECT
      #define FOOTNOTE_RECT( x, y )         x y 640 22 HORIZONTAL_ALIGN_RIGHT VERTICAL_ALIGN_BOTTOM
      CHOICE_FOOTNOTE( "@MENU_GAME_EXPERIENCE_MAY_CHANGE", -250, -22 )
#endif // #ifdef CONSOLE

      #include "ui/safearea.menu"
   }

   #include "ui_mp/popupstyle.inc"
   #include "ui/choices_setup_popmenu.menu"
   
   #undef CHOICE_SIZE_X
   #define CHOICE_SIZE_X         180

   #undef CHOICE_HORIZONTAL_ALIGN
   #define CHOICE_HORIZONTAL_ALIGN   HORIZONTAL_ALIGN_LEFT
   #undef CHOICE_VERTICAL_ALIGN
   #define CHOICE_VERTICAL_ALIGN   VERTICAL_ALIGN_TOP

#ifdef CONSOLE
   #undef CHOICE_POPUP_TITLE_HEIGHT
   #define CHOICE_POPUP_TITLE_HEIGHT   24
   #undef CHOICE_X_START
   #define CHOICE_X_START         78
   #undef CHOICE_Y_START
   #define CHOICE_Y_START         135//230
#endif

#ifdef PC
   #undef CHOICE_X_START
   #define CHOICE_X_START         78
   #undef CHOICE_Y_START
   #define CHOICE_Y_START         230
   #undef CHOICE_SIZE_X
   #define CHOICE_SIZE_X         180
#endif

   menuDef
   {
      CENTER_POPUP_SETUP_ONOPEN( resume_popmenu, 2, ;, ;, 1 )
      CHOICE_POPMENU_TITLE( "@MENU_RESUMEGAME_Q" )
      
      CHOICE_HIGHLIGHT( 2, 1 )
      CHOICE_BUTTON_FOCUS_NOHI( 2, "@MENU_YES", exec "loadgame_continue"; close self;, play "mouse_over";, ;)
      CHOICE_HIGHLIGHT( 3, 1 )
      CHOICE_BUTTON_FOCUS_NOHI( 3, "@MENU_NO", close self;, play "mouse_over";, ; )
   }
   
   menuDef
   {
      CENTER_POPUP_SETUP_ONOPEN( popmenu_arcade, 5, ;, ;, 1 )
      CHOICE_POPMENU_TITLE( "@MENU_SELECT_ARCADEMODE" )
      
      CHOICE_HIGHLIGHT( 2, 1 )
      CHOICE_BUTTON( 2, "@MENU_ARCADE_FULL", exec "set arcademode 1; set arcademode_full 1"; open popmenu_arcade_difficulty; close self; )
      CHOICE_BUTTON( 2, "@MENU_ARCADE_SINGLE", exec "set arcademode 1; set arcademode_full 0"; open levels; close self; )
      
      CHOICE_CAPTION_VIS( 3, locstring("@MENU_ARCADE_FULL_DESC", dvarInt(s18)), when( localvarint(ui_highlight) == 1 ); autowrapped)
      CHOICE_CAPTION_VIS( 3, "@MENU_ARCADE_SINGLE_DESC", when( localvarint(ui_highlight) == 2 ); autowrapped)
   }

#ifdef CONSOLE
   #undef CHOICE_Y_START
   #define CHOICE_Y_START         250
   #undef CHOICE_SIZE_X
   #define CHOICE_SIZE_X         340

   #define   RECT_Y_OFFSET         198
   #define   CHOICE_CUSTOM_START      1
#else // #ifdef CONSOLE
   #undef CHOICE_X_START
   #define CHOICE_X_START         78
   #undef CHOICE_Y_START
   #define CHOICE_Y_START         230
   #undef CHOICE_SIZE_X
   #define CHOICE_SIZE_X         180
#endif

   menuDef
   {
      CENTER_POPUP_SETUP_ONOPEN( error_netconnect_popmenu, 3, ;, ;, 1 )
         
      CHOICE_POPMENU_TITLE( "@MENU_NOTICE" )
      CHOICE_POPMENU_SUBTITLE( "@XBOXLIVE_NETCONNECTION")

      CHOICE_HIGHLIGHT( 3, 1 )
      CHOICE_BUTTON_NOHI( 3, "@MENU_EXIT", close self;)
   }



   // popup for unlock of cheats and arcade mode
   menuDef
   {
      CENTER_POPUP_SETUP_ONOPEN( popmenu_sp_unlock, 3, ;, ;, 1 )
      onClose{ exec "set ui_sp_unlock 0";  }
      onOpen{ exec "set ui_sp_unlock 0";  }
      
      CHOICE_POPMENU_TITLE( "@PLATFORM_SP_UNLOCK_TITLE" )
      
      CHOICE_POPMENU_SUBTITLE( "@PLATFORM_SP_UNLOCK_INFO" )
      //CHOICE_POPMENU_SUBTITLE_VIS( "@PLATFORM_SP_UNLOCK_DESC", 1 exp rect Y( RECT_Y_OFFSET ); )      
      
      CHOICE_BUTTON( 3, "@MENU_OK", close self;)
   }
   
   #undef CHOICE_SIZE_X
   #define CHOICE_SIZE_X         180

   #undef CHOICE_Y_START
   #define CHOICE_Y_START         230

#ifdef PC
   
   menuDef
   {
      CENTER_POPUP_SETUP_ONOPEN( multi_popmenu, 3, ;, ;, 1 )
      CHOICE_POPMENU_TITLE( "@MENU_SWITCHTOMULTIPLAYER" )
      
      CHOICE_BUTTON( 2, "@MENU_YES", uiScript startMultiplayer; close self;)
      CHOICE_BUTTON( 3, "@MENU_NO", close self )
   }   
#endif

   #define ONOPEN_OVERWRITE \
      setfocus "no"; \

   menuDef
   {
      CENTER_POPUP_SETUP_ONOPEN( popmenu_overwrite_warning, 3, ;, ONOPEN_OVERWRITE, 1 )
      CHOICE_POPMENU_TITLE( "@MENU_NEWGAME_NOCAPS" )

      CHOICE_POPMENU_SUBTITLE( "@MENU_WARNING_CHECKPOINT_RESET" )

      CHOICE_HIGHLIGHT( 2, 1 )
      CHOICE_BUTTON_BG( 2, 1 )
      CHOICE_BUTTON_FOCUS_NOHI( 2, "@MENU_YES", close self; open popmenu_newgame;, play "mouse_over";, ; )

      CHOICE_HIGHLIGHT( 3, 1 )
      CHOICE_BUTTON_BG( 3, 1 )
      CHOICE_BUTTON_FOCUS_VIS_NOHI_EX( 3, "@MENU_NO", close self;, play "mouse_over";, ;, 1, name "no" )
   }

   menuDef
   {
      CENTER_POPUP_SETUP_ONOPEN( popmenu_autosave_warning, 3, ;, ;, 1 )
      CHOICE_POPMENU_TITLE( "@MENU_NOTICE" )

      CHOICE_POPMENU_SUBTITLE( "@MENU_WARNING_AUTOSAVE" )

      CHOICE_HIGHLIGHT( 2, 1 )
      CHOICE_BUTTON_NOHI( 2, "@MENU_YES", close self; open popmenu_newgame; )
      CHOICE_HIGHLIGHT( 3, 1 )
      CHOICE_BUTTON_NOHI_EX( 3, "@MENU_NO", close self;, name "no" )
   }

#ifdef PS3
   menuDef
   {
      CENTER_POPUP_SETUP_ONOPEN( popmenu_autosave_warning_lockout, 6, ;, ;, 1 )
      onClose{ exec "set ui_show_autosave_warning 0";  }
      CHOICE_POPMENU_TITLE( "@MENU_NOTICE" )
      CHOICE_POPMENU_SUBTITLE( "@MENU_WARNING_AUTOSAVE" )

      CHOICE_HIGHLIGHT( 1, 1 )
      CHOICE_BUTTON_NOHI( 1, "@MENU_OK", close self;)
   }
#endif // PS3


   menuDef
   {
      CENTER_POPUP_SETUP_ONOPEN( popup_options_noprofile, 3, ;, setfocus "no";, 1 )
      
      CHOICE_POPMENU_TITLE( "@MENU_WARNING_CAP" )
      CHOICE_POPMENU_SUBTITLE( "@MENU_PROFILE_WARNING" )

      CHOICE_BUTTON_EX( 2, "@MENU_YES", close self; open options, name yes )
      CHOICE_BUTTON_EX( 3, "@MENU_NO", exec "xsignin 0"; close self;, name no )
   }

#define LOCAL_ACTION_CONTENT_WARNING \
   uiScript openMenuOnDvar ui_newgame_nextmenu 1 popmenu_newgame; \
   uiScript openMenuOnDvar ui_newgame_nextmenu 2 popmenu_overwrite_warning; \
   uiScript openMenuOnDvar ui_newgame_nextmenu 3 noprofilewarning_newgame; \
   uiScript openMenuOnDvar ui_newgame_nextmenu 4 popmenu_savedevice_unavailable_warning; \
   close self;

   menuDef
   {
      CENTER_POPUP_SETUP_ONOPEN( popmenu_content_warning, 3, close self;, ;, 1 )
      CHOICE_POPMENU_TITLE( "@MENU_WARNING_CAP" )

      CHOICE_POPMENU_SUBTITLE( "@MENU_CONTENT_WARNING" )

      CHOICE_HIGHLIGHT( 3, 1 )
      CHOICE_BUTTON_FOCUS_NOHI( 3, "@MENU_OK", LOCAL_ACTION_CONTENT_WARNING, play "mouse_over";, ; )
   }

   //menuDef
   //{
   //   name         "popmenu_first_playable"
   //   visible         0
   //   fullscreen      0
   //   rect         204 140 235 160
   //   focusColor      COLOR_FOCUSED
   //   style         WINDOW_STYLE_FILLED
   //   border         1
   //   popup
   //   onESC
   //   {
   //      play "mouse_over";
   //      close popmenu_first_playable;
   //   }
   //   onOpen
   //   {
   //      exec "updatedvarsfromprofile";
   //      setfocus "newgame_regular";
   //      setfocusbydvar "g_gameskill";
   //   }
   //   onClose
   //   {
   //   }
   //   itemDef
   //   {
   //      name         window
   //      group         grpControlbutton
   //      rect         0 2 235 135
   //      style         WINDOW_STYLE_FILLED
   //      border         1
   //      bordercolor      .5 .5 .5 .5
   //      forecolor      1 1 1 1
   //      backcolor      0 0 0 .5
   //      visible         0
   //      decoration
   //   }
   //   itemDef
   //   {
   //      name         backimage2fade
   //      style         WINDOW_STYLE_SHADER
   //      rect         -332 -162 896 440
   //      background      "white"
   //      forecolor      0 0 0 0.6
   //      backcolor      0 0 0 0.6
   //      visible         1
   //      decoration
   //   }
   //   itemDef
   //   {
   //      name         window2
   //      group         grpControlbutton
   //      rect         2 3 231 20
   //      style         WINDOW_STYLE_FILLED
   //      border         1
   //      bordercolor      .1 .1 .1 .2
   //      forecolor      1 1 1 1
   //      backcolor      1 1 .3 .3
   //      visible         0
   //      decoration
   //   }
   //   itemDef
   //   {
   //      name         backimage2fade
   //      style         WINDOW_STYLE_SHADER
   //      rect         -200 2 635 225
   //      background      "popmenu_bg"
   //      visible         1
   //      decoration
   //   }
   //   itemDef
   //   {
   //      name         confirm
   //      text         "@MENU_CHOOSESKILLLEVEL"
   //      style         WINDOW_STYLE_EMPTY
   //      textscale      TEXTSIZE_TITLE
   //      rect         17 6 201 24
   //      textalign      ITEM_ALIGN_MIDDLE_CENTER
   //      forecolor      COLOR_TITLE
   //      visible         1
   //      decoration
   //   }
   //   itemDef
   //   {
   //      name         newgame_easy
   //      text         "@MENU_EASY"
   //      type         ITEM_TYPE_BUTTON
   //      textscale      TEXTSIZE_DEFAULT
   //      style         WINDOW_STYLE_FILLED
   //      textfont      UI_FONT_NORMAL
   //      rect         70 43 100 16
   //      textalign      ITEM_ALIGN_MIDDLE_CENTER
   //      forecolor      COLOR_UNFOCUSED
   //      visible         1
   //      dvartest      "g_gameskill"
   //      focusdvar      { "0" }
   //      onFocus
   //      {
   //         play "mouse_over";
   //         show newgame_regular_description;
   //      }
   //      leavefocus
   //      {
   //         hide newgame_regular_description;
   //      }
   //      action
   //      {
   //         play "mouse_click";
   //         execnow "difficultyeasy";
   //         execnow "updategamerprofile";
   //         close popmenu_first_playable;
   //         exec "devmap bog_a";
   //      }
   //   }
   //   itemDef
   //   {
   //      name         newgame_regular
   //      text         "@MENU_REGULAR"
   //      type         ITEM_TYPE_BUTTON
   //      textscale      TEXTSIZE_DEFAULT
   //      style         WINDOW_STYLE_FILLED
   //      textfont      UI_FONT_NORMAL
   //      rect         70 63 100 16
   //      textalign      ITEM_ALIGN_MIDDLE_CENTER
   //      forecolor      COLOR_UNFOCUSED
   //      visible         1
   //      dvartest      "g_gameskill"
   //      focusdvar      { "1" }
   //      onFocus
   //      {
   //         play "mouse_over";
   //         show newgame_skilled_description;
   //      }
   //      leavefocus
   //      {
   //         hide newgame_skilled_description;
   //      }
   //      action
   //      {
   //         play "mouse_click";
   //         execnow "difficultymedium";
   //         execnow "updategamerprofile";
   //         close popmenu_first_playable;
   //         exec "devmap bog_a";
   //      }
   //   }
   //   itemDef
   //   {
   //      name         newgame_hard
   //      text         "@MENU_HARDENED"
   //      type         ITEM_TYPE_BUTTON
   //      textscale      TEXTSIZE_DEFAULT
   //      style         WINDOW_STYLE_FILLED
   //      textfont      UI_FONT_NORMAL
   //      rect         70 83 100 16
   //      textalign      ITEM_ALIGN_MIDDLE_CENTER
   //      forecolor      COLOR_UNFOCUSED
   //      visible         1
   //      dvartest      "g_gameskill"
   //      focusdvar      { "2" }
   //      onFocus
   //      {
   //         play "mouse_over";
   //         show newgame_hardened_description;
   //      }
   //      leavefocus
   //      {
   //         hide newgame_hardened_description;
   //      }
   //      action
   //      {
   //         play "mouse_click";
   //         execnow "difficultyhard";
   //         execnow "updategamerprofile";
   //         close popmenu_first_playable;
   //         exec "devmap bog_a";
   //      }
   //   }
   //   itemDef
   //   {
   //      name         newgame_fu
   //      text         "@MENU_VETERAN"
   //      type         ITEM_TYPE_BUTTON
   //      textscale      TEXTSIZE_DEFAULT
   //      style         WINDOW_STYLE_FILLED
   //      textfont      UI_FONT_NORMAL
   //      rect         70 103 100 16
   //      textalign      ITEM_ALIGN_MIDDLE_CENTER
   //      forecolor      COLOR_UNFOCUSED
   //      visible         1
   //      dvartest      "g_gameskill"
   //      focusdvar      { "3" }
   //      onFocus
   //      {
   //         play "mouse_over";
   //         show newgame_fu_description;
   //      }
   //      leavefocus
   //      {
   //         hide newgame_fu_description;
   //      }
   //      action
   //      {
   //         play "mouse_click";
   //         execnow "difficultyfu";
   //         execnow "updategamerprofile";
   //         close popmenu_first_playable;
   //         exec "devmap bog_a";
   //      }
   //   }
   //   itemDef
   //   {
   //      name         newgame_regular_description_1
   //      group         newgame_regular_description
   //      text         "@MENU_REGULAR_DESC_3"
   //      type         ITEM_TYPE_BUTTON
   //      textscale      .3
   //      style         WINDOW_STYLE_FILLED
   //      textfont      UI_FONT_NORMAL
   //      rect         70 139 100 17
   //      textalign      ITEM_ALIGN_TOP_CENTER
   //      forecolor      COLOR_UNFOCUSED
   //      visible         0
   //      decoration
   //   }
   //   itemDef
   //   {
   //      name         newgame_regular_description_1
   //      group         newgame_regular_description
   //      text         "@MENU_REGULAR_DESC_4"
   //      type         ITEM_TYPE_BUTTON
   //      textscale      .3
   //      style         WINDOW_STYLE_FILLED
   //      textfont      UI_FONT_NORMAL
   //      rect         70 154 100 17
   //      textalign      ITEM_ALIGN_TOP_CENTER
   //      forecolor      COLOR_UNFOCUSED
   //      visible         0
   //      decoration
   //   }
   //   itemDef
   //   {
   //      name         newgame_skilled_description_1
   //      group         newgame_skilled_description
   //      text         "@MENU_SKILLED_DESC"
   //      type         ITEM_TYPE_BUTTON
   //      textscale      .3
   //      style         WINDOW_STYLE_FILLED
   //      textfont      UI_FONT_NORMAL
   //      rect         70 139 100 17
   //      textalign      ITEM_ALIGN_TOP_CENTER
   //      forecolor      COLOR_UNFOCUSED
   //      visible         0
   //      decoration
   //   }
   //   itemDef
   //   {
   //      name         newgame_skilled_description_1
   //      group         newgame_skilled_description
   //      text         "@MENU_SKILLED_DESC_2"
   //      type         ITEM_TYPE_BUTTON
   //      textscale      .3
   //      style         WINDOW_STYLE_FILLED
   //      textfont      UI_FONT_NORMAL
   //      rect         70 154 100 17
   //      textalign      ITEM_ALIGN_TOP_CENTER
   //      forecolor      COLOR_UNFOCUSED
   //      visible         0
   //      decoration
   //   }
   //   itemDef
   //   {
   //      name         newgame_hardened_description_1
   //      group         newgame_hardened_description
   //      text         "@MENU_HARDENED_DESC"
   //      type         ITEM_TYPE_BUTTON
   //      textscale      .3
   //      style         WINDOW_STYLE_FILLED
   //      textfont      UI_FONT_NORMAL
   //      rect         70 144 100 17
   //      textalign      ITEM_ALIGN_TOP_CENTER
   //      forecolor      COLOR_UNFOCUSED
   //      visible         0
   //      decoration
   //   }
   //   itemDef
   //   {
   //      name         newgame_fu_description_1
   //      group         newgame_fu_description
   //      text         "@MENU_VETERAN_DESC"
   //      type         ITEM_TYPE_BUTTON
   //      textscale      .3
   //      style         WINDOW_STYLE_FILLED
   //      textfont      UI_FONT_NORMAL
   //      rect         70 144 100 17
   //      textalign      ITEM_ALIGN_TOP_CENTER
   //      forecolor      COLOR_UNFOCUSED
   //      visible         0
   //      decoration
   //   }
   //   itemDef
   //   {
   //      name         back
   //      text         "@MENU_BACK"
   //      type         ITEM_TYPE_BUTTON
   //      textscale      .3
   //      style         WINDOW_STYLE_FILLED
   //      textfont      UI_FONT_NORMAL
   //      rect         0 220 50 15
   //      textalign      ITEM_ALIGN_TOP_CENTER
   //      forecolor      COLOR_UNFOCUSED
   //      visible         0
   //      onFocus
   //      {
   //         play "mouse_over";
   //      }
   //      action
   //      {
   //         play "mouse_click";
   //         close popmenu_first_playable;
   //      }
   //   }
   //}
}



 
Loading ...