mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2024-11-23 08:07:54 -05:00
Fix camera issue with stickers
This commit is contained in:
parent
ba20e5c39c
commit
4dcdca51ae
2 changed files with 7 additions and 3 deletions
|
@ -225,7 +225,7 @@ class PauseSubState extends MusicBeatSubState
|
|||
|
||||
if (PlayStatePlaylist.isStoryMode) openSubState(new funkin.ui.StickerSubState(null, STORY));
|
||||
else
|
||||
openSubState(new funkin.ui.StickerSubState());
|
||||
openSubState(new funkin.ui.StickerSubState(null, FREEPLAY));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,8 @@ class StickerSubState extends MusicBeatSubState
|
|||
add(grpStickers);
|
||||
|
||||
// makes the stickers on the most recent camera, which is more often than not... a UI camera!!
|
||||
grpStickers.cameras = [FlxG.cameras.list[FlxG.cameras.list.length - 1]];
|
||||
// grpStickers.cameras = [FlxG.cameras.list[FlxG.cameras.list.length - 1]];
|
||||
grpStickers.cameras = FlxG.cameras.list;
|
||||
|
||||
if (oldStickers != null)
|
||||
{
|
||||
|
@ -208,8 +209,10 @@ class StickerSubState extends MusicBeatSubState
|
|||
FlxG.switchState(new FreeplayState(this));
|
||||
case STORY:
|
||||
FlxG.switchState(new StoryMenuState(this));
|
||||
case MAIN_MENU:
|
||||
FlxG.switchState(new MainMenuState());
|
||||
default:
|
||||
FlxG.switchState(new FreeplayState(this));
|
||||
FlxG.switchState(new MainMenuState());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -354,6 +357,7 @@ typedef StickerShit =
|
|||
|
||||
enum abstract NEXTSTATE(String)
|
||||
{
|
||||
var MAIN_MENU = 'mainmenu';
|
||||
var FREEPLAY = 'freeplay';
|
||||
var STORY = 'story';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue