[ScreenTextEntry] replace hardcoded underscore and double space with AnswerCaret and AnswerBlank strings

This commit is contained in:
AJ Kelly
2010-07-03 21:15:25 -05:00
parent d9aee67537
commit 4c8cec8489
2 changed files with 8 additions and 2 deletions
+6 -2
View File
@@ -143,6 +143,8 @@ void ScreenTextEntry::BeginScreen()
UpdateAnswerText();
}
static LocalizedString ANSWER_CARET ( "ScreenTextEntry", "AnswerCaret" );
static LocalizedString ANSWER_BLANK ( "ScreenTextEntry", "AnswerBlank" );
void ScreenTextEntry::UpdateAnswerText()
{
RString s;
@@ -157,9 +159,11 @@ void ScreenTextEntry::UpdateAnswerText()
s = g_pFormatAnswerForDisplay( s );
if( m_bShowAnswerCaret && !bAnswerFull )
s += '_';
s += ANSWER_CARET; // was '_'
else
s += " "; // xxx: assumes that underscore is the width of two spaces
{
s += ANSWER_BLANK; // was " "
}
FontCharAliases::ReplaceMarkers( s );
m_textAnswer.SetText( s );