2022-06-16 15:24:35 +00:00
|
|
|
--
|
|
|
|
-- Reactor Unit SCADA Coordinator GUI
|
|
|
|
--
|
|
|
|
|
2022-12-05 21:17:09 +00:00
|
|
|
local style = require("coordinator.ui.style")
|
2022-06-16 15:24:35 +00:00
|
|
|
|
2022-12-05 21:17:09 +00:00
|
|
|
local unit_detail = require("coordinator.ui.components.unit_detail")
|
2022-09-07 02:38:27 +00:00
|
|
|
|
2022-12-05 21:17:09 +00:00
|
|
|
local DisplayBox = require("graphics.elements.displaybox")
|
2022-06-16 15:24:35 +00:00
|
|
|
|
2022-09-07 02:38:27 +00:00
|
|
|
-- create a unit view
|
|
|
|
---@param monitor table
|
|
|
|
---@param id integer
|
2022-06-16 15:24:35 +00:00
|
|
|
local function init(monitor, id)
|
|
|
|
local main = DisplayBox{window=monitor,fg_bg=style.root}
|
|
|
|
|
2022-09-10 19:26:52 +00:00
|
|
|
unit_detail(main, id)
|
2022-07-28 16:10:52 +00:00
|
|
|
|
2022-06-16 15:24:35 +00:00
|
|
|
return main
|
|
|
|
end
|
|
|
|
|
|
|
|
return init
|