| 1214 | } |
| 1215 | |
| 1216 | void cFodder::GUI_Select_File_Loop(bool pShowCursor) { |
| 1217 | int8 byte_44B49 = 0; |
| 1218 | if (mGUI_SaveLoadAction != 3) { |
| 1219 | |
| 1220 | mSurface->palette_FadeTowardNew(); |
| 1221 | Mouse_Setup(); |
| 1222 | } |
| 1223 | mGUI_SaveLoadAction = 0; |
| 1224 | |
| 1225 | mGraphics->PaletteSet(); |
| 1226 | |
| 1227 | mSurface->Save(); |
| 1228 | bool mShow = false; |
| 1229 | |
| 1230 | do { |
| 1231 | if (mSurface->isPaletteAdjusting()) |
| 1232 | mSurface->palette_FadeTowardNew(); |
| 1233 | |
| 1234 | ++byte_44B49; |
| 1235 | byte_44B49 &= 0x0F; |
| 1236 | if (!byte_44B49) { |
| 1237 | if (pShowCursor) |
| 1238 | mShow = !mShow; |
| 1239 | mMouse_Button_Left_Toggle = 0; |
| 1240 | } |
| 1241 | |
| 1242 | // Show the cursor? |
| 1243 | if (mShow) |
| 1244 | GUI_Draw_Frame_8(PLATFORM_BASED(0x0F, 0x18), 0x00, mGUI_Temp_X + mGUI_Temp_Width, 0x50); |
| 1245 | |
| 1246 | if (mPhase_Aborted) |
| 1247 | GUI_Button_Load_Exit(); |
| 1248 | |
| 1249 | ++byte_44AC0; |
| 1250 | if (Mouse_Button_Left_Toggled() >= 0) |
| 1251 | GUI_Handle_Element_Mouse_Check(mGUI_Elements); |
| 1252 | |
| 1253 | GUI_Button_Load_MouseWheel(); |
| 1254 | |
| 1255 | if (mGUI_Select_File_String_Input_Callback) |
| 1256 | (this->*mGUI_Select_File_String_Input_Callback)(0x50); |
| 1257 | |
| 1258 | Mouse_DrawCursor(); |
| 1259 | |
| 1260 | Video_Sleep(); |
| 1261 | |
| 1262 | } while (mGUI_SaveLoadAction <= 0); |
| 1263 | |
| 1264 | mPhase_Aborted = false; |
| 1265 | |
| 1266 | if (mGUI_SaveLoadAction == 3) |
| 1267 | return; |
| 1268 | |
| 1269 | Image_FadeOut(); |
| 1270 | } |
| 1271 | |
| 1272 | void cFodder::GUI_Handle_Element_Mouse_Check(sGUI_Element* pLoop_Element) { |
| 1273 |
nothing calls this directly
no test coverage detected