fixed stupid mistake x3
This commit is contained in:
15
display.lua
15
display.lua
@ -38,6 +38,14 @@ end
|
||||
-- DRAWING FUNCTIONS
|
||||
---------------------------------------------
|
||||
|
||||
function display.drawDisconnectButton()
|
||||
local oldterm = term.redirect(mon)
|
||||
paintutils.drawFilledBox(20, 17, 28, 19, colors.red)
|
||||
mon.setCursorPos(21, 18)
|
||||
mon.write("CLOSE")
|
||||
term.redirect(oldterm)
|
||||
end
|
||||
|
||||
function display.drawIrisStatus()
|
||||
mon.setCursorPos(1, 19)
|
||||
mon.setBackgroundColor(colors.black)
|
||||
@ -206,6 +214,13 @@ function display.showConnected(destName, destAddr)
|
||||
mon.write(" ")
|
||||
end
|
||||
|
||||
-- Draw disconnect button
|
||||
local oldterm = term.redirect(mon)
|
||||
paintutils.drawFilledBox(20, 17, 28, 19, colors.red)
|
||||
mon.setCursorPos(21, 18)
|
||||
mon.write("CLOSE")
|
||||
term.redirect(oldterm)
|
||||
|
||||
display.drawIrisStatus()
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user