From eecc30346d8df953f0ff0f8b44d207c1d44591df 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 59e5de38bb703fae0fd022258542df86746d8b09 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 ee9d49164415db2a1298c510e967ea2248676e63 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);