From a5d7eeb7793ea8850219e6f770f86c19c0aef98e Mon Sep 17 00:00:00 2001 From: igor Date: Mon, 11 Dec 2017 21:14:26 +0300 Subject: [PATCH] =?UTF-8?q?=D0=B1=D0=BB=D1=8F,=20=D0=B7=D0=B0=D0=B1=D1=8B?= =?UTF-8?q?=D0=BB=20=D1=88=D0=B8=D1=80=D0=B8=D0=BD=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Applications/Installer.lua | 5 +++-- lib/advancedLua.lua | 12 ++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/Applications/Installer.lua b/Applications/Installer.lua index 0f2d06bd..3c98f6a4 100644 --- a/Applications/Installer.lua +++ b/Applications/Installer.lua @@ -45,8 +45,8 @@ local files = { local properties = { -- Comment any coordinate to calculate it automatically (will centerize window on screen by specified axis) - windowX = 2, - windowY = 2, + -- windowX = 2, + -- windowY = 2, -- Set window width value lower than zero (0.5 for example) to calculate it dependent on screen width windowWidth = 54, -- Customize offset by X axis from window corners @@ -125,6 +125,7 @@ local function centerizedText(y, color, text) local textLength = unicode.len(text) if textLength > progressBarWidth then text = unicode.sub(text, 1, progressBarWidth) + textLength = progressBarWidth end setForeground(color) diff --git a/lib/advancedLua.lua b/lib/advancedLua.lua index 8d80ae46..2d082e95 100755 --- a/lib/advancedLua.lua +++ b/lib/advancedLua.lua @@ -146,13 +146,13 @@ end ---------------------------------------------- Filesystem extensions ------------------------------------------------------------------------ -function filesystem.path(path) - return path:match("^(.+%/).") or "" -end +-- function filesystem.path(path) +-- return path:match("^(.+%/).") or "" +-- end -function filesystem.name(path) - return path:match("%/?([^%/]+)%/?$") -end +-- function filesystem.name(path) +-- return path:match("%/?([^%/]+)%/?$") +-- end function filesystem.extension(path, lower) local extension = path:match("[^%/]+(%.[^%/]+)%/?$")