mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2025-12-21 03:29:22 +01:00
Обои-хуеи
This commit is contained in:
parent
5f4dd0835c
commit
35e72f9a82
@ -5,7 +5,13 @@
|
|||||||
about="https://raw.githubusercontent.com/IgorTimofeev/OpenComputers/master/MineOS/About/",
|
about="https://raw.githubusercontent.com/IgorTimofeev/OpenComputers/master/MineOS/About/",
|
||||||
type="Script",
|
type="Script",
|
||||||
forceDownload=true,
|
forceDownload=true,
|
||||||
version=3.52,
|
version=3.53,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path="/MineOS/Pictures/MoonTouch.pic",
|
||||||
|
url="https://raw.githubusercontent.com/IgorTimofeev/OpenComputers/master/MineOS/Wallpapers/MoonTouch.pic",
|
||||||
|
type="Wallpaper",
|
||||||
|
version=1.0,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path="/MineOS/Pictures/Raspberry.pic",
|
path="/MineOS/Pictures/Raspberry.pic",
|
||||||
@ -55,12 +61,6 @@
|
|||||||
type="Wallpaper",
|
type="Wallpaper",
|
||||||
version=1.0,
|
version=1.0,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
path="/MineOS/Pictures/ChristmasTree.pic",
|
|
||||||
url="https://raw.githubusercontent.com/IgorTimofeev/OpenComputers/master/MineOS/Wallpapers/ChristmasTree.pic",
|
|
||||||
type="Wallpaper",
|
|
||||||
version=1.0,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
path="/MineOS/System/OS/Localization/Russian.lang",
|
path="/MineOS/System/OS/Localization/Russian.lang",
|
||||||
url="https://raw.githubusercontent.com/IgorTimofeev/OpenComputers/master/MineOS/Localization/Russian.lang",
|
url="https://raw.githubusercontent.com/IgorTimofeev/OpenComputers/master/MineOS/Localization/Russian.lang",
|
||||||
@ -198,7 +198,7 @@
|
|||||||
path="/lib/MineOSCore.lua",
|
path="/lib/MineOSCore.lua",
|
||||||
url="https://raw.githubusercontent.com/IgorTimofeev/OpenComputers/master/lib/MineOSCore.lua",
|
url="https://raw.githubusercontent.com/IgorTimofeev/OpenComputers/master/lib/MineOSCore.lua",
|
||||||
type="Library",
|
type="Library",
|
||||||
version=1.55,
|
version=1.56,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path="/lib/advancedLua.lua",
|
path="/lib/advancedLua.lua",
|
||||||
|
|||||||
@ -295,6 +295,7 @@ stages[5] = function()
|
|||||||
|
|
||||||
stageContainer:addLabel(1, 22, stageContainer.width, 1, 0x666666, localization.needToReboot):setAlignment(GUI.alignment.horizontal.center, GUI.alignment.vertical.top)
|
stageContainer:addLabel(1, 22, stageContainer.width, 1, 0x666666, localization.needToReboot):setAlignment(GUI.alignment.horizontal.center, GUI.alignment.vertical.top)
|
||||||
stageContainer:addAdaptiveRoundedButton(math.floor(stageContainer.width / 2 - (unicode.len(localization.reboot) + 4) / 2), stageContainer.height - 4, 2, 1, 0xAAAAAA, 0xDDDDDD, 0x777777, 0xDDDDDD, localization.reboot).onTouch = function()
|
stageContainer:addAdaptiveRoundedButton(math.floor(stageContainer.width / 2 - (unicode.len(localization.reboot) + 4) / 2), stageContainer.height - 4, 2, 1, 0xAAAAAA, 0xDDDDDD, 0x777777, 0xDDDDDD, localization.reboot).onTouch = function()
|
||||||
|
_G.OSSettings.wallpaper = stageContainer.downloadWallpapersSwitch.state and "/MineOS/Pictures/MoonTouch.pic" or nil
|
||||||
_G.OSSettings.screensaver = "Matrix"
|
_G.OSSettings.screensaver = "Matrix"
|
||||||
_G.OSSettings.screensaverDelay = 20
|
_G.OSSettings.screensaverDelay = 20
|
||||||
_G.OSSettings.showHelpOnApplicationStart = stageContainer.showApplicationsHelpSwitch.state
|
_G.OSSettings.showHelpOnApplicationStart = stageContainer.showApplicationsHelpSwitch.state
|
||||||
|
|||||||
@ -254,12 +254,9 @@ end
|
|||||||
---------------------------------------------- Основные функции ------------------------------------------------------------------------
|
---------------------------------------------- Основные функции ------------------------------------------------------------------------
|
||||||
|
|
||||||
local function changeWallpaper()
|
local function changeWallpaper()
|
||||||
if fs.exists(MineOSCore.paths.wallpaper) then
|
if _G.OSSettings.wallpaper and fs.exists(_G.OSSettings.wallpaper) then
|
||||||
local path = ecs.readShortcut(MineOSCore.paths.wallpaper)
|
workspace.wallpaper.image = image.load(_G.OSSettings.wallpaper)
|
||||||
if fs.exists(path) then
|
|
||||||
workspace.wallpaper.image = image.load(path)
|
|
||||||
workspace.wallpaper.isHidden = false
|
workspace.wallpaper.isHidden = false
|
||||||
end
|
|
||||||
else
|
else
|
||||||
workspace.wallpaper.image = nil
|
workspace.wallpaper.image = nil
|
||||||
workspace.wallpaper.isHidden = true
|
workspace.wallpaper.isHidden = true
|
||||||
@ -565,7 +562,7 @@ local function createWorkspace()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
menu:addItem(MineOSCore.localization.contextMenuRemoveWallpaper, workspace.wallpaper.isHidden).onTouch = function()
|
menu:addItem(MineOSCore.localization.contextMenuRemoveWallpaper, workspace.wallpaper.isHidden).onTouch = function()
|
||||||
fs.remove(MineOSCore.paths.wallpaper)
|
_G.OSSettings.wallpaper = nil
|
||||||
changeWallpaper()
|
changeWallpaper()
|
||||||
end
|
end
|
||||||
menu:show()
|
menu:show()
|
||||||
|
|||||||
BIN
MineOS/Wallpapers/MoonTouch.pic
Normal file
BIN
MineOS/Wallpapers/MoonTouch.pic
Normal file
Binary file not shown.
@ -26,7 +26,6 @@ MineOSCore.iconClickDelay = 0.2
|
|||||||
MineOSCore.paths = {}
|
MineOSCore.paths = {}
|
||||||
MineOSCore.paths.OS = "/MineOS/"
|
MineOSCore.paths.OS = "/MineOS/"
|
||||||
MineOSCore.paths.system = MineOSCore.paths.OS .. "System/"
|
MineOSCore.paths.system = MineOSCore.paths.OS .. "System/"
|
||||||
MineOSCore.paths.wallpaper = MineOSCore.paths.system .. "OS/Wallpaper.lnk"
|
|
||||||
MineOSCore.paths.localizationFiles = MineOSCore.paths.system .. "OS/Localization/"
|
MineOSCore.paths.localizationFiles = MineOSCore.paths.system .. "OS/Localization/"
|
||||||
MineOSCore.paths.icons = MineOSCore.paths.system .. "OS/Icons/"
|
MineOSCore.paths.icons = MineOSCore.paths.system .. "OS/Icons/"
|
||||||
MineOSCore.paths.applications = MineOSCore.paths.OS .. "Applications/"
|
MineOSCore.paths.applications = MineOSCore.paths.OS .. "Applications/"
|
||||||
@ -718,8 +717,8 @@ function MineOSCore.iconRightClick(icon, eventData)
|
|||||||
require("compressor").pack(fs.path(icon.path) .. fs.hideExtension(fs.name(icon.path)) .. ".pkg", icon.path)
|
require("compressor").pack(fs.path(icon.path) .. fs.hideExtension(fs.name(icon.path)) .. ".pkg", icon.path)
|
||||||
computer.pushSignal("MineOSCore", "updateFileList")
|
computer.pushSignal("MineOSCore", "updateFileList")
|
||||||
elseif action == MineOSCore.localization.contextMenuSetAsWallpaper then
|
elseif action == MineOSCore.localization.contextMenuSetAsWallpaper then
|
||||||
fs.remove(MineOSCore.paths.wallpaper)
|
_G.OSSettings.wallpaper = icon.path
|
||||||
ecs.createShortCut(MineOSCore.paths.wallpaper, icon.path)
|
MineOSCore.saveOSSettings()
|
||||||
computer.pushSignal("MineOSCore", "updateWallpaper")
|
computer.pushSignal("MineOSCore", "updateWallpaper")
|
||||||
elseif action == MineOSCore.localization.contextMenuFlashEEPROM then
|
elseif action == MineOSCore.localization.contextMenuFlashEEPROM then
|
||||||
local file = io.open(icon.path, "r")
|
local file = io.open(icon.path, "r")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user