Added new theme metric to ScreenTitleMenu to allow setting the horizontal alignment for the menu text there, allowing for more flexibility in title design
This commit is contained in:
@@ -36,6 +36,7 @@ ColorNotSelected=1,1,1,1
|
|||||||
ColorSelected=0.5,1,0.5,1
|
ColorSelected=0.5,1,0.5,1
|
||||||
ZoomNotSelected=1.0
|
ZoomNotSelected=1.0
|
||||||
ZoomSelected=1.3
|
ZoomSelected=1.3
|
||||||
|
MenuTextAlign=2 // 0=left, 1=center, 2=right
|
||||||
SecondsBetweenComments=12
|
SecondsBetweenComments=12
|
||||||
SecondsBeforeAttract=30
|
SecondsBeforeAttract=30
|
||||||
HelpTextHome=Use &UP; &DOWN; to select, then press START
|
HelpTextHome=Use &UP; &DOWN; to select, then press START
|
||||||
|
|||||||
@@ -44,6 +44,7 @@
|
|||||||
#define COLOR_SELECTED THEME->GetMetricC("ScreenTitleMenu","ColorSelected")
|
#define COLOR_SELECTED THEME->GetMetricC("ScreenTitleMenu","ColorSelected")
|
||||||
#define ZOOM_NOT_SELECTED THEME->GetMetricF("ScreenTitleMenu","ZoomNotSelected")
|
#define ZOOM_NOT_SELECTED THEME->GetMetricF("ScreenTitleMenu","ZoomNotSelected")
|
||||||
#define ZOOM_SELECTED THEME->GetMetricF("ScreenTitleMenu","ZoomSelected")
|
#define ZOOM_SELECTED THEME->GetMetricF("ScreenTitleMenu","ZoomSelected")
|
||||||
|
#define MENU_TEXT_ALIGN THEME->GetMetricI("ScreenTitleMenu","MenuTextAlign")
|
||||||
#define SECONDS_BETWEEN_COMMENTS THEME->GetMetricF("ScreenTitleMenu","SecondsBetweenComments")
|
#define SECONDS_BETWEEN_COMMENTS THEME->GetMetricF("ScreenTitleMenu","SecondsBetweenComments")
|
||||||
#define SECONDS_BEFORE_ATTRACT THEME->GetMetricF("ScreenTitleMenu","SecondsBeforeAttract")
|
#define SECONDS_BEFORE_ATTRACT THEME->GetMetricF("ScreenTitleMenu","SecondsBeforeAttract")
|
||||||
#define HELP_TEXT( coin_mode ) THEME->GetMetric("ScreenTitleMenu","HelpText"+Capitalize(CoinModeToString(coin_mode)))
|
#define HELP_TEXT( coin_mode ) THEME->GetMetric("ScreenTitleMenu","HelpText"+Capitalize(CoinModeToString(coin_mode)))
|
||||||
@@ -107,6 +108,7 @@ ScreenTitleMenu::ScreenTitleMenu() : Screen("ScreenTitleMenu")
|
|||||||
for( i=0; i<NUM_CHOICES; i++ )
|
for( i=0; i<NUM_CHOICES; i++ )
|
||||||
{
|
{
|
||||||
m_textChoice[i].LoadFromFont( THEME->GetPathToF("ScreenTitleMenu choices") );
|
m_textChoice[i].LoadFromFont( THEME->GetPathToF("ScreenTitleMenu choices") );
|
||||||
|
m_textChoice[i].SetHorizAlign( (enum Actor::HorizAlign)MENU_TEXT_ALIGN );
|
||||||
m_textChoice[i].SetText( ChoiceToString((Choice)i) );
|
m_textChoice[i].SetText( ChoiceToString((Choice)i) );
|
||||||
m_textChoice[i].SetXY( CHOICES_X, CHOICES_START_Y + i*CHOICES_SPACING_Y );
|
m_textChoice[i].SetXY( CHOICES_X, CHOICES_START_Y + i*CHOICES_SPACING_Y );
|
||||||
m_textChoice[i].SetShadowLength( CHOICES_SHADOW_LENGTH );
|
m_textChoice[i].SetShadowLength( CHOICES_SHADOW_LENGTH );
|
||||||
|
|||||||
@@ -77,7 +77,7 @@ END
|
|||||||
// Cursor
|
// Cursor
|
||||||
//
|
//
|
||||||
|
|
||||||
IDC_CURSOR1 CURSOR DISCARDABLE "cursor1.cur"
|
//IDC_CURSOR1 CURSOR DISCARDABLE "cursor1.cur"
|
||||||
#endif // Japanese resources
|
#endif // Japanese resources
|
||||||
/////////////////////////////////////////////////////////////////////////////
|
/////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user