This is my code:
CreateTopicPage = class()
function CreateTopicPage:init()
self.text = {title = "Title here", message = "Message is here and\
new line testnction"}
self.buttons = {"q","w","e","r","t","y","u","i","o","p","a","s","d","f","g","h","j","k","l","z","x","c","v","b","m",",",".","?", "1", "2","3","4","5","6","7", "8", "9", "0"}
self.xy = 64
end
function CreateTopicPage:draw()
fill(textcolor)
font("Arial-BoldMT")
text(self.text.title, 500, 625)
for x = 1, 14 do
self.buttons[x] = {}
for y = 1, 3 do
self.buttons[x][y] = {}
strokeWidth(0)
fill(255, 255, 255, 255)
rect(x * self.xy, y * self.xy, self.xy, self.xy)
fill(textcolor)
text(#self.buttons, x * self.xy + self.xy/2, y * self.xy + self.xy/2)
end
end
end
function CreateTopicPage:touched(t)
end
function CreateTopicPage:keyboard(key)
end
I want to know how to place instead text(#self.buttons, x * self.xy + self.xy/2, y * self.xy + self.xy/2)
the letters that are called in the table self.buttons = {"q","w","e","r","t","y","u","i","o","p","a","s","d","f","g","h","j","k","l","z","x","c","v","b","m",",",".","?", "1", "2","3","4","5","6","7", "8", "9", "0"}