add SHOW_FULL_COMBO

This commit is contained in:
Glenn Maynard
2003-10-31 03:10:31 +00:00
parent d4680c0d8c
commit d365e8e959
2 changed files with 11 additions and 0 deletions
+8
View File
@@ -58,6 +58,7 @@ const char* JUDGE_STRING[NUM_JUDGE_LINES] =
#define SHOW_TIME_AREA THEME->GetMetricB(m_sName,"ShowTimeArea")
#define SHOW_GRAPH_AREA THEME->GetMetricB(m_sName,"ShowGraphArea")
#define SHOW_COMBO_AREA THEME->GetMetricB(m_sName,"ShowComboArea")
#define SHOW_FULL_COMBO THEME->GetMetricB(m_sName,"ShowFullCombo")
#define GRAPH_START_HEIGHT THEME->GetMetricF(m_sName,"GraphStartHeight")
#define TYPE THEME->GetMetric (m_sName,"Type")
@@ -712,6 +713,12 @@ ScreenEvaluation::ScreenEvaluation( CString sClassName ) : Screen(sClassName)
UtilSetXYAndOnCommand( m_sprPersonalRecord[p], "ScreenEvaluation" );
this->AddChild( &m_sprPersonalRecord[p] );
}
if( SHOW_FULL_COMBO && stageStats.FullCombo( (PlayerNumber) p ) )
{
m_FullCombo[p].Load( THEME->GetPathToG(ssprintf("ScreenEvaluation full combo P%i",p+1)) );
this->AddChild( m_FullCombo[p] );
}
}
bool bOneHasNewTopRecord = false;
@@ -936,6 +943,7 @@ void ScreenEvaluation::TweenOffScreen()
continue;
UtilOffCommand( m_sprMachineRecord[p], "ScreenEvaluation" );
UtilOffCommand( m_sprPersonalRecord[p], "ScreenEvaluation" );
UtilOffCommand( m_FullCombo[p], "ScreenEvaluation" );
}
UtilOffCommand( m_sprTryExtraStage, "ScreenEvaluation" );
}
+3
View File
@@ -25,6 +25,8 @@
#include "PercentageDisplay.h"
#include "GraphDisplay.h"
#include "ComboGraph.h"
#include "BGAnimation.h"
#include "ActorUtil.h"
const int MAX_SONGS_TO_SHOW = 5; // In summary, we show last 3 stages, plus extra stages if passed
@@ -112,6 +114,7 @@ protected:
Sprite m_sprPersonalRecord[NUM_PLAYERS];
bool m_bTryExtraStage;
Sprite m_sprTryExtraStage;
AutoActor m_FullCombo[NUM_PLAYERS];
};
#endif