This commit is contained in:
Igor Timofeev 2016-06-03 12:08:06 +03:00
parent 9753de15eb
commit c2a21777c2
6 changed files with 5 additions and 5 deletions

View File

@ -22,8 +22,8 @@
["version"]=1.0,
},
{
["name"]="MineOS/Pictures/Harp.pic",
["url"]="IgorTimofeev/OpenComputers/master/MineOS/Wallpapers/Harp.pic",
["name"]="MineOS/Pictures/Nettle.pic",
["url"]="IgorTimofeev/OpenComputers/master/MineOS/Wallpapers/Nettle.pic",
["type"]="Wallpaper",
["version"]=1.0,
},

Binary file not shown.

View File

@ -386,7 +386,7 @@ end
--Создаем базовые обои рабочего стола
if downloadWallpapers then
ecs.createShortCut(desktopPath .. "Pictures.lnk", picturesPath)
ecs.createShortCut("MineOS/System/OS/Wallpaper.lnk", picturesPath .. "Girl.pic")
ecs.createShortCut("MineOS/System/OS/Wallpaper.lnk", picturesPath .. "Nettle.pic")
end
--Автозагрузка

View File

@ -444,7 +444,7 @@ while true do
if clickedAtEmptyArea then
for _, icon in pairs(obj.DesktopIcons) do
if icon:isClicked(eventData[3], eventData[4]) then
if MineOSCore.iconClick(icon, eventData, colors.selection, colors.iconsSelectionTransparency, 0xFFFFFF, 0.2, showFileFormat, {method = getFileListAndDrawAll, arguments = {}}, {method = getFileListAndDrawAll, arguments = {true}}, {method = function() MineOSCore.safeLaunch("Finder.lua", "open", icon.path) end, arguments = {icon.path}}) then return end
if MineOSCore.iconClick(icon, eventData, colors.selection, colors.iconsSelectionTransparency, 0xFFFFFF, 0.2, showFileFormat, {method = getFileListAndDrawAll, arguments = {}}, {method = getFileListAndDrawAll, arguments = {true}}, {method = function() MineOSCore.safeLaunch("Finder.lua", "open", icon.path) end, arguments = {}}) then return end
clickedAtEmptyArea = false
break
end

Binary file not shown.

View File

@ -155,7 +155,7 @@ function MineOSCore.launchIcon(path, translate)
MineOSCore.safeLaunch(path .. "/" .. ecs.hideFileFormat(fs.name(path)) .. ".lua")
--Если это папка
elseif (fileFormat == "" or fileFormat == nil) and isDirectory then
MineOSCore.safeLaunch("MineOS/Applications/Finder.app/Finder.lua " .. path)
MineOSCore.safeLaunch("MineOS/Applications/Finder.app/Finder.lua", "open", path)
--Если это обычный луа файл - т.е. скрипт
elseif fileFormat == ".lua" or fileFormat == nil then
buffer.clear(MineOSCore.colors.background)