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

Method Briefing_Draw_With

Source/Fodder.cpp:10271–10300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10269}
10270
10271void cFodder::Briefing_Draw_With() {
10272 std::stringstream With;
10273
10274 With << "WITH ";
10275 With << tool_StripLeadingZero(std::to_string(mGame_Data.mGamePhase_Data.mSoldiers_Available));
10276
10277 if (mGame_Data.mGamePhase_Data.mSoldiers_Available == 1) {
10278 With << " SOLDIER YOU MUST";
10279 }
10280 else {
10281 With << " SOLDIERS YOU MUST";
10282 }
10283
10284 String_Print_Small(With.str(), 0x64);
10285 With.str("");
10286
10287 if (!mGame_Data.mRecruits_Available_Count) {
10288 With << "THIS IS YOUR LAST CHANCE";
10289 }
10290 else {
10291 With << mGame_Data.mRecruits_Available_Count;
10292 if (mGame_Data.mRecruits_Available_Count == 1)
10293 With << " RECRUIT REMAINING";
10294 else
10295 With << " RECRUITS REMAINING";
10296 }
10297
10298 String_Print_Small(With.str(), 0xA8);
10299 String_Print_Large("GO FOR IT", false, 0xB8);
10300}
10301
10302void cFodder::Briefing_DrawBox(int16 pX, int16 pY, int16 pWidth, int16 pHeight, uint8 pColor) {
10303 pX += 0x10;

Callers

nothing calls this directly

Calls 1

tool_StripLeadingZeroFunction · 0.85

Tested by

no test coverage detected