Replace ACTION in texts by {button} placeholders

Gamepads and the Steam Deck need "ACTION" to be replaced by a
controller glyph, so that's now possible.
This commit is contained in:
Dav999-v
2023-03-18 22:32:26 +01:00
committed by Misa Elizabeth Kai
parent 620365614d
commit 09365347b6
6 changed files with 101 additions and 25 deletions

View File

@@ -109,9 +109,19 @@ const char* BUTTONGLYPHS_get_button(const ActionSet actionset, const Action acti
* to fill into strings like "Press {button} to activate terminal". */
switch (actionset)
{
case ActionSet_Menu:
switch (action.Menu)
{
case Action_Menu_Accept:
return loc::gettext("ACTION");
}
break;
case ActionSet_InGame:
switch (action.InGame)
{
case Action_InGame_ACTION:
return loc::gettext("ACTION");
case Action_InGame_Interact:
if (game.separate_interact)
{