Standardized some GuiMenu function names.

This commit is contained in:
Leon Styhre 2021-05-22 22:48:44 +02:00
parent 28ff713d87
commit 2d5c6ed6c4
2 changed files with 15 additions and 15 deletions

View file

@ -41,19 +41,19 @@ GuiMenu::GuiMenu(Window* window) : GuiComponent(window),
bool isFullUI = UIModeController::getInstance()->isUIModeFull(); bool isFullUI = UIModeController::getInstance()->isUIModeFull();
if (isFullUI) if (isFullUI)
addEntry("SCRAPER", 0x777777FF, true, [this] { openScraperSettings(); }); addEntry("SCRAPER", 0x777777FF, true, [this] { openScraperOptions(); });
if (isFullUI) if (isFullUI)
addEntry("UI SETTINGS", 0x777777FF, true, [this] { openUISettings(); }); addEntry("UI SETTINGS", 0x777777FF, true, [this] { openUIOptions(); });
addEntry("SOUND SETTINGS", 0x777777FF, true, [this] { openSoundSettings(); }); addEntry("SOUND SETTINGS", 0x777777FF, true, [this] { openSoundOptions(); });
if (isFullUI) if (isFullUI)
addEntry("GAME COLLECTION SETTINGS", 0x777777FF, true, [this] { addEntry("GAME COLLECTION SETTINGS", 0x777777FF, true, [this] {
openCollectionSystemSettings(); }); openCollectionSystemOptions(); });
if (isFullUI) if (isFullUI)
addEntry("OTHER SETTINGS", 0x777777FF, true, [this] { openOtherSettings(); }); addEntry("OTHER SETTINGS", 0x777777FF, true, [this] { openOtherOptions(); });
if (isFullUI) if (isFullUI)
addEntry("CONFIGURE INPUT", 0x777777FF, true, [this] { openConfigInput(); }); addEntry("CONFIGURE INPUT", 0x777777FF, true, [this] { openConfigInput(); });
@ -81,12 +81,12 @@ GuiMenu::~GuiMenu()
ViewController::get()->stopScrolling(); ViewController::get()->stopScrolling();
} }
void GuiMenu::openScraperSettings() void GuiMenu::openScraperOptions()
{ {
mWindow->pushGui(new GuiScraperMenu(mWindow, "SCRAPER")); mWindow->pushGui(new GuiScraperMenu(mWindow, "SCRAPER"));
} }
void GuiMenu::openUISettings() void GuiMenu::openUIOptions()
{ {
auto s = new GuiSettings(mWindow, "UI SETTINGS"); auto s = new GuiSettings(mWindow, "UI SETTINGS");
@ -539,7 +539,7 @@ void GuiMenu::openUISettings()
mWindow->pushGui(s); mWindow->pushGui(s);
} }
void GuiMenu::openSoundSettings() void GuiMenu::openSoundOptions()
{ {
auto s = new GuiSettings(mWindow, "SOUND SETTINGS"); auto s = new GuiSettings(mWindow, "SOUND SETTINGS");
@ -750,7 +750,7 @@ void GuiMenu::openSoundSettings()
mWindow->pushGui(s); mWindow->pushGui(s);
} }
void GuiMenu::openOtherSettings() void GuiMenu::openOtherOptions()
{ {
auto s = new GuiSettings(mWindow, "OTHER SETTINGS"); auto s = new GuiSettings(mWindow, "OTHER SETTINGS");
@ -1191,7 +1191,7 @@ void GuiMenu::openScreensaverOptions()
mWindow->pushGui(new GuiScreensaverOptions(mWindow, "SCREENSAVER SETTINGS")); mWindow->pushGui(new GuiScreensaverOptions(mWindow, "SCREENSAVER SETTINGS"));
} }
void GuiMenu::openCollectionSystemSettings() void GuiMenu::openCollectionSystemOptions()
{ {
mWindow->pushGui(new GuiCollectionSystemsOptions(mWindow, "GAME COLLECTION SETTINGS")); mWindow->pushGui(new GuiCollectionSystemsOptions(mWindow, "GAME COLLECTION SETTINGS"));
} }

View file

@ -30,13 +30,13 @@ private:
bool add_arrow, const std::function<void()>& func); bool add_arrow, const std::function<void()>& func);
void addVersionInfo(); void addVersionInfo();
void openScraperSettings(); void openScraperOptions();
void openUISettings(); void openUIOptions();
void openMediaViewerOptions(); void openMediaViewerOptions();
void openScreensaverOptions(); void openScreensaverOptions();
void openSoundSettings(); void openSoundOptions();
void openCollectionSystemSettings(); void openCollectionSystemOptions();
void openOtherSettings(); void openOtherOptions();
void openConfigInput(); void openConfigInput();
void openQuitMenu(); void openQuitMenu();