Add the Steps::UsesSplitTiming binding.
Hope this worked right.
This commit is contained in:
@@ -8,6 +8,10 @@ ________________________________________________________________________________
|
|||||||
StepMania 5.0 $NEXT | 20110xyy
|
StepMania 5.0 $NEXT | 20110xyy
|
||||||
--------------------------------------------------------------------------------
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
2011/05/23
|
||||||
|
----------
|
||||||
|
* [Steps] Added the UsesSplitTiming Lua binding. [Wolfman2000]
|
||||||
|
|
||||||
2011/05/20
|
2011/05/20
|
||||||
----------
|
----------
|
||||||
* [CryptManager] Added SHA1File Lua binding. [AJ]
|
* [CryptManager] Added SHA1File Lua binding. [AJ]
|
||||||
|
|||||||
@@ -1374,6 +1374,7 @@
|
|||||||
<Function name='IsAPlayerEdit'/>
|
<Function name='IsAPlayerEdit'/>
|
||||||
<Function name='IsAnEdit'/>
|
<Function name='IsAnEdit'/>
|
||||||
<Function name='IsAutogen'/>
|
<Function name='IsAutogen'/>
|
||||||
|
<Function name='UsesSplitTiming'/>
|
||||||
</Class>
|
</Class>
|
||||||
<Class base='ActorFrame' name='StepsDisplay'>
|
<Class base='ActorFrame' name='StepsDisplay'>
|
||||||
<Function name='Load'/>
|
<Function name='Load'/>
|
||||||
|
|||||||
@@ -3454,6 +3454,9 @@
|
|||||||
<Function name='IsAutogen' return='bool' arguments=''>
|
<Function name='IsAutogen' return='bool' arguments=''>
|
||||||
Returns <code>true</code> if the steps were automatically generated.
|
Returns <code>true</code> if the steps were automatically generated.
|
||||||
</Function>
|
</Function>
|
||||||
|
<Function name='UsesSplitTiming' return='bool' sm-ssc='true' arguments=''>
|
||||||
|
Returns <code>true</code> if the Steps use different <code>TimingData</code> from the Song.
|
||||||
|
</Function>
|
||||||
</Class>
|
</Class>
|
||||||
<Class name='StepsDisplay'>
|
<Class name='StepsDisplay'>
|
||||||
<Function name='Load' return='void' arguments='string sMetricsGroup'>
|
<Function name='Load' return='void' arguments='string sMetricsGroup'>
|
||||||
|
|||||||
@@ -19,6 +19,7 @@
|
|||||||
#include "RageLog.h"
|
#include "RageLog.h"
|
||||||
#include "NoteData.h"
|
#include "NoteData.h"
|
||||||
#include "GameManager.h"
|
#include "GameManager.h"
|
||||||
|
#include "SongManager.h"
|
||||||
#include "NoteDataUtil.h"
|
#include "NoteDataUtil.h"
|
||||||
#include "NotesLoaderSSC.h"
|
#include "NotesLoaderSSC.h"
|
||||||
#include "NotesLoaderSM.h"
|
#include "NotesLoaderSM.h"
|
||||||
@@ -468,6 +469,13 @@ public:
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int UsesSplitTiming( T* p, lua_State *L )
|
||||||
|
{
|
||||||
|
Song *song = SONGMAN->GetSongFromSteps(p);
|
||||||
|
lua_pushboolean(L, p->m_Timing != song->m_SongTiming);
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
LunaSteps()
|
LunaSteps()
|
||||||
{
|
{
|
||||||
@@ -486,6 +494,7 @@ public:
|
|||||||
ADD_METHOD( IsAnEdit );
|
ADD_METHOD( IsAnEdit );
|
||||||
ADD_METHOD( IsAutogen );
|
ADD_METHOD( IsAutogen );
|
||||||
ADD_METHOD( IsAPlayerEdit );
|
ADD_METHOD( IsAPlayerEdit );
|
||||||
|
ADD_METHOD( UsesSplitTiming );
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user