inputTextEx extension by Mattia Fortunati
this extension will open a popup for requesting the user to input some text and then call a social async event into Game Maker passing the input text can be used for getting usernames, promo codes, numbers etc etc
Usage: simply call
showInputText(String strTit,String strYes,String strNo)
from game maker for opening the popup.
Example:
showInputText("Title Text", "OK", "Cancel")
and, in a social async event put some code like this:
var type = string(async_load[? "type"])
var data = string(async_load[? "data"])
//check for INPUTTEXT type of event
if type == "INPUTTEXT"
{
//Here you should receive the string containing the text written by the user
//which is stored inside the variable called "data"
var StringWrittenByUser = data
//now use it as you please
}
"type" passed will be "INPUTTEXT" "data" passed will be the text input by the user
NOTE: the keyboard won't never go fullscreen, and the function both works for PORTRAIT and LANDSCAPE orientations
End User Licence Agreement (EULA).