Exemple #1
0
void Banner::CacheGlobalBanners()
{
	if( PREFSMAN->m_BannerCache == PrefsManager::BNCACHE_OFF )
		return;

	TEXTUREMAN->CacheTexture( SongBannerTexture(THEME->GetPathG("Banner","all music")) );
	TEXTUREMAN->CacheTexture( SongBannerTexture(THEME->GetPathG("Common","fallback banner")) );
	TEXTUREMAN->CacheTexture( SongBannerTexture(THEME->GetPathG("Banner","roulette")) );
	TEXTUREMAN->CacheTexture( SongBannerTexture(THEME->GetPathG("Banner","random")) );
	TEXTUREMAN->CacheTexture( SongBannerTexture(THEME->GetPathG("Banner","Mode")) );
}
Exemple #2
0
Banner::Banner()
{
	SCROLL_RANDOM.Refresh();
	SCROLL_ROULETTE.Refresh();

	m_bScrolling = false;
	m_fPercentScrolling = 0;

	if( PREFSMAN->m_BannerCache != PrefsManager::BNCACHE_OFF )
	{
		RageTextureID ID = THEME->GetPathG("Banner","all music");
		SongBannerTexture( ID );
		TEXTUREMAN->CacheTexture( ID );

		ID = THEME->GetPathG("Common","fallback banner");
		SongBannerTexture( ID );
		TEXTUREMAN->CacheTexture( ID );

		ID = THEME->GetPathG("Banner","roulette");
		SongBannerTexture( ID );
		TEXTUREMAN->CacheTexture( ID );

		ID = THEME->GetPathG("Banner","random");
		SongBannerTexture( ID );
		TEXTUREMAN->CacheTexture( ID );

		ID = THEME->GetPathG("Banner","Sort");
		SongBannerTexture( ID );
		TEXTUREMAN->CacheTexture( ID );

		ID = THEME->GetPathG("Banner","Mode");
		SongBannerTexture( ID );
		TEXTUREMAN->CacheTexture( ID );
	}
}
Exemple #3
0
bool Banner::Load( RageTextureID ID )
{
	if( ID.filename == "" )
		ID = THEME->GetPathG("Common","fallback banner");

	ID = SongBannerTexture(ID);

	m_fPercentScrolling = 0;
	m_bScrolling = false;

	TEXTUREMAN->DisableOddDimensionWarning();
	TEXTUREMAN->VolatileTexture( ID );
	bool ret = Sprite::Load( ID );
	TEXTUREMAN->EnableOddDimensionWarning();

	return ret;
};
Exemple #4
0
// Ugly: if sIsBanner is false, we're actually loading something other than a banner.
void Banner::Load( RageTextureID ID, bool bIsBanner )
{
	if( ID.filename == "" )
	{
		LoadFallback();
		return;
	}

	if( bIsBanner )
		ID = SongBannerTexture(ID);

	m_fPercentScrolling = 0;
	m_bScrolling = false;

	TEXTUREMAN->DisableOddDimensionWarning();
	TEXTUREMAN->VolatileTexture( ID );
	Sprite::Load( ID );
	TEXTUREMAN->EnableOddDimensionWarning();
};