From d0b19cf5e2ae6bb24b46166a07dd1cfb94a28064 Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Wed, 6 Apr 2005 23:01:56 +0000 Subject: [PATCH] do font aliases on Lua expressions --- stepmania/src/ThemeManager.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/stepmania/src/ThemeManager.cpp b/stepmania/src/ThemeManager.cpp index 3c53ddbe48..3ab6b8313d 100644 --- a/stepmania/src/ThemeManager.cpp +++ b/stepmania/src/ThemeManager.cpp @@ -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"