[ArrowEffects] add QuantizeArrowYPosition metric

This commit is contained in:
AJ Kelly
2011-02-09 13:33:06 -06:00
parent c62c032d71
commit cff957ec4e
3 changed files with 5 additions and 3 deletions
+1
View File
@@ -18,6 +18,7 @@ sm-ssc v1.2.1 | 201102??
* [ScreenOptionsMemoryCard] Added three strings: "(no label)", "size ???", and * [ScreenOptionsMemoryCard] Added three strings: "(no label)", "size ???", and
"%dMB". [AJ] "%dMB". [AJ]
* [ScreenSelectMusic] Added RouletteTimerSeconds metric. [AJ] * [ScreenSelectMusic] Added RouletteTimerSeconds metric. [AJ]
* [ArrowEffects] Added QuantizeArrowYPosition metric. [AJ]
20110208 20110208
-------- --------
+1
View File
@@ -135,6 +135,7 @@ BrakeModMinClamp=-400
BrakeModMaxClamp=400 BrakeModMaxClamp=400
WaveModMagnitude=20 WaveModMagnitude=20
WaveModHeight=38 WaveModHeight=38
QuantizeArrowYPosition=false
[Background] [Background]
# Background stuff. again, its usually a better idea to leave this alone # Background stuff. again, its usually a better idea to leave this alone
+3 -3
View File
@@ -23,6 +23,7 @@ static ThemeMetric<float> BRAKE_MOD_MIN_CLAMP( "ArrowEffects", "BrakeModMinClamp
static ThemeMetric<float> BRAKE_MOD_MAX_CLAMP( "ArrowEffects", "BrakeModMaxClamp" ); static ThemeMetric<float> BRAKE_MOD_MAX_CLAMP( "ArrowEffects", "BrakeModMaxClamp" );
static ThemeMetric<float> WAVE_MOD_MAGNITUDE( "ArrowEffects", "WaveModMagnitude" ); static ThemeMetric<float> WAVE_MOD_MAGNITUDE( "ArrowEffects", "WaveModMagnitude" );
static ThemeMetric<float> WAVE_MOD_HEIGHT( "ArrowEffects", "WaveModHeight" ); static ThemeMetric<float> WAVE_MOD_HEIGHT( "ArrowEffects", "WaveModHeight" );
static ThemeMetric<bool> QUANTIZE_ARROW_Y( "ArrowEffects", "QuantizeArrowYPosition");
static float GetNoteFieldHeight( const PlayerState* pPlayerState ) static float GetNoteFieldHeight( const PlayerState* pPlayerState )
{ {
@@ -318,9 +319,8 @@ float ArrowEffects::GetYPos( const PlayerState* pPlayerState, int iCol, float fY
// In beware's DDR Extreme-focused fork of StepMania 3.9, this value is // In beware's DDR Extreme-focused fork of StepMania 3.9, this value is
// floored, making arrows show on integer Y coordinates. Supposedly it makes // floored, making arrows show on integer Y coordinates. Supposedly it makes
// the arrows look better, but testing needs to be done. // the arrows look better, but testing needs to be done.
// todo: make this a noteskin metric ("QuantizeArrowYPosition") -aj // todo: make this a noteskin metric instead of a theme metric? -aj
return f; return QUANTIZE_ARROW_Y ? floor(f) : f;
//return floor(f);
} }
float ArrowEffects::GetYOffsetFromYPos( const PlayerState* pPlayerState, int iCol, float YPos, float fYReverseOffsetPixels ) float ArrowEffects::GetYOffsetFromYPos( const PlayerState* pPlayerState, int iCol, float YPos, float fYReverseOffsetPixels )