blob: 1866f0563ad67beb1b6eeb3ce0e5586b695c611e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
global function PrependControllerPrompts
// Returns the string that gets turned into a controller prompt image in the front-end
string function ControllerButtonToStr( int buttonID )
{
switch (buttonID)
{
case BUTTON_Y:
return "%[Y_BUTTON|]%"
case BUTTON_X:
return "%[X_BUTTON|]%"
}
unreachable
}
string function PrependControllerPrompts( int buttonID, string localizationKey )
{
return ControllerButtonToStr( buttonID ) + " " + Localize(localizationKey)
}
|