milo bugfixes + enderchest app

This commit is contained in:
kepler155c@gmail.com
2019-01-02 23:57:06 -05:00
parent 859977f75c
commit 00e698eb18
6 changed files with 92 additions and 12 deletions

View File

@@ -69,11 +69,18 @@ UI:getPage('nodeWizard').wizard:add({ activity = wizardPage })
--[[ Display ]]--
local function createPage(node)
local monitor = UI.Device {
device = node.adapter,
textScale = node.textScale or .5,
}
function monitor:resize()
self.textScale = node.textScale or .5
UI.Device.resize(self)
end
local page = UI.Page {
parent = UI.Device {
device = node.adapter,
textScale = node.textScale or .5,
},
parent = monitor,
grid = UI.Grid {
ey = -6,
columns = {
@@ -161,7 +168,7 @@ local function createPage(node)
function page:refresh()
local t = context.storage.cache
if not self.lastItems then
if t and not self.lastItems then
self.lastItems = { }
for k,v in pairs(t) do
self.lastItems[k] = {