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

Method Recruit_Draw_HomeAway

Source/Amiga/Graphics_Amiga.cpp:1202–1223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1200}
1201
1202void cGraphics_Amiga::Recruit_Draw_HomeAway() {
1203 const char* strHomeAndAway = "HOME AWAY";
1204
1205 mFodder->GUI_Draw_Frame_8(0x11, 0, 0xfe, 0);
1206 int16 Data4 = mFodder->mMission_Save_Blocked[(mFodder->mGame_Data.mMission_Number - 1)];
1207
1208 // Draw Icon
1209 mFodder->GUI_Draw_Frame_8(0x16, 0x0, 0x0, 0);
1210 // Save Icon
1211 mFodder->GUI_Draw_Frame_8(0x17, Data4, 0x130, 0);
1212
1213 mFodder->GUI_Draw_Frame_8(0xE, 0, 0x9B, 0x0A);
1214
1215 mFodder->String_CalculateWidth(320, mFont_Recruit_Width, strHomeAndAway);
1216 mFodder->String_Print(mFont_Recruit_Width, 0x0D, mFodder->mGUI_Temp_X, 0x0A, strHomeAndAway);
1217
1218 std::string Home = tool_StripLeadingZero(std::to_string(mFodder->mGame_Data.mScore_Kills_Home));
1219 mFodder->Recruit_Draw_String(0x0D, 0x9A - (Home.length() * 0x0C), 0x0A, Home);
1220
1221 std::string Away = tool_StripLeadingZero(std::to_string(mFodder->mGame_Data.mScore_Kills_Away));
1222 mFodder->Recruit_Draw_String(0x0D, 0xAA, 0x0A, Away);
1223}
1224
1225void cGraphics_Amiga::Service_Draw(int16 pSpriteID, int16 pX, int16 pY) {
1226

Callers

nothing calls this directly

Calls 5

tool_StripLeadingZeroFunction · 0.85
GUI_Draw_Frame_8Method · 0.80
String_CalculateWidthMethod · 0.80
String_PrintMethod · 0.80
Recruit_Draw_StringMethod · 0.80

Tested by

no test coverage detected