removed some unused, untested and generally dangerous scrolling list code.

This commit is contained in:
Andrew Livy
2003-01-15 21:40:12 +00:00
parent 7f01598bcc
commit 17cfbda874
2 changed files with 1 additions and 34 deletions
-33
View File
@@ -280,39 +280,6 @@ void ScrollingList::Replace(CString sGraphicPath, int ElementNumber)
}
}
void ScrollingList::AddElementAt(int loc, CString sGraphicPath)
{
if(m_iSpriteType == SPRITE_TYPE_SPRITE)
{
Sprite* pNewSprite = new Sprite;
pNewSprite->Load( sGraphicPath );
// m_apSprites.push_back( pNewSprite );
m_apSprites.insert(m_apSprites.begin()+loc, pNewSprite);
}
else
{
CroppedSprite* pNewCSprite = new CroppedSprite;
if(m_iBannerPrefs == BANNERPREFS_DDRFLAT)
{
pNewCSprite->SetCroppedSize( BANNER_WIDTH, BANNER_HEIGHT );
}
else if(m_iBannerPrefs == BANNERPREFS_DDRROT)
{
pNewCSprite->SetCroppedSize( BANNER_WIDTH, BANNER_HEIGHT );
pNewCSprite->SetRotation( DDRROT_ROTATION );
}
else if(m_iBannerPrefs == BANNERPREFS_EZ2)
{
pNewCSprite->SetCroppedSize( EZ2_BANNER_WIDTH*2, EZ2_BANNER_HEIGHT*2 );
}
pNewCSprite->Load( sGraphicPath );
// m_apCSprites.push_back( pNewCSprite );
m_apSprites.insert(m_apSprites.begin()+loc, pNewCSprite);
}
}
/********************************
DrawPrimitives
+1 -1
View File
@@ -29,7 +29,7 @@ public:
virtual void DrawPrimitives();
void Replace(CString sGraphicPath, int ElementNumber);
void AddElementAt(int loc, CString sGraphicPath);
void SetSelection( int iIndex );
int GetSelection();
void SetNumberVisible( int iNumVisibleElements );