cache common metrics

This commit is contained in:
Chris Danford
2005-02-12 21:03:39 +00:00
parent 790f06aa16
commit 40c9e8fbe7
14 changed files with 90 additions and 38 deletions
+3 -2
View File
@@ -8,6 +8,7 @@
#include "RageDisplay.h"
#include "RageMath.h"
#include "ThemeMetric.h"
#include "CommonMetrics.h"
#define LABEL_OFFSET_X( i ) THEME->GetMetricF("GrooveRadar",ssprintf("Label%dOffsetX",i+1))
#define LABEL_OFFSET_Y( i ) THEME->GetMetricF("GrooveRadar",ssprintf("Label%dOffsetY",i+1))
@@ -132,7 +133,7 @@ void GrooveRadar::GrooveRadarValueMap::DrawPrimitives()
//
// use a fan to draw the volume
//
RageColor color = PlayerToColor( p );
RageColor color = PLAYER_COLOR.GetValue(p);
color.a = 0.5f;
v[0].p = RageVector3( 0, 0, 0 );
v[0].c = color;
@@ -165,7 +166,7 @@ void GrooveRadar::GrooveRadarValueMap::DrawPrimitives()
const float fY = -sinf(fRotation) * fDistFromCenter;
v[i].p = RageVector3( fX, fY, 0 );
v[i].c = PlayerToColor( p );
v[i].c = PLAYER_COLOR.GetValue( p );
}
// TODO: Add this back in. -Chris