Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Hide mouse when loading terrain #2855

Merged
merged 1 commit into from
Mar 1, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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