mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2025-05-06 06:54:47 +00:00
Attempt to fix StickerState bug
This commit is contained in:
parent
ef28d34520
commit
2d8e686b33
|
@ -116,10 +116,19 @@ class StickerSubState extends MusicBeatSubState
|
||||||
{
|
{
|
||||||
grpStickers.cameras = FlxG.cameras.list;
|
grpStickers.cameras = FlxG.cameras.list;
|
||||||
|
|
||||||
if (dipshit != null)
|
/*
|
||||||
|
if (dipshit != null)
|
||||||
|
{
|
||||||
|
FlxG.removeChild(dipshit);
|
||||||
|
dipshit = null;
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (grpStickers.members == null || grpStickers.members.length == 0)
|
||||||
{
|
{
|
||||||
FlxG.removeChild(dipshit);
|
switchingState = false;
|
||||||
dipshit = null;
|
close();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (ind => sticker in grpStickers.members)
|
for (ind => sticker in grpStickers.members)
|
||||||
|
@ -235,15 +244,19 @@ class StickerSubState extends MusicBeatSubState
|
||||||
FlxTransitionableState.skipNextTransIn = true;
|
FlxTransitionableState.skipNextTransIn = true;
|
||||||
FlxTransitionableState.skipNextTransOut = true;
|
FlxTransitionableState.skipNextTransOut = true;
|
||||||
|
|
||||||
dipshit = new Sprite();
|
// I think this grabs the screen and puts it under the stickers?
|
||||||
var scrn:BitmapData = new BitmapData(FlxG.width, FlxG.height, true, 0x00000000);
|
// Leaving this commented out rather than stripping it out because it's cool...
|
||||||
var mat:Matrix = new Matrix();
|
/*
|
||||||
scrn.draw(grpStickers.cameras[0].canvas, mat);
|
dipshit = new Sprite();
|
||||||
|
var scrn:BitmapData = new BitmapData(FlxG.width, FlxG.height, true, 0x00000000);
|
||||||
|
var mat:Matrix = new Matrix();
|
||||||
|
scrn.draw(grpStickers.cameras[0].canvas, mat);
|
||||||
|
|
||||||
var bitmap:Bitmap = new Bitmap(scrn);
|
var bitmap:Bitmap = new Bitmap(scrn);
|
||||||
|
|
||||||
dipshit.addChild(bitmap);
|
dipshit.addChild(bitmap);
|
||||||
FlxG.addChildBelowMouse(dipshit);
|
// FlxG.addChildBelowMouse(dipshit);
|
||||||
|
*/
|
||||||
|
|
||||||
FlxG.switchState(() -> targetState(this));
|
FlxG.switchState(() -> targetState(this));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue