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

Method GUI_Sidebar_Rockets_Draw

Source/GUI_Element.cpp:500–526  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

498}
499
500void cFodder::GUI_Sidebar_Rockets_Draw(int16 pData0) {
501
502 int16 Data4 = word_3AC2D[pData0];
503 GUI_Loop_Draw_Prepare(pData0, Data4);
504 GUI_Sidebar_Rockets_Draw();
505
506 if (!mSquad_Rockets[mGUI_Loop_Squad_Current])
507 return;
508
509 if (!mGUI_Loop_Is_CurrentSquad)
510 return;
511
512 if (!GUI_Sidebar_SelectedTroops_Count())
513 return;
514
515 if (mSquad_Rocket_SplitMode == eSquad_Weapon_Split_None)
516 return;
517
518 pData0 = 0xC7;
519 pData0 += mSquad_Rocket_SplitMode;
520
521 int16 Data8 = 0x24;
522 int16 DataC = mGUI_Loop_Draw_Y;
523 DataC += 0x0E;
524
525 mGraphics->Sidebar_Copy_Sprite_To_ScreenBufPtr(pData0, Data8, DataC);
526}
527
528int16 cFodder::GUI_Sidebar_SelectedTroops_Count() {
529

Callers

nothing calls this directly

Tested by

no test coverage detected