When letting SelectMusic choose a Style, don't force that it be set by a proceeding menu.
"ALL_STEPS_TYPES_IN_ONE_LIST" is not the best name. It should probably be called "AUTO_SET_STYLE", or something similar.
This commit is contained in:
@@ -104,6 +104,13 @@ void ScreenSelectMusic::Init()
|
|||||||
m_TexturePreload.Load( Banner::SongBannerTexture(THEME->GetPathG("Banner","mode")) );
|
m_TexturePreload.Load( Banner::SongBannerTexture(THEME->GetPathG("Banner","mode")) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( CommonMetrics::ALL_STEPS_TYPES_IN_ONE_LIST )
|
||||||
|
{
|
||||||
|
vector<StepsType> vst;
|
||||||
|
GAMEMAN->GetStepsTypesForGame( GAMESTATE->m_pCurGame, vst );
|
||||||
|
const Style *pStyle = GAMEMAN->GetFirstCompatibleStyle( GAMESTATE->m_pCurGame, GAMESTATE->GetNumSidesJoined(), vst[0] );
|
||||||
|
GAMESTATE->m_pCurStyle.Set( pStyle );
|
||||||
|
}
|
||||||
if( GAMESTATE->GetCurrentStyle() == NULL )
|
if( GAMESTATE->GetCurrentStyle() == NULL )
|
||||||
RageException::Throw( "The Style has not been set. A theme must set the Style before loading ScreenSelectMusic." );
|
RageException::Throw( "The Style has not been set. A theme must set the Style before loading ScreenSelectMusic." );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user