Advertisement
DanielLaby99

Benutzer

Mar 17th, 2013
919
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.55 KB | None | 0 0
  1. os.pullEvent = os.pullEventRaw
  2. term.clear()
  3. term.setCursorPos(1,1)
  4. term.setBackgroundColor(512)
  5. print("                                                   ")
  6. print("                                                   ")
  7. print("                                                   ")
  8. print("                                                   ")
  9. print("                                                   ")
  10. print("                                                   ")
  11. print("                                                   ")
  12. print("                                                   ")
  13. print("                                                   ")
  14. print("                                                   ")
  15. print("                                                   ")
  16. print("                                                   ")
  17. print("                                                   ")
  18. print("                                                   ")
  19. print("                                                   ")
  20. print("                                                   ")
  21. print("                                                   ")
  22. print("                                                   ")
  23. print("                                                   ")
  24.  
  25. term.setCursorPos(1,1)
  26. print("LabyOS - New OS")
  27. term.setCursorPos(28,1)
  28. print("Programm by DanielLaby99")
  29. term.setCursorPos(1,2)
  30. sleep(0)
  31. term.setBackgroundColor(colors.black)
  32. print("                                                   ")
  33. term.setBackgroundColor(512)
  34.  
  35. sleep(0.5)
  36. term.setCursorPos(15,5)
  37. term.setBackgroundColor(colors.red)
  38. print("         Anmeldung:        X")
  39. term.setBackgroundColor(2048)
  40. term.setCursorPos(15,6)
  41. print("                            ")
  42. term.setCursorPos(15,6)
  43. print("                            ")
  44. term.setCursorPos(15,7)
  45. print("     X  Anmelden            ")
  46. term.setCursorPos(15,8)
  47. print("     X  Registrieren        ")
  48. term.setCursorPos(15,9)
  49. print("                            ")
  50. term.setCursorPos(15,10)
  51. print("                            ")
  52. term.setBackgroundColor(512)
  53. term.setCursorPos(1,1)
  54. term.setBackgroundColor(512)
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62. while true do
  63. local event, button, X, Y = os.pullEvent("mouse_click")
  64. XY = X..","..Y
  65.  
  66. if XY == "42,5" and button == 1 then
  67. shell.run("/Laby/Herunterfahren")
  68. break
  69. end
  70.  
  71. if XY == "20,7" and button == 1 then
  72. shell.run("/Laby/Login")
  73. break
  74. end
  75.  
  76.  
  77.  
  78.  
  79. if XY == "20,8" and button == 1 then
  80. shell.run("/Laby/Register")
  81. sleep(2)
  82. break
  83. end
  84. end
  85.  
  86.  
  87.  
  88.  
  89. term.setCursorPos(1,1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement