From a52dec238d02b24ffe5dcf3349a8983821989c0e Mon Sep 17 00:00:00 2001 From: igor Date: Sat, 18 Nov 2017 00:29:49 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=A3=20=D0=9C=D0=AF=D0=A3(?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Applications.cfg | 6 +++--- lib/MineOSInterface.lua | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Applications.cfg b/Applications.cfg index 769c3f99..1e4768ba 100644 --- a/Applications.cfg +++ b/Applications.cfg @@ -241,7 +241,7 @@ path="/lib/MineOSInterface.lua", url="https://raw.githubusercontent.com/IgorTimofeev/OpenComputers/master/lib/MineOSInterface.lua", type="Library", - version=1.19, + version=1.20, }, { path="/lib/MineOSPaths.lua", @@ -476,7 +476,7 @@ type="Application", icon="https://raw.githubusercontent.com/IgorTimofeev/OpenComputers/master/Applications/MineCodeIDE/Icon.pic", forceDownload=true, - version=1.85, + version=1.86, resources={ { path="/Localization/Russian.lang", @@ -619,7 +619,7 @@ type="Application", icon="https://raw.githubusercontent.com/IgorTimofeev/OpenComputers/master/Applications/Finder/Icon.pic", forceDownload=true, - version=1.35, + version=1.36, }, { path="/MineOS/Applications/Weather", diff --git a/lib/MineOSInterface.lua b/lib/MineOSInterface.lua index 6514474e..5d9c7e35 100755 --- a/lib/MineOSInterface.lua +++ b/lib/MineOSInterface.lua @@ -158,9 +158,10 @@ local function iconDraw(icon) end if icon.windows then + buffer.text(xCenter - 1, icon.y + MineOSInterface.iconImageHeight, 0x66DBFF, "╺╸") + local windowCount = table.size(icon.windows) if windowCount > 1 then - buffer.text(xCenter - 1, icon.y + MineOSInterface.iconImageHeight, 0x66DBFF, "╺╸") windowCount = tostring(windowCount) local windowCountLength = #windowCount @@ -169,7 +170,7 @@ local function iconDraw(icon) buffer.square(xTip, yTip, windowCountLength, 1, 0xFF4940, 0xFFFFFF, " ") buffer.text(xTip, yTip, 0xFFFFFF, windowCount) buffer.text(xTip - 1, yTip, 0xFF4940, "⢸") - buffer.text(xTip +windowCountLength, yTip, 0xFF4940, "⡇") + buffer.text(xTip + windowCountLength, yTip, 0xFF4940, "⡇") buffer.text(xTip, yTip - 1, 0xFF4940, string.rep("⣀", windowCountLength)) buffer.text(xTip, yTip + 1, 0xFF4940, string.rep("⠉", windowCountLength)) end