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

Method GUI_Handle_Element_Mouse_Check

Source/GUI_Element.cpp:1272–1298  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1270}
1271
1272void cFodder::GUI_Handle_Element_Mouse_Check(sGUI_Element* pLoop_Element) {
1273
1274 for (; pLoop_Element->field_0; ++pLoop_Element) {
1275
1276 int16 Data0 = pLoop_Element->mX;
1277 int16 Data4 = mMouseX;
1278 Data4 += 0x20;
1279
1280 if (Data0 > Data4)
1281 continue;
1282
1283 Data0 += pLoop_Element->mWidth;
1284 if (Data0 < Data4)
1285 continue;
1286
1287 Data0 = pLoop_Element->mY;
1288 if (Data0 > mMouseY)
1289 continue;
1290
1291 Data0 += pLoop_Element->mHeight;
1292 if (Data0 < mMouseY)
1293 continue;
1294
1295 (*this.*pLoop_Element->mMouseInsideFuncPtr)();
1296 return;
1297 }
1298}
1299
1300void cFodder::GUI_Button_Load_Exit() {
1301 mGUI_Select_File_String_Input_Callback = 0;

Callers 1

CycleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected