just init the keyboard text once

This commit is contained in:
Glenn Maynard
2006-01-29 00:24:38 +00:00
parent eae358e67d
commit 4e544cf6d7
2 changed files with 5 additions and 18 deletions
+5 -17
View File
@@ -113,6 +113,11 @@ void ScreenTextEntry::Init()
BitmapText *&pbt = m_ptextKeys[r][x];
pbt = static_cast<BitmapText *>( text.Copy() ); // XXX: Copy() should be covariant
this->AddChild( pbt );
RString s = g_szKeys[r][x];
if( !s.empty() && r == KEYBOARD_ROW_SPECIAL )
s = THEME->GetString( m_sName, s );
pbt->SetText( s );
}
}
}
@@ -157,26 +162,9 @@ void ScreenTextEntry::BeginScreen()
}
}
UpdateKeyboardText();
PositionCursor();
}
void ScreenTextEntry::UpdateKeyboardText()
{
FOREACH_KeyboardRow( r )
{
for( int x=0; x<KEYS_PER_ROW; ++x )
{
RString s = g_szKeys[r][x];
if( !s.empty() && r == KEYBOARD_ROW_SPECIAL )
s = THEME->GetString( "ScreenTextEntry", s );
BitmapText &bt = *m_ptextKeys[r][x];
bt.SetText( s );
}
}
}
void ScreenTextEntry::UpdateAnswerText()
{
RString s;
-1
View File
@@ -69,7 +69,6 @@ protected:
virtual void MenuStart( PlayerNumber pn );
virtual void MenuBack( PlayerNumber pn );
void UpdateKeyboardText();
void UpdateAnswerText();
BitmapText m_textQuestion;