From 35eb64d433c751a769cf5c3a0ea5c8316bd406a6 Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Fri, 8 Jun 2018 14:16:10 +0300 Subject: [PATCH] =?UTF-8?q?=D0=91=D0=B0=D0=B3=D1=84=D0=B8=D0=BA=D1=81?= =?UTF-8?q?=D1=8B=203DPrint=20#2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Applications/3DPrint/Main.lua | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/Applications/3DPrint/Main.lua b/Applications/3DPrint/Main.lua index 7bedc9f0..cbc292f5 100644 --- a/Applications/3DPrint/Main.lua +++ b/Applications/3DPrint/Main.lua @@ -322,14 +322,12 @@ view.draw = function() if width > 0 and height > 0 and currentLayer >= shape[3] and currentLayer <= shape[6] - 1 then buffer.drawRectangle(x, y, width, height, i == shapeIndex and colors[i] or color.blend(colors[i], 0xFFFFFF, 0.5), 0x0, " ") - if i == shapeIndex then - if currentLayer == shape[3] then - buffer.drawRectangle(x, y, viewPixelWidth, viewPixelHeight, 0x0, 0x0, " ", 0.6) - end + if currentLayer == shape[3] then + buffer.drawRectangle(x, y, viewPixelWidth, viewPixelHeight, 0x0, 0x0, " ", i == shapeIndex and 0.2 or 0.6) + end - if currentLayer == shape[6] - 1 then - buffer.drawRectangle(x + width - viewPixelWidth, y + height - viewPixelHeight, viewPixelWidth, viewPixelHeight, 0x0, 0x0, " ", 0.8) - end + if currentLayer == shape[6] - 1 then + buffer.drawRectangle(x + width - viewPixelWidth, y + height - viewPixelHeight, viewPixelWidth, viewPixelHeight, 0x0, 0x0, " ", i == shapeIndex and 0.4 or 0.8) end end end