Skip to content

Commit

Permalink
hide mouse when loading terrain
Browse files Browse the repository at this point in the history
  • Loading branch information
tritonas00 committed Feb 22, 2022
1 parent ad9fb06 commit a805133
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/main/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,7 @@ int main(int argc, char *argv[])
break;

case MSG_SIM_LOAD_TERRN_REQUESTED:
App::GetGuiManager()->SetMouseCursorVisibility(GUIManager::MouseCursorVisibility::HIDDEN);
App::GetGuiManager()->GetLoadingWindow()->SetProgress(5, _L("Loading resources"));
App::GetContentManager()->LoadGameplayResources();

Expand All @@ -520,6 +521,7 @@ int main(int argc, char *argv[])
App::GetGuiManager()->SetVisible_GameMainMenu(false);
App::GetGuiManager()->SetVisible_MenuWallpaper(false);
App::GetGuiManager()->SetVisible_LoadingWindow(false);
App::GetGuiManager()->SetMouseCursorVisibility(GUIManager::MouseCursorVisibility::VISIBLE);
App::gfx_fov_external->setVal(App::gfx_fov_external_default->getInt());
App::gfx_fov_internal->setVal(App::gfx_fov_internal_default->getInt());
#ifdef USE_SOCKETW
Expand Down

0 comments on commit a805133

Please # to comment.