Tipsy can be modified now.
This commit is contained in:
@@ -145,6 +145,12 @@ ExpandSpeedScaleFromLow=0
|
|||||||
ExpandSpeedScaleFromHigh=1
|
ExpandSpeedScaleFromHigh=1
|
||||||
ExpandSpeedScaleToLow=1
|
ExpandSpeedScaleToLow=1
|
||||||
# No need for the high here: that is already calculated in code.
|
# No need for the high here: that is already calculated in code.
|
||||||
|
TipsyTimerFrequency=1.2
|
||||||
|
TipsyColumnFrequency=1.8
|
||||||
|
TipsyArrowMagnitude=0.4
|
||||||
|
TipsyOffsetTimerFrequency=1.2
|
||||||
|
TipsyOffsetColumnFrequency=2
|
||||||
|
TipsyOffsetArrowMagnitude=0.4
|
||||||
QuantizeArrowYPosition=false
|
QuantizeArrowYPosition=false
|
||||||
|
|
||||||
[Background]
|
[Background]
|
||||||
|
|||||||
+12
-2
@@ -32,6 +32,12 @@ static ThemeMetric<float> EXPAND_MULTIPLIER_SCALE_TO_HIGH( "ArrowEffects", "Expa
|
|||||||
static ThemeMetric<float> EXPAND_SPEED_SCALE_FROM_LOW( "ArrowEffects", "ExpandSpeedScaleFromLow" );
|
static ThemeMetric<float> EXPAND_SPEED_SCALE_FROM_LOW( "ArrowEffects", "ExpandSpeedScaleFromLow" );
|
||||||
static ThemeMetric<float> EXPAND_SPEED_SCALE_FROM_HIGH( "ArrowEffects", "ExpandSpeedScaleFromHigh" );
|
static ThemeMetric<float> EXPAND_SPEED_SCALE_FROM_HIGH( "ArrowEffects", "ExpandSpeedScaleFromHigh" );
|
||||||
static ThemeMetric<float> EXPAND_SPEED_SCALE_TO_LOW( "ArrowEffects", "ExpandSpeedScaleToLow" );
|
static ThemeMetric<float> EXPAND_SPEED_SCALE_TO_LOW( "ArrowEffects", "ExpandSpeedScaleToLow" );
|
||||||
|
static ThemeMetric<float> TIPSY_TIMER_FREQUENCY( "ArrowEffects", "TipsyTimerFrequency" );
|
||||||
|
static ThemeMetric<float> TIPSY_COLUMN_FREQUENCY( "ArrowEffects", "TipsyColumnFrequency" );
|
||||||
|
static ThemeMetric<float> TIPSY_ARROW_MAGNITUDE( "ArrowEffects", "TipsyArrowMagnitude" );
|
||||||
|
static ThemeMetric<float> TIPSY_OFFSET_TIMER_FREQUENCY( "ArrowEffects", "TipsyOffsetTimerFrequency" );
|
||||||
|
static ThemeMetric<float> TIPSY_OFFSET_COLUMN_FREQUENCY( "ArrowEffects", "TipsyOffsetColumnFrequency" );
|
||||||
|
static ThemeMetric<float> TIPSY_OFFSET_ARROW_MAGNITUDE( "ArrowEffects", "TipsyOffsetArrowMagnitude" );
|
||||||
static ThemeMetric<bool> QUANTIZE_ARROW_Y( "ArrowEffects", "QuantizeArrowYPosition");
|
static ThemeMetric<bool> QUANTIZE_ARROW_Y( "ArrowEffects", "QuantizeArrowYPosition");
|
||||||
|
|
||||||
static float GetNoteFieldHeight( const PlayerState* pPlayerState )
|
static float GetNoteFieldHeight( const PlayerState* pPlayerState )
|
||||||
@@ -327,7 +333,9 @@ float ArrowEffects::GetYPos( const PlayerState* pPlayerState, int iCol, float fY
|
|||||||
const float* fEffects = pPlayerState->m_PlayerOptions.GetCurrent().m_fEffects;
|
const float* fEffects = pPlayerState->m_PlayerOptions.GetCurrent().m_fEffects;
|
||||||
|
|
||||||
if( fEffects[PlayerOptions::EFFECT_TIPSY] != 0 )
|
if( fEffects[PlayerOptions::EFFECT_TIPSY] != 0 )
|
||||||
f += fEffects[PlayerOptions::EFFECT_TIPSY] * ( RageFastCos( RageTimer::GetTimeSinceStartFast()*1.2f + iCol*1.8f) * ARROW_SIZE*0.4f );
|
f += fEffects[PlayerOptions::EFFECT_TIPSY]
|
||||||
|
* ( RageFastCos( RageTimer::GetTimeSinceStartFast()*TIPSY_TIMER_FREQUENCY
|
||||||
|
+ iCol*TIPSY_COLUMN_FREQUENCY) * ARROW_SIZE*TIPSY_ARROW_MAGNITUDE );
|
||||||
|
|
||||||
// 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
|
||||||
@@ -342,7 +350,9 @@ float ArrowEffects::GetYOffsetFromYPos( const PlayerState* pPlayerState, int iCo
|
|||||||
|
|
||||||
const float* fEffects = pPlayerState->m_PlayerOptions.GetCurrent().m_fEffects;
|
const float* fEffects = pPlayerState->m_PlayerOptions.GetCurrent().m_fEffects;
|
||||||
if( fEffects[PlayerOptions::EFFECT_TIPSY] != 0 )
|
if( fEffects[PlayerOptions::EFFECT_TIPSY] != 0 )
|
||||||
f -= fEffects[PlayerOptions::EFFECT_TIPSY] * ( RageFastCos( RageTimer::GetTimeSinceStartFast()*1.2f + iCol*2.f) * ARROW_SIZE*0.4f );
|
f -= fEffects[PlayerOptions::EFFECT_TIPSY]
|
||||||
|
* ( RageFastCos( RageTimer::GetTimeSinceStartFast()*TIPSY_OFFSET_TIMER_FREQUENCY
|
||||||
|
+ iCol*TIPSY_OFFSET_COLUMN_FREQUENCY) * ARROW_SIZE*TIPSY_OFFSET_ARROW_MAGNITUDE );
|
||||||
|
|
||||||
float fShift, fScale;
|
float fShift, fScale;
|
||||||
ArrowGetReverseShiftAndScale( pPlayerState, iCol, fYReverseOffsetPixels, fShift, fScale );
|
ArrowGetReverseShiftAndScale( pPlayerState, iCol, fYReverseOffsetPixels, fShift, fScale );
|
||||||
|
|||||||
Reference in New Issue
Block a user