Use tables, I used this code to make buttons before.
local menu={}
function setTable(name, xmin, xmax, ymin, ymax)
menu[name] = {}
menu[name]["xmin"] = xmin
menu[name]["ymin"] = ymin
menu[name]["xmax"] = xmax
menu[name]["ymax"] = ymax
end
function fillTable()
setTable("Names", 17, 24, 2, 3)
setTable("Go", 17, 20, 6, 7)
setTable("Here", 17, 20, 4, 5)
end
Just call 'fillTable' and all the relevant information and there's your button.
If you want to have each button have a different background try this code:
--Function to fill the desired space
function fill(x,y,color,text)
m.setBackgroundColor(color)
m.setCursorPos(x,y)
m.write(text)
m.setBackgroundColor(colors.black)
end
--Function to change button background
--from one color to another
function bColor()
local currentColor = nil
for name,option in pairs(menu) do
currentColor = (option["active"] and colors.lime or colors.blue)
fill(option["xmin"],option["ymin"],currentColor,name)
end
end
I'm sure there are better ways of making tables but I like this setup for how easy it is to read and edit.
As for languages, I have no idea sorry :/