mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-18 04:45:39 +00:00
Added navigation sounds for some missing actions.
Also changed the navigation sound for the custom collection 'Jump to' action.
This commit is contained in:
parent
66275798a5
commit
78e6e1a870
|
@ -141,6 +141,9 @@ bool ISimpleGameListView::input(InputConfig* config, Input input)
|
||||||
if (mRoot->getSystem()->getThemeFolder() == "custom-collections")
|
if (mRoot->getSystem()->getThemeFolder() == "custom-collections")
|
||||||
updateHelpPrompts();
|
updateHelpPrompts();
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
NavigationSounds::getInstance()->playThemeNavigationSound(SCROLLSOUND);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -182,6 +185,7 @@ bool ISimpleGameListView::input(InputConfig* config, Input input)
|
||||||
}
|
}
|
||||||
else if (mRoot->getSystem()->isGameSystem()) {
|
else if (mRoot->getSystem()->isGameSystem()) {
|
||||||
stopListScrolling();
|
stopListScrolling();
|
||||||
|
NavigationSounds::getInstance()->playThemeNavigationSound(SCROLLSOUND);
|
||||||
mWindow->startMediaViewer(getCursor());
|
mWindow->startMediaViewer(getCursor());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -226,7 +230,7 @@ bool ISimpleGameListView::input(InputConfig* config, Input input)
|
||||||
ViewController::GAME_LIST) {
|
ViewController::GAME_LIST) {
|
||||||
// Jump to the randomly selected game.
|
// Jump to the randomly selected game.
|
||||||
if (mRandomGame) {
|
if (mRandomGame) {
|
||||||
NavigationSounds::getInstance()->playThemeNavigationSound(SCROLLSOUND);
|
NavigationSounds::getInstance()->playThemeNavigationSound(SELECTSOUND);
|
||||||
// If there is already an mCursorStackHistory entry for the collection, then
|
// If there is already an mCursorStackHistory entry for the collection, then
|
||||||
// remove it so we don't get multiple entries.
|
// remove it so we don't get multiple entries.
|
||||||
std::vector<FileData*> listEntries =
|
std::vector<FileData*> listEntries =
|
||||||
|
@ -242,6 +246,9 @@ bool ISimpleGameListView::input(InputConfig* config, Input input)
|
||||||
setCursor(mRandomGame);
|
setCursor(mRandomGame);
|
||||||
updateHelpPrompts();
|
updateHelpPrompts();
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
NavigationSounds::getInstance()->playThemeNavigationSound(SCROLLSOUND);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (config->isMappedTo("y", input) &&
|
else if (config->isMappedTo("y", input) &&
|
||||||
!Settings::getInstance()->getBool("FavoritesAddButton") &&
|
!Settings::getInstance()->getBool("FavoritesAddButton") &&
|
||||||
|
@ -255,6 +262,7 @@ bool ISimpleGameListView::input(InputConfig* config, Input input)
|
||||||
if (CollectionSystemsManager::get()->isEditing() &&
|
if (CollectionSystemsManager::get()->isEditing() &&
|
||||||
mRoot->getSystem()->isGameSystem() && getCursor()->getType() != PLACEHOLDER &&
|
mRoot->getSystem()->isGameSystem() && getCursor()->getType() != PLACEHOLDER &&
|
||||||
getCursor()->getParent()->getPath() == "collections") {
|
getCursor()->getParent()->getPath() == "collections") {
|
||||||
|
NavigationSounds::getInstance()->playThemeNavigationSound(FAVORITESOUND);
|
||||||
GuiInfoPopup* s;
|
GuiInfoPopup* s;
|
||||||
s = new GuiInfoPopup(mWindow,
|
s = new GuiInfoPopup(mWindow,
|
||||||
"CAN'T ADD CUSTOM COLLECTIONS TO CUSTOM COLLECTIONS", 4000);
|
"CAN'T ADD CUSTOM COLLECTIONS TO CUSTOM COLLECTIONS", 4000);
|
||||||
|
@ -263,6 +271,7 @@ bool ISimpleGameListView::input(InputConfig* config, Input input)
|
||||||
// Notify the user if attempting to add a placeholder to a custom collection.
|
// Notify the user if attempting to add a placeholder to a custom collection.
|
||||||
if (CollectionSystemsManager::get()->isEditing() &&
|
if (CollectionSystemsManager::get()->isEditing() &&
|
||||||
mRoot->getSystem()->isGameSystem() && getCursor()->getType() == PLACEHOLDER) {
|
mRoot->getSystem()->isGameSystem() && getCursor()->getType() == PLACEHOLDER) {
|
||||||
|
NavigationSounds::getInstance()->playThemeNavigationSound(FAVORITESOUND);
|
||||||
GuiInfoPopup* s;
|
GuiInfoPopup* s;
|
||||||
s = new GuiInfoPopup(mWindow,
|
s = new GuiInfoPopup(mWindow,
|
||||||
"CAN'T ADD PLACEHOLDERS TO CUSTOM COLLECTIONS", 4000);
|
"CAN'T ADD PLACEHOLDERS TO CUSTOM COLLECTIONS", 4000);
|
||||||
|
|
Loading…
Reference in a new issue