Minor visual fix
This commit is contained in:
@ -137,7 +137,9 @@ function display.selectionTabs()
|
|||||||
paintutils.drawFilledBox(2, 2, 13, 6, colors.purple)
|
paintutils.drawFilledBox(2, 2, 13, 6, colors.purple)
|
||||||
mon.setCursorPos(4, 4)
|
mon.setCursorPos(4, 4)
|
||||||
mon.setBackgroundColor(colors.purple)
|
mon.setBackgroundColor(colors.purple)
|
||||||
mon.write("Dimension Gates")
|
mon.write("Dimension")
|
||||||
|
mon.setCursorPos(4, 5)
|
||||||
|
mon.write("Gates")
|
||||||
end
|
end
|
||||||
|
|
||||||
if #addresses.playerGates ~= 0 then
|
if #addresses.playerGates ~= 0 then
|
||||||
|
|||||||
@ -84,10 +84,8 @@ function handlers.handlePasswordInput()
|
|||||||
handlers.handleMessage(table.unpack(event))
|
handlers.handleMessage(table.unpack(event))
|
||||||
-- Check if iris opened (via password or GDO)
|
-- Check if iris opened (via password or GDO)
|
||||||
if state.lastReceivedMessage == "IRIS_OPEN" or state.lastReceivedMessage == "GDO_IRIS_OPEN" then
|
if state.lastReceivedMessage == "IRIS_OPEN" or state.lastReceivedMessage == "GDO_IRIS_OPEN" then
|
||||||
utils.debug("Password handler: Received " .. state.lastReceivedMessage)
|
|
||||||
state.lastReceivedMessage = nil
|
state.lastReceivedMessage = nil
|
||||||
state.enteringPassword = false
|
state.enteringPassword = false
|
||||||
utils.debug("Password handler: About to return IRIS_OPENED")
|
|
||||||
return "IRIS_OPENED"
|
return "IRIS_OPENED"
|
||||||
end
|
end
|
||||||
elseif eventType == "monitor_touch" then
|
elseif eventType == "monitor_touch" then
|
||||||
@ -241,7 +239,6 @@ end
|
|||||||
|
|
||||||
function handlers.handleMessage(eventType, side, message)
|
function handlers.handleMessage(eventType, side, message)
|
||||||
state.lastReceivedMessage = message
|
state.lastReceivedMessage = message
|
||||||
utils.debug("Message Received: " .. message)
|
|
||||||
return "message_received"
|
return "message_received"
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -253,19 +250,16 @@ function handlers.handleGDOTransmission(eventType, side, frequency, idc, matches
|
|||||||
state.lastGDOCode = idc
|
state.lastGDOCode = idc
|
||||||
state.lastGDOMatches = matches
|
state.lastGDOMatches = matches
|
||||||
utils.log("GDO transmission received: IDC=" .. tostring(idc) .. ", matches=" .. tostring(matches))
|
utils.log("GDO transmission received: IDC=" .. tostring(idc) .. ", matches=" .. tostring(matches))
|
||||||
utils.debug("GDO received: IDC=" .. tostring(idc) .. ", matches=" .. tostring(matches))
|
|
||||||
|
|
||||||
-- If matches configured IDC and gate is connected, open iris
|
-- If matches configured IDC and gate is connected, open iris
|
||||||
if matches and gate.isStargateConnected() and config.irisEnabled then
|
if matches and gate.isStargateConnected() and config.irisEnabled then
|
||||||
utils.log("Valid GDO code received - opening iris")
|
utils.log("Valid GDO code received - opening iris")
|
||||||
utils.debug("Valid GDO - opening iris")
|
|
||||||
utils.openIris()
|
utils.openIris()
|
||||||
|
|
||||||
-- Send message to remote gate that iris opened via GDO
|
-- Send message to remote gate that iris opened via GDO
|
||||||
if config.enableMessaging then
|
if config.enableMessaging then
|
||||||
gate.sendStargateMessage("GDO_IRIS_OPEN")
|
gate.sendStargateMessage("GDO_IRIS_OPEN")
|
||||||
utils.log("Sent GDO iris open notification to remote gate")
|
utils.log("Sent GDO iris open notification to remote gate")
|
||||||
utils.debug("Sent: GDO_IRIS_OPEN")
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user