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

Method GUI_Sidebar_SquadIcons_Draw

Source/GUI_Element.cpp:440–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438}
439
440void cFodder::GUI_Sidebar_SquadIcons_Draw() {
441
442 mGUI_Loop_Squad_Current = 0;
443
444 for (mGUI_Loop_Squad_Current = 0; mGUI_Loop_Squad_Current < 3; ++mGUI_Loop_Squad_Current) {
445
446 mGUI_Loop_Draw_Y = word_3AC2D[mGUI_Loop_Squad_Current];
447
448 if (!mSquads_TroopCount[mGUI_Loop_Squad_Current])
449 continue;
450
451 mGUI_Loop_Is_CurrentSquad = 0;
452
453 if (mGUI_Loop_Squad_Current == mSquad_Selected)
454 mGUI_Loop_Is_CurrentSquad = -1;
455
456 if (GUI_Sidebar_SquadIcon_Set())
457 GUI_Sidebar_SquadIcon_Current_Draw();
458 }
459}
460
461void cFodder::GUI_Sidebar_Grenades_CurrentSquad_Draw() {
462 GUI_Sidebar_Grenades_Draw(mSquad_Selected);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected