Add the GAMESTATE:InStepEditor LUA binding.

This commit is contained in:
Jason Felds
2011-12-12 18:49:10 -05:00
parent bfed4c94dd
commit 1376a46b01
4 changed files with 12 additions and 0 deletions
+4
View File
@@ -8,6 +8,10 @@ ________________________________________________________________________________
StepMania 5.0 $next | 20111xxx StepMania 5.0 $next | 20111xxx
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
2011/12/12
----------
* [ScreenEdit] Add the GAMESTATE:InStepEditor LUA binding. [Wolfman2000]
2011/12/11 2011/12/11
---------- ----------
* [ScreenEdit] Restore cycling the timing segments for jumping between. * [ScreenEdit] Restore cycling the timing segments for jumping between.
+1
View File
@@ -774,6 +774,7 @@
<Function name='GetStageSeed'/> <Function name='GetStageSeed'/>
<Function name='GetWorkoutGoalComplete'/> <Function name='GetWorkoutGoalComplete'/>
<Function name='HasEarnedExtraStage'/> <Function name='HasEarnedExtraStage'/>
<Function name='InStepEditor'/>
<Function name='IsAnExtraStage'/> <Function name='IsAnExtraStage'/>
<Function name='IsAnyHumanPlayerUsingMemoryCard'/> <Function name='IsAnyHumanPlayerUsingMemoryCard'/>
<Function name='IsBattleMode'/> <Function name='IsBattleMode'/>
+5
View File
@@ -2084,6 +2084,11 @@
<Function name='HasEarnedExtraStage' return='bool' arguments=''> <Function name='HasEarnedExtraStage' return='bool' arguments=''>
Returns <code>true</code> if an extra stage was earned. Returns <code>true</code> if an extra stage was earned.
</Function> </Function>
<Function name='InStepEditor' return='bool' arguments=''>
Returns <code>true</code> if we are specifically in the Step Editor's
editing portion. If in recording or playing mode, this will return
<code>false</code>.
</Function>
<Function name='IsAnExtraStage' return='bool' arguments=''> <Function name='IsAnExtraStage' return='bool' arguments=''>
Returns <code>true</code> if this is an extra stage. Returns <code>true</code> if this is an extra stage.
</Function> </Function>
+2
View File
@@ -2156,6 +2156,7 @@ public:
p->m_bMultiplayer = BArg(1); p->m_bMultiplayer = BArg(1);
return 0; return 0;
} }
DEFINE_METHOD( InStepEditor, m_bInStepEditor );
DEFINE_METHOD( GetNumMultiplayerNoteFields, m_iNumMultiplayerNoteFields ) DEFINE_METHOD( GetNumMultiplayerNoteFields, m_iNumMultiplayerNoteFields )
DEFINE_METHOD( ShowW1, ShowW1() ) DEFINE_METHOD( ShowW1, ShowW1() )
@@ -2476,6 +2477,7 @@ public:
ADD_METHOD( GetMasterPlayerNumber ); ADD_METHOD( GetMasterPlayerNumber );
ADD_METHOD( GetMultiplayer ); ADD_METHOD( GetMultiplayer );
ADD_METHOD( SetMultiplayer ); ADD_METHOD( SetMultiplayer );
ADD_METHOD( InStepEditor );
ADD_METHOD( GetNumMultiplayerNoteFields ); ADD_METHOD( GetNumMultiplayerNoteFields );
ADD_METHOD( SetNumMultiplayerNoteFields ); ADD_METHOD( SetNumMultiplayerNoteFields );
ADD_METHOD( ShowW1 ); ADD_METHOD( ShowW1 );