use ParseActorCommands(L) and RunExpression
This commit is contained in:
@@ -979,15 +979,20 @@ void ThemeManager::GetMetric( const RString &sClassName, const RString &sValueNa
|
|||||||
{
|
{
|
||||||
RString sValue = GetMetricRaw( g_pLoadedThemeData->iniMetrics, sClassName, sValueName );
|
RString sValue = GetMetricRaw( g_pLoadedThemeData->iniMetrics, sClassName, sValueName );
|
||||||
|
|
||||||
|
Lua *L = LUA->Get();
|
||||||
|
|
||||||
if( EndsWith(sValueName, "Command") )
|
if( EndsWith(sValueName, "Command") )
|
||||||
{
|
{
|
||||||
ActorUtil::ParseActorCommands( sValue, valueOut );
|
ActorUtil::ParseActorCommands( L, sValue );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LuaHelpers::PrepareExpression( sValue );
|
LuaHelpers::PrepareExpression( sValue );
|
||||||
valueOut.SetFromExpression( sValue );
|
LuaHelpers::RunExpression( L, sValue );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
valueOut.SetFromStack( L );
|
||||||
|
LUA->Release( L );
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !defined(SMPACKAGE)
|
#if !defined(SMPACKAGE)
|
||||||
|
|||||||
Reference in New Issue
Block a user