BGAnimation is no longer used for scrollers; use XML.

This commit is contained in:
Glenn Maynard
2005-09-26 19:34:07 +00:00
parent d3ecba30a0
commit 45c50c854d
2 changed files with 3 additions and 8 deletions
+1 -6
View File
@@ -149,12 +149,7 @@ void BGAnimation::LoadFromAniDir( const CString &_sAniDir )
void BGAnimation::LoadFromNode( const CString& sDir, const XNode* pNode )
{
bool bUseScroller = false;
pNode->GetAttrValue( "UseScroller", bUseScroller );
if( bUseScroller )
ActorScrollerAutoDeleteChildren::LoadFromNode( sDir, pNode );
else
ActorFrame::LoadFromNode( sDir, pNode );
ActorFrame::LoadFromNode( sDir, pNode );
/* Backwards-compatibility: if a "LengthSeconds" value is present, create a dummy
* actor that sleeps for the given length of time. This will extend GetTweenTimeLeft. */
+2 -2
View File
@@ -3,11 +3,11 @@
#ifndef BGANIMATION_H
#define BGANIMATION_H
#include "ActorScroller.h"
#include "ActorFrame.h"
struct XNode;
class BGAnimation : public ActorScrollerAutoDeleteChildren
class BGAnimation : public ActorFrameAutoDeleteChildren
{
public:
BGAnimation();