AutoActor

This commit is contained in:
Glenn Maynard
2005-07-06 04:03:55 +00:00
parent c0f9b46d75
commit 18615b2a17
2 changed files with 8 additions and 5 deletions
+4 -3
View File
@@ -11,13 +11,14 @@ HoldGhostArrow::HoldGhostArrow()
void HoldGhostArrow::Load( const CString &sButton, const CString &sElement )
{
Sprite::Load( NOTESKIN->GetPath(sButton, sElement) ); // not optional
this->RunCommands( NOTESKIN->GetMetricA("HoldGhostArrow","OnCommand") );
m_sprGhost.Load( NOTESKIN->GetPath(sButton, sElement) ); // not optional
m_sprGhost->RunCommands( NOTESKIN->GetMetricA("HoldGhostArrow","OnCommand") );
this->AddChild( m_sprGhost );
}
void HoldGhostArrow::Update( float fDeltaTime )
{
Sprite::Update( fDeltaTime );
ActorFrame::Update( fDeltaTime );
m_bHoldIsActive = false;
}
+4 -2
View File
@@ -3,9 +3,10 @@
#ifndef HOLDGHOSTARROW_H
#define HOLDGHOSTARROW_H
#include "Sprite.h"
#include "ActorFrame.h"
#include "AutoActor.h"
class HoldGhostArrow : public Sprite
class HoldGhostArrow : public ActorFrame
{
public:
HoldGhostArrow();
@@ -19,6 +20,7 @@ public:
private:
bool m_bHoldIsActive;
AutoActor m_sprGhost;
};