From 6dd1078e092cd0d98d2a0ba51d25623caf17042f Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 15 Aug 2020 15:41:11 +0200 Subject: [PATCH] Added temporary game launch notification popup. --- es-app/src/FileData.cpp | 2 ++ es-app/src/views/ViewController.cpp | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/es-app/src/FileData.cpp b/es-app/src/FileData.cpp index 708324dcf..08ce1d4f1 100644 --- a/es-app/src/FileData.cpp +++ b/es-app/src/FileData.cpp @@ -735,6 +735,8 @@ void FileData::launchGame(Window* window) window->setInfoPopup(s); } else { + // Stop showing the game launch notification. + window->stopInfoPopup(); #ifdef _WIN64 // This code is only needed for Windows, where we may need to keep ES running while // the game/emulator is in use. It's basically used to pause any playing game video diff --git a/es-app/src/views/ViewController.cpp b/es-app/src/views/ViewController.cpp index e1d14a470..a8d2419aa 100644 --- a/es-app/src/views/ViewController.cpp +++ b/es-app/src/views/ViewController.cpp @@ -13,6 +13,7 @@ #include "animations/LambdaAnimation.h" #include "animations/LaunchAnimation.h" #include "animations/MoveCameraAnimation.h" +#include "guis/GuiInfoPopup.h" #include "guis/GuiMenu.h" #include "guis/GuiMsgBox.h" #include "views/gamelist/DetailedGameListView.h" @@ -261,6 +262,13 @@ void ViewController::launch(FileData* game, Vector3f center) mWindow->stopInfoPopup(); // Make sure we disable any existing info popup. mLockInput = true; + // TEMPORARY - Until a proper game launch screen is implemented, at least this + // will let the user know that something is actually happening (in addition + // to the launch sound, if navigation sounds are enabled). + GuiInfoPopup* s = new GuiInfoPopup(mWindow, "LAUNCHING GAME '" + + Utils::String::toUpper(game->metadata.get("name") + "'"), 10000); + mWindow->setInfoPopup(s); + std::string transition_style = Settings::getInstance()->getString("TransitionStyle"); NavigationSounds::getInstance()->playThemeNavigationSound(LAUNCHSOUND);