Skip to content

Commit

Permalink
#389 added width to RTU front panel entry name box
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaylaFischler committed Dec 18, 2023
1 parent 9e6751f commit 466e442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rtu/panel/front_panel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ local function init(panel, units)

-- unit name identifier (type + index)
local function get_name(t) return util.c(UNIT_TYPE_LABELS[t + 1], " ", util.trinary(util.is_int(unit.index), unit.index, "")) end
local name_box = TextBox{parent=unit_hw_statuses,y=i,x=3,text=get_name(unit.type),height=1}
local name_box = TextBox{parent=unit_hw_statuses,y=i,x=3,text=get_name(unit.type),width=15,height=1}

name_box.register(databus.ps, "unit_type_" .. i, function (t) name_box.set_value(get_name(t)) end)

Expand Down

0 comments on commit 466e442

Please sign in to comment.