mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2025-12-20 11:09:21 +01:00
14 lines
452 B
Lua
Executable File
14 lines
452 B
Lua
Executable File
|
|
local args = {...}
|
|
local computer = require("computer")
|
|
local MineOSCore = require("MineOSCore")
|
|
local MineOSInterface = require("MineOSInterface")
|
|
|
|
local icon, menu = args[1], args[2]
|
|
menu:addItem(MineOSCore.localization.setAsWallpaper).onTouch = function()
|
|
MineOSCore.properties.wallpaperEnabled = true
|
|
MineOSCore.properties.wallpaper = icon.path
|
|
MineOSCore.saveProperties()
|
|
computer.pushSignal("MineOSCore", "updateWallpaper")
|
|
end
|