milo monitor button sizes

This commit is contained in:
kepler155c@gmail.com
2019-01-13 15:17:54 -05:00
parent dee2b05cfb
commit 376be37256
2 changed files with 8 additions and 6 deletions

View File

@@ -82,7 +82,7 @@ local function createPage(node)
local page = UI.Page {
parent = monitor,
grid = UI.Grid {
ey = -6,
ey = -2,
columns = {
{ heading = 'Qty', key = 'count', width = 5 },
{ heading = 'Change', key = 'change', width = 5 },
@@ -92,22 +92,22 @@ local function createPage(node)
sortColumn = 'displayName',
},
buttons = UI.Window {
y = -5, height = 5,
y = -1,
backgroundColor = colors.gray,
prevButton = UI.Button {
x = 2, y = 2, height = 3, width = 5,
x = 2, width = 5,
event = 'previous',
backgroundColor = colors.lightGray,
text = ' < '
},
resetButton = UI.Button {
x = 8, y = 2, height = 3, ex = -8,
x = 8, ex = -8,
event = 'reset',
backgroundColor = colors.lightGray,
text = 'Reset'
},
nextButton = UI.Button {
x = -6, y = 2, height = 3, width = 5,
x = -6, width = 5,
event = 'next',
backgroundColor = colors.lightGray,
text = ' > '

View File

@@ -81,7 +81,7 @@ local function createPage(node)
local page = UI.Page {
parent = monitor,
grid = UI.Grid {
ey = -6,
--ey = -6,
sortColumn = 'index',
columns = {
{ heading = 'Qty', key = 'remaining', width = 4 },
@@ -95,6 +95,7 @@ local function createPage(node)
-- { heading = 'Progress', key = 'progress', width = 8 },
},
},
--[[
buttons = UI.Window {
y = -5, height = 5,
backgroundColor = colors.gray,
@@ -117,6 +118,7 @@ local function createPage(node)
text = ' > '
},
},
]]
}
function page:updateList(craftList)