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

Method GUI_Prepare_Button_Grenade

Source/GUI_Element.cpp:163–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163void cFodder::GUI_Prepare_Button_Grenade() {
164 if (!mGUI_Loop_Is_CurrentSquad)
165 return;
166
167 sGUI_Element* NewElement = mGUI_NextFreeElement;
168 NewElement->field_0 = &cFodder::GUI_Button_NoAction;
169 NewElement->mX = 0;
170 NewElement->mWidth = 0x0C;
171 NewElement->mY = mGUI_Loop_Draw_Y + 0x0E;
172 NewElement->mHeight = 0x14;
173 NewElement->mMouseInsideFuncPtr = &cFodder::GUI_Handle_Button_Grenades;
174
175 ++NewElement;
176 GUI_ClearElement(NewElement);
177}
178
179void cFodder::GUI_Handle_Button_Grenades() {
180

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected