cc-mek-scada/pocket/ui/pages/reactor_page.lua
2023-12-22 16:12:47 +00:00

29 lines
573 B
Lua

--
-- Reactor Detail Page
--
local iocontrol = require("pocket.iocontrol")
local core = require("graphics.core")
local Div = require("graphics.elements.div")
local TextBox = require("graphics.elements.textbox")
local ALIGN = core.ALIGN
-- new reactor page view
---@param root graphics_element parent
local function new_view(root)
local db = iocontrol.get_db()
db.nav.new_page(nil, 3)
local main = Div{parent=root,x=1,y=1}
TextBox{parent=main,text="REACTOR",x=1,y=1,height=1,alignment=ALIGN.CENTER}
return main
end
return new_view