Add Loaded event to Asset in scripting
Refactor `Asset` events naming to match engine scheme
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user