Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setTextColor(colors.white)
- term.setBackgroundColor(colors.black)
- term.clear()
- term.setCursorPos(1, 1)
- term.write("the menu")
- term.setCursorPos(1, 2)
- term.write(" - edit settings")
- term.setCursorPos(1, 3)
- term.write(" - edit items")
- term.setCursorPos(1, 4)
- term.write(" - add money to card")
- term.setCursorPos(1, 5)
- term.write(" - see orders")
- term.setCursorPos(1,7)
- term.write("exit menu")
- while true do
- local event, button, x, y = os.pullEvent( "mouse_click" )
- if y==2 then
- shell.run("fg", "textedit", "settings")
- end
- if y==3 then
- shell.run("fg", "textedit", "items")
- end
- if y==4 then
- shell.run("addmoney")
- end
- if y==5 then
- shell.run("jobs2")
- os.reboot()
- end
- if y==7 then
- os.reboot()
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement