Lua::RunExpression support
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user