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

Method GUI_Prepare_Button_Squad

Source/GUI_Element.cpp:1627–1646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1625}
1626
1627void cFodder::GUI_Prepare_Button_Squad() {
1628 sGUI_Element* Element = mGUI_NextFreeElement;
1629
1630 Element->field_0 = &cFodder::GUI_Button_NoAction;
1631 Element->mX = 0;
1632 Element->mY = mGUI_Loop_Draw_Y;
1633
1634 Element->mWidth = 0x2F;
1635 Element->mHeight = 0x0E;
1636
1637 if (mGUI_Loop_Squad_Current != mSquad_Selected) {
1638 Element->mMouseInsideFuncPtr = mGUI_Handle_Button_SelectSquad_Array[mGUI_Loop_Squad_Current];
1639 }
1640 else {
1641 Element->mMouseInsideFuncPtr = &cFodder::GUI_Handle_Button_SplitSquad;
1642 }
1643
1644 ++Element;
1645 GUI_ClearElement(Element);
1646}
1647
1648void cFodder::GUI_Handle_Button_SelectSquad_0() {
1649 Squad_Select(0);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected