Files
itgmania212121/stepmania/src/BannerWithFrame.cpp
T

50 lines
1.2 KiB
C++
Raw Normal View History

2003-02-16 04:01:45 +00:00
#include "global.h"
2002-05-01 19:14:55 +00:00
/*
-----------------------------------------------------------------------------
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"
#include "ThemeManager.h"
2002-05-01 19:14:55 +00:00
BannerWithFrame::BannerWithFrame()
{
2003-03-09 00:55:49 +00:00
m_sprBannerFrame.Load( THEME->GetPathTo("Graphics","BannerWithFrame frame") );
2002-05-01 19:14:55 +00:00
m_Banner.SetCroppedSize( m_sprBannerFrame.GetUnzoomedWidth()-6, m_sprBannerFrame.GetUnzoomedHeight()-6 );
this->AddChild( &m_Banner );
this->AddChild( &m_sprBannerFrame );
}
void BannerWithFrame::LoadFromSongAndNotes( Song* pSong, Notes* pNotes[NUM_PLAYERS] )
{
LoadFromSong( pSong );
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 );
}
2002-07-27 19:29:51 +00:00
void BannerWithFrame::LoadFromCourse( Course* pCourse )
{
m_Banner.LoadFromCourse( pCourse );
}