From 29b6e29c0b06a07ef2d099cfec1f6882a9783e37 Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Mon, 22 May 2017 23:35:15 +0300 Subject: [PATCH] aefaef --- Applications.cfg | 2 +- lib/MineOSCore.lua | 18 +++++++----------- 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/Applications.cfg b/Applications.cfg index 6fde2e33..d434266d 100644 --- a/Applications.cfg +++ b/Applications.cfg @@ -216,7 +216,7 @@ path="/lib/MineOSCore.lua", url="https://raw.githubusercontent.com/IgorTimofeev/OpenComputers/master/lib/MineOSCore.lua", type="Library", - version=1.64, + version=1.65, }, { path="/lib/advancedLua.lua", diff --git a/lib/MineOSCore.lua b/lib/MineOSCore.lua index a22c5207..12e6368b 100755 --- a/lib/MineOSCore.lua +++ b/lib/MineOSCore.lua @@ -879,31 +879,27 @@ function MineOSCore.applicationHelp(parentWindow, path) lines = string.wrap(lines, 50) container.layout:addChild(GUI.textBox(1, 1, 50, #lines, nil, 0xcccccc, lines, 1, 0, 0)) - local button = container.layout:addChild(GUI.button(1, 1, 30, 1, 0xEEEEEE, 0x262626, 0xAAAAAA, 0x262626, MineOSCore.localization.dontShowAnymore)) - - parentWindow:draw() - buffer.draw() - + local button = container.layout:addChild(GUI.button(1, 1, 30, 1, 0xEEEEEE, 0x262626, 0xAAAAAA, 0x262626, MineOSCore.localization.dontShowAnymore)) + container.panel.eventHandler = function(mainContainer, object, eventData) if eventData[1] == "touch" then container:delete() MineOSCore.safeLaunch(path .. "/Main.lua") - parentWindow:draw() - buffer.draw() end end button.onTouch = function() MineOSCore.OSSettings.showHelpOnApplicationStart = false MineOSCore.saveOSSettings() - - container.panel.onTouch() + container:delete() + MineOSCore.safeLaunch(path .. "/Main.lua") end else MineOSCore.safeLaunch(path .. "/Main.lua") - parentWindow:draw() - buffer.draw() end + + parentWindow:draw() + buffer.draw() end ----------------------------------------- Windows patterns -----------------------------------------