Store OptionRow metrics in the screen to make it easier for a screen to customize these
This commit is contained in:
@@ -103,7 +103,6 @@ ScreenOptions::ScreenOptions( CString sClassName ) : ScreenWithMenuElements(sCla
|
|||||||
SHOW_EXIT_ROW (m_sName,"ShowExitRow"),
|
SHOW_EXIT_ROW (m_sName,"ShowExitRow"),
|
||||||
SEPARATE_EXIT_ROW (m_sName,"SeparateExitRow"),
|
SEPARATE_EXIT_ROW (m_sName,"SeparateExitRow"),
|
||||||
SEPARATE_EXIT_ROW_Y (m_sName,"SeparateExitRowY"),
|
SEPARATE_EXIT_ROW_Y (m_sName,"SeparateExitRowY"),
|
||||||
OPTION_ROW_TYPE (m_sName,"OptionRowType"),
|
|
||||||
SHOW_EXPLANATIONS (m_sName,"ShowExplanations"),
|
SHOW_EXPLANATIONS (m_sName,"ShowExplanations"),
|
||||||
THEME_TITLES (m_sName,"ThemeTitles")
|
THEME_TITLES (m_sName,"ThemeTitles")
|
||||||
{
|
{
|
||||||
@@ -214,7 +213,7 @@ void ScreenOptions::InitMenu( InputMode im, const vector<OptionRowDefinition> &v
|
|||||||
// TRICKY: Add "EXIT" item
|
// TRICKY: Add "EXIT" item
|
||||||
m_Rows.push_back( new OptionRow() );
|
m_Rows.push_back( new OptionRow() );
|
||||||
OptionRow &row = *m_Rows.back();
|
OptionRow &row = *m_Rows.back();
|
||||||
row.LoadMetrics( OPTION_ROW_TYPE );
|
row.LoadMetrics( m_sName );
|
||||||
row.LoadExit();
|
row.LoadExit();
|
||||||
m_framePage.AddChild( &row );
|
m_framePage.AddChild( &row );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -140,7 +140,6 @@ protected:
|
|||||||
ThemeMetric<bool> SHOW_EXIT_ROW;
|
ThemeMetric<bool> SHOW_EXIT_ROW;
|
||||||
ThemeMetric<bool> SEPARATE_EXIT_ROW;
|
ThemeMetric<bool> SEPARATE_EXIT_ROW;
|
||||||
ThemeMetric<float> SEPARATE_EXIT_ROW_Y;
|
ThemeMetric<float> SEPARATE_EXIT_ROW_Y;
|
||||||
ThemeMetric<CString> OPTION_ROW_TYPE;
|
|
||||||
ThemeMetric<bool> SHOW_EXPLANATIONS;
|
ThemeMetric<bool> SHOW_EXPLANATIONS;
|
||||||
ThemeMetric<bool> THEME_TITLES;
|
ThemeMetric<bool> THEME_TITLES;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user