Various bug fixes. See changelog.

This commit is contained in:
Chris Danford
2002-07-23 01:41:40 +00:00
parent 83d773d239
commit 317c352a9b
129 changed files with 3744 additions and 1949 deletions
+8 -8
View File
@@ -11,7 +11,7 @@
*/
#include "ScrollBar.h"
#include "ThemeManager.h"
#include "PrefsManager.h"
#include "GameConstantsAndTypes.h"
@@ -21,27 +21,27 @@ ScrollBar::ScrollBar()
{
m_sprBackground.Load( THEME->GetPathTo(GRAPHIC_SELECT_MUSIC_SCROLLBAR) );
m_sprBackground.StopAnimating();
m_sprBackground.SetState( 2 );
m_sprBackground.SetState( 1 );
m_sprBackground.SetZoomY( BAR_HEIGHT/m_sprBackground.GetUnzoomedHeight() );
this->AddActor( &m_sprBackground );
this->AddSubActor( &m_sprBackground );
m_sprTopButton.Load( THEME->GetPathTo(GRAPHIC_SELECT_MUSIC_SCROLLBAR) );
m_sprTopButton.StopAnimating();
m_sprTopButton.SetState( 0 );
m_sprTopButton.SetY( -BAR_HEIGHT/2 );
this->AddActor( &m_sprTopButton );
this->AddSubActor( &m_sprTopButton );
m_sprBottomButton.Load( THEME->GetPathTo(GRAPHIC_SELECT_MUSIC_SCROLLBAR) );
m_sprBottomButton.StopAnimating();
m_sprBottomButton.SetState( 3 );
m_sprBottomButton.SetState( 2 );
m_sprBottomButton.SetY( BAR_HEIGHT/2 );
this->AddActor( &m_sprBottomButton );
this->AddSubActor( &m_sprBottomButton );
m_sprScrollThumb.Load( THEME->GetPathTo(GRAPHIC_SELECT_MUSIC_SCROLLBAR) );
m_sprScrollThumb.StopAnimating();
m_sprScrollThumb.SetState( 1 );
m_sprScrollThumb.SetState( 3 );
m_sprScrollThumb.SetY( CENTER_Y );
this->AddActor( &m_sprScrollThumb );
this->AddSubActor( &m_sprScrollThumb );
}
void ScrollBar::SetPercentage( float fPercentageFromTop )