Update sPhone.lua

This commit is contained in:
Ale32bit 2015-10-09 17:51:06 +02:00
parent 09a3843b85
commit 7e567c518c

View file

@ -383,9 +383,9 @@ end
if #fmessage >= #smessage then
local w, h = term.getSize
term.setBackgroundColor(side)
paintutils.drawBox(13 - math.ceil(#fmessage / 2), 5, 14 + math.ceil(#fmessage / 2), 10, side)
paintutils.drawBox(12 - math.ceil(#fmessage / 2), 5, 15 + math.ceil(#fmessage / 2), 10, side)
term.setBackgroundColor(bg)
paintutils.drawFilledBox(14 - math.ceil(#fmessage / 2), 6, 13 + math.ceil(#fmessage / 2), 9, bg)
paintutils.drawFilledBox(13 - math.ceil(#fmessage / 2), 6, 14 + math.ceil(#fmessage / 2), 9, bg)
term.setCursorPos(14 - math.ceil(#fmessage / 2), 7)
term.setTextColor(text)
write(fmessage)
@ -394,9 +394,9 @@ end
else
local w, h = term.getSize
term.setBackgroundColor(side)
paintutils.drawBox(13 - math.ceil(#smessage / 2), 5, 14 + math.ceil(#smessage / 2), 10, side)
paintutils.drawBox(12 - math.ceil(#smessage / 2), 5, 15 + math.ceil(#smessage / 2), 10, side)
term.setBackgroundColor(bg)
paintutils.drawFilledBox(14 - math.ceil(#smessage / 2), 6, 13 + math.ceil(#smessage / 2), 9, bg)
paintutils.drawFilledBox(13 - math.ceil(#smessage / 2), 6, 14 + math.ceil(#smessage / 2), 9, bg)
term.setCursorPos(14 - math.ceil(#fmessage / 2), 7)
term.setTextColor(text)
write(fmessage)