static void preBusySetup(int initialMode) { #ifdef __CLIENT__ //ClientWindow::main().busy().renderTransitionFrame(); // Are we doing a transition effect? busyWillAnimateTransition = animatedTransitionActive(initialMode); if(busyWillAnimateTransition) { Con_TransitionConfigure(); } busyWasIgnoringInput = DD_IgnoreInput(true); // Load any resources needed beforehand. //BusyVisual_PrepareResources(); //BusyVisual_PrepareFont(); //BusyVisual_LoadTextures(); // Limit frame rate to 60, no point pushing it any faster while busy. ClientApp::app().loop().setRate(60); // Switch the window to busy mode UI. ClientWindowSystem::main().setMode(ClientWindow::Busy); #else DENG_UNUSED(initialMode); #endif }
void busyModeWillBegin(BusyTask &firstTask) { // Are we doing a transition effect? busyWillAnimateTransition = animatedTransitionActive(firstTask.mode); if(busyWillAnimateTransition) { Con_TransitionConfigure(); } busyWasIgnoringInput = ClientApp::inputSystem().ignoreEvents(); // Limit frame rate to 60, no point pushing it any faster while busy. ClientApp::app().loop().setRate(60); // Switch the window to busy mode UI. ClientWindow::main().setMode(ClientWindow::Busy); }