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

Method WindowTitleBaseSetup

Source/Fodder.cpp:3439–3457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3437}
3438
3439void cFodder::WindowTitleBaseSetup() {
3440
3441 mWindowTitle.str("");
3442 mWindowTitle << "Open Fodder";
3443
3444 if (mVersionCurrent) {
3445
3446 // Ensure we have a campaign
3447 if (mGame_Data.mCampaign.getName().size()) {
3448 if (mGame_Data.mCampaign.isCustom()) {
3449 mWindowTitle << ": Custom (" << mGame_Data.mCampaign.getName() << ")";
3450 } else {
3451 mWindowTitle << ": " << mGame_Data.mCampaign.getName();
3452 }
3453 }
3454 }
3455
3456 WindowTitleSet(mPhase_In_Progress);
3457}
3458
3459/**
3460 * This function loads a new version of the game, and is generally called on startup,

Callers

nothing calls this directly

Calls 3

getNameMethod · 0.80
sizeMethod · 0.45
isCustomMethod · 0.45

Tested by

no test coverage detected