Compare commits
No commits in common. "4425e1b0c761879d47d0c27641400e1b16e4de3c" and "6bbe23983d5a7a812a5ba9402d47dba428c89392" have entirely different histories.
4425e1b0c7
...
6bbe23983d
@ -309,7 +309,7 @@ local PAGES = {
|
|||||||
GROUP_DETAIL = function(state, newPage)
|
GROUP_DETAIL = function(state, newPage)
|
||||||
local paddingSide = 1
|
local paddingSide = 1
|
||||||
local paddingTop = 1
|
local paddingTop = 1
|
||||||
|
|
||||||
local group = state:getExtra()
|
local group = state:getExtra()
|
||||||
if group == nil then
|
if group == nil then
|
||||||
state:setPage("MAIN")
|
state:setPage("MAIN")
|
||||||
@ -359,7 +359,7 @@ local PAGES = {
|
|||||||
bgColor = colors.blue,
|
bgColor = colors.blue,
|
||||||
[Orientation:getId()] = Orientation.VERTICAL,
|
[Orientation:getId()] = Orientation.VERTICAL,
|
||||||
[Children:getId()] = {
|
[Children:getId()] = {
|
||||||
Text:new{ text = "Slots", bgColor = colors.blue },
|
Text:new{ text = "Slot", bgColor = colors.blue },
|
||||||
Text:new{ text = tostring(group:getStackCount()), bgColor = colors.blue }
|
Text:new{ text = tostring(group:getStackCount()), bgColor = colors.blue }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -403,22 +403,6 @@ local PAGES = {
|
|||||||
right = paddingSide,
|
right = paddingSide,
|
||||||
bottom = 0,
|
bottom = 0,
|
||||||
element = infoElements,
|
element = infoElements,
|
||||||
},
|
|
||||||
Padding:new{
|
|
||||||
x = 1,
|
|
||||||
y = state.height - 3,
|
|
||||||
top = 1,
|
|
||||||
left = 1,
|
|
||||||
right = 1,
|
|
||||||
bottom = 1,
|
|
||||||
bgColor = colors.gray,
|
|
||||||
element = Text:new{
|
|
||||||
text = "Request",
|
|
||||||
bgColor = colors.gray
|
|
||||||
},
|
|
||||||
onClick = function(e, x, y, s)
|
|
||||||
state:setPage("REQUEST")
|
|
||||||
end
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
width = state.width,
|
width = state.width,
|
||||||
@ -433,23 +417,7 @@ local PAGES = {
|
|||||||
end,
|
end,
|
||||||
|
|
||||||
REQUEST = function(state, newPage)
|
REQUEST = function(state, newPage)
|
||||||
local helloPage = Text:new{
|
|
||||||
text = "Hello Request"
|
|
||||||
}
|
|
||||||
|
|
||||||
local stuffContainer = Container:new{
|
|
||||||
[Children:getId()] = {
|
|
||||||
helloPage
|
|
||||||
},
|
|
||||||
width = state.width,
|
|
||||||
height = state.height,
|
|
||||||
parent = state.monitor,
|
|
||||||
onClick = function(e, x, y, s)
|
|
||||||
state:setPage("GROUP_DETAIL")
|
|
||||||
end
|
|
||||||
}
|
|
||||||
|
|
||||||
return renderDefault(state, stuffContainer)
|
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user