Bring default's changes in.

Hopefully I also handled mac's arch_setup right.
This commit is contained in:
Jason Felds
2013-05-02 22:08:51 -04:00
9 changed files with 90 additions and 66 deletions
+1
View File
@@ -572,6 +572,7 @@ MinScoreToMaintainCombo=ComboMaintain()
MaxScoreToIncrementMissCombo='TapNoteScore_Miss' MaxScoreToIncrementMissCombo='TapNoteScore_Miss'
MineHitIncrementsMissCombo=false MineHitIncrementsMissCombo=false
AvoidMineIncrementsCombo=false AvoidMineIncrementsCombo=false
UseInternalScoring=true
# When you hit it, you know. # When you hit it, you know.
ToastyTriggersAt=250 ToastyTriggersAt=250
+3 -2
View File
@@ -741,8 +741,6 @@ void Font::Load( const RString &sIniPath, RString sChars )
{ {
const RString &sTexturePath = asTexturePaths[i]; const RString &sTexturePath = asTexturePaths[i];
FontPage *pPage = new FontPage;
// Grab the page name, eg "foo" from "Normal [foo].png". // Grab the page name, eg "foo" from "Normal [foo].png".
RString sPagename = GetPageNameFromFileName( sTexturePath ); RString sPagename = GetPageNameFromFileName( sTexturePath );
@@ -750,6 +748,9 @@ void Font::Load( const RString &sIniPath, RString sChars )
if( sTexturePath.find("-stroke") != string::npos ) if( sTexturePath.find("-stroke") != string::npos )
continue; continue;
// Create this down here so it doesn't leak if the continue gets triggered.
FontPage *pPage = new FontPage;
// Load settings for this page from the INI. // Load settings for this page from the INI.
FontPageSettings cfg; FontPageSettings cfg;
LoadFontPageSettings( cfg, ini, sTexturePath, "common", sChars ); LoadFontPageSettings( cfg, ini, sTexturePath, "common", sChars );
+6
View File
@@ -48,6 +48,12 @@ LifeMeterTime::LifeMeterTime()
{ {
m_fLifeTotalGainedSeconds = 0; m_fLifeTotalGainedSeconds = 0;
m_fLifeTotalLostSeconds = 0; m_fLifeTotalLostSeconds = 0;
m_pStream = NULL;
}
LifeMeterTime::~LifeMeterTime()
{
delete m_pStream;
} }
void LifeMeterTime::Load( const PlayerState *pPlayerState, PlayerStageStats *pPlayerStageStats ) void LifeMeterTime::Load( const PlayerState *pPlayerState, PlayerStageStats *pPlayerStageStats )
+2
View File
@@ -16,6 +16,8 @@ class LifeMeterTime : public LifeMeter
public: public:
LifeMeterTime(); LifeMeterTime();
virtual ~LifeMeterTime();
virtual void Load( const PlayerState *pPlayerState, PlayerStageStats *pPlayerStageStats ); virtual void Load( const PlayerState *pPlayerState, PlayerStageStats *pPlayerStageStats );
virtual void Update( float fDeltaTime ); virtual void Update( float fDeltaTime );
+5
View File
@@ -22,6 +22,11 @@ MenuTimer::MenuTimer()
WARNING_COMMAND = NULL; WARNING_COMMAND = NULL;
} }
MenuTimer::~MenuTimer()
{
delete WARNING_COMMAND;
}
void MenuTimer::Load( RString sMetricsGroup ) void MenuTimer::Load( RString sMetricsGroup )
{ {
m_sprFrame.Load( THEME->GetPathG(sMetricsGroup, "Frame") ); m_sprFrame.Load( THEME->GetPathG(sMetricsGroup, "Frame") );
+1
View File
@@ -15,6 +15,7 @@ class MenuTimer : public ActorFrame
{ {
public: public:
MenuTimer(); MenuTimer();
virtual ~MenuTimer();
void Load( RString sMetricsGroup ); void Load( RString sMetricsGroup );
virtual void Update( float fDeltaTime ); virtual void Update( float fDeltaTime );
+5
View File
@@ -89,6 +89,7 @@ void ScoreKeeperNormal::Load(
m_MaxScoreToIncrementMissCombo.Load( "Gameplay", "MaxScoreToIncrementMissCombo" ); m_MaxScoreToIncrementMissCombo.Load( "Gameplay", "MaxScoreToIncrementMissCombo" );
m_MineHitIncrementsMissCombo.Load( "Gameplay", "MineHitIncrementsMissCombo" ); m_MineHitIncrementsMissCombo.Load( "Gameplay", "MineHitIncrementsMissCombo" );
m_AvoidMineIncrementsCombo.Load( "Gameplay", "AvoidMineIncrementsCombo" ); m_AvoidMineIncrementsCombo.Load( "Gameplay", "AvoidMineIncrementsCombo" );
m_UseInternalScoring.Load( "Gameplay", "UseInternalScoring" );
// Toasty triggers (idea from 3.9+) // Toasty triggers (idea from 3.9+)
// Multiple toasty support doesn't seem to be working right now. // Multiple toasty support doesn't seem to be working right now.
@@ -299,6 +300,9 @@ void ScoreKeeperNormal::HandleTapScoreNone()
void ScoreKeeperNormal::AddScoreInternal( TapNoteScore score ) void ScoreKeeperNormal::AddScoreInternal( TapNoteScore score )
{ {
if( m_UseInternalScoring )
{
int &iScore = m_pPlayerStageStats->m_iScore; int &iScore = m_pPlayerStageStats->m_iScore;
int &iCurMaxScore = m_pPlayerStageStats->m_iCurMaxScore; int &iCurMaxScore = m_pPlayerStageStats->m_iCurMaxScore;
@@ -369,6 +373,7 @@ void ScoreKeeperNormal::AddScoreInternal( TapNoteScore score )
ASSERT_M( iScore >= 0, "iScore < 0 after re-rounding" ); ASSERT_M( iScore >= 0, "iScore < 0 after re-rounding" );
// LOG->Trace( "score: %i", iScore ); // LOG->Trace( "score: %i", iScore );
}
} }
void ScoreKeeperNormal::HandleTapScore( const TapNote &tn ) void ScoreKeeperNormal::HandleTapScore( const TapNote &tn )
+1
View File
@@ -40,6 +40,7 @@ class ScoreKeeperNormal: public ScoreKeeper
ThemeMetric<TapNoteScore> m_MaxScoreToIncrementMissCombo; ThemeMetric<TapNoteScore> m_MaxScoreToIncrementMissCombo;
ThemeMetric<bool> m_MineHitIncrementsMissCombo; ThemeMetric<bool> m_MineHitIncrementsMissCombo;
ThemeMetric<bool> m_AvoidMineIncrementsCombo; ThemeMetric<bool> m_AvoidMineIncrementsCombo;
ThemeMetric<bool> m_UseInternalScoring;
//ThemeMetric<LuaReference> m_vToastyTriggers; //ThemeMetric<LuaReference> m_vToastyTriggers;
ThemeMetric<int> m_ToastyTrigger; ThemeMetric<int> m_ToastyTrigger;
+2
View File
@@ -21,6 +21,8 @@ StreamDisplay::StreamDisplay()
m_fPassingAlpha = 0; m_fPassingAlpha = 0;
m_fHotAlpha = 0; m_fHotAlpha = 0;
m_bAlwaysBounce = false; m_bAlwaysBounce = false;
m_bDeleteChildren = true;
} }
void StreamDisplay::Load( const RString & /* unreferenced: _sMetricsGroup */) void StreamDisplay::Load( const RString & /* unreferenced: _sMetricsGroup */)