add Lua ActorScroller

This commit is contained in:
Chris Danford
2005-03-31 12:57:21 +00:00
parent e53bff3d06
commit cb542836d1
6 changed files with 50 additions and 21 deletions
+6 -2
View File
@@ -8,6 +8,10 @@
#include "RageLog.h"
#include "ActorUtil.h"
// lua start
LUA_REGISTER_CLASS( ActorScroller )
// lua end
/* Tricky: We need ActorFrames created in XML to auto delete their children.
* We don't want classes that derive from ActorFrame to auto delete their
* children. The name "ActorFrame" is widely used in XML, so we'll have
@@ -100,8 +104,8 @@ void ActorScroller::LoadFromNode( const CString &sDir, const XNode *pNode )
vTranslateTerm0,
vTranslateTerm1,
vTranslateTerm2 );
SetCurrentAndDestinationItem( int(-fItemPaddingStart) );
SetDestinationItem( int(m_SubActors.size()-1+fItemPaddingEnd) );
SetCurrentAndDestinationItem( -fItemPaddingStart );
SetDestinationItem( m_SubActors.size()-1+fItemPaddingEnd );
}
void ActorScroller::Update( float fDeltaTime )