mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 07:35:38 +00:00
Added temporary game launch notification popup.
This commit is contained in:
parent
b355b5b22a
commit
6dd1078e09
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue