[NoteField] Added AreaHighlightColor metric.
This commit is contained in:
@@ -8,6 +8,10 @@ ________________________________________________________________________________
|
|||||||
StepMania 5.0 Preview 3 | 20110???
|
StepMania 5.0 Preview 3 | 20110???
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
2011/08/05
|
||||||
|
----------
|
||||||
|
* [NoteField] Added AreaHighlightColor metric. [AJ]
|
||||||
|
|
||||||
2011/08/04
|
2011/08/04
|
||||||
----------
|
----------
|
||||||
* [NoteTypes, ScreenEdit] Removed artificial MAX_NOTES_PER_MEASURE limit. [AJ]
|
* [NoteTypes, ScreenEdit] Removed artificial MAX_NOTES_PER_MEASURE limit. [AJ]
|
||||||
|
|||||||
@@ -953,6 +953,7 @@ Bar16thAlpha=1
|
|||||||
RoutineNoteSkinP1=RoutineSkinP1()
|
RoutineNoteSkinP1=RoutineSkinP1()
|
||||||
RoutineNoteSkinP2=RoutineSkinP2()
|
RoutineNoteSkinP2=RoutineSkinP2()
|
||||||
#
|
#
|
||||||
|
AreaHighlightColor=color("1,0,0,0.3")
|
||||||
BPMColor=color("1,0,0,1")
|
BPMColor=color("1,0,0,1")
|
||||||
StopColor=color("0.8,0.8,0,1")
|
StopColor=color("0.8,0.8,0,1")
|
||||||
DelayColor=color("0,0.8,0.8,1")
|
DelayColor=color("0,0.8,0.8,1")
|
||||||
|
|||||||
+2
-2
@@ -428,7 +428,7 @@ void NoteField::DrawMarkerBar( int iBeat )
|
|||||||
m_rectMarkerBar.Draw();
|
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 )
|
void NoteField::DrawAreaHighlight( int iStartBeat, int iEndBeat )
|
||||||
{
|
{
|
||||||
float fStartBeat = NoteRowToBeat( iStartBeat );
|
float fStartBeat = NoteRowToBeat( iStartBeat );
|
||||||
@@ -443,7 +443,7 @@ void NoteField::DrawAreaHighlight( int iStartBeat, int iEndBeat )
|
|||||||
ASSERT( fYEndPos < +5000 );
|
ASSERT( fYEndPos < +5000 );
|
||||||
|
|
||||||
m_rectAreaHighlight.StretchTo( RectF(-GetWidth()/2, fYStartPos, GetWidth()/2, fYEndPos) );
|
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();
|
m_rectAreaHighlight.Draw();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user