Advertisement
Muzze77

GeoTermProg

Apr 22nd, 2014
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.98 KB | None | 0 0
  1. geo1 = 0
  2. geo2 = 0
  3. geo3 = 0
  4. geo4 = 0
  5. cb = "back"
  6. g1 = colors.blue
  7. g2 = colors.yellow
  8. g3 = colors.red
  9. g4 = colors.green
  10.  
  11.  
  12. --[[
  13.  
  14. function ans()
  15. evt, key = os.pullEvent("char")
  16. if char == "1" then
  17.  
  18. if geo1 == 0 then
  19.  
  20. rs.setBundledOutput(cb, g1)
  21. geo1 = 1
  22. elseif geo1 == 1 then
  23. rs.setBundledOutput(cb, 0)
  24. geo1 = 0
  25.  
  26. end
  27. elseif
  28.  
  29. end
  30. sleep(1)
  31. sysProg()
  32. end
  33.  
  34. ]]--
  35.  
  36.  
  37. function sysProg()
  38. print("-------------------------")
  39. print("-- Programm by Muzze77 --")
  40. print("-------------------------")
  41. term.setCursorPos(1, 5)
  42. print("Bitte Programm waehlen")
  43. print("GeoThermal anschalten/ausschalten[NUMMERTASTEN(1-4)]")
  44. print("GeoThermal Alle auschalten[NUMMERTASTEN(0)]")
  45. print("GeoThermal Alle anschalten[NUMMERTASTEN(9)]")
  46. print("Momentan Laufen: ")
  47. if geo1 == 0 then
  48. print("Geothermal Tower 1 = Ausgeschaltet")
  49. elseif geo1 == 1 then
  50. print("Geothermal Tower 1 = Angeschaltet")
  51. end
  52. if geo2 == 0 then
  53. print("Geothermal Tower 2 = Ausgeschaltet")
  54. elseif geo2 == 1 then
  55. print("Geothermal Tower 2 = Angeschaltet")
  56. end
  57. if geo3 == 0 then
  58. print("Geothermal Tower 3 = Ausgeschaltet")
  59. elseif geo3 == 1 then
  60. print("Geothermal Tower 3 = Angeschaltet")
  61. end
  62. if geo4 == 0 then
  63. print("Geothermal Tower 4 = Ausgeschaltet")
  64. elseif geo4 == 1 then
  65. print("Geothermal Tower 4 = Angeschaltet")
  66. end
  67.  
  68.  
  69. ans()
  70. end
  71.  
  72.  
  73. function start()
  74.     term.setBackgroundColor(colors.white)
  75.     term.setTextColor(colors.blue)
  76.     sleep(1)
  77.     shell.run("clear")
  78.     term.setCursorPos(4, 2)
  79.     term.setTextColor(colors.red)
  80.     print("Daten werden Syncronisiert eine Sekunde gedult bitte.")
  81.     term.setCursorPos(17, 5)
  82.     term.setBackgroundColor(colors.black)
  83.     print("             ")
  84.     term.setCursorPos(17, 7)
  85.     print("             ")
  86.     term.setCursorPos(17, 6)
  87.     print(" ")
  88.     term.setCursorPos(29, 6)
  89.     print(" ")
  90.     term.setCursorPos(18, 6)
  91.     term.setBackgroundColor(colors.green)
  92.     textutils.slowPrint("           ", 0.60)
  93.     term.setBackgroundColor(colors.white)
  94.     sysProg()
  95. end
  96.  
  97.  
  98.  
  99. while true do
  100. start()
  101.  
  102.  
  103.  
  104. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement