mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
30 lines
748 B
Lua
30 lines
748 B
Lua
--
|
|
-- Main SCADA Coordinator GUI
|
|
--
|
|
|
|
local core = require("graphics.core")
|
|
local log = require("scada-common.log")
|
|
|
|
local style = require("coordinator.ui.style")
|
|
|
|
local DisplayBox = require("graphics.elements.displaybox")
|
|
local TextBox = require("graphics.elements.textbox")
|
|
|
|
local unit_overview = require("coordinator.ui.components.unit_overview")
|
|
|
|
local TEXT_ALIGN = core.graphics.TEXT_ALIGN
|
|
|
|
local function init(monitor)
|
|
local main = DisplayBox{window=monitor,fg_bg=style.root}
|
|
|
|
-- window header message
|
|
TextBox{parent=main,text="Nuclear Generation Facility SCADA Coordinator",alignment=TEXT_ALIGN.CENTER,height=1,fg_bg=style.header}
|
|
|
|
-- unit overviews
|
|
unit_overview(main, 3, 3, 1)
|
|
|
|
return main
|
|
end
|
|
|
|
return init
|