diff --git a/Applications.txt b/Applications.txt index 6ccf151f..23ebcbc4 100644 --- a/Applications.txt +++ b/Applications.txt @@ -8,7 +8,7 @@ about="IgorTimofeev/OpenComputers/master/MineOS/About/", type="Script", forceDownload=true, - version=3.46, + version=3.47, }, { name="MineOS/Pictures/Raspberry.pic", diff --git a/MineOS/OS.lua b/MineOS/OS.lua index 15ac06a6..071bd4d7 100755 --- a/MineOS/OS.lua +++ b/MineOS/OS.lua @@ -241,27 +241,12 @@ local function windows10() while true do local eventData = {event.pull("touch")} - if eventData[3] == x + width - 3 and eventData[4] == y + 1 then - buffer.text(eventData[3], eventData[4], ecs.colors.blue, "X") - buffer.draw() + if ecs.clickedAtArea(eventData[3], eventData[4], x, y, x + width - 1, x + height - 1) then + draw(0x0092FF) os.sleep(0.2) workspace:draw() - buffer:draw() + buffer.draw() disableUpdates() - - return - elseif ecs.clickedAtArea(eventData[3], eventData[4], x, y, x + width - 1, x + height - 1) then - draw(0x0092FF) - workspace:draw() - buffer:draw() - - local data = ecs.universalWindow("auto", "auto", 30, ecs.windowColors.background, true, {"EmptyLine"}, {"CenterText", 0x000000, " Да шучу я. "}, {"CenterText", 0x000000, " Но ведь достали же обновления, верно? "}, {"EmptyLine"}, {"Button", {0xbbbbbb, 0xFFFFFF, "Да"}, {0x999999, 0xFFFFFF, "Нет"}}) - if data[1] == "Да" then - disableUpdates() - else - GUI.error("Пидора ответ!") - end - return end end