add binding: GetTimingDifficulty
This commit is contained in:
@@ -432,6 +432,16 @@ static void LifeDifficulty( int &sel, bool ToSel, const ConfOption *pConfOption
|
||||
MoveMap( sel, pConfOption, ToSel, mapping, ARRAYLEN(mapping) );
|
||||
}
|
||||
|
||||
|
||||
#include "LuaManager.h"
|
||||
static int GetTimingDifficulty()
|
||||
{
|
||||
int iTimingDifficulty = 0;
|
||||
TimingWindowScale( iTimingDifficulty, true, ConfOption::Find("TimingWindowScale") );
|
||||
iTimingDifficulty++; // TimingDifficulty returns an index
|
||||
return iTimingDifficulty;
|
||||
}
|
||||
LuaFunction( GetTimingDifficulty, GetTimingDifficulty() );
|
||||
static int GetLifeDifficulty()
|
||||
{
|
||||
int iLifeDifficulty = 0;
|
||||
@@ -439,9 +449,9 @@ static int GetLifeDifficulty()
|
||||
iLifeDifficulty++; // LifeDifficulty returns an index
|
||||
return iLifeDifficulty;
|
||||
}
|
||||
#include "LuaManager.h"
|
||||
LuaFunction( GetLifeDifficulty, GetLifeDifficulty() );
|
||||
|
||||
|
||||
static void DefaultFailType( int &sel, bool ToSel, const ConfOption *pConfOption )
|
||||
{
|
||||
if( ToSel )
|
||||
|
||||
Reference in New Issue
Block a user