store a current NoteSkin in NoteSkinManager so that NoteSkin elements can use NOTESKIN:GetPath()

This commit is contained in:
Chris Danford
2005-04-18 01:19:56 +00:00
parent 299e0a8f1a
commit abac6af93b
17 changed files with 281 additions and 204 deletions
+3 -4
View File
@@ -7,7 +7,7 @@ GhostArrow::GhostArrow()
{
}
void GhostArrow::Load( CString sNoteSkin, CString sButton, CString sElement )
void GhostArrow::Load( const CString &sButton, const CString &sElement )
{
FOREACH_TapNoteScore( i )
{
@@ -17,7 +17,7 @@ void GhostArrow::Load( CString sNoteSkin, CString sButton, CString sElement )
ASSERT( !m_spr[i].IsLoaded() ); // don't double-load
m_spr[i].Load( NOTESKIN->GetPathToFromNoteSkinAndButton(sNoteSkin, sButton, sFullElement) );
m_spr[i].Load( NOTESKIN->GetPath(sButton, sFullElement) );
m_spr[i]->SetHidden( true );
this->AddChild( m_spr[i] );
}
@@ -26,8 +26,7 @@ void GhostArrow::Load( CString sNoteSkin, CString sButton, CString sElement )
{
CString sJudge = TapNoteScoreToString( i );
CString sCommand = Capitalize(sJudge)+"Command";
apActorCommands p( new ActorCommands(NOTESKIN->GetMetric(sNoteSkin,m_sName,sCommand)) );
m_acScoreCommand[i] = p;
m_acScoreCommand[i] = NOTESKIN->GetMetricA(m_sName,sCommand);
}
}