mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-22 23:57:50 -05:00
Merge pull request #528 from FunkinCrew/main-menu-cam
persistentUpdate true main menu
This commit is contained in:
commit
7610fb4205
1 changed files with 6 additions and 1 deletions
|
@ -54,7 +54,7 @@ class MainMenuState extends MusicBeatState
|
||||||
|
|
||||||
playMenuMusic();
|
playMenuMusic();
|
||||||
|
|
||||||
persistentUpdate = false;
|
persistentUpdate = true;
|
||||||
persistentDraw = true;
|
persistentDraw = true;
|
||||||
|
|
||||||
var bg:FlxSprite = new FlxSprite(Paths.image('menuBG'));
|
var bg:FlxSprite = new FlxSprite(Paths.image('menuBG'));
|
||||||
|
@ -103,6 +103,7 @@ class MainMenuState extends MusicBeatState
|
||||||
// Freeplay has its own custom transition
|
// Freeplay has its own custom transition
|
||||||
FlxTransitionableState.skipNextTransIn = true;
|
FlxTransitionableState.skipNextTransIn = true;
|
||||||
FlxTransitionableState.skipNextTransOut = true;
|
FlxTransitionableState.skipNextTransOut = true;
|
||||||
|
|
||||||
openSubState(new FreeplayState());
|
openSubState(new FreeplayState());
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -274,6 +275,8 @@ class MainMenuState extends MusicBeatState
|
||||||
public function openPrompt(prompt:Prompt, onClose:Void->Void):Void
|
public function openPrompt(prompt:Prompt, onClose:Void->Void):Void
|
||||||
{
|
{
|
||||||
menuItems.enabled = false;
|
menuItems.enabled = false;
|
||||||
|
persistentUpdate = false;
|
||||||
|
|
||||||
prompt.closeCallback = function() {
|
prompt.closeCallback = function() {
|
||||||
menuItems.enabled = true;
|
menuItems.enabled = true;
|
||||||
if (onClose != null) onClose();
|
if (onClose != null) onClose();
|
||||||
|
@ -326,6 +329,8 @@ class MainMenuState extends MusicBeatState
|
||||||
#if CHART_EDITOR_SUPPORTED
|
#if CHART_EDITOR_SUPPORTED
|
||||||
if (controls.DEBUG_MENU)
|
if (controls.DEBUG_MENU)
|
||||||
{
|
{
|
||||||
|
persistentUpdate = false;
|
||||||
|
|
||||||
FlxG.state.openSubState(new DebugMenuSubState());
|
FlxG.state.openSubState(new DebugMenuSubState());
|
||||||
}
|
}
|
||||||
#end
|
#end
|
||||||
|
|
Loading…
Reference in a new issue