34 lines
832 B
C++
34 lines
832 B
C++
#include "stdafx.h"
|
|||
|
|
/*
|
||
|
|
-----------------------------------------------------------------------------
|
||
|
|
Class: BannerWithFrame
|
||
|
|
|
||
|
|
Desc: See header.
|
||
|
|
|
||
|
|
Copyright (c) 2001-2002 by the persons listed below. All rights reserved.
|
||
|
|
Chris Danford
|
||
|
|
-----------------------------------------------------------------------------
|
||
|
|
*/
|
||
|
|
|
||
|
|
#include "BannerWithFrame.h"
|
||
|
|
#include "RageUtil.h"
|
||
|
|
#include "GameConstantsAndTypes.h"
|
||
|
|
#include "ThemeManager.h"
|
||
|
|
#include "RageLog.h"
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
BannerWithFrame::BannerWithFrame()
|
||
|
|
{
|
||
|
|
m_sprBannerFrame.Load( THEME->GetPathTo(GRAPHIC_RESULTS_BANNER_FRAME) );
|
||
|
|
m_Banner.SetCroppedSize( m_sprBannerFrame.GetUnzoomedWidth()-6, m_sprBannerFrame.GetUnzoomedHeight()-6 );
|
||
|
|
|
||
|
|
this->AddActor( &m_Banner );
|
||
|
|
this->AddActor( &m_sprBannerFrame );
|
||
|
|
}
|
||
|
|
|
||
|
|
void BannerWithFrame::LoadFromSong( Song* pSong )
|
||
|
|
{
|
||
|
|
m_Banner.LoadFromSong( pSong );
|
||
|
|
}
|