2002-05-01 19:14:55 +00:00
|
|
|
#include "stdafx.h"
|
|
|
|
|
/*
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
Class: BannerWithFrame
|
|
|
|
|
|
|
|
|
|
Desc: See header.
|
|
|
|
|
|
2002-05-19 01:59:48 +00:00
|
|
|
Copyright (c) 2001-2002 by the person(s) listed below. All rights reserved.
|
2002-05-01 19:14:55 +00:00
|
|
|
Chris Danford
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#include "BannerWithFrame.h"
|
|
|
|
|
#include "RageUtil.h"
|
|
|
|
|
#include "GameConstantsAndTypes.h"
|
2002-07-23 01:41:40 +00:00
|
|
|
#include "PrefsManager.h"
|
2002-05-01 19:14:55 +00:00
|
|
|
#include "RageLog.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BannerWithFrame::BannerWithFrame()
|
|
|
|
|
{
|
2002-06-24 22:04:31 +00:00
|
|
|
m_sprBannerFrame.Load( THEME->GetPathTo(GRAPHIC_EVALUATION_BANNER_FRAME) );
|
2002-05-01 19:14:55 +00:00
|
|
|
m_Banner.SetCroppedSize( m_sprBannerFrame.GetUnzoomedWidth()-6, m_sprBannerFrame.GetUnzoomedHeight()-6 );
|
|
|
|
|
|
2002-07-23 01:41:40 +00:00
|
|
|
this->AddSubActor( &m_Banner );
|
|
|
|
|
this->AddSubActor( &m_sprBannerFrame );
|
2002-05-01 19:14:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void BannerWithFrame::LoadFromSong( Song* pSong )
|
|
|
|
|
{
|
|
|
|
|
m_Banner.LoadFromSong( pSong );
|
|
|
|
|
}
|
2002-06-14 22:25:22 +00:00
|
|
|
|
|
|
|
|
void BannerWithFrame::LoadFromGroup( CString sGroupName )
|
|
|
|
|
{
|
|
|
|
|
m_Banner.LoadFromGroup( sGroupName );
|
|
|
|
|
}
|