Separate "number of Actors" from "number of items": allow having more items than

actors.  Derived classes do this by overriding ShiftSubActors and setting m_iNumItems
to something other than m_SubActors.size().
This commit is contained in:
Glenn Maynard
2005-09-27 07:49:12 +00:00
parent 384e26cbec
commit 18f40a2b8f
2 changed files with 44 additions and 11 deletions
+3 -1
View File
@@ -54,13 +54,15 @@ public:
protected:
void PositionItemsAndDrawPrimitives( bool bDrawPrimitives );
virtual void ShiftSubActors( int iDist );
private:
int m_iNumItems;
float m_fCurrentItem; // Item at center of list, usually between 0 and m_SubActors.size(), approaches destination
float m_fDestinationItem;
float m_fSecondsPerItem; // <= 0 means don't scroll
float m_fSecondsPauseBetweenItems;
float m_fNumItemsToDraw;
int m_iFirstSubActorIndex;
bool m_bLoop;
bool m_bFastCatchup;
float m_fPauseCountdownSeconds;