Minor consistency fix

This commit is contained in:
2026-01-02 22:19:00 -05:00
parent 73ded39e15
commit 9dd3c76e20
2 changed files with 9 additions and 9 deletions

View File

@ -157,16 +157,16 @@ function display.selectionTabs()
mon.setBackgroundColor(colors.green)
mon.write("Player")
mon.setCursorPos(18, 5)
mon.write("Base gates")
mon.write("Base Gates")
end
if (#addresses.hazardGates ~= 0) and (config.canAccessHazardGates == true) then
paintutils.drawFilledBox(2, 8, 13, 12, colors.red)
mon.setCursorPos(4, 9)
mon.setCursorPos(4, 10)
mon.setBackgroundColor(colors.red)
mon.write("Hazard")
mon.setCursorPos(4, 11)
mon.write("gates")
mon.write("Gates")
end
paintutils.drawFilledBox(23, 17, 28, 19, colors.red)

View File

@ -548,7 +548,7 @@ local function selectGateFromList(isHazardGate)
for i = 1, #buttonXY do
if (sely == buttonXY[i][3]) and ((selx >= buttonXY[i][1]) and (selx <= buttonXY[i][2])) then
local shouldDial = true
-- If this is a hazard gate, show confirmation prompt
if isHazardGate and hazardReasons and hazardReasons[i] then
mon.setBackgroundColor(colors.black)
@ -568,7 +568,7 @@ local function selectGateFromList(isHazardGate)
mon.write(hazardReasons[i])
mon.setCursorPos(2, 15)
mon.write("Proceed with dialing?")
-- Draw YES and NO buttons
mon.setBackgroundColor(colors.green)
mon.setCursorPos(5, 17)
@ -576,7 +576,7 @@ local function selectGateFromList(isHazardGate)
mon.setBackgroundColor(colors.red)
mon.setCursorPos(18, 17)
mon.write(" NO ")
-- Wait for confirmation (use direct os.pullEvent to bypass handlers)
local confirmed = false
while true do
@ -592,17 +592,17 @@ local function selectGateFromList(isHazardGate)
end
end
end
shouldDial = confirmed
end
if shouldDial then
dialGate(computerAddresses[i])
state.destAddressname = computerNames[i]
state.destAddress = computerAddresses[i]
dialing = true
end
sely = 0
selx = 0
break