[Course] Bumped up max edit course title length to 16 (still feels too short). Also added #DESCRIPTION tag and Course:GetDescription() Lua binding.
This commit is contained in:
@@ -11,7 +11,10 @@ StepMania 5.0 ????????? | 20110???
|
|||||||
2011/07/21
|
2011/07/21
|
||||||
----------
|
----------
|
||||||
* [BeginnerHelper] Removed DancePadAngle metric in favor of DancePadOnCommand.
|
* [BeginnerHelper] Removed DancePadAngle metric in favor of DancePadOnCommand.
|
||||||
The same goes for PlayerAngle, rotation is now handled in PlayerP1/2OnCommand. [AJ]
|
The same goes for PlayerAngle, dancer rotation is now handled in
|
||||||
|
PlayerP1/2OnCommand. [AJ]
|
||||||
|
* [Course] Bumped up max edit course title length to 16 (still feels too short).
|
||||||
|
Also added #DESCRIPTION tag and Course:GetDescription() Lua binding. [AJ]
|
||||||
|
|
||||||
2011/07/20
|
2011/07/20
|
||||||
----------
|
----------
|
||||||
|
|||||||
+4
-1
@@ -90,7 +90,7 @@ int CourseEntry::GetNumModChanges() const
|
|||||||
|
|
||||||
Course::Course(): m_bIsAutogen(false), m_sPath(""), m_sMainTitle(""),
|
Course::Course(): m_bIsAutogen(false), m_sPath(""), m_sMainTitle(""),
|
||||||
m_sMainTitleTranslit(""), m_sSubTitle(""), m_sSubTitleTranslit(""),
|
m_sMainTitleTranslit(""), m_sSubTitle(""), m_sSubTitleTranslit(""),
|
||||||
m_sScripter(""), m_sBannerPath(""), m_sBackgroundPath(""),
|
m_sScripter(""), m_sDescription(""), m_sBannerPath(""), m_sBackgroundPath(""),
|
||||||
m_sCDTitlePath(""), m_sGroupName(""), m_bRepeat(false), m_fGoalSeconds(0),
|
m_sCDTitlePath(""), m_sGroupName(""), m_bRepeat(false), m_fGoalSeconds(0),
|
||||||
m_bShuffle(false), m_iLives(-1), m_bSortByMeter(false),
|
m_bShuffle(false), m_iLives(-1), m_bSortByMeter(false),
|
||||||
m_bIncomplete(false), m_vEntries(), m_SortOrder_TotalDifficulty(0),
|
m_bIncomplete(false), m_vEntries(), m_SortOrder_TotalDifficulty(0),
|
||||||
@@ -176,6 +176,7 @@ void Course::Init()
|
|||||||
m_sSubTitle = "";
|
m_sSubTitle = "";
|
||||||
m_sSubTitleTranslit = "";
|
m_sSubTitleTranslit = "";
|
||||||
m_sScripter = "";
|
m_sScripter = "";
|
||||||
|
m_sDescription = "";
|
||||||
|
|
||||||
m_sBannerPath = "";
|
m_sBannerPath = "";
|
||||||
m_sBackgroundPath = "";
|
m_sBackgroundPath = "";
|
||||||
@@ -1095,6 +1096,7 @@ public:
|
|||||||
static int IsAutogen( T* p, lua_State *L ) { lua_pushboolean(L, p->m_bIsAutogen ); return 1; }
|
static int IsAutogen( T* p, lua_State *L ) { lua_pushboolean(L, p->m_bIsAutogen ); return 1; }
|
||||||
static int GetEstimatedNumStages( T* p, lua_State *L ) { lua_pushnumber(L, p->GetEstimatedNumStages() ); return 1; }
|
static int GetEstimatedNumStages( T* p, lua_State *L ) { lua_pushnumber(L, p->GetEstimatedNumStages() ); return 1; }
|
||||||
static int GetScripter( T* p, lua_State *L ) { lua_pushstring(L, p->m_sScripter ); return 1; }
|
static int GetScripter( T* p, lua_State *L ) { lua_pushstring(L, p->m_sScripter ); return 1; }
|
||||||
|
static int GetDescription( T* p, lua_State *L ) { lua_pushstring(L, p->m_sDescription ); return 1; }
|
||||||
static int GetTotalSeconds( T* p, lua_State *L )
|
static int GetTotalSeconds( T* p, lua_State *L )
|
||||||
{
|
{
|
||||||
StepsType st = Enum::Check<StepsType>(L, 1);
|
StepsType st = Enum::Check<StepsType>(L, 1);
|
||||||
@@ -1131,6 +1133,7 @@ public:
|
|||||||
ADD_METHOD( IsAutogen );
|
ADD_METHOD( IsAutogen );
|
||||||
ADD_METHOD( GetEstimatedNumStages );
|
ADD_METHOD( GetEstimatedNumStages );
|
||||||
ADD_METHOD( GetScripter );
|
ADD_METHOD( GetScripter );
|
||||||
|
ADD_METHOD( GetDescription );
|
||||||
ADD_METHOD( GetTotalSeconds );
|
ADD_METHOD( GetTotalSeconds );
|
||||||
ADD_METHOD( IsEndless );
|
ADD_METHOD( IsEndless );
|
||||||
ADD_METHOD( IsNonstop );
|
ADD_METHOD( IsNonstop );
|
||||||
|
|||||||
+2
-2
@@ -16,12 +16,11 @@ struct lua_State;
|
|||||||
class Style;
|
class Style;
|
||||||
class Game;
|
class Game;
|
||||||
|
|
||||||
const int MAX_EDIT_COURSE_TITLE_LENGTH = 12;
|
const int MAX_EDIT_COURSE_TITLE_LENGTH = 16;
|
||||||
|
|
||||||
inline PlayMode CourseTypeToPlayMode( CourseType ct ) { return (PlayMode)(PLAY_MODE_NONSTOP+ct); }
|
inline PlayMode CourseTypeToPlayMode( CourseType ct ) { return (PlayMode)(PLAY_MODE_NONSTOP+ct); }
|
||||||
inline CourseType PlayModeToCourseType( PlayMode pm ) { return (CourseType)(pm-PLAY_MODE_NONSTOP); }
|
inline CourseType PlayModeToCourseType( PlayMode pm ) { return (CourseType)(pm-PLAY_MODE_NONSTOP); }
|
||||||
|
|
||||||
|
|
||||||
enum SongSort
|
enum SongSort
|
||||||
{
|
{
|
||||||
SongSort_Randomize,
|
SongSort_Randomize,
|
||||||
@@ -162,6 +161,7 @@ public:
|
|||||||
RString m_sMainTitle, m_sMainTitleTranslit;
|
RString m_sMainTitle, m_sMainTitleTranslit;
|
||||||
RString m_sSubTitle, m_sSubTitleTranslit;
|
RString m_sSubTitle, m_sSubTitleTranslit;
|
||||||
RString m_sScripter;
|
RString m_sScripter;
|
||||||
|
RString m_sDescription;
|
||||||
|
|
||||||
RString m_sBannerPath;
|
RString m_sBannerPath;
|
||||||
RString m_sBackgroundPath;
|
RString m_sBackgroundPath;
|
||||||
|
|||||||
@@ -67,6 +67,8 @@ bool CourseLoaderCRS::LoadFromMsd( const RString &sPath, const MsdFile &msd, Cou
|
|||||||
out.m_sMainTitleTranslit = sParams[1];
|
out.m_sMainTitleTranslit = sParams[1];
|
||||||
else if( sValueName.EqualsNoCase("SCRIPTER") )
|
else if( sValueName.EqualsNoCase("SCRIPTER") )
|
||||||
out.m_sScripter = sParams[1];
|
out.m_sScripter = sParams[1];
|
||||||
|
else if( sValueName.EqualsNoCase("DESCRIPTION") )
|
||||||
|
out.m_sDescription = sParams[1];
|
||||||
else if( sValueName.EqualsNoCase("REPEAT") )
|
else if( sValueName.EqualsNoCase("REPEAT") )
|
||||||
{
|
{
|
||||||
RString str = sParams[1];
|
RString str = sParams[1];
|
||||||
|
|||||||
Reference in New Issue
Block a user