add 3D scrolling to ActorScroller

generalize BGAnimation, BGAnimationLayer to eliminate shared code with ActorFrame
This commit is contained in:
Chris Danford
2004-02-01 03:14:37 +00:00
parent 66a121877c
commit 69fd514b68
20 changed files with 324 additions and 262 deletions
+8 -1
View File
@@ -339,8 +339,15 @@ Screen* Screen::Create( CString sClassName )
CString sName = sClassName;
if( parts.size() == 2 )
{
sClassName = parts[1];
sName = parts[0];
sClassName = parts[1];
}
// This is the new, preferred method for specifying the screen class.
// Look up the class in the metrics group sName
else
{
if( THEME->HasMetric(sClassName,"Class") )
sClassName = THEME->GetMetric(sClassName,"Class");
}
#define IF_RETURN(X) if(sClassName.CompareNoCase(#X)==0) return new X(sName);