New Main Menu graphics from MarkVera, Paxtez, Nic (#393)

Setup is nonfunctional at present.


git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1092 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
mcmartin
2003-07-30 14:51:10 +00:00
parent 38c616078f
commit 99f156b592
7 changed files with 29 additions and 9 deletions
+23 -6
View File
@@ -42,7 +42,9 @@ enum
{
START_NEW_GAME = 0,
LOAD_SAVED_GAME,
PLAY_SUPER_MELEE
PLAY_SUPER_MELEE,
SETUP_GAME,
QUIT_GAME
};
static void
@@ -123,6 +125,8 @@ else if (InputState & DEVICE_EXIT) return (FALSE);
}
else if (CurrentMenuState.select)
{
BYTE fade_buf[1];
switch (pMS->CurState)
{
case LOAD_SAVED_GAME:
@@ -136,6 +140,20 @@ else if (InputState & DEVICE_EXIT) return (FALSE);
case PLAY_SUPER_MELEE:
GLOBAL (CurrentActivity) = SUPER_MELEE;
break;
case SETUP_GAME:
PlaySoundEffect (SetAbsSoundIndex (MenuSounds, 2),
0, NotPositional (), NULL, GAME_SOUND_PRIORITY);
InTime = GetTimeCounter ();
return TRUE;
break;
case QUIT_GAME:
PlaySoundEffect (SetAbsSoundIndex (MenuSounds, 1),
0, NotPositional (), NULL, GAME_SOUND_PRIORITY);
fade_buf[0] = FadeAllToBlack;
SleepThreadUntil (XFormColorMap ((COLORMAPPTR)fade_buf, ONE_SECOND / 2));
GLOBAL (CurrentActivity) = CHECK_ABORT;
break;
}
SetSemaphore (GraphicsSem);
@@ -149,17 +167,16 @@ else if (InputState & DEVICE_EXIT) return (FALSE);
BYTE NewState;
NewState = pMS->CurState;
if (CurrentMenuState.left || CurrentMenuState.up)
if (CurrentMenuState.up)
{
if (NewState-- == START_NEW_GAME)
NewState = PLAY_SUPER_MELEE;
NewState = QUIT_GAME;
}
else if (CurrentMenuState.right || CurrentMenuState.down)
else if (CurrentMenuState.down)
{
if (NewState++ == PLAY_SUPER_MELEE)
if (NewState++ == QUIT_GAME)
NewState = START_NEW_GAME;
}
if (NewState != pMS->CurState)
{
DrawRestartMenu (pMS->CurState, NewState, pMS->CurFrame);