evaluate AtExpressions in <Param/>
This commit is contained in:
@@ -135,10 +135,13 @@ Actor* ActorUtil::LoadFromActorFile( const CString& sDir, const XNode* pNode )
|
|||||||
RageException::Throw( ssprintf("Param node in '%s' is missing the attribute 'Name'", sDir.c_str()) );
|
RageException::Throw( ssprintf("Param node in '%s' is missing the attribute 'Name'", sDir.c_str()) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
THEME->EvaluateString( sName );
|
||||||
|
|
||||||
CString s;
|
CString s;
|
||||||
if( pChild->GetAttrValue( "Function", s ) )
|
if( pChild->GetAttrValue( "Function", s ) )
|
||||||
{
|
{
|
||||||
LuaExpression expr;
|
LuaExpression expr;
|
||||||
|
THEME->EvaluateString( s );
|
||||||
expr.SetFromExpression( s );
|
expr.SetFromExpression( s );
|
||||||
Lua *L = LUA->Get();
|
Lua *L = LUA->Get();
|
||||||
expr.PushSelf( L );
|
expr.PushSelf( L );
|
||||||
@@ -149,6 +152,7 @@ Actor* ActorUtil::LoadFromActorFile( const CString& sDir, const XNode* pNode )
|
|||||||
}
|
}
|
||||||
else if( pChild->GetAttrValue( "Value", s ) )
|
else if( pChild->GetAttrValue( "Value", s ) )
|
||||||
{
|
{
|
||||||
|
THEME->EvaluateString( s );
|
||||||
LUA->SetGlobalFromExpression( sName, s );
|
LUA->SetGlobalFromExpression( sName, s );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user