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

Method GUI_Button_Setup_Small

Source/GUI_Element.cpp:1133–1147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1131}
1132
1133void cFodder::GUI_Button_Setup_Small(void(cFodder::*pFunction)(void)) {
1134 sGUI_Element* Element = mGUI_NextFreeElement;
1135
1136 Element->field_0 = &cFodder::GUI_Button_NoAction;
1137
1138 Element->mX = mGUI_Temp_X - 3;
1139 Element->mWidth = mGUI_Temp_Width + 4;
1140 Element->mY = mGUI_Temp_Y;
1141 Element->mHeight = mGUI_Draw_LastHeight + 5;
1142 Element->mMouseInsideFuncPtr = pFunction;
1143
1144 ++Element;
1145 Element->field_0 = 0;
1146 mGUI_NextFreeElement = Element;
1147}
1148
1149std::string cFodder::GUI_Select_File(const char* pTitle, const std::vector<sSavedGame>& pSave, const std::vector<std::string> &pMaps) {
1150 mPhase_Aborted = false;

Callers 1

CycleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected