mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-18 07:05:39 +00:00
More descriptive names for inputs
This commit is contained in:
parent
a119997ec7
commit
149c1bcbdd
|
@ -7,6 +7,7 @@
|
||||||
|
|
||||||
static int inputCount = 10;
|
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)
|
GuiInputConfig::GuiInputConfig(Window* window, InputConfig* target) : Gui(window), mTargetConfig(target)
|
||||||
{
|
{
|
||||||
|
@ -71,7 +72,7 @@ void GuiInputConfig::render()
|
||||||
int y = 14 + font->getHeight();
|
int y = 14 + font->getHeight();
|
||||||
for(int i = 0; i < mCurInputId; i++)
|
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;
|
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("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);
|
Renderer::drawCenteredText("Press any button to continue.", 0, (int)(Renderer::getScreenHeight() * 0.6) + font->getHeight() + 4, 0x000000FF, font);
|
||||||
}else{
|
}else{
|
||||||
Renderer::drawText(inputName[mCurInputId], 10, y, 0x000000FF, font);
|
Renderer::drawText(inputDispName[mCurInputId], 10, y, 0x000000FF, font);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!mErrorMsg.empty())
|
if(!mErrorMsg.empty())
|
||||||
|
|
Loading…
Reference in a new issue