Posted 24 July 2012 - 12:22 AM
I have a tekkit server and i want a GUI in the center screen but i dont know how to make one please help me im looking for one with at lease 5 options please help.
while true do
term.clear()
term.setCursorPos(1,1)
print("Welcome to my menu")
print("Option 1")
print("Option 2")
print("Option 3")
print("Option 4")
print("Option 5")
e, p = os.pullEvent()
if e == "char" then
if p == "1" then
--do something
elseif p == "2" then
--do something
elseif p == "3" then
--do something
elseif p == "4" then
--do something
elseif p == "5" then
--do something
end
end
end