mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
#118 removed some coordinator nodiscard tags
This commit is contained in:
parent
4340518ecf
commit
225ed7baa1
@ -13,7 +13,6 @@ local cpair = core.graphics.cpair
|
||||
local border = core.graphics.border
|
||||
|
||||
-- new boiler view
|
||||
---@nodiscard
|
||||
---@param root graphics_element parent
|
||||
---@param x integer top left x
|
||||
---@param y integer top left y
|
||||
|
@ -19,7 +19,6 @@ local border = core.graphics.border
|
||||
local TEXT_ALIGN = core.graphics.TEXT_ALIGN
|
||||
|
||||
-- new induction matrix view
|
||||
---@nodiscard
|
||||
---@param root graphics_element parent
|
||||
---@param x integer top left x
|
||||
---@param y integer top left y
|
||||
|
@ -29,7 +29,6 @@ local border = core.graphics.border
|
||||
local period = core.flasher.PERIOD
|
||||
|
||||
-- new process control view
|
||||
---@nodiscard
|
||||
---@param root graphics_element parent
|
||||
---@param x integer top left x
|
||||
---@param y integer top left y
|
||||
|
@ -15,7 +15,6 @@ local cpair = core.graphics.cpair
|
||||
local border = core.graphics.border
|
||||
|
||||
-- create new reactor view
|
||||
---@nodiscard
|
||||
---@param root graphics_element parent
|
||||
---@param x integer top left x
|
||||
---@param y integer top left y
|
||||
|
@ -15,7 +15,6 @@ local cpair = core.graphics.cpair
|
||||
local border = core.graphics.border
|
||||
|
||||
-- new turbine view
|
||||
---@nodiscard
|
||||
---@param root graphics_element parent
|
||||
---@param x integer top left x
|
||||
---@param y integer top left y
|
||||
|
@ -57,7 +57,6 @@ local waste_opts = {
|
||||
}
|
||||
|
||||
-- create a unit view
|
||||
---@nodiscard
|
||||
---@param parent graphics_element parent
|
||||
---@param id integer
|
||||
local function init(parent, id)
|
||||
|
@ -19,7 +19,6 @@ local TEXT_ALIGN = core.graphics.TEXT_ALIGN
|
||||
local pipe = core.graphics.pipe
|
||||
|
||||
-- make a new unit overview window
|
||||
---@nodiscard
|
||||
---@param parent graphics_element parent
|
||||
---@param x integer top left x
|
||||
---@param y integer top left y
|
||||
@ -52,7 +51,7 @@ local function make(parent, x, y, unit)
|
||||
-- REACTOR --
|
||||
-------------
|
||||
|
||||
local _ = reactor_view(root, 1, 3, unit.reactor_data, unit.unit_ps)
|
||||
reactor_view(root, 1, 3, unit.reactor_data, unit.unit_ps)
|
||||
|
||||
if num_boilers > 0 then
|
||||
local coolant_pipes = {}
|
||||
|
@ -16,7 +16,6 @@ local TEXT_ALIGN = core.graphics.TEXT_ALIGN
|
||||
local cpair = core.graphics.cpair
|
||||
|
||||
-- create a unit waiting view
|
||||
---@nodiscard
|
||||
---@param parent graphics_element parent
|
||||
---@param y integer y offset
|
||||
local function init(parent, y)
|
||||
|
@ -30,7 +30,6 @@ local TEXT_ALIGN = core.graphics.TEXT_ALIGN
|
||||
local cpair = core.graphics.cpair
|
||||
|
||||
-- create new main view
|
||||
---@nodiscard
|
||||
---@param monitor table main viewscreen
|
||||
local function init(monitor)
|
||||
local facility = iocontrol.get_db().facility
|
||||
@ -91,7 +90,7 @@ local function init(monitor)
|
||||
|
||||
cnc_bottom_align_start = cnc_bottom_align_start + 2
|
||||
|
||||
local _ = process_ctl(main, 2, cnc_bottom_align_start)
|
||||
process_ctl(main, 2, cnc_bottom_align_start)
|
||||
|
||||
-- testing
|
||||
---@fixme remove test code
|
||||
@ -124,7 +123,7 @@ local function init(monitor)
|
||||
SwitchButton{parent=audio,x=1,text="RCS TRANSIENT",min_width=23,fg_bg=cpair(colors.black,colors.yellow),active_fg_bg=cpair(colors.white,colors.gray),callback=sounder.test_rcs}
|
||||
SwitchButton{parent=audio,x=1,text="TURBINE TRIP",min_width=23,fg_bg=cpair(colors.black,colors.yellow),active_fg_bg=cpair(colors.white,colors.gray),callback=sounder.test_turbinet}
|
||||
|
||||
local _ = imatrix(main, 131, cnc_bottom_align_start, facility.induction_data_tbl[1], facility.induction_ps_tbl[1])
|
||||
imatrix(main, 131, cnc_bottom_align_start, facility.induction_data_tbl[1], facility.induction_ps_tbl[1])
|
||||
|
||||
return main
|
||||
end
|
||||
|
@ -9,13 +9,12 @@ local unit_detail = require("coordinator.ui.components.unit_detail")
|
||||
local DisplayBox = require("graphics.elements.displaybox")
|
||||
|
||||
-- create a unit view
|
||||
---@nodiscard
|
||||
---@param monitor table
|
||||
---@param id integer
|
||||
local function init(monitor, id)
|
||||
local main = DisplayBox{window=monitor,fg_bg=style.root}
|
||||
|
||||
local _ = unit_detail(main, id)
|
||||
unit_detail(main, id)
|
||||
|
||||
return main
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user