mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-02-24 15:04:00 +00:00
Make key config a bit more user friendly
This commit is contained in:
parent
19daa27528
commit
9c180ca5b7
4 changed files with 14 additions and 2 deletions
|
@ -2002,6 +2002,14 @@ void InGameMenu::create()
|
|||
const float offx = 140 - keyConfigBg->position.x;
|
||||
const float yi = 20;
|
||||
|
||||
keyConfigInstructions = new TTFText(&dsq->fontArialSmallest);
|
||||
keyConfigInstructions->position = Vector(0, offy + 415);
|
||||
keyConfigInstructions->setText(SB(2159));
|
||||
keyConfigInstructions->color = Vector(0.6f, 0.7f, 0.8f);
|
||||
keyConfigInstructions->alphaMod = 0;
|
||||
keyConfigInstructions->setAlign(ALIGN_CENTER);
|
||||
keyConfigBg->addChild(keyConfigInstructions, PM_POINTER);
|
||||
|
||||
TTFText *joystickLabel = new TTFText(&dsq->fontArialSmall);
|
||||
joystickLabel->position = Vector(offx, offy + 390);
|
||||
joystickLabel->setText(SB(2140));
|
||||
|
@ -4000,6 +4008,8 @@ void InGameMenu::updateKeyConfigMenu(float dt)
|
|||
= actionSetCheck->getValue();
|
||||
}
|
||||
|
||||
keyConfigInstructions->alphaMod = AquariaKeyConfig::waitingForInput ? 1.0f : 0.0f;
|
||||
|
||||
updateJoystickText();
|
||||
}
|
||||
|
||||
|
|
|
@ -222,6 +222,7 @@ private:
|
|||
AquariaCheckBox *actionSetCheck;
|
||||
int selectedActionSetIdx;
|
||||
TTFText *joystickNameText, *joystickGUIDText, *joystickButtonsText;
|
||||
TTFText *keyConfigInstructions;
|
||||
void updateActionSetComboBox();
|
||||
void switchToActionSet(int idx);
|
||||
void nextJoystick();
|
||||
|
|
|
@ -262,4 +262,4 @@ BANKSTRING(2155, "Invalid joy button value: ")
|
|||
BANKSTRING(2156, "Invalid mouse button id: ")
|
||||
BANKSTRING(2157, "Invalid joy axis(+): ")
|
||||
BANKSTRING(2158, "Invalid joy axis(-): ")
|
||||
|
||||
BANKSTRING(2159, "Press key to assign, Esc to abort, same key or Backspace/Del to clear")
|
||||
|
|
|
@ -261,3 +261,4 @@
|
|||
2156 Invalid mouse button id:
|
||||
2157 Invalid joy axis(+):
|
||||
2158 Invalid joy axis(-):
|
||||
2159 Press key to assign, Esc to abort, same key or Backspace/Del to clear
|
Loading…
Add table
Reference in a new issue