From 2b692683e2f98717f9c5de5f180f341dfcae9ef7 Mon Sep 17 00:00:00 2001 From: Alberto Ramos Date: Sun, 22 Aug 2010 18:07:43 -0600 Subject: [PATCH] Added a metric to configure drawing hidden notes after the receptor (with hidden, stealth and similar mods) --- Themes/_fallback/metrics.ini | 1 + src/ArrowEffects.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Themes/_fallback/metrics.ini b/Themes/_fallback/metrics.ini index 8dbd709f53..401e1f2db3 100644 --- a/Themes/_fallback/metrics.ini +++ b/Themes/_fallback/metrics.ini @@ -125,6 +125,7 @@ FrameWidthEffectsMaxMultiplier=1.2 FrameWidthLockEffectsToOverlapping=false FrameWidthLockEffectsTweenPixels=25 ArrowSpacing=64 +DrawHiddenNotesBeforeReceptor=true [Background] # Background stuff. again, its usually a better idea to leave this alone diff --git a/src/ArrowEffects.cpp b/src/ArrowEffects.cpp index b50b979df1..4d106e5399 100644 --- a/src/ArrowEffects.cpp +++ b/src/ArrowEffects.cpp @@ -15,6 +15,7 @@ #include static ThemeMetric ARROW_SPACING( "ArrowEffects", "ArrowSpacing" ); +static ThemeMetric HIDDEN_SUDDEN_PAST_RECEPTOR( "ArrowEffects", "DrawHiddenNotesBeforeReceptor"); static float GetNoteFieldHeight( const PlayerState* pPlayerState ) { @@ -546,7 +547,7 @@ float ArrowGetPercentVisible( const PlayerState* pPlayerState, float fYPosWithou { const float fDistFromCenterLine = fYPosWithoutReverse - GetCenterLine( pPlayerState ); - if( fYPosWithoutReverse < 0 ) // past Gray Arrows + if( fYPosWithoutReverse < 0 && HIDDEN_SUDDEN_PAST_RECEPTOR) // past Gray Arrows return 1; // totally visible const float* fAppearances = pPlayerState->m_PlayerOptions.GetCurrent().m_fAppearances;