From: Holger Schemel Date: Sun, 4 Oct 2020 23:54:44 +0000 (+0200) Subject: added disabling overlay touch buttons when showing envelope X-Git-Tag: 4.2.0.3^0 X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=commitdiff_plain;h=84a28d5bf05056e1a70eeb37ff6b73aca21c5533 added disabling overlay touch buttons when showing envelope --- diff --git a/src/tools.c b/src/tools.c index af239591..79c2bae7 100644 --- a/src/tools.c +++ b/src/tools.c @@ -2820,9 +2820,13 @@ void ShowEnvelope(int envelope_nr) int anim_mode = graphic_info[graphic].anim_mode; int main_anim_mode = (anim_mode == ANIM_NONE ? ANIM_VERTICAL|ANIM_HORIZONTAL: anim_mode == ANIM_DEFAULT ? ANIM_VERTICAL : anim_mode); + boolean overlay_enabled = GetOverlayEnabled(); game.envelope_active = TRUE; // needed for RedrawPlayfield() events + SetOverlayEnabled(FALSE); + UnmapAllGadgets(); + PlayMenuSoundStereo(sound_opening, SOUND_MIDDLE); if (anim_mode == ANIM_DEFAULT) @@ -2835,6 +2839,9 @@ void ShowEnvelope(int envelope_nr) else WaitForEventToContinue(); + RemapAllGadgets(); + SetOverlayEnabled(overlay_enabled); + PlayMenuSoundStereo(sound_closing, SOUND_MIDDLE); if (anim_mode != ANIM_NONE)