Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. local component = require("component")
  2. local computer=require("computer")
  3. local event = require("event")
  4. local term = require("term")
  5. local shell = require("shell")
  6. local fs = require("filesystem")
  7. local unicode = require("unicode")
  8. local serial = require("serialization")
  9. local debug = component.debug
  10.  
  11. local Sky = require("Sky")
  12. local image = require("image")
  13. local g = component.gpu
  14.  
  15. local COLOR1 = 0xFFEF0A --Рамка
  16. local COLOR2 = 0xFF7A05 --Цвет кнопок
  17. local WIGHT, HEIGHT = 160, 42
  18.  
  19. Sky.Button(mid - 30,25,20,5,COLOR1,COLOR2,"СТАРТ")
  20. Sky.Button(mid - 100,25,20,5,COLOR1,COLOR2,"СТОП")
  21.  
  22. function getButtons(w,h)
  23. if w>=30 and w<= 25 and h>=25 and h<=36 then --Кнопка обновить
  24. component.opencb.execute("msg Gaap it's work")
  25.  
  26. elseif w>=mid-32 and w<= mid-13 and h>=37 and h<=39 then --Кнопка Проги
  27. component.opencb.execute("msg Gaap it's work too")
  28. end
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement