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

Method Menu_Draw

Source/Fodder.cpp:9675–9689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9673}
9674
9675bool cFodder::Menu_Draw(const std::function<void()> pButtonHandler) {
9676
9677 // Button Pressed?
9678 if (mButtonPressLeft)
9679 pButtonHandler();
9680
9681 // Exit Time?
9682 if (mDemo_ExitMenu > 0 || mPhase_Aborted || mCustom_ExitMenu)
9683 return true;
9684
9685 if (mSurface->isPaletteAdjusting())
9686 mSurface->palette_FadeTowardNew();
9687
9688 return false;
9689}
9690
9691void cFodder::Demo_Quiz_ShowScreen(const char* pFilename) {
9692

Callers

nothing calls this directly

Calls 2

isPaletteAdjustingMethod · 0.80
palette_FadeTowardNewMethod · 0.80

Tested by

no test coverage detected