Minor consistency fix
This commit is contained in:
@ -157,16 +157,16 @@ function display.selectionTabs()
|
|||||||
mon.setBackgroundColor(colors.green)
|
mon.setBackgroundColor(colors.green)
|
||||||
mon.write("Player")
|
mon.write("Player")
|
||||||
mon.setCursorPos(18, 5)
|
mon.setCursorPos(18, 5)
|
||||||
mon.write("Base gates")
|
mon.write("Base Gates")
|
||||||
end
|
end
|
||||||
|
|
||||||
if (#addresses.hazardGates ~= 0) and (config.canAccessHazardGates == true) then
|
if (#addresses.hazardGates ~= 0) and (config.canAccessHazardGates == true) then
|
||||||
paintutils.drawFilledBox(2, 8, 13, 12, colors.red)
|
paintutils.drawFilledBox(2, 8, 13, 12, colors.red)
|
||||||
mon.setCursorPos(4, 9)
|
mon.setCursorPos(4, 10)
|
||||||
mon.setBackgroundColor(colors.red)
|
mon.setBackgroundColor(colors.red)
|
||||||
mon.write("Hazard")
|
mon.write("Hazard")
|
||||||
mon.setCursorPos(4, 11)
|
mon.setCursorPos(4, 11)
|
||||||
mon.write("gates")
|
mon.write("Gates")
|
||||||
end
|
end
|
||||||
|
|
||||||
paintutils.drawFilledBox(23, 17, 28, 19, colors.red)
|
paintutils.drawFilledBox(23, 17, 28, 19, colors.red)
|
||||||
|
|||||||
12
startup.lua
12
startup.lua
@ -548,7 +548,7 @@ local function selectGateFromList(isHazardGate)
|
|||||||
for i = 1, #buttonXY do
|
for i = 1, #buttonXY do
|
||||||
if (sely == buttonXY[i][3]) and ((selx >= buttonXY[i][1]) and (selx <= buttonXY[i][2])) then
|
if (sely == buttonXY[i][3]) and ((selx >= buttonXY[i][1]) and (selx <= buttonXY[i][2])) then
|
||||||
local shouldDial = true
|
local shouldDial = true
|
||||||
|
|
||||||
-- If this is a hazard gate, show confirmation prompt
|
-- If this is a hazard gate, show confirmation prompt
|
||||||
if isHazardGate and hazardReasons and hazardReasons[i] then
|
if isHazardGate and hazardReasons and hazardReasons[i] then
|
||||||
mon.setBackgroundColor(colors.black)
|
mon.setBackgroundColor(colors.black)
|
||||||
@ -568,7 +568,7 @@ local function selectGateFromList(isHazardGate)
|
|||||||
mon.write(hazardReasons[i])
|
mon.write(hazardReasons[i])
|
||||||
mon.setCursorPos(2, 15)
|
mon.setCursorPos(2, 15)
|
||||||
mon.write("Proceed with dialing?")
|
mon.write("Proceed with dialing?")
|
||||||
|
|
||||||
-- Draw YES and NO buttons
|
-- Draw YES and NO buttons
|
||||||
mon.setBackgroundColor(colors.green)
|
mon.setBackgroundColor(colors.green)
|
||||||
mon.setCursorPos(5, 17)
|
mon.setCursorPos(5, 17)
|
||||||
@ -576,7 +576,7 @@ local function selectGateFromList(isHazardGate)
|
|||||||
mon.setBackgroundColor(colors.red)
|
mon.setBackgroundColor(colors.red)
|
||||||
mon.setCursorPos(18, 17)
|
mon.setCursorPos(18, 17)
|
||||||
mon.write(" NO ")
|
mon.write(" NO ")
|
||||||
|
|
||||||
-- Wait for confirmation (use direct os.pullEvent to bypass handlers)
|
-- Wait for confirmation (use direct os.pullEvent to bypass handlers)
|
||||||
local confirmed = false
|
local confirmed = false
|
||||||
while true do
|
while true do
|
||||||
@ -592,17 +592,17 @@ local function selectGateFromList(isHazardGate)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
shouldDial = confirmed
|
shouldDial = confirmed
|
||||||
end
|
end
|
||||||
|
|
||||||
if shouldDial then
|
if shouldDial then
|
||||||
dialGate(computerAddresses[i])
|
dialGate(computerAddresses[i])
|
||||||
state.destAddressname = computerNames[i]
|
state.destAddressname = computerNames[i]
|
||||||
state.destAddress = computerAddresses[i]
|
state.destAddress = computerAddresses[i]
|
||||||
dialing = true
|
dialing = true
|
||||||
end
|
end
|
||||||
|
|
||||||
sely = 0
|
sely = 0
|
||||||
selx = 0
|
selx = 0
|
||||||
break
|
break
|
||||||
|
|||||||
Reference in New Issue
Block a user