From 931aca84927aa25d033221984eddf9ab47d724a6 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Thu, 26 Nov 2020 19:43:45 +0100 Subject: [PATCH 1/3] fixed spamming issue with the buttons on the story menu --- source/StoryMenuState.hx | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/source/StoryMenuState.hx b/source/StoryMenuState.hx index 1bdfa866e..c87d8e028 100644 --- a/source/StoryMenuState.hx +++ b/source/StoryMenuState.hx @@ -230,15 +230,23 @@ class StoryMenuState extends MusicBeatState var movedBack:Bool = false; var selectedWeek:Bool = false; - + var stopspamming = false; function selectWeek() { if (weekUnlocked[curWeek]) { - FlxG.sound.play('assets/sounds/confirmMenu' + TitleState.soundExt); + if (stopspamming == true) + { + // no more spamming for u hahaha + } + if (stopspamming == false) + { + FlxG.sound.play('assets/sounds/confirmMenu' + TitleState.soundExt); - grpWeekText.members[curWeek].week.animation.resume(); - grpWeekCharacters.members[1].animation.play('bfConfirm'); + grpWeekText.members[curWeek].week.animation.resume(); + grpWeekCharacters.members[1].animation.play('bfConfirm'); + stopspamming = true; + } PlayState.storyPlaylist = weekData[curWeek]; PlayState.isStoryMode = true; From f1cf48be10cd3856d41da31da0c33f4940f72bc5 Mon Sep 17 00:00:00 2001 From: lotusotho <69006987+lotusotho@users.noreply.github.com> Date: Thu, 26 Nov 2020 20:14:35 +0100 Subject: [PATCH 2/3] Update StoryMenuState.hx --- source/StoryMenuState.hx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/StoryMenuState.hx b/source/StoryMenuState.hx index c87d8e028..173289d67 100644 --- a/source/StoryMenuState.hx +++ b/source/StoryMenuState.hx @@ -230,7 +230,7 @@ class StoryMenuState extends MusicBeatState var movedBack:Bool = false; var selectedWeek:Bool = false; - var stopspamming = false; + var stopspamming:Bool = false; function selectWeek() { if (weekUnlocked[curWeek]) From 438b3dd2c2254140da52f7a3c2530d22616cb055 Mon Sep 17 00:00:00 2001 From: Lotusotho <69006987+lotusotho@users.noreply.github.com> Date: Tue, 1 Dec 2020 12:53:30 +0100 Subject: [PATCH 3/3] Update StoryMenuState.hx --- source/StoryMenuState.hx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/source/StoryMenuState.hx b/source/StoryMenuState.hx index 173289d67..d5338b2af 100644 --- a/source/StoryMenuState.hx +++ b/source/StoryMenuState.hx @@ -235,10 +235,6 @@ class StoryMenuState extends MusicBeatState { if (weekUnlocked[curWeek]) { - if (stopspamming == true) - { - // no more spamming for u hahaha - } if (stopspamming == false) { FlxG.sound.play('assets/sounds/confirmMenu' + TitleState.soundExt);