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" );
-4
View File
@@ -778,10 +778,6 @@ void ThemeManager::EvaluateString( RString &sText )
* Still do font aliases on the resulting string. */
LuaHelpers::RunAtExpressionS( sText );
// "::" means newline since you can't use line breaks in an ini file.
// XXX: this makes it impossible to put a colon at the end of a line, eg: "Color:\nRed"
sText.Replace("::","\n");
FontCharAliases::ReplaceMarkers( sText );
}