Added onSceneLoaded delegate

This commit is contained in:
antopilo
2025-01-25 17:09:58 -05:00
parent 8831407da0
commit cf8e4cad4d
6 changed files with 35 additions and 3 deletions

View File

@@ -142,6 +142,8 @@ namespace Nuake {
Window::Get()->SetTitlebarHitTestCallback([&](Window& window, int x, int y, bool& hit) {
hit = m_TitleBarHovered;
});
Engine::OnSceneLoaded.AddRaw(this, &EditorInterface::OnSceneLoaded);
}
void EditorInterface::DrawTitlebar(float& outHeight)
@@ -2433,6 +2435,11 @@ namespace Nuake {
window->DC.MenuBarAppending = false;
}
void EditorInterface::OnSceneLoaded(Ref<Scene> scene)
{
Logger::Log("On Scene loaded");
}
bool isLoadingProject = false;
bool isLoadingProjectQueue = false;
bool EditorInterface::isCreatingNewProject = false;