some extra details

This commit is contained in:
Lux Aliaga 2021-05-07 16:02:14 -04:00
parent 954b839efa
commit c94b8fe441

View file

@ -17,7 +17,7 @@ if arg[1] == nil then
peripherals = peripheral.getNames() -- Gets peripherals to check if any disk drives are avavailable peripherals = peripheral.getNames() -- Gets peripherals to check if any disk drives are avavailable
if #peripherals == 0 then if #peripherals == 0 then
term.setTextColor(colors.red) term.setTextColor(colors.red)
print "No drive" print("No drive")
return false -- Exits if there's no disk drive return false -- Exits if there's no disk drive
else else
driveCount = 0 driveCount = 0
@ -34,7 +34,7 @@ if arg[1] == nil then
return false return false
elseif driveCount == 0 then elseif driveCount == 0 then
term.setTextColor(colors.red) term.setTextColor(colors.red)
print "No drive" print("No drive")
return false -- Exits if there's no disk drive return false -- Exits if there's no disk drive
end end
end end
@ -103,7 +103,7 @@ function renderStopButton() -- Renders the Stop button
end end
function renderEjectButton() -- Renders the Eject button function renderEjectButton() -- Renders the Eject button
paintutils.drawLine(centerWidth - 2, centerHeight + 4, centerWidth + 2, centerHeight + 4, accentColor) paintutils.drawLine(centerWidth - 3, centerHeight + 4, centerWidth + 3, centerHeight + 4, accentColor)
term.setTextColor(buttonColor) term.setTextColor(buttonColor)
term.setCursorPos(centerWidth - 2, centerHeight + 4) term.setCursorPos(centerWidth - 2, centerHeight + 4)
term.write(ejectText) term.write(ejectText)