From 37a16fe3ed27b321a76011f155205afc2b02a8bc Mon Sep 17 00:00:00 2001 From: Koerty Date: Thu, 22 Mar 2018 10:22:32 +0100 Subject: [PATCH] Update the grid's help prompt - Add a left+right shoulder button icon - Update the outdated help prompt to match the one from the Basic view --- .../src/views/gamelist/GridGameListView.cpp | 16 +++-- es-core/src/components/HelpComponent.cpp | 1 + resources/help/button_lr.svg | 69 +++++++++++++++++++ 3 files changed, 81 insertions(+), 5 deletions(-) create mode 100644 resources/help/button_lr.svg diff --git a/es-app/src/views/gamelist/GridGameListView.cpp b/es-app/src/views/gamelist/GridGameListView.cpp index 27dfca0e9..4d979a502 100644 --- a/es-app/src/views/gamelist/GridGameListView.cpp +++ b/es-app/src/views/gamelist/GridGameListView.cpp @@ -1,6 +1,8 @@ #include "views/gamelist/GridGameListView.h" +#include "views/UIModeController.h" #include "views/ViewController.h" +#include "CollectionSystemManager.h" #include "Settings.h" #include "SystemData.h" @@ -101,12 +103,16 @@ std::vector GridGameListView::getHelpPrompts() std::vector prompts; if(Settings::getInstance()->getBool("QuickSystemSelect")) - { - prompts.push_back(HelpPrompt("l", "system")); - prompts.push_back(HelpPrompt("r", "system")); - } - prompts.push_back(HelpPrompt("up/down/left/right", "scroll")); + prompts.push_back(HelpPrompt("lr", "system")); + prompts.push_back(HelpPrompt("up/down/left/right", "choose")); prompts.push_back(HelpPrompt("a", "launch")); prompts.push_back(HelpPrompt("b", "back")); + prompts.push_back(HelpPrompt("select", "options")); + prompts.push_back(HelpPrompt("x", "random")); + if(mRoot->getSystem()->isGameSystem() && !UIModeController::getInstance()->isUIModeKid()) + { + std::string prompt = CollectionSystemManager::get()->getEditingCollection(); + prompts.push_back(HelpPrompt("y", prompt)); + } return prompts; } diff --git a/es-core/src/components/HelpComponent.cpp b/es-core/src/components/HelpComponent.cpp index 55a97a37f..93a0f937d 100644 --- a/es-core/src/components/HelpComponent.cpp +++ b/es-core/src/components/HelpComponent.cpp @@ -24,6 +24,7 @@ static const std::map ICON_PATH_MAP { { "y", ":/help/button_y.svg" }, { "l", ":/help/button_l.svg" }, { "r", ":/help/button_r.svg" }, + { "lr", ":/help/button_lr.svg" }, { "start", ":/help/button_start.svg" }, { "select", ":/help/button_select.svg" } }; diff --git a/resources/help/button_lr.svg b/resources/help/button_lr.svg new file mode 100644 index 000000000..0093848c4 --- /dev/null +++ b/resources/help/button_lr.svg @@ -0,0 +1,69 @@ + + + +image/svg+xml \ No newline at end of file