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

Method Campaign_Select_File

Source/Fodder.cpp:4288–4318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4286}
4287
4288std::string cFodder::Campaign_Select_File(const char* pTitle, const char* pSubTitle, const char* pPath, const char* pType, eDataType pData) {
4289
4290 Campaign_Select_Setup();
4291 MapTiles_Draw();
4292
4293 mInterruptCallback = [this, pTitle, pSubTitle]() {
4294 if (!mStartParams->mDisableVideo) {
4295 mGraphics->MapTiles_Draw();
4296 }
4297 Sprites_Draw();
4298 Campaign_Select_DrawMenu(pTitle, pSubTitle);
4299 mGraphics->SetActiveSpriteSheet(eGFX_IN_GAME);
4300
4301 Mouse_DrawCursor();
4302 };
4303
4304 do {
4305
4306 Campaign_Select_File_Loop(pTitle, pSubTitle);
4307
4308 } while (mGUI_SaveLoadAction == 3);
4309
4310
4311 mInterruptCallback = nullptr;
4312 mPhase_In_Progress = false;
4313
4314 if (mGUI_SaveLoadAction == 1)
4315 return "";
4316
4317 return mCampaignList[mGUI_Select_File_CurrentIndex + mGUI_Select_File_SelectedFileIndex];
4318}
4319
4320
4321

Callers

nothing calls this directly

Calls 2

MapTiles_DrawMethod · 0.45
SetActiveSpriteSheetMethod · 0.45

Tested by

no test coverage detected