Send Load event to GUI objects after (instead of while) loading the rest of the engine

This was SVN commit r1635.
This commit is contained in:
Ykkrosh 2005-01-04 21:51:23 +00:00
parent a61a961edd
commit 0de796c5ea
2 changed files with 4 additions and 1 deletions

View File

@ -499,7 +499,6 @@ void CGUI::AddObject(IGUIObject* pObject)
// Loaded
GUI<SGUIMessage>::RecurseObject(0, pObject, &IGUIObject::HandleMessage, SGUIMessage(GUIM_LOAD));
GUI<CStr>::RecurseObject(0, pObject, &IGUIObject::ScriptEvent, "load");
}
catch (PS_RESULT e)
{

View File

@ -1132,6 +1132,10 @@ TIMER(init_after_InitRenderer);
in_add_handler(hotkeyInputHandler); // <- Leave this one until after all the others.
}
#ifndef NO_GUI
g_GUI.SendEventToAll("load");
#endif
MICROLOG(L"render blank");
// render everything to a blank frame to force renderer to load everything
RenderNoCull();