#72 added pipes to main overview, changed text of reactor overview
This commit is contained in:
@@ -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 --
|
||||
-------------
|
||||
|
||||
Reference in New Issue
Block a user