Files
itgmania212121/stepmania/src/Banner.h
T

54 lines
1.3 KiB
C++
Raw Normal View History

#ifndef BANNER_H
#define BANNER_H
/*
-----------------------------------------------------------------------------
File: Banner.h
Desc: The song's banner displayed in SelectSong. Must call SetCroppedSize.
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-03 10:52:42 +00:00
#include "Sprite.h"
#include "RageTexture.h"
class Song;
2002-06-14 22:25:22 +00:00
class Course;
2003-08-31 22:37:09 +00:00
class Character;
2001-11-03 10:52:42 +00:00
class Banner : public Sprite
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
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
2003-03-09 00:55:49 +00:00
void LoadAllMusic();
2003-01-02 01:39:58 +00:00
void LoadFromGroup( CString sGroupName );
void LoadFromCourse( Course* pCourse );
2003-08-31 22:37:09 +00:00
void LoadCardFromCharacter( Character* pCharacter );
void LoadIconFromCharacter( Character* pCharacter );
void LoadTABreakFromCharacter( Character* pCharacter );
2003-01-02 01:39:58 +00:00
void LoadRoulette();
void LoadRandom();
2003-01-02 01:39:58 +00:00
void LoadFallback();
2002-05-19 01:59:48 +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
2003-04-19 22:11:08 +00:00
static RageTextureID BannerTex( RageTextureID ID );
2002-05-19 01:59:48 +00:00
protected:
2002-05-19 01:59:48 +00:00
bool m_bScrolling;
float m_fPercentScrolling;
2001-11-03 10:52:42 +00:00
};
#endif