make calls to THEME->GetPathTo() more concise

This commit is contained in:
Chris Danford
2003-04-12 17:39:27 +00:00
parent 625b1beb04
commit 448bdc7b6e
96 changed files with 508 additions and 513 deletions
+5 -5
View File
@@ -19,25 +19,25 @@
ScrollBar::ScrollBar()
{
m_sprBackground.Load( THEME->GetPathTo("Graphics","ScrollBar parts 1x3") );
m_sprBackground.Load( THEME->GetPathToG("ScrollBar parts 1x3") );
m_sprBackground.StopAnimating();
m_sprBackground.SetState( 1 );
this->AddChild( &m_sprBackground );
m_sprScrollThumbPart1.Load( THEME->GetPathTo("Graphics","ScrollBar thumb") );
m_sprScrollThumbPart1.Load( THEME->GetPathToG("ScrollBar thumb") );
m_sprScrollThumbPart1.StopAnimating();
this->AddChild( &m_sprScrollThumbPart1 );
m_sprScrollThumbPart2.Load( THEME->GetPathTo("Graphics","ScrollBar thumb") );
m_sprScrollThumbPart2.Load( THEME->GetPathToG("ScrollBar thumb") );
m_sprScrollThumbPart2.StopAnimating();
this->AddChild( &m_sprScrollThumbPart2 );
m_sprTopButton.Load( THEME->GetPathTo("Graphics","ScrollBar parts 1x3") );
m_sprTopButton.Load( THEME->GetPathToG("ScrollBar parts 1x3") );
m_sprTopButton.StopAnimating();
m_sprTopButton.SetState( 0 );
this->AddChild( &m_sprTopButton );
m_sprBottomButton.Load( THEME->GetPathTo("Graphics","ScrollBar parts 1x3") );
m_sprBottomButton.Load( THEME->GetPathToG("ScrollBar parts 1x3") );
m_sprBottomButton.StopAnimating();
m_sprBottomButton.SetState( 2 );
this->AddChild( &m_sprBottomButton );