MCPcopy Create free account
hub / github.com/dhewm/dhewm3 / LoadLoadingGui

Method LoadLoadingGui

neo/framework/Session.cpp:1470–1487  ·  view source on GitHub ↗

=============== idSessionLocal::LoadLoadingGui =============== */

Source from the content-addressed store, hash-verified

1468===============
1469*/
1470void 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===============

Callers

nothing calls this directly

Calls 6

vaFunction · 0.85
GetMapLoadingGUIMethod · 0.80
CheckGuiMethod · 0.80
FindGuiMethod · 0.80
SetStateFloatMethod · 0.80
c_strMethod · 0.45

Tested by

no test coverage detected