Files
itgmania212121/stepmania/src/BannerWithFrame.cpp
T

50 lines
1.2 KiB
C++

#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"
#include "ThemeManager.h"
BannerWithFrame::BannerWithFrame()
{
m_sprBannerFrame.Load( THEME->GetPathTo("Graphics","evaluation banner frame") );
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 );
}
void BannerWithFrame::LoadFromSong( Song* pSong )
{
m_Banner.LoadFromSong( pSong );
}
void BannerWithFrame::LoadFromGroup( CString sGroupName )
{
m_Banner.LoadFromGroup( sGroupName );
}
void BannerWithFrame::LoadFromCourse( Course* pCourse )
{
m_Banner.LoadFromCourse( pCourse );
}