mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
add on_screen_change project script event & fix UIDocument::rebuildIndices & move menu background to project script
This commit is contained in:
parent
7749da4a85
commit
0a02d3fbec
16 changed files with 148 additions and 66 deletions
|
|
@ -97,7 +97,6 @@ LevelScreen::LevelScreen(
|
|||
animator->addAnimations(assets.getAnimations());
|
||||
|
||||
loadDecorations();
|
||||
initializeContent();
|
||||
}
|
||||
|
||||
LevelScreen::~LevelScreen() {
|
||||
|
|
@ -112,6 +111,10 @@ LevelScreen::~LevelScreen() {
|
|||
engine.getPaths().setCurrentWorldFolder("");
|
||||
}
|
||||
|
||||
void LevelScreen::onOpen() {
|
||||
initializeContent();
|
||||
}
|
||||
|
||||
void LevelScreen::initializeContent() {
|
||||
auto& content = controller->getLevel()->content;
|
||||
for (auto& entry : content.getPacks()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue