minor changes
This commit is contained in:
18
display.lua
18
display.lua
@ -139,7 +139,7 @@ function display.selectionTabs()
|
||||
term.redirect(oldterm)
|
||||
end
|
||||
|
||||
function display.showIncoming(addressString, allowed, reason)
|
||||
function display.showIncoming(addressName, addressString, allowed, reason)
|
||||
mon.setBackgroundColor(colors.black)
|
||||
mon.clear()
|
||||
|
||||
@ -159,9 +159,19 @@ function display.showIncoming(addressString, allowed, reason)
|
||||
|
||||
mon.setCursorPos(1, 6)
|
||||
mon.setBackgroundColor(colors.black)
|
||||
mon.write("Address:")
|
||||
mon.setCursorPos(1, 7)
|
||||
mon.write(addressString)
|
||||
|
||||
-- Show name if found in address book
|
||||
if addressName then
|
||||
mon.write("Name: " .. addressName)
|
||||
mon.setCursorPos(1, 7)
|
||||
mon.write("Address:")
|
||||
mon.setCursorPos(1, 8)
|
||||
mon.write(addressString)
|
||||
else
|
||||
mon.write("Address:")
|
||||
mon.setCursorPos(1, 7)
|
||||
mon.write(addressString)
|
||||
end
|
||||
end
|
||||
|
||||
function display.showEntity(entityType, entityName, allowed)
|
||||
|
||||
Reference in New Issue
Block a user