From 149c1bcbdd02216860447ccf9f8270424af4b4d6 Mon Sep 17 00:00:00 2001 From: Aloshi Date: Thu, 18 Apr 2013 16:44:43 -0500 Subject: [PATCH] More descriptive names for inputs --- src/components/GuiInputConfig.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/GuiInputConfig.cpp b/src/components/GuiInputConfig.cpp index d50484a98..d315c6489 100644 --- a/src/components/GuiInputConfig.cpp +++ b/src/components/GuiInputConfig.cpp @@ -6,7 +6,8 @@ #include "../Log.h" static int inputCount = 10; -static std::string inputName[10] = { "Up", "Down", "Left", "Right", "A", "B", "Menu", "Select", "PageUp", "PageDown"}; +static std::string inputName[10] = { "Up", "Down", "Left", "Right", "A", "B", "Menu", "Select", "PageUp", "PageDown" }; +static std::string inputDispName[10] = { "Up", "Down", "Left", "Right", "Accept", "Back", "Menu", "Jump to Letter", "Page Up", "Page Down" }; GuiInputConfig::GuiInputConfig(Window* window, InputConfig* target) : Gui(window), mTargetConfig(target) { @@ -71,7 +72,7 @@ void GuiInputConfig::render() int y = 14 + font->getHeight(); for(int i = 0; i < mCurInputId; i++) { - Renderer::drawText(inputName[i], 10, y, 0x00CC00FF, font); + Renderer::drawText(inputDispName[i], 10, y, 0x00CC00FF, font); y += font->getHeight() + 5; } @@ -80,7 +81,7 @@ void GuiInputConfig::render() Renderer::drawCenteredText("Basic config done!", 0, (int)(Renderer::getScreenHeight() * 0.6), 0x00CC00FF, font); Renderer::drawCenteredText("Press any button to continue.", 0, (int)(Renderer::getScreenHeight() * 0.6) + font->getHeight() + 4, 0x000000FF, font); }else{ - Renderer::drawText(inputName[mCurInputId], 10, y, 0x000000FF, font); + Renderer::drawText(inputDispName[mCurInputId], 10, y, 0x000000FF, font); } if(!mErrorMsg.empty())