simplify: "\n" is newline, "::" separates tips

This commit is contained in:
Chris Danford
2006-01-09 17:45:21 +00:00
parent 832f1de7c4
commit 3df20418a8
2 changed files with 1 additions and 9 deletions
+1 -5
View File
@@ -197,11 +197,7 @@ void ScreenWithMenuElements::LoadHelpText()
{
vector<CString> vs;
CString s = THEME->GetString(m_sName,"HelpText");
split( s, "\n", vs );
// hack to get newlines in a tip
FOREACH( CString, vs, s )
s->Replace( "\\n", "\n" );
split( s, "::", vs );
m_textHelp->SetTips( vs );
m_textHelp->PlayCommand( "Changed" );