metricable options menu count
This commit is contained in:
@@ -38,9 +38,7 @@ const float ITEM_X[NUM_PLAYERS] = { 260, 420 };
|
|||||||
#define EXPLANATION_ZOOM THEME->GetMetricF("ScreenOptions","ExplanationZoom")
|
#define EXPLANATION_ZOOM THEME->GetMetricF("ScreenOptions","ExplanationZoom")
|
||||||
#define COLOR_SELECTED THEME->GetMetricC("ScreenOptions","ColorSelected")
|
#define COLOR_SELECTED THEME->GetMetricC("ScreenOptions","ColorSelected")
|
||||||
#define COLOR_NOT_SELECTED THEME->GetMetricC("ScreenOptions","ColorNotSelected")
|
#define COLOR_NOT_SELECTED THEME->GetMetricC("ScreenOptions","ColorNotSelected")
|
||||||
|
#define NUM_SHOWN_ITEMS THEME->GetMetricI("ScreenOptions","NumShownItems")
|
||||||
const int total = 10;
|
|
||||||
const int halfsize = total / 2;
|
|
||||||
|
|
||||||
ScreenOptions::ScreenOptions( CString sClassName, bool bEnableTimer ) : Screen("ScreenOptions")
|
ScreenOptions::ScreenOptions( CString sClassName, bool bEnableTimer ) : Screen("ScreenOptions")
|
||||||
{
|
{
|
||||||
@@ -569,6 +567,9 @@ void ScreenOptions::HandleScreenMessage( const ScreenMessage SM )
|
|||||||
|
|
||||||
void ScreenOptions::PositionItems()
|
void ScreenOptions::PositionItems()
|
||||||
{
|
{
|
||||||
|
const int total = NUM_SHOWN_ITEMS;
|
||||||
|
const int halfsize = total / 2;
|
||||||
|
|
||||||
/* Total number of rows, including "EXIT". */
|
/* Total number of rows, including "EXIT". */
|
||||||
const int NumRows = m_iNumOptionRows + 1;
|
const int NumRows = m_iNumOptionRows + 1;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user