Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require("libraries.asshat")
- programas =
- {
- {"asshatManual", "Important instructions for use"},
- {"asshatPrograms", "Lists available programs"},
- {"asshatStartup", "Manual for the startup program"},
- {"updateFloppy", "Updates a floppy disk's programs"},
- {"updateMachine", "Uses a floppy disk to update the machine"},
- {"branchMine", "Branch mines"},
- {"chopTree", "Cuts a tree in front of the robot"},
- {"stairs", "Builds or digs stairs upwards or downwards"},
- {"dig", "Digs a large area. Has 4 modes"},
- {"bridge", "Builds a bridge until it finds ground or a wall"},
- {"tower", "Builds either a tower or spiral staircase"},
- }
- term.clear()
- term.setCursorPos(1,1)
- local width, height = term.getSize()
- for i=1, #programas do
- local x, y = term.getCursorPos()
- writeCor(programas[i][1], colors.yellow)
- print(": "..programas[i][2].."\n")
- if (y >= height-4) then
- term.setCursorPos(1,height)
- writeCentroCor("[Press ENTER to continue]", colors.orange)
- os.pullEvent("key")
- term.clear()
- term.setCursorPos(1,1)
- end
- end
Add Comment
Please, Sign In to add comment