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
@@ -29,6 +29,7 @@
#include "arch/ArchHooks/ArchHooks.h"
#include "RageTextureManager.h"
#include "RageFile.h"
#include "LuaHelpers.h"
const float PARTICLE_SPEED = 300;
@@ -458,6 +459,15 @@ void BGAnimationLayer::LoadFromIni( CString sAniDir, CString sLayer )
}
}
{
CString expr;
if( ini.GetValue( sLayer, "Cond", expr ) )
{
if( !Lua::RunExpression( expr ) )
return;
}
}
bool Stretch = false;
{
CString type = "sprite";