AutoActor
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user