[ScreenTextEntry] replace hardcoded underscore and double space with AnswerCaret and AnswerBlank strings
This commit is contained in:
@@ -1533,6 +1533,8 @@ Done=Done
|
|||||||
HeaderText=
|
HeaderText=
|
||||||
Space=Space
|
Space=Space
|
||||||
"%s" is an invalid floating point value.="%s" is an invalid floating point value.
|
"%s" is an invalid floating point value.="%s" is an invalid floating point value.
|
||||||
|
AnswerCaret=_
|
||||||
|
AnswerBlank=
|
||||||
|
|
||||||
[ScreenTitleMenu]
|
[ScreenTitleMenu]
|
||||||
%d songs in %d groups=%d songs in %d groups
|
%d songs in %d groups=%d songs in %d groups
|
||||||
|
|||||||
@@ -143,6 +143,8 @@ void ScreenTextEntry::BeginScreen()
|
|||||||
UpdateAnswerText();
|
UpdateAnswerText();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static LocalizedString ANSWER_CARET ( "ScreenTextEntry", "AnswerCaret" );
|
||||||
|
static LocalizedString ANSWER_BLANK ( "ScreenTextEntry", "AnswerBlank" );
|
||||||
void ScreenTextEntry::UpdateAnswerText()
|
void ScreenTextEntry::UpdateAnswerText()
|
||||||
{
|
{
|
||||||
RString s;
|
RString s;
|
||||||
@@ -157,9 +159,11 @@ void ScreenTextEntry::UpdateAnswerText()
|
|||||||
s = g_pFormatAnswerForDisplay( s );
|
s = g_pFormatAnswerForDisplay( s );
|
||||||
|
|
||||||
if( m_bShowAnswerCaret && !bAnswerFull )
|
if( m_bShowAnswerCaret && !bAnswerFull )
|
||||||
s += '_';
|
s += ANSWER_CARET; // was '_'
|
||||||
else
|
else
|
||||||
s += " "; // xxx: assumes that underscore is the width of two spaces
|
{
|
||||||
|
s += ANSWER_BLANK; // was " "
|
||||||
|
}
|
||||||
|
|
||||||
FontCharAliases::ReplaceMarkers( s );
|
FontCharAliases::ReplaceMarkers( s );
|
||||||
m_textAnswer.SetText( s );
|
m_textAnswer.SetText( s );
|
||||||
|
|||||||
Reference in New Issue
Block a user