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

Method Draw_Phase_Paused

Source/Fodder.cpp:3735–3759  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3733}
3734
3735void cFodder::Draw_Phase_Paused() {
3736 mSurface2->clearBuffer();
3737
3738 mGraphics->PaletteSet(mSurface2);
3739 mSurface2->surfaceSetToPaletteNew();
3740
3741 // Dim the current surface
3742 mSurface->paletteNew_SetToBlack();
3743
3744 // Draw to the secondary surface
3745 {
3746 mGraphics->SetImage(mSurface2);
3747
3748 mGraphics->SetActiveSpriteSheet(eGFX_BRIEFING);
3749 mString_GapCharID = 0x25;
3750
3751 String_CalculateWidth(320 + SIDEBAR_WIDTH, mFont_Underlined_Width, "GAME PAUSED");
3752 String_Print(mFont_Underlined_Width, 1, mGUI_Temp_X, 0x54, "GAME PAUSED");
3753
3754 mSurface2->draw();
3755 mString_GapCharID = 0;
3756 mGraphics->SetActiveSpriteSheet(eGFX_IN_GAME);
3757 mGraphics->SetImageOriginal();
3758 }
3759}
3760
3761void cFodder::Phase_GameOver() {
3762 sSprite* Data24 = &mSprites[40];

Callers

nothing calls this directly

Calls 8

clearBufferMethod · 0.80
paletteNew_SetToBlackMethod · 0.80
SetImageMethod · 0.80
drawMethod · 0.80
SetImageOriginalMethod · 0.80
PaletteSetMethod · 0.45
SetActiveSpriteSheetMethod · 0.45

Tested by

no test coverage detected