do font aliases on Lua expressions

This commit is contained in:
Chris Danford
2005-04-06 23:01:56 +00:00
parent 88baf9dbbc
commit d0b19cf5e2
+3 -4
View File
@@ -697,10 +697,9 @@ CString ThemeManager::GetMetric( const CString &sClassName, const CString &sValu
void ThemeManager::EvaluateString( CString &sText )
{
/* If the string begins with an @, treat it as a raw Lua expression, and don't do any
* other filtering. (XXX: maybe we should still do font aliases) */
if( LUA->RunAtExpressionS( sText ) )
return;
/* If the string begins with an @, treat it as a Lua expression.
* Still do font aliases on the resulting string. */
LUA->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"