static void DrawChooseLevel(void);
static void DrawInfoScreen(void);
+static void DrawAndFadeInInfoScreen(int);
static void DrawSetupScreen(void);
-static void DrawInfoScreenExt(int);
+static void DrawInfoScreenExt(int, int);
static void DrawInfoScreen_NotAvailable(char *, char *);
static void DrawInfoScreen_HelpAnim(int, int, boolean);
static void DrawInfoScreen_HelpText(int, int, int, int);
OpenDoor(DOOR_CLOSE_1 | DOOR_CLOSE_2 | DOOR_NO_DELAY | DOOR_FORCE_REDRAW);
info_mode = INFO_MODE_MAIN;
- DrawInfoScreenExt(use_fading_main_menu);
+ DrawInfoScreenExt(REDRAW_ALL, use_fading_main_menu);
}
else /* default: return to main menu */
{
{ 0, NULL, NULL }
};
-static void DrawInfoScreen_Main(boolean do_fading)
+static void DrawInfoScreen_Main(int redraw_mask, boolean do_fading)
{
int i;
DrawMaskedBorder(REDRAW_ALL);
if (do_fading)
- FadeIn(REDRAW_ALL);
+ FadeIn(redraw_mask);
else
BackToFront();
{
SetMainBackgroundImageIfDefined(IMG_BACKGROUND_INFO_ELEMENTS);
+ FadeOut(REDRAW_FIELD);
+
LoadHelpAnimInfo();
LoadHelpTextInfo();
HandleInfoScreen_Elements(MB_MENU_INITIALIZE);
- FadeToFront();
+ FadeIn(REDRAW_FIELD);
+
InitAnimation();
}
if (page >= num_pages)
{
FadeSoundsAndMusic();
+ FadeOut(REDRAW_FIELD);
info_mode = INFO_MODE_MAIN;
- DrawInfoScreen();
+ DrawAndFadeInInfoScreen(REDRAW_FIELD);
return;
}
+ if (button != MB_MENU_INITIALIZE)
+ FadeCrossSaveBackbuffer();
+
DrawInfoScreen_HelpAnim(page * anims_per_page, num_anims, TRUE);
+
+ if (button != MB_MENU_INITIALIZE)
+ FadeCross(REDRAW_FIELD);
}
else
{
{
SetMainBackgroundImageIfDefined(IMG_BACKGROUND_INFO_MUSIC);
+ FadeOut(REDRAW_FIELD);
+
ClearWindow();
DrawHeadline();
LoadMusicInfo();
HandleInfoScreen_Music(MB_MENU_INITIALIZE);
+
+ FadeIn(REDRAW_FIELD);
}
void HandleInfoScreen_Music(int button)
if (list == NULL)
{
+ FadeSoundsAndMusic();
+ FadeOut(REDRAW_FIELD);
+
info_mode = INFO_MODE_MAIN;
- DrawInfoScreen();
+ DrawAndFadeInInfoScreen(REDRAW_FIELD);
return;
}
int ystart = 150, ystep = 30;
int ybottom = SYSIZE - 20;
+ if (screen_nr > 8)
+ return FALSE;
+
ClearWindow();
DrawHeadline();
DrawTextSCentered(ystart + 4 * ystep, FONT_TEXT_3,
"since 1995");
}
+#if 0
else
{
return FALSE;
}
+#endif
DrawTextSCentered(ybottom, FONT_TEXT_4,
"Press any key or button for next page");
FadeSoundsAndMusic();
+ FadeOut(REDRAW_FIELD);
+
HandleInfoScreen_Credits(MB_MENU_INITIALIZE);
+
+ FadeIn(REDRAW_FIELD);
}
void HandleInfoScreen_Credits(int button)
else
{
FadeSoundsAndMusic();
+ FadeOut(REDRAW_FIELD);
info_mode = INFO_MODE_MAIN;
- DrawInfoScreen();
+ DrawAndFadeInInfoScreen(REDRAW_FIELD);
}
}
else
SetMainBackgroundImageIfDefined(IMG_BACKGROUND_INFO_PROGRAM);
+ FadeOut(REDRAW_FIELD);
+
ClearWindow();
DrawHeadline();
DrawTextSCentered(ybottom, FONT_TEXT_4,
"Press any key or button for info menu");
+
+ FadeIn(REDRAW_FIELD);
}
void HandleInfoScreen_Program(int button)
if (button_released)
{
FadeSoundsAndMusic();
+ FadeOut(REDRAW_FIELD);
info_mode = INFO_MODE_MAIN;
- DrawInfoScreen();
+ DrawAndFadeInInfoScreen(REDRAW_FIELD);
}
else
{
SetMainBackgroundImageIfDefined(IMG_BACKGROUND_INFO_LEVELSET);
+ FadeOut(REDRAW_FIELD);
+
ClearWindow();
DrawHeadline();
else
DrawTextSCentered(ystart, FONT_TEXT_2,
"No information for this level set.");
+
+ FadeIn(REDRAW_FIELD);
}
void HandleInfoScreen_LevelSet(int button)
if (button_released)
{
FadeSoundsAndMusic();
+ FadeOut(REDRAW_FIELD);
info_mode = INFO_MODE_MAIN;
- DrawInfoScreen();
+ DrawAndFadeInInfoScreen(REDRAW_FIELD);
}
else
{
}
}
-static void DrawInfoScreenExt(boolean do_fading)
+static void DrawInfoScreenExt(int redraw_mask, boolean do_fading)
{
SetMainBackgroundImage(IMG_BACKGROUND_INFO);
else if (info_mode == INFO_MODE_LEVELSET)
DrawInfoScreen_LevelSet();
else
- DrawInfoScreen_Main(do_fading);
+ DrawInfoScreen_Main(redraw_mask, do_fading);
if (info_mode != INFO_MODE_MAIN &&
info_mode != INFO_MODE_TITLE &&
}
}
+void DrawAndFadeInInfoScreen(int redraw_mask)
+{
+ DrawInfoScreenExt(redraw_mask, TRUE);
+}
+
void DrawInfoScreen()
{
- DrawInfoScreenExt(0);
+ DrawInfoScreenExt(REDRAW_ALL, FALSE);
}
void HandleInfoScreen(int mx, int my, int dx, int dy, int button)