From 8d20683cb5215cf01d46a4d3d939b58743ce2320 Mon Sep 17 00:00:00 2001 From: Igor Timofeev Date: Sun, 27 Sep 2015 01:23:45 +0300 Subject: [PATCH] Update ECSAPI.lua --- lib/ECSAPI.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/ECSAPI.lua b/lib/ECSAPI.lua index 4c4542df..a07e2be7 100644 --- a/lib/ECSAPI.lua +++ b/lib/ECSAPI.lua @@ -1150,9 +1150,12 @@ function ECSAPI.newFile(path) end --Создать новое приложение (для операционки) -function ECSAPI.newApplication(path) +function ECSAPI.newApplication(path, startName) --Рисуем окошко ввода нового имени файла - local inputs = ECSAPI.universalWindow("auto", "auto", 30, ECSAPI.windowColors.background, true, {"EmptyLine"}, {"CenterText", 0x262626, "Новое приложение"}, {"EmptyLine"}, {"Input", 0x262626, 0x880000, "Введите имя"}, {"EmptyLine"}, {"Button", {0xbbbbbb, 0xffffff, "OK"}}) + local inputs + if not startName then + inputs = ECSAPI.universalWindow("auto", "auto", 30, ECSAPI.windowColors.background, true, {"EmptyLine"}, {"CenterText", 0x262626, "Новое приложение"}, {"EmptyLine"}, {"Input", 0x262626, 0x880000, "Введите имя"}, {"EmptyLine"}, {"Button", {0xbbbbbb, 0xffffff, "OK"}}) + end if ECSAPI.checkName(inputs[1], path) then local name = path .. inputs[1] .. ".app/Resources"