#72 added pipes to main overview, changed text of reactor overview

This commit is contained in:
Mikayla Fischler
2022-06-29 17:40:46 -04:00
parent ef73c52417
commit 20a1fab611
2 changed files with 17 additions and 5 deletions

View File

@@ -6,16 +6,19 @@ local reactor_view = require("coordinator.ui.components.reactor")
local boiler_view = require("coordinator.ui.components.boiler")
local Div = require("graphics.elements.div")
local HorizontalBar = require("graphics.elements.indicators.hbar")
local DataIndicator = require("graphics.elements.indicators.data")
local StateIndicator = require("graphics.elements.indicators.state")
local Rectangle = require("graphics.elements.rectangle")
local TextBox = require("graphics.elements.textbox")
local HorizontalBar = require("graphics.elements.indicators.hbar")
local DataIndicator = require("graphics.elements.indicators.data")
local PipeNetwork = require("graphics.elements.indicators.pipenet")
local StateIndicator = require("graphics.elements.indicators.state")
local TEXT_ALIGN = core.graphics.TEXT_ALIGN
local cpair = core.graphics.cpair
local border = core.graphics.border
local pipe = core.graphics.pipe
---@param parent graphics_element
local function make(parent, x, y, unit_id)
@@ -31,6 +34,15 @@ local function make(parent, x, y, unit_id)
reactor_view(root, 1, 3)
local pipes = {
pipe(0, 0, 13, 12, colors.lightBlue),
pipe(0, 0, 13, 3, colors.lightBlue),
pipe(2, 0, 11, 2, colors.orange),
pipe(2, 0, 11, 11, colors.orange)
}
PipeNetwork{parent=root,x=12,y=10,pipes=pipes,bg=colors.lightGray}
-------------
-- BOILERS --
-------------