SHOW:
|
|
- or go back to the newest paste.
| 1 | term.clear() | |
| 2 | term.setTextColor(colors.white) | |
| 3 | term.setBackgroundColor(colors.black) | |
| 4 | term.clear() | |
| 5 | ||
| 6 | term.setCursorPos(1, 1) | |
| 7 | term.write("the menu")
| |
| 8 | term.setCursorPos(1, 2) | |
| 9 | term.write(" - edit settings")
| |
| 10 | term.setCursorPos(1, 3) | |
| 11 | term.write(" - edit items")
| |
| 12 | term.setCursorPos(1, 4) | |
| 13 | term.write(" - add money to card")
| |
| 14 | term.setCursorPos(1, 5) | |
| 15 | - | term.write(" - Change to order mode")
|
| 15 | + | term.write(" - see orders")
|
| 16 | term.setCursorPos(1,7) | |
| 17 | term.write("exit menu")
| |
| 18 | ||
| 19 | ||
| 20 | while true do | |
| 21 | local event, button, x, y = os.pullEvent( "mouse_click" ) | |
| 22 | if y==2 then | |
| 23 | shell.run("fg", "textedit", "settings")
| |
| 24 | end | |
| 25 | if y==3 then | |
| 26 | shell.run("fg", "textedit", "items")
| |
| 27 | end | |
| 28 | if y==4 then | |
| 29 | shell.run("addmoney")
| |
| 30 | end | |
| 31 | if y==5 then | |
| 32 | - | shell.run("pastebin", "run", "CwpCq2zS")
|
| 32 | + | shell.run("jobs2")
|
| 33 | os.reboot() | |
| 34 | end | |
| 35 | if y==7 then | |
| 36 | os.reboot() | |
| 37 | end | |
| 38 | ||
| 39 | ||
| 40 | ||
| 41 | ||
| 42 | ||
| 43 | ||
| 44 | ||
| 45 | ||
| 46 | end |