add on_screen_change project script event & fix UIDocument::rebuildIndices & move menu background to project script

This commit is contained in:
MihailRis
2025-08-07 22:14:52 +03:00
parent 7749da4a85
commit 0a02d3fbec
16 changed files with 148 additions and 66 deletions
+10 -3
View File
@@ -65,9 +65,16 @@ namespace scripting {
void process_post_runnables();
std::unique_ptr<Process> start_coroutine(
const io::path& script
);
class IProjectScript {
public:
virtual ~IProjectScript() {}
virtual void onScreenChange(const std::string& name) = 0;
};
std::unique_ptr<IProjectScript> load_project_script(const io::path& script);
std::unique_ptr<Process> start_coroutine(const io::path& script);
void on_world_load(LevelController* controller);
void on_world_tick(int tps);