Add metric for changing blink mod frequency.

Done as a partial request for WinDEU...
whether he realizes it or not. ;)
This commit is contained in:
Jason Felds
2011-01-15 13:00:00 -05:00
parent c6741f06fe
commit 2013fff457
3 changed files with 8 additions and 1 deletions
+5
View File
@@ -13,6 +13,11 @@ _____________________________________________________________________________
sm-ssc v1.2.1 | 2011011?
--------------------------------------------------------------------------------
20110115
--------
* [ArrowEffects] Allow modifying the blink mod frequency in the metrics.
[Wolfman2000]
20110112
--------
* [PlayerStageStats] Change score to an unsigned long from a signed int. [FSX]
+1
View File
@@ -128,6 +128,7 @@ FrameWidthLockEffectsToOverlapping=false
FrameWidthLockEffectsTweenPixels=25
ArrowSpacing=128
DrawHiddenNotesAfterReceptor=true
BlinkModFrequency=0.3333
[Background]
# Background stuff. again, its usually a better idea to leave this alone
+2 -1
View File
@@ -16,6 +16,7 @@
static ThemeMetric<float> ARROW_SPACING( "ArrowEffects", "ArrowSpacing" );
static ThemeMetric<bool> HIDDEN_SUDDEN_PAST_RECEPTOR( "ArrowEffects", "DrawHiddenNotesAfterReceptor");
static ThemeMetric<float> BLINK_MOD_FREQUENCY( "ArrowEffects", "BlinkModFrequency" );
static float GetNoteFieldHeight( const PlayerState* pPlayerState )
{
@@ -572,7 +573,7 @@ float ArrowGetPercentVisible( const PlayerState* pPlayerState, float fYPosWithou
if( fAppearances[PlayerOptions::APPEARANCE_BLINK] != 0 )
{
float f = RageFastSin(RageTimer::GetTimeSinceStartFast()*10);
f = Quantize( f, 0.3333f );
f = Quantize( f, BLINK_MOD_FREQUENCY );
fVisibleAdjust += SCALE( f, 0, 1, -1, 0 );
}
if( fAppearances[PlayerOptions::APPEARANCE_RANDOMVANISH] != 0 )