This commit is contained in:
Glenn Maynard
2005-07-06 01:42:01 +00:00
parent 3a304e251c
commit b90e28f084
2 changed files with 14 additions and 0 deletions
+13
View File
@@ -3,7 +3,10 @@
#include "ThemeManager.h"
#include "MemoryCardManager.h"
#include "RageUtil.h"
#include "XmlFile.h"
#include "ActorUtil.h"
REGISTER_ACTOR_CLASS( MemoryCardDisplay )
MemoryCardDisplay::MemoryCardDisplay()
{
@@ -25,6 +28,16 @@ void MemoryCardDisplay::Load( PlayerNumber pn )
}
}
void MemoryCardDisplay::LoadFromNode( const CString& sDir, const XNode* pNode )
{
PlayerNumber pn;
pNode->GetAttrValue("PlayerNumber", (int&) pn );
Load( pn );
ActorFrame::LoadFromNode( sDir, pNode );
}
void MemoryCardDisplay::Update( float fDelta )
{
MemoryCardState newMcs = MEMCARDMAN->GetCardState(m_PlayerNumber);