Added StageStats:GetStepsSeconds lua function.
This commit is contained in:
@@ -4,13 +4,19 @@ The StepMania 5 Changelog covers all post-sm-ssc changes. For a list of changes
|
||||
from StepMania 4 alpha 5 to sm-ssc v1.2.5, see Changelog_sm-ssc.txt.
|
||||
________________________________________________________________________________
|
||||
|
||||
2014/10/20
|
||||
----------
|
||||
* [StageStats] GetStepsSeconds function added.
|
||||
* [Steps] If an unrecognized step type is saved, preserve that step instead of
|
||||
deleting it. A warning will be placed in the log file during song load.
|
||||
|
||||
================================================================================
|
||||
StepMania 5.0 beta 4a | 20141015
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
2014/10/19
|
||||
----------
|
||||
* [BackgroundEffects] Fix error reporting messages coming up unnecessarily.
|
||||
* [BackgroundEffects] Fixed errors in StretchNoLoop and StretchRewind.
|
||||
|
||||
2014/10/13
|
||||
----------
|
||||
@@ -20,8 +26,8 @@ StepMania 5.0 beta 4a | 20141015
|
||||
2014/10/11
|
||||
----------
|
||||
* [NoteDisplay] Add two noteskin metrics, {PartName}NoteColorType and
|
||||
{PartName}NoteColorCount. View https://github.com/stepmania/stepmania/pull/328
|
||||
for more information. [hanubeki]
|
||||
{PartName}NoteColorCount. View https://github.com/stepmania/stepmania/pull/328
|
||||
for more information. [hanubeki]
|
||||
|
||||
================================================================================
|
||||
StepMania 5.0 beta 4 | 20140930
|
||||
|
||||
@@ -1584,6 +1584,7 @@
|
||||
<Function name='GetPossibleSongs'/>
|
||||
<Function name='GetStage'/>
|
||||
<Function name='GetStageIndex'/>
|
||||
<Function name='GetStepsSeconds'/>
|
||||
<Function name='OnePassed'/>
|
||||
<Function name='PlayerHasHighScore'/>
|
||||
</Class>
|
||||
|
||||
@@ -2464,6 +2464,9 @@ save yourself some time, copy this for undocumented things:
|
||||
<Function name='GetStageIndex' return='int' arguments=''>
|
||||
Returns the current stage index.
|
||||
</Function>
|
||||
<Function name='GetStepsSeconds' return='float' arguments=''>
|
||||
Returns the current StepsSeconds, which is the time value used to set the samples in a player's life record.
|
||||
</Function>
|
||||
<Function name='GetStageSeed' return='int' arguments=''>
|
||||
Return the random seed for the current stage.
|
||||
</Function>
|
||||
|
||||
@@ -377,6 +377,7 @@ public:
|
||||
static int AllFailed( T* p, lua_State *L ) { lua_pushboolean(L, p->AllFailed()); return 1; }
|
||||
static int GetStage( T* p, lua_State *L ) { LuaHelpers::Push( L, p->m_Stage ); return 1; }
|
||||
DEFINE_METHOD( GetStageIndex, m_iStageIndex )
|
||||
DEFINE_METHOD(GetStepsSeconds, m_fStepsSeconds)
|
||||
static int PlayerHasHighScore( T* p, lua_State *L )
|
||||
{
|
||||
lua_pushboolean(L, p->PlayerHasHighScore(Enum::Check<PlayerNumber>(L, 1)));
|
||||
@@ -395,6 +396,7 @@ public:
|
||||
ADD_METHOD( AllFailed );
|
||||
ADD_METHOD( GetStage );
|
||||
ADD_METHOD( GetStageIndex );
|
||||
ADD_METHOD( GetStepsSeconds );
|
||||
ADD_METHOD( PlayerHasHighScore );
|
||||
ADD_METHOD( GetEarnedExtraStage );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user