rnd-20030208-3-src
authorHolger Schemel <info@artsoft.org>
Sat, 8 Feb 2003 17:59:33 +0000 (18:59 +0100)
committerHolger Schemel <info@artsoft.org>
Sat, 30 Aug 2014 08:40:17 +0000 (10:40 +0200)
src/conf_e2g.c
src/conf_snd.c
src/conftime.h
src/init.c
src/screens.c

index 82d0051f551ec18ede3a4cf05f24c371fa510aa9..176701b6d23d575667356d2cd337c9ceaea01590 100644 (file)
@@ -2252,6 +2252,10 @@ element_to_graphic[] =
     EL_ARROW_RED_DOWN,                         -1, -1,
     IMG_ARROW_RED_DOWN
   },
+  {
+    EL_BUG,                                    -1, -1,
+    IMG_BUG_RIGHT
+  },
   {
     EL_DOOR_WHITE,                             -1, -1,
     IMG_CHAR_QUESTION
@@ -2288,6 +2292,10 @@ element_to_graphic[] =
     EL_KEY_WHITE,                              -1, -1,
     IMG_CHAR_QUESTION
   },
+  {
+    EL_PACMAN,                                 -1, -1,
+    IMG_PACMAN_RIGHT
+  },
   {
     EL_SIGN_EXIT,                              -1, -1,
     IMG_CHAR_QUESTION
@@ -2328,6 +2336,10 @@ element_to_graphic[] =
     EL_SIGN_YINYANG,                           -1, -1,
     IMG_CHAR_QUESTION
   },
+  {
+    EL_SPACESHIP,                              -1, -1,
+    IMG_SPACESHIP_RIGHT
+  },
   {
     EL_CHAR_SPACE,                             -1, -1,
     IMG_CHAR_SPACE
index 07ce6b44d464a7ec307ebaaf32fdd80ec28de583..0dc227f9b730ae7f3bdd5a548c71b74e85caa5a9 100644 (file)
@@ -220,8 +220,12 @@ struct ConfigInfo sound_config[] =
   /* sounds for other non-game actions */
   { "menu.door_opening",               "oeffnen.wav"           },
   { "menu.door_closing",               "oeffnen.wav"           },
+
   { "menu.hall_of_fame",               "halloffame.wav"        },
+  { "menu.hall_of_fame.mode_loop",     "false"                 },
+
   { "menu.info_screen",                        "rhythmloop.wav"        },
+  { "menu.info_screen.mode_loop",      "true"                  },
 
 #if 0
   { "[not used]",                      "antigrav.wav"          },
index 14bfe6709e8d43d4b0739f64dcbb54068825d2bf..a95a19e73efacbe9426c93d1aec4c19970ec41e2 100644 (file)
@@ -1 +1 @@
-#define COMPILE_DATE_STRING "[2003-02-08 17:50]"
+#define COMPILE_DATE_STRING "[2003-02-08 18:58]"
index 5a97a827c04b233c654bc8febe8f56caa9ebd07c..0e208dbb66e676ea16db2512c0d279cb3f74532a 100644 (file)
@@ -857,7 +857,7 @@ void InitElementSpecialGraphicInfo()
 
 static void InitElementSoundInfo()
 {
-  /* soon to come */
+  /* !!! soon to come !!! */
 }
 
 static void set_graphic_parameters(int graphic, char **parameter_raw)
index f5e2239a94bbdf262e70a6ace699638d6ea17c3d..830834d85cb6884341295781b1aed872d6d64344 100644 (file)
@@ -114,6 +114,20 @@ static void drawCursorXY(int xpos, int ypos, int graphic)
   drawCursorExt(xpos, ypos, -1, graphic);
 }
 
+static void PlaySound_Menu_Start(int sound)
+{
+  if (sound_info[sound].loop)
+    PlaySoundLoop(sound);
+  else
+    PlaySound(sound);
+}
+
+static void PlaySound_Menu_Continue(int sound)
+{
+  if (sound_info[sound].loop)
+    PlaySoundLoop(sound);
+}
+
 void DrawTextStatic(int x, int y, char *text, int font_size, int font_type)
 {
   if (game_status == MAINMENU && gfx.menu_main_hide_static_text)
@@ -1147,7 +1161,12 @@ void DrawHelpScreen()
 
   FadeToFront();
   InitAnimation();
+
+#if 0
   PlaySoundLoop(SND_MENU_INFO_SCREEN);
+#else
+  PlaySound_Menu_Start(SND_MENU_INFO_SCREEN);
+#endif
 }
 
 void HandleHelpScreen(int button)
@@ -1206,7 +1225,11 @@ void HandleHelpScreen(int button)
     /* !!! workaround for playing "music" that is really a sound loop (and
        must therefore periodically be reactivated with the current sound
        engine !!! */
+#if 0
     PlaySoundLoop(SND_MENU_INFO_SCREEN);
+#else
+    PlaySound_Menu_Continue(SND_MENU_INFO_SCREEN);
+#endif
 
     DoAnimation();
   }
@@ -1609,8 +1632,14 @@ void DrawHallOfFame(int highlight_position)
 
   FadeToFront();
   InitAnimation();
+
   HandleHallOfFame(highlight_position,0, 0,0, MB_MENU_INITIALIZE);
+
+#if 0
   PlaySound(SND_MENU_HALL_OF_FAME);
+#else
+  PlaySound_Menu_Start(SND_MENU_HALL_OF_FAME);
+#endif
 }
 
 static void drawHallOfFameList(int first_entry, int highlight_position)
@@ -1698,7 +1727,12 @@ void HandleHallOfFame(int mx, int my, int dx, int dy, int button)
   BackToFront();
 
   if (game_status == HALLOFFAME)
+  {
     DoAnimation();
+#if 1
+    PlaySound_Menu_Continue(SND_MENU_HALL_OF_FAME);
+#endif
+  }
 }