mirror of
https://github.com/FunkinCrew/Funkin.git
synced 2025-07-29 15:30:10 -04:00
Stages postConstruct
This commit is contained in:
parent
d31ef12363
commit
4588be8157
3 changed files with 11 additions and 3 deletions
2
assets
2
assets
|
@ -1 +1 @@
|
|||
Subproject commit 0303a03f43b078d5263b541de1ff504fd7cfcde5
|
||||
Subproject commit bbb43d7031e7fc11a1fedf487c8b7ec576c8eebf
|
|
@ -1788,8 +1788,8 @@ class PlayState extends MusicBeatSubState
|
|||
#end
|
||||
}
|
||||
|
||||
// Rearrange by z-indexes.
|
||||
currentStage.refresh();
|
||||
// Full stage creation.
|
||||
currentStage.postConstruct();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -317,6 +317,14 @@ class Stage extends FlxSpriteGroup implements IPlayStateScriptedClass implements
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The stage construction routine. Called when the characters are loaded in stage.
|
||||
*/
|
||||
public function postConstruct():Void
|
||||
{
|
||||
this.refresh();
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a sprite to the stage.
|
||||
* @param prop The sprite to add.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue