diff --git a/stepmania/src/ScreenTitleMenu.cpp b/stepmania/src/ScreenTitleMenu.cpp index 096b37801c..ac35c39a81 100644 --- a/stepmania/src/ScreenTitleMenu.cpp +++ b/stepmania/src/ScreenTitleMenu.cpp @@ -28,6 +28,7 @@ #include "RageSoundManager.h" #include "CodeDetector.h" #include "RageTextureManager.h" +#include "UnlockSystem.h" #define LOGO_ON_COMMAND THEME->GetMetric("ScreenTitleMenu","LogoOnCommand") @@ -84,7 +85,7 @@ ScreenTitleMenu::ScreenTitleMenu() : Screen("ScreenTitleMenu") m_textSongs.LoadFromFont( THEME->GetPathToF("Common normal") ); m_textSongs.Command( SONGS_ON_COMMAND ); - m_textSongs.SetText( ssprintf("%d songs in %d groups, %d courses", SONGMAN->GetNumSongs(), SONGMAN->GetNumGroups(), SONGMAN->GetNumCourses()) ); + m_textSongs.SetText( ssprintf("%d songs in %d groups, %d courses, %d unlocks", SONGMAN->GetNumSongs(), SONGMAN->GetNumGroups(), SONGMAN->GetNumCourses(), GAMESTATE->m_pUnlockingSys->GetNumUnlocks() )); this->AddChild( &m_textSongs ); diff --git a/stepmania/src/UnlockSystem.cpp b/stepmania/src/UnlockSystem.cpp index bdf6f3674d..50b92a21ac 100644 --- a/stepmania/src/UnlockSystem.cpp +++ b/stepmania/src/UnlockSystem.cpp @@ -497,3 +497,8 @@ float UnlockSystem::UnlockToasty() return ToastyPoints; } + +int UnlockSystem::GetNumUnlocks() const +{ + return m_SongEntries.size(); +} \ No newline at end of file diff --git a/stepmania/src/UnlockSystem.h b/stepmania/src/UnlockSystem.h index d95f436d69..612d24bcc9 100644 --- a/stepmania/src/UnlockSystem.h +++ b/stepmania/src/UnlockSystem.h @@ -72,6 +72,9 @@ public: // All locked songs are stored here vector m_SongEntries; + // Gets number of unlocks for title screen + int GetNumUnlocks() const; + // functions that add to values float UnlockAddAP(Grade credit); float UnlockAddAP(float credit);