From 8e30772391eaee4890ef60fdedc6f2a467044531 Mon Sep 17 00:00:00 2001 From: mint Date: Fri, 7 May 2021 02:56:46 -0400 Subject: [PATCH] more bug fixing --- rhythmblock.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/rhythmblock.lua b/rhythmblock.lua index aab197c..03215e0 100644 --- a/rhythmblock.lua +++ b/rhythmblock.lua @@ -33,7 +33,7 @@ end --[[ Instead of calling every status by string, we call the variables storing the strings. This may ease translation if we plan to do it in the future. ]] -defaultStatus = "Rhythmblock 0.0.1a" +defaultStatus = "Rhythmblock 1.0" invalidFormatStatus = "Not a music disc" noDiscStatus = "No disc" ejectText = "Eject" @@ -90,9 +90,10 @@ function renderEjectButton() -- Renders the Eject button end function statusRender(s) -- Resets the status position -term.setCursorPos(1, 1) -term.setTextColor(textColor) -term.write(s) + term.setCursorPos(1, 1) + term.setTextColor(textColor) + term.setBackgroundColor(backgroundColor) + term.write(s) end term.clear() @@ -135,6 +136,8 @@ while true do playDisc() end elseif name == "q" then + term.clear() + term.setCursorPos(1, 1) return true end end