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) );
|
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()
|
static int GetLifeDifficulty()
|
||||||
{
|
{
|
||||||
int iLifeDifficulty = 0;
|
int iLifeDifficulty = 0;
|
||||||
@@ -439,9 +449,9 @@ static int GetLifeDifficulty()
|
|||||||
iLifeDifficulty++; // LifeDifficulty returns an index
|
iLifeDifficulty++; // LifeDifficulty returns an index
|
||||||
return iLifeDifficulty;
|
return iLifeDifficulty;
|
||||||
}
|
}
|
||||||
#include "LuaManager.h"
|
|
||||||
LuaFunction( GetLifeDifficulty, GetLifeDifficulty() );
|
LuaFunction( GetLifeDifficulty, GetLifeDifficulty() );
|
||||||
|
|
||||||
|
|
||||||
static void DefaultFailType( int &sel, bool ToSel, const ConfOption *pConfOption )
|
static void DefaultFailType( int &sel, bool ToSel, const ConfOption *pConfOption )
|
||||||
{
|
{
|
||||||
if( ToSel )
|
if( ToSel )
|
||||||
|
|||||||
Reference in New Issue
Block a user