re-add "get metric as Lua expression"

This commit is contained in:
Glenn Maynard
2006-09-22 03:31:38 +00:00
parent e592af10de
commit 1b8b029eef
2 changed files with 13 additions and 0 deletions
+11
View File
@@ -968,6 +968,17 @@ RageColor ThemeManager::GetMetricC( const RString &sClassName, const RString &sV
return RunExpressionC( sValue );
}
LuaReference ThemeManager::GetMetricR( const RString &sClassName, const RString &sValueName )
{
RString sValue = GetMetricRaw( g_pLoadedThemeData->iniMetrics, sClassName, sValueName );
LuaHelpers::PrepareExpression( sValue );
LuaReference ref;
ref.SetFromExpression( sValue );
return ref;
}
#if !defined(SMPACKAGE)
apActorCommands ThemeManager::GetMetricA( const RString &sClassName, const RString &sValueName )
{