From 27e13ea8412d2a1f46345f9c0fcafa1e86551728 Mon Sep 17 00:00:00 2001 From: Comment Date: Tue, 18 Dec 2012 12:45:26 +0000 Subject: final dublin version --- vfg/src/music.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vfg/src/music.cpp') diff --git a/vfg/src/music.cpp b/vfg/src/music.cpp index a3ebfc5..4c565bb 100755 --- a/vfg/src/music.cpp +++ b/vfg/src/music.cpp @@ -334,7 +334,7 @@ bool song::isFinished(){ void song::resize(){ lyrics.loadFont(); } -void song::draw(float hOffs,float scale){ +void song::draw(float hOffs,float scale,bool showLyrics){ int songTime=ofGetElapsedTimeMillis()-startTime; int fadeout=(gameover?max(0,255-((int)((((float)ofGetElapsedTimeMillis()-gameoverTime)/fademillis)*255))):255); if (isPlaying) { @@ -359,7 +359,7 @@ void song::draw(float hOffs,float scale){ } } if (!notes.missedLast&&!gameover) melody.setVolume(1.0f); - if (!isPractice&&!gameover) lyrics.draw(hOffs); + if (!isPractice&&!gameover&&showLyrics) lyrics.draw(hOffs); if (songTime>levels.length&&!gameover) { printf("finished! %i (%i)\n",songTime,levels.length); //this played loads of times -- cgit v1.2.3