Update Photoshop.lua

This commit is contained in:
Igor Timofeev 2015-09-14 19:00:12 +03:00
parent 4f61d80c3f
commit 8a356d3389

View File

@ -926,14 +926,11 @@ while true do
local data = ecs.universalWindow("auto", "auto", 30, ecs.windowColors.background, true, {"EmptyLine"}, {"CenterText", 0x262626, "Сохранить как"}, {"EmptyLine"}, {"Input", 0x262626, 0x880000, "Путь"}, {"Selector", 0x262626, 0x880000, "PNG", "JPG"}, {"EmptyLine"}, {"Button", 0xbbbbbb, 0xffffff, "OK!"})
if data[1] == "" or data[1] == " " or data[1] == nil then data[1] = "NewImage" end
if data[2] == "" or data[2] == " " or data[2] == nil then data[2] = ".png" end
ecs.error("data1 = "..data[1]..", data2 = "..data[2])
data[2] = "."..string.lower(data[2])
data[1] = data[1]..data[2]
currentFile = data[1]
save(currentFile, data[2])
consoleText = "Файл сохранен как "..currentFile