| 1270 | } |
| 1271 | |
| 1272 | void 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 | |
| 1300 | void cFodder::GUI_Button_Load_Exit() { |
| 1301 | mGUI_Select_File_String_Input_Callback = 0; |