Skip to content

Commit

Permalink
fix to induction matrix transfer bars not rescaling with capacity cha…
Browse files Browse the repository at this point in the history
…nges
  • Loading branch information
MikaylaFischler committed Jan 9, 2025
1 parent 11fa9f6 commit fb13994
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion coordinator/startup.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ local renderer = require("coordinator.renderer")
local sounder = require("coordinator.sounder")
local threads = require("coordinator.threads")

local COORDINATOR_VERSION = "v1.6.2"
local COORDINATOR_VERSION = "v1.6.3"

local CHUNK_LOAD_DELAY_S = 30.0

Expand Down
4 changes: 2 additions & 2 deletions coordinator/ui/components/imatrix.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@ local ALIGN = core.ALIGN
---@param root Container parent
---@param x integer top left x
---@param y integer top left y
---@param data imatrix_session_db matrix data
---@param ps psil ps interface
---@param id number? matrix ID
local function new_view(root, x, y, data, ps, id)
local function new_view(root, x, y, ps, id)
local label_fg = style.theme.label_fg
local text_fg = style.theme.text_fg
local lu_col = style.lu_colors
Expand Down Expand Up @@ -94,6 +93,7 @@ local function new_view(root, x, y, data, ps, id)
TextBox{parent=rect,text="FILL I/O",x=2,y=20,width=8,fg_bg=label_fg}

local function calc_saturation(val)
local data = db.facility.induction_data_tbl[id or 1]
if (type(data.build) == "table") and (type(data.build.transfer_cap) == "number") and (data.build.transfer_cap > 0) then
return val / data.build.transfer_cap
else return 0 end
Expand Down
2 changes: 1 addition & 1 deletion coordinator/ui/layout/main_view.lua
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ local function init(main)

util.nop()

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_ps_tbl[1])
end

return init

0 comments on commit fb13994

Please sign in to comment.