Exposed StepMania::SaveScreenshot to Lua. Added prefix and suffix args for setting the screenshot name and removed the unused index arg. Added GetHighScore to PlayerStageStats and AddScreenshot to Profile so that Lua can imitate ScreenEvaluation's code for adding a screenshot to the profile. Removed hungarian notation from variable names in StepMania::SaveScreenshot.
This commit is contained in:
@@ -721,6 +721,12 @@ public:
|
||||
DEFINE_METHOD( GetSongsPassed, m_iSongsPassed )
|
||||
DEFINE_METHOD( GetSongsPlayed, m_iSongsPlayed )
|
||||
|
||||
static int GetHighScore( T* p, lua_State *L )
|
||||
{
|
||||
p->m_HighScore.PushSelf(L);
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int GetPlayedSteps( T* p, lua_State *L )
|
||||
{
|
||||
lua_newtable(L);
|
||||
@@ -839,6 +845,7 @@ public:
|
||||
ADD_METHOD( MaxCombo );
|
||||
ADD_METHOD( GetCurrentLife );
|
||||
ADD_METHOD( GetGrade );
|
||||
ADD_METHOD( GetHighScore );
|
||||
ADD_METHOD( GetActualDancePoints );
|
||||
ADD_METHOD( GetPossibleDancePoints );
|
||||
ADD_METHOD( GetCurrentPossibleDancePoints );
|
||||
|
||||
Reference in New Issue
Block a user