some extra details
This commit is contained in:
parent
954b839efa
commit
c94b8fe441
|
@ -17,7 +17,7 @@ if arg[1] == nil then
|
|||
peripherals = peripheral.getNames() -- Gets peripherals to check if any disk drives are avavailable
|
||||
if #peripherals == 0 then
|
||||
term.setTextColor(colors.red)
|
||||
print "No drive"
|
||||
print("No drive")
|
||||
return false -- Exits if there's no disk drive
|
||||
else
|
||||
driveCount = 0
|
||||
|
@ -34,7 +34,7 @@ if arg[1] == nil then
|
|||
return false
|
||||
elseif driveCount == 0 then
|
||||
term.setTextColor(colors.red)
|
||||
print "No drive"
|
||||
print("No drive")
|
||||
return false -- Exits if there's no disk drive
|
||||
end
|
||||
end
|
||||
|
@ -103,7 +103,7 @@ function renderStopButton() -- Renders the Stop button
|
|||
end
|
||||
|
||||
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.setCursorPos(centerWidth - 2, centerHeight + 4)
|
||||
term.write(ejectText)
|
||||
|
|
Loading…
Reference in a new issue