mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-25 00:06:40 +00:00
stage editor Y key fix (and streets repositioning)
This commit is contained in:
parent
59aae9c3d9
commit
aaf1376b53
|
@ -22,6 +22,8 @@ import openfl.net.FileReference;
|
|||
|
||||
class StageOffsetSubstate extends MusicBeatSubstate
|
||||
{
|
||||
var uiStuff:Component;
|
||||
|
||||
override function create()
|
||||
{
|
||||
super.create();
|
||||
|
@ -31,7 +33,7 @@ class StageOffsetSubstate extends MusicBeatSubstate
|
|||
FlxG.camera.target = null;
|
||||
|
||||
var str = Paths.xml('ui/stage-editor-view');
|
||||
var uiStuff:Component = RuntimeComponentBuilder.fromAsset(str);
|
||||
uiStuff = RuntimeComponentBuilder.fromAsset(str);
|
||||
|
||||
uiStuff.findComponent("lol").onClick = saveCharacterCompile;
|
||||
uiStuff.findComponent('saveAs').onClick = saveStageFileRef;
|
||||
|
@ -96,6 +98,11 @@ class StageOffsetSubstate extends MusicBeatSubstate
|
|||
thing.alpha = 1;
|
||||
}
|
||||
|
||||
if (uiStuff != null)
|
||||
remove(uiStuff);
|
||||
|
||||
uiStuff = null;
|
||||
|
||||
PlayState.instance.resetCamera();
|
||||
FlxG.mouse.visible = false;
|
||||
close();
|
||||
|
|
Loading…
Reference in a new issue