do slow loads in ScreenOptions::Init, not ScreenOptions::InitMenu
This commit is contained in:
@@ -193,6 +193,8 @@ void ScreenOptions::Init()
|
||||
m_sprDisqualify[p]->SetDrawOrder( 2 );
|
||||
m_framePage.AddChild( m_sprDisqualify[p] );
|
||||
}
|
||||
|
||||
m_OptionRowType.Load( m_sName );
|
||||
}
|
||||
|
||||
void ScreenOptions::SetOptionIcon( PlayerNumber pn, int iRow, CString sText, GameCommand &gc )
|
||||
@@ -206,8 +208,6 @@ void ScreenOptions::InitMenu( const vector<OptionRowDefinition> &vDefs, const ve
|
||||
|
||||
ASSERT( vDefs.size() == vHands.size() );
|
||||
|
||||
m_OptionRowType.Load( m_sName );
|
||||
|
||||
for( unsigned r=0; r<vDefs.size(); r++ ) // foreach row
|
||||
{
|
||||
m_pRows.push_back( new OptionRow(&m_OptionRowType) );
|
||||
|
||||
Reference in New Issue
Block a user