Style.
This commit is contained in:
@@ -226,7 +226,7 @@ bool MusicWheel::SelectSection( const RString & SectionName )
|
|||||||
|
|
||||||
bool MusicWheel::SelectSong( const Song *p )
|
bool MusicWheel::SelectSong( const Song *p )
|
||||||
{
|
{
|
||||||
if(p == NULL)
|
if( p == NULL )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
unsigned i;
|
unsigned i;
|
||||||
@@ -254,7 +254,7 @@ bool MusicWheel::SelectSong( const Song *p )
|
|||||||
|
|
||||||
bool MusicWheel::SelectCourse( const Course *p )
|
bool MusicWheel::SelectCourse( const Course *p )
|
||||||
{
|
{
|
||||||
if(p == NULL)
|
if( p == NULL )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
unsigned i;
|
unsigned i;
|
||||||
@@ -310,7 +310,7 @@ bool MusicWheel::SelectModeMenuItem()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void MusicWheel::GetSongList(vector<Song*> &arraySongs, SortOrder so, const RString &sPreferredGroup )
|
void MusicWheel::GetSongList( vector<Song*> &arraySongs, SortOrder so, const RString &sPreferredGroup )
|
||||||
{
|
{
|
||||||
vector<Song*> apAllSongs;
|
vector<Song*> apAllSongs;
|
||||||
switch( so )
|
switch( so )
|
||||||
@@ -394,7 +394,7 @@ void MusicWheel::BuildWheelItemDatas( vector<WheelItemData *> &arrayWheelItemDat
|
|||||||
wid.m_pAction = HiddenPtr<GameCommand>( new GameCommand );
|
wid.m_pAction = HiddenPtr<GameCommand>( new GameCommand );
|
||||||
wid.m_pAction->m_sName = vsNames[i];
|
wid.m_pAction->m_sName = vsNames[i];
|
||||||
wid.m_pAction->Load( i, ParseCommands(CHOICE.GetValue(vsNames[i])) );
|
wid.m_pAction->Load( i, ParseCommands(CHOICE.GetValue(vsNames[i])) );
|
||||||
wid.m_sLabel = WHEEL_TEXT(vsNames[i]);
|
wid.m_sLabel = WHEEL_TEXT( vsNames[i] );
|
||||||
|
|
||||||
if( !wid.m_pAction->IsPlayable() )
|
if( !wid.m_pAction->IsPlayable() )
|
||||||
continue;
|
continue;
|
||||||
@@ -422,7 +422,7 @@ void MusicWheel::BuildWheelItemDatas( vector<WheelItemData *> &arrayWheelItemDat
|
|||||||
///////////////////////////////////
|
///////////////////////////////////
|
||||||
vector<Song*> arraySongs;
|
vector<Song*> arraySongs;
|
||||||
|
|
||||||
GetSongList(arraySongs, so, GAMESTATE->m_sPreferredSongGroup );
|
GetSongList( arraySongs, so, GAMESTATE->m_sPreferredSongGroup );
|
||||||
|
|
||||||
bool bUseSections = true;
|
bool bUseSections = true;
|
||||||
|
|
||||||
@@ -700,9 +700,7 @@ void MusicWheel::BuildWheelItemDatas( vector<WheelItemData *> &arrayWheelItemDat
|
|||||||
}
|
}
|
||||||
|
|
||||||
if( arrayWheelItemDatas.empty() )
|
if( arrayWheelItemDatas.empty() )
|
||||||
{
|
|
||||||
arrayWheelItemDatas.push_back( new WheelItemData(TYPE_SECTION, NULL, "- EMPTY -", NULL, RageColor(1,0,0,1)) );
|
arrayWheelItemDatas.push_back( new WheelItemData(TYPE_SECTION, NULL, "- EMPTY -", NULL, RageColor(1,0,0,1)) );
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void MusicWheel::UpdateSwitch()
|
void MusicWheel::UpdateSwitch()
|
||||||
|
|||||||
Reference in New Issue
Block a user