[ScreenOptionsMaster] Added StepsRowLayoutType metric. (Valid values are ShowAllInRow or ShowOneInRow.)

This commit is contained in:
AJ Kelly
2012-02-08 23:49:42 -06:00
parent 520ccce999
commit 778ce8a288
3 changed files with 12 additions and 2 deletions
+6 -1
View File
@@ -5,9 +5,14 @@ from StepMania 4 alpha 5 to sm-ssc v1.2.5, see Changelog_sm-ssc.txt.
________________________________________________________________________________
================================================================================
StepMania 5.0 alpha 1a | 201201??
StepMania 5.0 alpha 1a | 201202??
--------------------------------------------------------------------------------
2012/02/08
----------
* [ScreenOptionsMaster] Added StepsRowLayoutType metric.
(Valid values are "ShowAllInRow" or "ShowOneInRow".) [AJ]
2012/01/23
----------
* [Player] Tap Note Scores (tns) can now be "AvoidMine" or "HitMine" in
+1
View File
@@ -2239,6 +2239,7 @@ Class="ScreenOptionsMaster"
NoteSkinSortOrder=""
StepsUseChartName=false
StepsRowLayoutType="ShowAllInRow"
# ExitItem is an exit row with the "Exit" text as a menu item; ExitTitle
# uses the menu title.
+5 -1
View File
@@ -28,7 +28,8 @@
#define ENTRY_MODE(s,i) THEME->GetMetric ("ScreenOptionsMaster",ssprintf("%s,%i",(s).c_str(),(i+1)))
#define ENTRY_DEFAULT(s) THEME->GetMetric ("ScreenOptionsMaster",(s) + "Default")
#define NOTE_SKIN_SORT_ORDER THEME->GetMetric ("ScreenOptionsMaster","NoteSkinSortOrder")
#define STEPS_USE_CHART_NAME THEME->GetMetricB("ScreenOptionsMaster","StepsUseChartName")
#define STEPS_ROW_LAYOUT_TYPE THEME->GetMetric("ScreenOptionsMaster","StepsRowLayoutType")
#define STEPS_USE_CHART_NAME THEME->GetMetricB("ScreenOptionsMaster","StepsUseChartName")
static const char *SelectTypeNames[] = {
"SelectOne",
@@ -423,6 +424,7 @@ class OptionRowHandlerListSteps : public OptionRowHandlerList
else if( GAMESTATE->IsCourseMode() && GAMESTATE->m_pCurCourse ) // playing a course
{
m_Def.m_bOneChoiceForAllPlayers = (bool)PREFSMAN->m_bLockCourseDifficulties;
m_Def.m_layoutType = StringToLayoutType( STEPS_ROW_LAYOUT_TYPE );
vector<Trail*> vTrails;
GAMESTATE->m_pCurCourse->GetTrails( vTrails, GAMESTATE->GetCurrentStyle()->m_StepsType );
@@ -440,6 +442,8 @@ class OptionRowHandlerListSteps : public OptionRowHandlerList
}
else if( GAMESTATE->m_pCurSong ) // playing a song
{
m_Def.m_layoutType = StringToLayoutType( STEPS_ROW_LAYOUT_TYPE );
vector<Steps*> vpSteps;
Song *pSong = GAMESTATE->m_pCurSong;
SongUtil::GetSteps( pSong, vpSteps, GAMESTATE->GetCurrentStyle()->m_StepsType );