BGAnimation is no longer used for scrollers; use XML.
This commit is contained in:
@@ -149,12 +149,7 @@ void BGAnimation::LoadFromAniDir( const CString &_sAniDir )
|
|||||||
|
|
||||||
void BGAnimation::LoadFromNode( const CString& sDir, const XNode* pNode )
|
void BGAnimation::LoadFromNode( const CString& sDir, const XNode* pNode )
|
||||||
{
|
{
|
||||||
bool bUseScroller = false;
|
ActorFrame::LoadFromNode( sDir, pNode );
|
||||||
pNode->GetAttrValue( "UseScroller", bUseScroller );
|
|
||||||
if( bUseScroller )
|
|
||||||
ActorScrollerAutoDeleteChildren::LoadFromNode( sDir, pNode );
|
|
||||||
else
|
|
||||||
ActorFrame::LoadFromNode( sDir, pNode );
|
|
||||||
|
|
||||||
/* Backwards-compatibility: if a "LengthSeconds" value is present, create a dummy
|
/* Backwards-compatibility: if a "LengthSeconds" value is present, create a dummy
|
||||||
* actor that sleeps for the given length of time. This will extend GetTweenTimeLeft. */
|
* actor that sleeps for the given length of time. This will extend GetTweenTimeLeft. */
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
#ifndef BGANIMATION_H
|
#ifndef BGANIMATION_H
|
||||||
#define BGANIMATION_H
|
#define BGANIMATION_H
|
||||||
|
|
||||||
#include "ActorScroller.h"
|
#include "ActorFrame.h"
|
||||||
|
|
||||||
struct XNode;
|
struct XNode;
|
||||||
|
|
||||||
class BGAnimation : public ActorScrollerAutoDeleteChildren
|
class BGAnimation : public ActorFrameAutoDeleteChildren
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
BGAnimation();
|
BGAnimation();
|
||||||
|
|||||||
Reference in New Issue
Block a user