Files
itgmania212121/stepmania/src/Banner.h
T

72 lines
2.3 KiB
C++
Raw Normal View History

2004-06-01 00:53:06 +00:00
/* Banner - The song's banner displayed in SelectSong. */
#ifndef BANNER_H
#define BANNER_H
2001-11-03 10:52:42 +00:00
#include "Sprite.h"
2004-06-01 00:53:06 +00:00
#include "RageTextureID.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();
void LoadMode();
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
static void CacheGlobalBanners();
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:
2002-05-19 01:59:48 +00:00
bool m_bScrolling;
float m_fPercentScrolling;
2001-11-03 10:52:42 +00:00
};
#endif
2004-06-01 00:53:06 +00:00
/*
* (c) 2001-2004 Chris Danford
* All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, and/or sell copies of the Software, and to permit persons to
* whom the Software is furnished to do so, provided that the above
* copyright notice(s) and this permission notice appear in all copies of
* the Software and that both the above copyright notice(s) and this
* permission notice appear in supporting documentation.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
* THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS
* INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT
* OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
* OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
* OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/