move empty score name logic into HighScore

add FOV to ScreenNameEntryTraditional
This commit is contained in:
Chris Danford
2004-03-08 02:50:46 +00:00
parent 6d9ac029a3
commit 4bdc608b1c
6 changed files with 43 additions and 21 deletions
+12
View File
@@ -13,6 +13,10 @@
#include "HighScore.h"
#include "PrefsManager.h"
#include "GameConstantsAndTypes.h"
#include "ThemeManager.h"
#define EMPTY_NAME THEME->GetMetric ("HighScore","EmptyName")
bool HighScore::operator>=( const HighScore& other ) const
{
@@ -73,6 +77,14 @@ void HighScore::LoadFromNode( const XNode* pNode )
grade = clamp( grade, GRADE_TIER_1, GRADE_FAILED );
}
CString HighScore::GetDisplayName() const
{
if( sName.empty() )
return EMPTY_NAME;
else
return sName;
}
void HighScoreList::Init()
{