mirror of
				https://fem.mint.lgbt/m/Rhythmblock.git
				synced 2024-08-14 20:27:11 +00:00 
			
		
		
		
	more bug fixing
This commit is contained in:
		
							parent
							
								
									2d84a142e6
								
							
						
					
					
						commit
						8e30772391
					
				
					 1 changed files with 7 additions and 4 deletions
				
			
		| 
						 | 
					@ -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.
 | 
					--[[ 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"
 | 
					invalidFormatStatus = "Not a music disc"
 | 
				
			||||||
noDiscStatus = "No disc"
 | 
					noDiscStatus = "No disc"
 | 
				
			||||||
ejectText = "Eject"
 | 
					ejectText = "Eject"
 | 
				
			||||||
| 
						 | 
					@ -92,6 +92,7 @@ end
 | 
				
			||||||
function statusRender(s) -- Resets the status position
 | 
					function statusRender(s) -- Resets the status position
 | 
				
			||||||
	term.setCursorPos(1, 1)
 | 
						term.setCursorPos(1, 1)
 | 
				
			||||||
	term.setTextColor(textColor)
 | 
						term.setTextColor(textColor)
 | 
				
			||||||
 | 
						term.setBackgroundColor(backgroundColor)
 | 
				
			||||||
	term.write(s)
 | 
						term.write(s)
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -135,6 +136,8 @@ while true do
 | 
				
			||||||
                        playDisc()
 | 
					                        playDisc()
 | 
				
			||||||
                end
 | 
					                end
 | 
				
			||||||
        elseif name == "q" then
 | 
					        elseif name == "q" then
 | 
				
			||||||
 | 
							term.clear()
 | 
				
			||||||
 | 
							term.setCursorPos(1, 1)
 | 
				
			||||||
                return true
 | 
					                return true
 | 
				
			||||||
        end
 | 
					        end
 | 
				
			||||||
    end
 | 
					    end
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue