Add Loaded event to Asset in scripting

Refactor `Asset` events naming to match engine scheme
This commit is contained in:
2026-07-28 22:32:36 +02:00
parent e043b18299
commit eb69dafb7c
44 changed files with 117 additions and 145 deletions
+2 -2
View File
@@ -213,7 +213,7 @@ void SplashScreen::Show()
if (font->IsLoaded())
OnFontLoaded(font);
else
font->OnLoaded.Bind<SplashScreen, &SplashScreen::OnFontLoaded>(this);
font->Loaded.Bind<SplashScreen, &SplashScreen::OnFontLoaded>(this);
}
// Load custom image
@@ -337,7 +337,7 @@ void SplashScreen::OnFontLoaded(Asset* asset)
ASSERT(asset && asset->IsLoaded());
auto font = (FontAsset*)asset;
font->OnLoaded.Unbind<SplashScreen, &SplashScreen::OnFontLoaded>(this);
font->Loaded.Unbind<SplashScreen, &SplashScreen::OnFontLoaded>(this);
// Create fonts
const float s = _dpiScale;