MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / guiPrintString

Method guiPrintString

Source/ScriptingEngine.cpp:377–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

375}
376
377void cScriptingEngine::guiPrintString(const std::string& pText, const size_t pX, const size_t pY, const bool pLarge, const bool pUnderline) {
378 g_Fodder->mWindow->SetScreenSize(g_Fodder->mVersionCurrent->GetScreenSize());
379 g_Fodder->mGraphics->SetActiveSpriteSheet(eGFX_BRIEFING);
380 if (!pLarge) {
381 if (!pX)
382 g_Fodder->String_Print_Small(pText, pY);
383 else
384 g_Fodder->String_Print_Small(pText, pX, pY);
385 }
386 else {
387 if (!pX)
388 g_Fodder->String_Print_Large(pText, pUnderline, pY);
389 else
390 g_Fodder->String_Print_Large(pText, pUnderline, pX, pY);
391 }
392
393 g_Fodder->mSurface->Save();
394 g_Fodder->Video_Sleep();
395 g_Fodder->mGraphics->SetActiveSpriteSheet(eGFX_IN_GAME);
396}
397
398
399void cScriptingEngine::mapSave() {

Callers

nothing calls this directly

Calls 7

SetScreenSizeMethod · 0.80
String_Print_SmallMethod · 0.80
String_Print_LargeMethod · 0.80
SaveMethod · 0.80
Video_SleepMethod · 0.80
GetScreenSizeMethod · 0.45
SetActiveSpriteSheetMethod · 0.45

Tested by

no test coverage detected