|
///string_button(string) |
|
var str = argument0; |
|
|
|
///XO - PlayStation Controller Keys |
|
if os_type == (os_psvita || os_ps4) |
|
{ |
|
str = string_replace_all(str,"CONFIRM","➀"); |
|
str = string_replace_all(str,"CANCEL","➁"); |
|
str = string_replace_all(str,"BUTTON3","➂"); |
|
str = string_replace_all(str,"BUTTON4","➃"); |
|
if os_type == os_ps4 |
|
{ |
|
str = string_replace_all(str,"TRIGGERR","➉"); |
|
str = string_replace_all(str,"BUMPERR","➇"); |
|
str = string_replace_all(str,"TRIGGERL","➈"); |
|
str = string_replace_all(str,"BUMPERL","➆"); |
|
|
|
str = string_replace_all(str,"SELECT","⌨"); |
|
str = string_replace_all(str,"START","⒇"); |
|
} |
|
else if os_type == os_psvita |
|
{ |
|
str = string_replace_all(str,"TRIGGERR","➅"); |
|
str = string_replace_all(str,"BUMPERR","➅"); |
|
str = string_replace_all(str,"TRIGGERL","➄"); |
|
str = string_replace_all(str,"BUMPERL","➄"); |
|
|
|
str = string_replace_all(str,"SELECT","SELECT"); |
|
str = string_replace_all(str,"START","START"); |
|
} |
|
///Animate d-pad! |
|
if global.ticker == false |
|
{ |
|
str = string_replace_all(str,"DP_UP","⒝"); |
|
str = string_replace_all(str,"DP_DOWN","⒞"); |
|
str = string_replace_all(str,"DP_LEFT","⒟"); |
|
str = string_replace_all(str,"DP_RIGHT","⒠"); |
|
} |
|
else |
|
{ |
|
str = string_replace_all(str,"DP_UP","⒜"); |
|
str = string_replace_all(str,"DP_DOWN","⒜"); |
|
str = string_replace_all(str,"DP_LEFT","⒜"); |
|
str = string_replace_all(str,"DP_RIGHT","⒜"); |
|
} |
|
} |
|
|
|
if (os_type == os_xboxone) || (os_type == os_windows && global.KBMuser = false) |
|
{ |
|
str = string_replace_all(str,"CONFIRM","➊"); |
|
str = string_replace_all(str,"CANCEL","➋"); |
|
str = string_replace_all(str,"BUTTON3","➌"); |
|
str = string_replace_all(str,"BUTTON4","➍"); |
|
|
|
str = string_replace_all(str,"TRIGGERR","➑"); |
|
str = string_replace_all(str,"BUMPERR","➏"); |
|
str = string_replace_all(str,"TRIGGERL","➐"); |
|
str = string_replace_all(str,"BUMPERL","➎"); |
|
|
|
str = string_replace_all(str,"SELECT","➒"); |
|
str = string_replace_all(str,"START","➓"); |
|
|
|
///Animate d-pad! |
|
if global.ticker == false |
|
{ |
|
str = string_replace_all(str,"DP_UP","⒢"); |
|
str = string_replace_all(str,"DP_DOWN","⒣"); |
|
str = string_replace_all(str,"DP_LEFT","⒤"); |
|
str = string_replace_all(str,"DP_RIGHT","⒥"); |
|
} |
|
else |
|
{ |
|
str = string_replace_all(str,"DP_UP","⒡"); |
|
str = string_replace_all(str,"DP_DOWN","⒡"); |
|
str = string_replace_all(str,"DP_LEFT","⒡"); |
|
str = string_replace_all(str,"DP_RIGHT","⒡"); |
|
} |
|
} |
|
|
|
///Replace Keyboard specials |
|
str = string_replace_all(str,"SPACE","⑴"); |
|
str = string_replace_all(str,"SHIFT","⑵"); |
|
str = string_replace_all(str,"ALT","⑶"); |
|
str = string_replace_all(str,"CTRL","⑷"); |
|
str = string_replace_all(str,"ENTER","⑸"); |
|
str = string_replace_all(str,"ESC","⑹"); |
|
str = string_replace_all(str,"TAB","⑺"); |
|
|
|
|
|
///Keyboard key animation |
|
if global.ticker == false |
|
{ |
|
for(var i = ord("Ⓐ"); i <= ord("Ⓩ"); ++i) |
|
{ |
|
str = string_replace_all(str,chr(i), chr(i + ord("ⓐ") - ord("Ⓐ"))); |
|
} |
|
} |
|
|
|
return str; |