From 4ed6b1bf8a2e8653551545b629d72dc5f6a61377 Mon Sep 17 00:00:00 2001 From: Moonlit Productions Date: Fri, 2 Jan 2026 17:10:23 -0500 Subject: [PATCH] fixed some visual bugs --- display.lua | 9 ++++++--- startup.lua | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/display.lua b/display.lua index fa49f2b..c80182c 100644 --- a/display.lua +++ b/display.lua @@ -96,6 +96,8 @@ function display.screenWrite(list, fcount, fy) -- Skip if this is the local gate if not isLocalGate then local x1, x2 = 0, 0 + local gateName = list[i][1] + local nameLength = #gateName if fcount == 0 then x = 2 @@ -110,13 +112,14 @@ function display.screenWrite(list, fcount, fy) end mon.setCursorPos(x, fy) - mon.write(list[i][1]) + mon.write(gateName) + -- Set button width based on name length (minimum 7 characters) x1 = x - x2 = x + 7 + x2 = x + math.max(nameLength - 1, 7) table.insert(buttonXY, { x1, x2, fy }) - table.insert(computerNames, list[i][1]) + table.insert(computerNames, gateName) table.insert(computerAddresses, list[i][2]) -- Store hazard reason if present (third element in hazard gates) if list[i][3] then diff --git a/startup.lua b/startup.lua index 11a9b60..1ddcc92 100644 --- a/startup.lua +++ b/startup.lua @@ -586,7 +586,7 @@ local function selectGateFromList(isHazardGate) -- YES clicked confirmed = true break - elseif cx >= 18 and cx <= 22 then + elseif cx >= 17 and cx <= 21 then -- NO clicked break end