tomtrein

Untitled

Aug 1st, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. drawjobs = function(start)
  2. term.clear()
  3. for i=1, 19 do
  4. term.setCursorPos(1, i)
  5. term.write(start+i)
  6. end
  7. end
  8.  
  9.  
  10. p=0
  11. while true do
  12. local event, scrollDirection, x, y = os.pullEvent("mouse_scroll")
  13. p = p+scrollDirection
  14. term.setCursorPos(1, 5)
  15. term.write(tostring(i))
  16. drawjobs(p)
  17. end
Advertisement
Add Comment
Please, Sign In to add comment