mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2026-02-05 01:42:39 +01:00
Update Photoshop.lua
This commit is contained in:
parent
4f61d80c3f
commit
8a356d3389
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user