Lua::RunExpression support

This commit is contained in:
Glenn Maynard
2004-02-14 23:22:23 +00:00
parent f2a57c0c28
commit 6b55d6840c
2 changed files with 20 additions and 0 deletions
+10
View File
@@ -21,6 +21,7 @@
#include "ThemeManager.h"
#include "RageFile.h"
#include "ActorUtil.h"
#include "LuaHelpers.h"
#include "arch/ArchHooks/ArchHooks.h"
const int MAX_LAYERS = 1000;
@@ -66,6 +67,15 @@ void AddLayersFromAniDir( CString sAniDir, vector<Actor*> &layersAddTo, bool Gen
IniFile ini(sPathToIni);
ini.ReadFile();
{
CString expr;
if( ini.GetValue( "BGAnimation", "Cond", expr ) )
{
if( !Lua::RunExpression( expr ) )
return;
}
}
int i;
for( i=0; i<MAX_LAYERS; i++ )
{