=============== idSessionLocal::LoadLoadingGui =============== */
| 1468 | =============== |
| 1469 | */ |
| 1470 | void idSessionLocal::LoadLoadingGui( const char *mapName ) { |
| 1471 | // load / program a gui to stay up on the screen while loading |
| 1472 | idStr stripped = mapName; |
| 1473 | stripped.StripFileExtension(); |
| 1474 | stripped.StripPath(); |
| 1475 | |
| 1476 | char guiMap[ MAX_STRING_CHARS ]; |
| 1477 | idStr::Copynz( guiMap, va( "guis/map/%s.gui", stripped.c_str() ), MAX_STRING_CHARS ); |
| 1478 | // give the gamecode a chance to override |
| 1479 | game->GetMapLoadingGUI( guiMap ); |
| 1480 | |
| 1481 | if ( uiManager->CheckGui( guiMap ) ) { |
| 1482 | guiLoading = uiManager->FindGui( guiMap, true, false, true ); |
| 1483 | } else { |
| 1484 | guiLoading = uiManager->FindGui( "guis/map/loading.gui", true, false, true ); |
| 1485 | } |
| 1486 | guiLoading->SetStateFloat( "map_loading", 0.0f ); |
| 1487 | } |
| 1488 | |
| 1489 | /* |
| 1490 | =============== |
nothing calls this directly
no test coverage detected