AutoActor
This commit is contained in:
@@ -11,13 +11,14 @@ HoldGhostArrow::HoldGhostArrow()
|
|||||||
|
|
||||||
void HoldGhostArrow::Load( const CString &sButton, const CString &sElement )
|
void HoldGhostArrow::Load( const CString &sButton, const CString &sElement )
|
||||||
{
|
{
|
||||||
Sprite::Load( NOTESKIN->GetPath(sButton, sElement) ); // not optional
|
m_sprGhost.Load( NOTESKIN->GetPath(sButton, sElement) ); // not optional
|
||||||
this->RunCommands( NOTESKIN->GetMetricA("HoldGhostArrow","OnCommand") );
|
m_sprGhost->RunCommands( NOTESKIN->GetMetricA("HoldGhostArrow","OnCommand") );
|
||||||
|
this->AddChild( m_sprGhost );
|
||||||
}
|
}
|
||||||
|
|
||||||
void HoldGhostArrow::Update( float fDeltaTime )
|
void HoldGhostArrow::Update( float fDeltaTime )
|
||||||
{
|
{
|
||||||
Sprite::Update( fDeltaTime );
|
ActorFrame::Update( fDeltaTime );
|
||||||
|
|
||||||
m_bHoldIsActive = false;
|
m_bHoldIsActive = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,9 +3,10 @@
|
|||||||
#ifndef HOLDGHOSTARROW_H
|
#ifndef HOLDGHOSTARROW_H
|
||||||
#define HOLDGHOSTARROW_H
|
#define HOLDGHOSTARROW_H
|
||||||
|
|
||||||
#include "Sprite.h"
|
#include "ActorFrame.h"
|
||||||
|
#include "AutoActor.h"
|
||||||
|
|
||||||
class HoldGhostArrow : public Sprite
|
class HoldGhostArrow : public ActorFrame
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
HoldGhostArrow();
|
HoldGhostArrow();
|
||||||
@@ -19,6 +20,7 @@ public:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
bool m_bHoldIsActive;
|
bool m_bHoldIsActive;
|
||||||
|
AutoActor m_sprGhost;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user