set function directly
This commit is contained in:
@@ -31,9 +31,12 @@ void DynamicActorScroller::LoadFromNode( const XNode *pNode )
|
|||||||
this->AddChild( pCopy );
|
this->AddChild( pCopy );
|
||||||
}
|
}
|
||||||
|
|
||||||
RString sLoadFunction;
|
{
|
||||||
pNode->GetAttrValue( "LoadFunction", sLoadFunction );
|
Lua *L = LUA->Get();
|
||||||
m_LoadFunction.SetFromExpression( sLoadFunction );
|
pNode->PushAttrValue( L, "LoadFunction" );
|
||||||
|
m_LoadFunction.SetFromStack( L );
|
||||||
|
LUA->Release(L);
|
||||||
|
}
|
||||||
|
|
||||||
/* Call the expression with line = nil to find out the number of lines. */
|
/* Call the expression with line = nil to find out the number of lines. */
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user