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
+1
View File
@@ -1,4 +1,5 @@
Changes towards version 0.3: Changes towards version 0.3:
- New main menu graphics from MarkVera, Paxtez, Nic (bug #393)
- Removed a place where you could ask for repairs when you shouldn't - Removed a place where you could ask for repairs when you shouldn't
(bug #432), from Nic (bug #432), from Nic
- Can use F10 to quit during splash screen as well as main menu -Michael - Can use F10 to quit during splash screen as well as main menu -Michael
Binary file not shown.

Before

Width:  |  Height:  |  Size: 54 KiB

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 476 B

After

Width:  |  Height:  |  Size: 557 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 460 B

After

Width:  |  Height:  |  Size: 531 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 555 B

After

Width:  |  Height:  |  Size: 650 B

+5 -3
View File
@@ -1,4 +1,6 @@
newgame.0.png -1 0 0 0 newgame.0.png -1 0 0 0
newgame.1.png -1 0 -186 -18 newgame.1.png -1 0 -105 -45
newgame.2.png -1 0 -125 -157 newgame.2.png -1 0 -104 -77
newgame.3.png -1 0 -32 -71 newgame.3.png -1 0 -91 -109
newgame.4.png -1 0 -130 -141
newgame.5.png -1 0 -139 -173
+23 -6
View File
@@ -42,7 +42,9 @@ enum
{ {
START_NEW_GAME = 0, START_NEW_GAME = 0,
LOAD_SAVED_GAME, LOAD_SAVED_GAME,
PLAY_SUPER_MELEE PLAY_SUPER_MELEE,
SETUP_GAME,
QUIT_GAME
}; };
static void static void
@@ -123,6 +125,8 @@ else if (InputState & DEVICE_EXIT) return (FALSE);
} }
else if (CurrentMenuState.select) else if (CurrentMenuState.select)
{ {
BYTE fade_buf[1];
switch (pMS->CurState) switch (pMS->CurState)
{ {
case LOAD_SAVED_GAME: case LOAD_SAVED_GAME:
@@ -136,6 +140,20 @@ else if (InputState & DEVICE_EXIT) return (FALSE);
case PLAY_SUPER_MELEE: case PLAY_SUPER_MELEE:
GLOBAL (CurrentActivity) = SUPER_MELEE; GLOBAL (CurrentActivity) = SUPER_MELEE;
break; 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); SetSemaphore (GraphicsSem);
@@ -149,17 +167,16 @@ else if (InputState & DEVICE_EXIT) return (FALSE);
BYTE NewState; BYTE NewState;
NewState = pMS->CurState; NewState = pMS->CurState;
if (CurrentMenuState.left || CurrentMenuState.up) if (CurrentMenuState.up)
{ {
if (NewState-- == START_NEW_GAME) 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; NewState = START_NEW_GAME;
} }
if (NewState != pMS->CurState) if (NewState != pMS->CurState)
{ {
DrawRestartMenu (pMS->CurState, NewState, pMS->CurFrame); DrawRestartMenu (pMS->CurState, NewState, pMS->CurFrame);