From f27e9172022039c29bf930c0d7f95965e3e57d2d Mon Sep 17 00:00:00 2001 From: mint Date: Fri, 7 May 2021 02:44:08 -0400 Subject: [PATCH] fixed eject button --- rhythmblock.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rhythmblock.lua b/rhythmblock.lua index 4ec9ac5..cfaf80a 100644 --- a/rhythmblock.lua +++ b/rhythmblock.lua @@ -83,7 +83,7 @@ function renderStopButton() -- Renders the Stop button end 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.setCursorPos(centerWidth - 2, centerHeight + 4) term.write(ejectText) @@ -99,12 +99,12 @@ term.clear() term.setBackgroundColor(backgroundColor) -- Setting the background color renderPlayButton() -- Rendering the play button renderEjectButton() -- Rendering the eject button -status = defaultStatus --Setting the +status = defaultStatus -- Setting the value to the default while true do local eventData = {os.pullEvent()} local event = eventData[1] - + if event == "mouse_up" then if eventData[2] == 1 and eventData[3] >= centerWidth - 4 and eventData[4] >= centerHeight - 4 and eventData[3] <= centerWidth + 4 and eventData[4] <= centerHeight + 2 then if playing == true then