From ac8a8aef4259f8b9bb1ca7df09e1d9ed5a4556c1 Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Sun, 18 Apr 2021 03:47:48 -0400 Subject: [PATCH] seen video save data shit --- source/TitleState.hx | 5 +++++ source/VideoState.hx | 3 +++ 2 files changed, 8 insertions(+) diff --git a/source/TitleState.hx b/source/TitleState.hx index 66d9ba8f8..afc229ad2 100644 --- a/source/TitleState.hx +++ b/source/TitleState.hx @@ -109,6 +109,11 @@ class TitleState extends MusicBeatState StoryMenuState.weekUnlocked[0] = true; } + if (FlxG.save.data.seenVideo != null) + { + VideoState.seenVideo = FlxG.save.data.seenVideo; + } + #if FREEPLAY FlxG.switchState(new FreeplayState()); #elseif ANIMATE diff --git a/source/VideoState.hx b/source/VideoState.hx index 6fa93428c..18d5f0877 100644 --- a/source/VideoState.hx +++ b/source/VideoState.hx @@ -23,6 +23,9 @@ class VideoState extends MusicBeatState seenVideo = true; + FlxG.save.data.seenVideo = true; + FlxG.save.flush(); + if (FlxG.sound.music != null) FlxG.sound.music.stop();