fixed some visual bugs

This commit is contained in:
2026-01-02 17:10:23 -05:00
parent f5657a1799
commit 4ed6b1bf8a
2 changed files with 7 additions and 4 deletions

View File

@ -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

View File

@ -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