НУ МЯУ(

This commit is contained in:
igor 2017-11-18 00:29:49 +03:00
parent b5dbf9b039
commit a52dec238d
2 changed files with 6 additions and 5 deletions

View File

@ -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",

View File

@ -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