mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
23 lines
451 B
Lua
23 lines
451 B
Lua
--
|
|
-- Reactor Unit SCADA Coordinator GUI
|
|
--
|
|
|
|
local style = require("coordinator.ui.style")
|
|
|
|
local unit_detail = require("coordinator.ui.components.unit_detail")
|
|
|
|
local DisplayBox = require("graphics.elements.displaybox")
|
|
|
|
-- create a unit view
|
|
---@param monitor table
|
|
---@param id integer
|
|
local function init(monitor, id)
|
|
local main = DisplayBox{window=monitor,fg_bg=style.root}
|
|
|
|
unit_detail(main, id)
|
|
|
|
return main
|
|
end
|
|
|
|
return init
|