This new helper method will be added to the game
class:
CreateTextButton
. Its parameters are a font object, the text, its position, button ID, and the layer that the button is added to.Method CreateTextButton:ftObject (font:ftFont, txt:String, xp:Int, yp:Int, id:Int, layer:ftLayer)
Local but:ftObject = eng.CreateText(font,txt,xp,yp,1)
but.SetTag(id) but.SetTouchMode(2)
but.SetLayer(layer) Return but End
3.139.105.114