Stages postConstruct

This commit is contained in:
PurSnake 2025-04-05 00:14:16 +03:00
parent d31ef12363
commit 4588be8157
3 changed files with 11 additions and 3 deletions
assets
source/funkin/play

2
assets

@ -1 +1 @@
Subproject commit 0303a03f43b078d5263b541de1ff504fd7cfcde5
Subproject commit bbb43d7031e7fc11a1fedf487c8b7ec576c8eebf

View file

@ -1788,8 +1788,8 @@ class PlayState extends MusicBeatSubState
#end
}
// Rearrange by z-indexes.
currentStage.refresh();
// Full stage creation.
currentStage.postConstruct();
}
}

View file

@ -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.