|
From: Tapio V. <aa...@us...> - 2009-11-16 10:50:21
|
Module: performous
Branch: master
Commit: 979574d4125cc94da96d129c8a5c22188c6f5aa3
Author: Tapio Vierros <tap...@gm...>
Date: Mon Nov 16 11:58:46 2009 +0200
Make inactive hammer notes darker (until someone comes up with something better).
---
game/guitargraph.cc | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/game/guitargraph.cc b/game/guitargraph.cc
index ed011d3..f0a9916 100644
--- a/game/guitargraph.cc
+++ b/game/guitargraph.cc
@@ -496,7 +496,9 @@ void GuitarGraph::drawNote(int fret, glutil::Color c, float tBeg, float tEnd, fl
float y = yBeg + fretWid;
if (m_use3d) {
y -= fretWid;
- c.a = clamp(time2a(tBeg)*2.0f,0.0f,1.0f); glColor4fv(c);
+ c.a = clamp(time2a(tBeg)*2.0f,0.0f,1.0f);
+ if (tappable && m_correctness.get() < .99) { c.r *= 0.5f; c.g *= 0.5f; c.b *= 0.5f; }
+ glColor4fv(c);
obj->draw(x, y, 0.0f);
y -= fretWid;
} else {
|