Add Banner::BannerTex().
This commit is contained in:
@@ -18,6 +18,12 @@
|
|||||||
#include "Song.h"
|
#include "Song.h"
|
||||||
#include "RageTextureManager.h"
|
#include "RageTextureManager.h"
|
||||||
|
|
||||||
|
RageTextureID Banner::BannerTex( RageTextureID ID )
|
||||||
|
{
|
||||||
|
ID.bHotPinkColorKey = true;
|
||||||
|
ID.bDither = true;
|
||||||
|
return ID;
|
||||||
|
}
|
||||||
|
|
||||||
Banner::Banner()
|
Banner::Banner()
|
||||||
{
|
{
|
||||||
@@ -29,12 +35,12 @@ Banner::Banner()
|
|||||||
TEXTUREMAN->CacheTexture( THEME->GetPathToG("Banner roulette") );
|
TEXTUREMAN->CacheTexture( THEME->GetPathToG("Banner roulette") );
|
||||||
TEXTUREMAN->CacheTexture( THEME->GetPathToG("Banner random") );
|
TEXTUREMAN->CacheTexture( THEME->GetPathToG("Banner random") );
|
||||||
}
|
}
|
||||||
|
#include "RageLog.h"
|
||||||
|
|
||||||
bool Banner::Load( RageTextureID ID )
|
bool Banner::Load( RageTextureID ID )
|
||||||
{
|
{
|
||||||
/* Song banners often have HOT PINK color keys. */
|
/* Song banners often have HOT PINK color keys. */
|
||||||
ID.bHotPinkColorKey = true;
|
ID = BannerTex(ID);
|
||||||
ID.bDither = true;
|
|
||||||
|
|
||||||
m_fPercentScrolling = 0;
|
m_fPercentScrolling = 0;
|
||||||
m_bScrolling = false;
|
m_bScrolling = false;
|
||||||
|
|||||||
@@ -12,6 +12,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "CroppedSprite.h"
|
#include "CroppedSprite.h"
|
||||||
|
#include "RageTextureManager.h"
|
||||||
class Song;
|
class Song;
|
||||||
class Course;
|
class Course;
|
||||||
|
|
||||||
@@ -38,6 +39,8 @@ public:
|
|||||||
bool IsScrolling() const { return m_bScrolling; }
|
bool IsScrolling() const { return m_bScrolling; }
|
||||||
float ScrollingPercent() const { return m_fPercentScrolling; }
|
float ScrollingPercent() const { return m_fPercentScrolling; }
|
||||||
|
|
||||||
|
static RageTextureID BannerTex( RageTextureID ID );
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool m_bScrolling;
|
bool m_bScrolling;
|
||||||
float m_fPercentScrolling;
|
float m_fPercentScrolling;
|
||||||
|
|||||||
Reference in New Issue
Block a user