Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local component = require("component")
- local computer=require("computer")
- local event = require("event")
- local term = require("term")
- local shell = require("shell")
- local fs = require("filesystem")
- local unicode = require("unicode")
- local serial = require("serialization")
- local debug = component.debug
- local Sky = require("Sky")
- local image = require("image")
- local g = component.gpu
- local COLOR1 = 0xFFEF0A --Рамка
- local COLOR2 = 0xFF7A05 --Цвет кнопок
- local WIGHT, HEIGHT = 160, 42
- Sky.Button(mid - 30,25,20,5,COLOR1,COLOR2,"СТАРТ")
- Sky.Button(mid - 100,25,20,5,COLOR1,COLOR2,"СТОП")
- function getButtons(w,h)
- if w>=30 and w<= 25 and h>=25 and h<=36 then --Кнопка обновить
- component.opencb.execute("msg Gaap it's work")
- elseif w>=mid-32 and w<= mid-13 and h>=37 and h<=39 then --Кнопка Проги
- component.opencb.execute("msg Gaap it's work too")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement