:3
This commit is contained in:
parent
c32838af39
commit
09992e46e7
|
@ -50,7 +50,7 @@ __BUNDLER_FILES["updater.lua"] = function ()
|
|||
sleep(60)
|
||||
os.reboot()
|
||||
end
|
||||
file.write(Cast(basalt_code))
|
||||
file.write(utils.Cast(basalt_code))
|
||||
file.close()
|
||||
utils.MonPrint("Rebooting...")
|
||||
os.reboot()
|
||||
|
@ -71,13 +71,14 @@ __BUNDLER_FILES["config.lua"] = function ()
|
|||
end -- FILE END: config.lua --
|
||||
|
||||
__BUNDLER_FILES["ui.lua"] = function ()
|
||||
local utils = require("utils.lua")
|
||||
local basalt = require("basalt")
|
||||
local config = require("config.lua")
|
||||
local updater = require("updater.lua")
|
||||
--- @type Monitor
|
||||
local monitor = Cast(peripheral.find("monitor"))
|
||||
local monitor = utils.Cast(peripheral.find("monitor"))
|
||||
--- @type drive
|
||||
local drive = Cast(peripheral.find("drive"))
|
||||
local drive = utils.Cast(peripheral.find("drive"))
|
||||
--- @class Ui
|
||||
--- @field pin string
|
||||
--- @field main any
|
||||
|
@ -137,11 +138,9 @@ __BUNDLER_FILES["ui.lua"] = function ()
|
|||
main = basalt.addMonitor(monitor),
|
||||
}
|
||||
ui.main:setMonitor(monitor)
|
||||
-- local pinLabel =
|
||||
ui.pinLabel = ui.main:addLabel()
|
||||
:setText("")
|
||||
:setFontSize(1)
|
||||
-- local enterButton =
|
||||
ui.enterButton = ui.main:addButton()
|
||||
:setText(">>>>")
|
||||
:setBackground(colors.blue)
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
local utils = require("utils.lua")
|
||||
local basalt = require("basalt")
|
||||
local config = require("config.lua")
|
||||
local updater = require("updater.lua")
|
||||
--- @type Monitor
|
||||
local monitor = Cast(peripheral.find("monitor"))
|
||||
local monitor = utils.Cast(peripheral.find("monitor"))
|
||||
--- @type drive
|
||||
local drive = Cast(peripheral.find("drive"))
|
||||
local drive = utils.Cast(peripheral.find("drive"))
|
||||
|
||||
--- @class Ui
|
||||
--- @field pin string
|
||||
|
@ -74,12 +75,10 @@ function InitUi()
|
|||
}
|
||||
|
||||
ui.main:setMonitor(monitor)
|
||||
-- local pinLabel =
|
||||
ui.pinLabel = ui.main:addLabel()
|
||||
:setText("")
|
||||
:setFontSize(1)
|
||||
|
||||
-- local enterButton =
|
||||
ui.enterButton = ui.main:addButton()
|
||||
:setText(">>>>")
|
||||
:setBackground(colors.blue)
|
||||
|
|
|
@ -50,7 +50,7 @@ function GetBasalt()
|
|||
os.reboot()
|
||||
end
|
||||
|
||||
file.write(Cast(basalt_code))
|
||||
file.write(utils.Cast(basalt_code))
|
||||
file.close()
|
||||
|
||||
utils.MonPrint("Rebooting...")
|
||||
|
|
Loading…
Reference in New Issue
Block a user