fixed eject button

This commit is contained in:
Lux Aliaga 2021-05-07 02:44:08 -04:00
parent 4cb2d387e9
commit f27e917202

View file

@ -83,7 +83,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, buttonColor) paintutils.drawLine(centerWidth - 2, centerHeight + 4, centerWidth + 2, 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)
@ -99,7 +99,7 @@ term.clear()
term.setBackgroundColor(backgroundColor) -- Setting the background color term.setBackgroundColor(backgroundColor) -- Setting the background color
renderPlayButton() -- Rendering the play button renderPlayButton() -- Rendering the play button
renderEjectButton() -- Rendering the eject button renderEjectButton() -- Rendering the eject button
status = defaultStatus --Setting the status = defaultStatus -- Setting the value to the default
while true do while true do
local eventData = {os.pullEvent()} local eventData = {os.pullEvent()}