Files
itgmania212121/stepmania/src/BannerWithFrame.cpp
T

39 lines
936 B
C++
Raw Normal View History

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"
#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 );
}
2002-06-14 22:25:22 +00:00
void BannerWithFrame::LoadFromGroup( CString sGroupName )
{
m_Banner.LoadFromGroup( sGroupName );
}