modifications to the close button for longer named songs

This commit is contained in:
mint 2021-05-07 15:12:22 -04:00
parent db30ec58d0
commit 954b839efa
1 changed files with 5 additions and 2 deletions

View File

@ -110,10 +110,10 @@ function renderEjectButton() -- Renders the Eject button
end end
function renderCloseButton() -- Renders the Close button function renderCloseButton() -- Renders the Close button
term.setCursorPos(width, 1) term.setCursorPos(width - 1, 1)
term.setTextColor(textColor) term.setTextColor(textColor)
term.setBackgroundColor(backgroundColor) term.setBackgroundColor(backgroundColor)
term.write("x") term.write(" x")
end end
function buttonRender(play) -- Render some buttons depending if the computer is advanced or not function buttonRender(play) -- Render some buttons depending if the computer is advanced or not
@ -142,6 +142,9 @@ status = defaultStatus -- Setting the value to the default
while true do while true do
statusRender(status) -- Renders the status statusRender(status) -- Renders the status
if term.isColour() then -- Renders the close button (if the song title is too long, the close button kind of disappears
renderCloseButton()
end
local eventData = {os.pullEvent()} local eventData = {os.pullEvent()}
local event = eventData[1] local event = eventData[1]