LoadOptionIcon -> SetOptionIcon
This commit is contained in:
@@ -279,9 +279,7 @@ void OptionRow::AfterImportOptions()
|
||||
|
||||
// init row icons
|
||||
FOREACH_HumanPlayer( p )
|
||||
{
|
||||
LoadOptionIcon( p, "" );
|
||||
}
|
||||
SetOptionIcon( p, "" );
|
||||
|
||||
// If the items will go off the edge of the screen, then re-init with the "long row" style.
|
||||
{
|
||||
@@ -645,7 +643,7 @@ void OptionRow::UpdateEnabledDisabled()
|
||||
}
|
||||
}
|
||||
|
||||
void OptionRow::LoadOptionIcon( PlayerNumber pn, const CString &sText )
|
||||
void OptionRow::SetOptionIcon( PlayerNumber pn, const CString &sText )
|
||||
{
|
||||
m_OptionIcons[pn].Set( pn, sText, false );
|
||||
}
|
||||
|
||||
@@ -92,7 +92,7 @@ public:
|
||||
void LoadMetrics( const CString &sType );
|
||||
void LoadNormal( const OptionRowDefinition &def, OptionRowHandler *pHand, bool bFirstItemGoesDown );
|
||||
void LoadExit();
|
||||
void LoadOptionIcon( PlayerNumber pn, const CString &sText );
|
||||
void SetOptionIcon( PlayerNumber pn, const CString &sText );
|
||||
|
||||
CString GetRowTitle() const;
|
||||
|
||||
|
||||
@@ -195,9 +195,9 @@ void ScreenOptions::Init()
|
||||
}
|
||||
}
|
||||
|
||||
void ScreenOptions::LoadOptionIcon( PlayerNumber pn, int iRow, CString sText )
|
||||
void ScreenOptions::SetOptionIcon( PlayerNumber pn, int iRow, CString sText )
|
||||
{
|
||||
m_pRows[iRow]->LoadOptionIcon( pn, sText );
|
||||
m_pRows[iRow]->SetOptionIcon( pn, sText );
|
||||
}
|
||||
|
||||
void ScreenOptions::InitMenu( const vector<OptionRowDefinition> &vDefs, const vector<OptionRowHandler*> &vHands )
|
||||
|
||||
@@ -81,7 +81,7 @@ protected:
|
||||
bool AllAreOnLastRow() const;
|
||||
|
||||
protected: // derived classes need access to these
|
||||
void LoadOptionIcon( PlayerNumber pn, int iRow, CString sText );
|
||||
void SetOptionIcon( PlayerNumber pn, int iRow, CString sText );
|
||||
enum Navigation { NAV_THREE_KEY, NAV_THREE_KEY_MENU, NAV_FIVE_KEY, NAV_TOGGLE_THREE_KEY, NAV_TOGGLE_FIVE_KEY };
|
||||
void SetNavigation( Navigation nav ) { m_OptionsNavigation = nav; }
|
||||
void SetInputMode( InputMode im ) { m_InputMode = im; }
|
||||
|
||||
@@ -186,7 +186,7 @@ void ScreenOptionsMaster::RefreshIcons( int r, PlayerNumber pn )
|
||||
if( def.m_bOneChoiceForAllPlayers )
|
||||
sIcon = "";
|
||||
|
||||
LoadOptionIcon( pn, r, sIcon );
|
||||
SetOptionIcon( pn, r, sIcon );
|
||||
}
|
||||
|
||||
void ScreenOptionsMaster::HandleScreenMessage( const ScreenMessage SM )
|
||||
|
||||
Reference in New Issue
Block a user