allow AtExpressions in Commands
This commit is contained in:
@@ -12,6 +12,7 @@
|
|||||||
#include "LuaBinding.h"
|
#include "LuaBinding.h"
|
||||||
#include "Command.h"
|
#include "Command.h"
|
||||||
#include "ActorCommands.h"
|
#include "ActorCommands.h"
|
||||||
|
#include "ThemeManager.h"
|
||||||
|
|
||||||
|
|
||||||
// lua start
|
// lua start
|
||||||
@@ -98,8 +99,9 @@ void Actor::LoadFromNode( const CString& sDir, const XNode* pNode )
|
|||||||
if( sKeyName.Right(7) != "command" )
|
if( sKeyName.Right(7) != "command" )
|
||||||
continue; /* not a command */
|
continue; /* not a command */
|
||||||
|
|
||||||
const CString &sCommands = a->m_sValue;
|
CString sValue = a->m_sValue;
|
||||||
Commands cmds = ParseCommands( sCommands );
|
THEME->EvaluateString( sValue );
|
||||||
|
Commands cmds = ParseCommands( sValue );
|
||||||
apActorCommands apac( new ActorCommands( cmds ) );
|
apActorCommands apac( new ActorCommands( cmds ) );
|
||||||
|
|
||||||
CString sCmdName;
|
CString sCmdName;
|
||||||
|
|||||||
Reference in New Issue
Block a user