Advertisement
Cedricator

Smart Home Lava RF

Jun 2nd, 2020
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. term.setBackgroundColor(colors.lightGray)
  2.  
  3. function Titel()
  4. term.setBackgroundColor(colors.orange)
  5. term.setTextColor(colors.gray)
  6. term.setCursorPos(1,1)
  7. term.write(" Smart Home - RF / EU ")
  8. term.setBackgroundColor(colors.lightGray)
  9. term.setTextColor(colors.white)
  10. end
  11.  
  12. function Button_ON()
  13. term.setBackgroundColor(colors.lime)
  14. term.setCursorPos(4,12)
  15. term.write(" Power I ")
  16. term.setBackgroundColor(colors.lightGray)
  17. end
  18.  
  19. function Button_OFF()
  20. term.setBackgroundColor(colors.red)
  21. term.setCursorPos(15,12)
  22. term.write(" Power O ")
  23. term.setBackgroundColor(colors.lightGray)
  24. end
  25.  
  26. function Button_Notstrom()
  27. term.setBackgroundColor(colors.orange)
  28. term.setCursorPos(4,14)
  29. term.write(" NOT - LAVA ")
  30. term.setBackgroundColor(colors.lightGray)
  31. end
  32. function Button_Notaus()
  33. term.setBackgroundColor(colors.red)
  34. term.setCursorPos(4,16)
  35. term.write(" NOT - STOP ")
  36. term.setBackgroundColor(colors.lightGray)
  37. end
  38.  
  39. function Engine_Fuel_Overlay_RF()
  40.  
  41. term.setBackgroundColor(colors.gray)
  42. term.setCursorPos(2,3)
  43. term.write(" ")
  44. term.setCursorPos(2,4)
  45. term.write(" Engine Fuel Overlay RF ")
  46. term.setCursorPos(2,5)
  47. term.write(" ")
  48. term.setBackgroundColor(colors.lightGray)
  49. term.setCursorPos(2,6)
  50. term.write(" ")
  51. term.setBackgroundColor(colors.gray)
  52. term.setCursorPos(2,7)
  53. term.write(" ")
  54. term.setCursorPos(2,8)
  55. term.write(" Status O ")
  56. term.setCursorPos(2,9)
  57. term.write(" ")
  58. term.setBackgroundColor(colors.lightGray)
  59. term.setCursorPos(2,10)
  60. term.write(" ")
  61. term.setBackgroundColor(colors.gray)
  62. term.setCursorPos(2,11)
  63. term.write(" ")
  64. term.setCursorPos(2,12)
  65. term.write(" ")
  66. term.setCursorPos(2,13)
  67. term.write(" ")
  68. term.setCursorPos(2,14)
  69. term.write(" ")
  70. term.setCursorPos(2,15)
  71. term.write(" ")
  72. term.setCursorPos(2,16)
  73. term.write(" ")
  74. term.setCursorPos(2,17)
  75. term.write(" ")
  76.  
  77. term.setCursorPos(22,19)
  78. term.write(" EU ")
  79.  
  80. term.setBackgroundColor(colors.lightGray)
  81.  
  82.  
  83. end
  84.  
  85.  
  86.  
  87. function overlay()
  88.  
  89. zeile01 = " "
  90. zeile02 = " "
  91. zeile03 = " "
  92. zeile04 = " "
  93. zeile05 = " "
  94. zeile06 = " "
  95. zeile07 = " "
  96. zeile08 = " "
  97. zeile09 = " "
  98. zeile10 = " "
  99. zeile11 = " "
  100. zeile12 = " "
  101. zeile13 = " "
  102. zeile14 = " "
  103. zeile15 = " "
  104. zeile16 = " "
  105. zeile17 = " "
  106. zeile18 = " "
  107. zeile19 = " "
  108. zeile20 = " "
  109.  
  110. term.setCursorPos(1,1)
  111. term.write(zeile01)
  112. term.setCursorPos(1,2)
  113. term.write(zeile02)
  114. term.setCursorPos(1,3)
  115. term.write(zeile03)
  116. term.setCursorPos(1,4)
  117. term.write(zeile04)
  118. term.setCursorPos(1,5)
  119. term.write(zeile05)
  120. term.setCursorPos(1,6)
  121. term.write(zeile06)
  122. term.setCursorPos(1,7)
  123. term.write(zeile07)
  124. term.setCursorPos(1,8)
  125. term.write(zeile08)
  126. term.setCursorPos(1,9)
  127. term.write(zeile09)
  128. term.setCursorPos(1,10)
  129. term.write(zeile10)
  130. term.setCursorPos(1,11)
  131. term.write(zeile11)
  132. term.setCursorPos(1,12)
  133. term.write(zeile12)
  134. term.setCursorPos(1,13)
  135. term.write(zeile13)
  136. term.setCursorPos(1,14)
  137. term.write(zeile14)
  138. term.setCursorPos(1,15)
  139. term.write(zeile15)
  140. term.setCursorPos(1,16)
  141. term.write(zeile16)
  142. term.setCursorPos(1,17)
  143. term.write(zeile17)
  144. term.setCursorPos(1,18)
  145. term.write(zeile18)
  146. term.setCursorPos(1,19)
  147. term.write(zeile19)
  148. term.setCursorPos(1,20)
  149. term.write(zeile20)
  150.  
  151. Titel()
  152. Engine_Fuel_Overlay_RF()
  153. Button_ON()
  154. Button_OFF()
  155. Button_Notstrom()
  156. Button_Notaus()
  157. end
  158.  
  159. overlay()
  160.  
  161. while true do
  162.  
  163. -- Button_EU
  164. local event, button, x, y =os.pullEvent( "mouse_click" )
  165. if x > 22 and x < 26 and y == 19 then
  166. shell.run("3")
  167. end
  168.  
  169. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement