void DrawHelpScreenMusicText(int num)
{
+ struct MusicFileInfo *list = music_file_info;
int ystart = 150, ystep = 30;
int ybottom = SYSIZE - 20;
+ int i;
+
+ for (i=0; i < num && list; i++)
+ list = list->next;
FadeSoundsAndMusic();
ClearWindow();
DrawTextFCentered(100, FONT_TEXT_1, "The game background music loops:");
+#if 1
+ DrawTextFCentered(ystart + 0 * ystep, FONT_TEXT_2, "Excerpt from");
+ DrawTextFCentered(ystart + 1 * ystep, FONT_TEXT_3, "\"%s\"", list->title);
+ DrawTextFCentered(ystart + 2 * ystep, FONT_TEXT_2, "by");
+ DrawTextFCentered(ystart + 3 * ystep, FONT_TEXT_3, "%s", list->artist);
+ DrawTextFCentered(ystart + 4 * ystep, FONT_TEXT_2, "from the album");
+ DrawTextFCentered(ystart + 5 * ystep, FONT_TEXT_3, "\"%s\"", list->album);
+#else
DrawTextFCentered(ystart + 0 * ystep, FONT_TEXT_2, "Excerpt from");
DrawTextFCentered(ystart + 1 * ystep, FONT_TEXT_3,
"\"%s\"", helpscreen_music[num][0]);
DrawTextFCentered(ystart + 4 * ystep, FONT_TEXT_2, "from the album");
DrawTextFCentered(ystart + 5 * ystep, FONT_TEXT_3,
"\"%s\"", helpscreen_music[num][2]);
+#endif
DrawTextFCentered(ybottom, FONT_TEXT_4,
"Press any key or button for next page");
void DrawHelpScreen()
{
+ struct MusicFileInfo *list;
int i;
UnmapAllGadgets();
helpscreen_musicpos = 0;
helpscreen_state = 0;
+ LoadMusicInfo();
+
+ num_helpscreen_music = 0;
+ for (list = music_file_info; list != NULL; list = list->next)
+ num_helpscreen_music++;
+
DrawHelpScreenElText(0);
DrawHelpScreenElAction(0);