[NoteField] Added AreaHighlightColor metric.

This commit is contained in:
AJ Kelly
2011-08-05 12:14:15 -05:00
parent db37a8ed63
commit 154aeff951
3 changed files with 7 additions and 2 deletions
+4
View File
@@ -8,6 +8,10 @@ ________________________________________________________________________________
StepMania 5.0 Preview 3 | 20110???
--------------------------------------------------------------------------------
2011/08/05
----------
* [NoteField] Added AreaHighlightColor metric. [AJ]
2011/08/04
----------
* [NoteTypes, ScreenEdit] Removed artificial MAX_NOTES_PER_MEASURE limit. [AJ]
+1
View File
@@ -953,6 +953,7 @@ Bar16thAlpha=1
RoutineNoteSkinP1=RoutineSkinP1()
RoutineNoteSkinP2=RoutineSkinP2()
#
AreaHighlightColor=color("1,0,0,0.3")
BPMColor=color("1,0,0,1")
StopColor=color("0.8,0.8,0,1")
DelayColor=color("0,0.8,0.8,1")
+2 -2
View File
@@ -428,7 +428,7 @@ void NoteField::DrawMarkerBar( int iBeat )
m_rectMarkerBar.Draw();
}
// todo: make colors in this section metricable -aj
static ThemeMetric<RageColor> AREA_HIGHLIGHT_COLOR("NoteField", "AreaHighlightColor");
void NoteField::DrawAreaHighlight( int iStartBeat, int iEndBeat )
{
float fStartBeat = NoteRowToBeat( iStartBeat );
@@ -443,7 +443,7 @@ void NoteField::DrawAreaHighlight( int iStartBeat, int iEndBeat )
ASSERT( fYEndPos < +5000 );
m_rectAreaHighlight.StretchTo( RectF(-GetWidth()/2, fYStartPos, GetWidth()/2, fYEndPos) );
m_rectAreaHighlight.SetDiffuse( RageColor(1,0,0,0.3f) );
m_rectAreaHighlight.SetDiffuse( AREA_HIGHLIGHT_COLOR );
m_rectAreaHighlight.Draw();
}