move HomeEditMode metric into CommonMetrics
This commit is contained in:
@@ -14,6 +14,7 @@ ThemeMetric<CString> COURSE_DIFFICULTIES_TO_SHOW ("Common","CourseDifficultiesTo
|
|||||||
ThemeMetric1D<RageColor> PLAYER_COLOR ("Common",PLAYER_COLOR_NAME,NUM_PLAYERS);
|
ThemeMetric1D<RageColor> PLAYER_COLOR ("Common",PLAYER_COLOR_NAME,NUM_PLAYERS);
|
||||||
ThemeMetric<float> JOIN_PAUSE_SECONDS ("Common","JoinPauseSeconds");
|
ThemeMetric<float> JOIN_PAUSE_SECONDS ("Common","JoinPauseSeconds");
|
||||||
ThemeMetric<CString> WINDOW_TITLE ("Common","WindowTitle");
|
ThemeMetric<CString> WINDOW_TITLE ("Common","WindowTitle");
|
||||||
|
ThemeMetric<bool> HOME_EDIT_MODE ("Common","HomeEditMode");
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ extern ThemeMetric<CString> COURSE_DIFFICULTIES_TO_SHOW;
|
|||||||
extern ThemeMetric1D<RageColor> PLAYER_COLOR;
|
extern ThemeMetric1D<RageColor> PLAYER_COLOR;
|
||||||
extern ThemeMetric<float> JOIN_PAUSE_SECONDS;
|
extern ThemeMetric<float> JOIN_PAUSE_SECONDS;
|
||||||
extern ThemeMetric<CString> WINDOW_TITLE;
|
extern ThemeMetric<CString> WINDOW_TITLE;
|
||||||
|
extern ThemeMetric<bool> HOME_EDIT_MODE;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -9,8 +9,8 @@
|
|||||||
#include "song.h"
|
#include "song.h"
|
||||||
#include "StepsUtil.h"
|
#include "StepsUtil.h"
|
||||||
#include "Foreach.h"
|
#include "Foreach.h"
|
||||||
|
#include "CommonMetrics.h"
|
||||||
|
|
||||||
#define ONLY_ALLOW_EDITS THEME->GetMetricF("EditMenu","OnlyAllowEdits")
|
|
||||||
#define ARROWS_X( i ) THEME->GetMetricF("EditMenu",ssprintf("Arrows%dX",i+1))
|
#define ARROWS_X( i ) THEME->GetMetricF("EditMenu",ssprintf("Arrows%dX",i+1))
|
||||||
#define SONG_BANNER_X THEME->GetMetricF("EditMenu","SongBannerX")
|
#define SONG_BANNER_X THEME->GetMetricF("EditMenu","SongBannerX")
|
||||||
#define SONG_BANNER_Y THEME->GetMetricF("EditMenu","SongBannerY")
|
#define SONG_BANNER_Y THEME->GetMetricF("EditMenu","SongBannerY")
|
||||||
@@ -97,7 +97,7 @@ EditMenu::EditMenu()
|
|||||||
// fill in data structures
|
// fill in data structures
|
||||||
SONGMAN->GetGroupNames( m_sGroups );
|
SONGMAN->GetGroupNames( m_sGroups );
|
||||||
GAMEMAN->GetStepsTypesForGame( GAMESTATE->m_pCurGame, m_StepsTypes );
|
GAMEMAN->GetStepsTypesForGame( GAMESTATE->m_pCurGame, m_StepsTypes );
|
||||||
if( ONLY_ALLOW_EDITS )
|
if( HOME_EDIT_MODE )
|
||||||
{
|
{
|
||||||
m_vDifficulties.push_back( DIFFICULTY_EDIT );
|
m_vDifficulties.push_back( DIFFICULTY_EDIT );
|
||||||
}
|
}
|
||||||
@@ -315,7 +315,7 @@ void EditMenu::OnRowValueChanged( Row row )
|
|||||||
s = DifficultyToThemedString(GetSelectedDifficulty());
|
s = DifficultyToThemedString(GetSelectedDifficulty());
|
||||||
|
|
||||||
// UGLY. "Edit" -> "New Edit"
|
// UGLY. "Edit" -> "New Edit"
|
||||||
if( ONLY_ALLOW_EDITS )
|
if( HOME_EDIT_MODE )
|
||||||
s = "New " + s;
|
s = "New " + s;
|
||||||
}
|
}
|
||||||
m_textValue[ROW_STEPS].SetText( s );
|
m_textValue[ROW_STEPS].SetText( s );
|
||||||
|
|||||||
Reference in New Issue
Block a user