2023-12-22 16:12:47 +00:00
|
|
|
--
|
|
|
|
-- Reactor Detail Page
|
|
|
|
--
|
2023-04-16 19:05:28 +00:00
|
|
|
|
2023-12-22 16:12:47 +00:00
|
|
|
local iocontrol = require("pocket.iocontrol")
|
2023-04-16 19:05:28 +00:00
|
|
|
|
2023-12-22 16:12:47 +00:00
|
|
|
local core = require("graphics.core")
|
2023-04-16 19:05:28 +00:00
|
|
|
|
2023-12-22 16:12:47 +00:00
|
|
|
local Div = require("graphics.elements.div")
|
|
|
|
local TextBox = require("graphics.elements.textbox")
|
2023-04-16 19:05:28 +00:00
|
|
|
|
2023-10-04 03:16:46 +00:00
|
|
|
local ALIGN = core.ALIGN
|
2023-04-16 19:05:28 +00:00
|
|
|
|
|
|
|
-- new reactor page view
|
|
|
|
---@param root graphics_element parent
|
|
|
|
local function new_view(root)
|
2023-12-22 16:12:47 +00:00
|
|
|
local db = iocontrol.get_db()
|
|
|
|
|
|
|
|
db.nav.new_page(nil, 3)
|
|
|
|
|
2023-04-16 19:05:28 +00:00
|
|
|
local main = Div{parent=root,x=1,y=1}
|
|
|
|
|
2023-10-04 03:16:46 +00:00
|
|
|
TextBox{parent=main,text="REACTOR",x=1,y=1,height=1,alignment=ALIGN.CENTER}
|
2023-04-16 19:05:28 +00:00
|
|
|
|
|
|
|
return main
|
|
|
|
end
|
|
|
|
|
|
|
|
return new_view
|