2002-11-16 08:07:38 +00:00
|
|
|
#ifndef BANNER_H
|
|
|
|
|
#define BANNER_H
|
2001-11-04 19:34:28 +00:00
|
|
|
/*
|
|
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
File: Banner.h
|
|
|
|
|
|
2002-08-13 23:26:46 +00:00
|
|
|
Desc: The song's banner displayed in SelectSong. Must call SetCroppedSize.
|
2001-11-04 19:34:28 +00:00
|
|
|
|
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
|
2001-11-04 19:34:28 +00:00
|
|
|
-----------------------------------------------------------------------------
|
|
|
|
|
*/
|
2001-11-03 10:52:42 +00:00
|
|
|
|
2002-04-16 17:31:00 +00:00
|
|
|
#include "CroppedSprite.h"
|
2001-11-03 10:52:42 +00:00
|
|
|
#include "Song.h"
|
2002-06-14 22:25:22 +00:00
|
|
|
class Course;
|
|
|
|
|
|
2001-11-03 10:52:42 +00:00
|
|
|
|
2002-04-16 17:31:00 +00:00
|
|
|
class Banner : public CroppedSprite
|
2001-11-03 10:52:42 +00:00
|
|
|
{
|
|
|
|
|
public:
|
2002-09-05 03:45:07 +00:00
|
|
|
Banner();
|
2003-01-02 01:39:58 +00:00
|
|
|
virtual ~Banner() { }
|
2002-04-16 17:31:00 +00:00
|
|
|
|
2002-12-30 02:43:52 +00:00
|
|
|
virtual bool Load( RageTextureID ID );
|
2001-11-03 10:52:42 +00:00
|
|
|
|
2002-05-19 01:59:48 +00:00
|
|
|
virtual void Update( float fDeltaTime );
|
|
|
|
|
|
2003-01-02 01:39:58 +00:00
|
|
|
void LoadFromSong( Song* pSong ); // NULL means no song
|
|
|
|
|
void LoadFromGroup( CString sGroupName );
|
|
|
|
|
void LoadFromCourse( Course* pCourse );
|
|
|
|
|
void LoadRoulette();
|
|
|
|
|
void LoadFallback();
|
2002-05-19 01:59:48 +00:00
|
|
|
|
2002-12-16 07:33:32 +00:00
|
|
|
void SetScrolling( bool bScroll, float Percent = 0);
|
2003-01-02 01:39:58 +00:00
|
|
|
bool IsScrolling() const { return m_bScrolling; }
|
|
|
|
|
float ScrollingPercent() const { return m_fPercentScrolling; }
|
2002-05-27 18:36:01 +00:00
|
|
|
|
2002-05-19 01:59:48 +00:00
|
|
|
protected:
|
|
|
|
|
bool m_bScrolling;
|
|
|
|
|
float m_fPercentScrolling;
|
2001-11-03 10:52:42 +00:00
|
|
|
};
|
2002-11-16 08:07:38 +00:00
|
|
|
|
|
|
|
|
#endif
|