#include "stdafx.h" /* ----------------------------------------------------------------------------- Class: BannerWithFrame Desc: See header. Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved. Chris Danford ----------------------------------------------------------------------------- */ #include "BannerWithFrame.h" #include "RageUtil.h" #include "GameConstantsAndTypes.h" #include "PrefsManager.h" #include "RageLog.h" BannerWithFrame::BannerWithFrame() { m_sprBannerFrame.Load( THEME->GetPathTo(GRAPHIC_EVALUATION_BANNER_FRAME) ); m_Banner.SetCroppedSize( m_sprBannerFrame.GetUnzoomedWidth()-6, m_sprBannerFrame.GetUnzoomedHeight()-6 ); this->AddSubActor( &m_Banner ); this->AddSubActor( &m_sprBannerFrame ); for( int p=0; pAddSubActor( &m_Icon[p] ); } } void BannerWithFrame::LoadFromSongAndNotes( Song* pSong, Notes* pNotes[NUM_PLAYERS] ) { LoadFromSong( pSong ); for( int p=0; p