This commit is contained in:
Igor Timofeev 2017-01-15 00:45:47 +03:00
parent c1c7ea1ba0
commit 50f3a2d58d
5 changed files with 6 additions and 7 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@ -274,7 +274,7 @@
url="IgorTimofeev/OpenComputers/master/lib/ECSAPI.lua",
type="Library",
preLoadFile=true,
version=1.09,
version=1.10,
},
{
name="lib/colorlib.lua",
@ -886,7 +886,7 @@
icon="IgorTimofeev/OpenComputers/master/Applications/MineCodeIDE/Icon.pic",
createShortcut="dock",
forceDownload=true,
version=1.12,
version=1.13,
},
{
name="MineOS/Applications/Battleship",

BIN
Applications/.DS_Store vendored

Binary file not shown.

View File

@ -204,7 +204,8 @@ end
---------------------------------------------------- File processing methods ----------------------------------------------------
local function removeTabs(text)
return text:gsub("\t", string.rep(" ", mainWindow.codeView.indentationWidth))
local result = text:gsub("\t", string.rep(" ", mainWindow.codeView.indentationWidth))
return result
end
local function loadFile(path)

View File

@ -1178,10 +1178,8 @@ function ecs.newFile(path)
local inputs = ecs.universalWindow("auto", "auto", 30, ecs.windowColors.background, true, {"EmptyLine"}, {"CenterText", 0x262626, "Новый файл"}, {"EmptyLine"}, {"Input", 0x262626, 0x880000, ""}, {"EmptyLine"}, {"Button", {0xbbbbbb, 0xffffff, "OK"}})
if ecs.checkName(inputs[1], path) then
fs.makeDirectory(fs.path(path))
local file = io.open(path, "w")
file:write("")
file:close()
fs.makeDirectory(path)
local file = io.open(path .. inputs[1], "w"); file:write(""); file:close()
local MineOSCore = require("MineOSCore")
MineOSCore.safeLaunch(MineOSCore.paths.applications .. "/MineCode IDE.app/MineCode IDE.lua", "open", path)
end