* [PlayerOptions] Added UsingReverse() Lua binding (automatically tests GetReverse() == 1)
* [PlayerState] Added GetCurrentPlayerOptions() Lua binding
This commit is contained in:
@@ -908,6 +908,7 @@ public:
|
||||
|
||||
// Scroll
|
||||
DEFINE_METHOD( GetReverse, m_fScrolls[PlayerOptions::SCROLL_REVERSE] )
|
||||
DEFINE_METHOD( UsingReverse, m_fScrolls[PlayerOptions::SCROLL_REVERSE] == 1 )
|
||||
static int GetReversePercentForColumn( T *p, lua_State *L )
|
||||
{
|
||||
// todo: make sure IArg is within boundaries -aj
|
||||
@@ -1021,6 +1022,7 @@ public:
|
||||
|
||||
// Scroll
|
||||
ADD_METHOD( GetReverse );
|
||||
ADD_METHOD( UsingReverse );
|
||||
ADD_METHOD( GetReversePercentForColumn );
|
||||
ADD_METHOD( GetSplit );
|
||||
ADD_METHOD( GetAlternate );
|
||||
|
||||
@@ -229,6 +229,12 @@ public:
|
||||
LuaHelpers::Push( L, s );
|
||||
return 1;
|
||||
}
|
||||
static int GetCurrentPlayerOptions( T* p, lua_State *L )
|
||||
{
|
||||
PlayerOptions po = p->m_PlayerOptions.GetCurrent();
|
||||
po.PushSelf(L);
|
||||
return 1;
|
||||
}
|
||||
DEFINE_METHOD( GetHealthState, m_HealthState );
|
||||
|
||||
LunaPlayerState()
|
||||
@@ -239,6 +245,7 @@ public:
|
||||
ADD_METHOD( GetPlayerOptions );
|
||||
ADD_METHOD( GetPlayerOptionsArray );
|
||||
ADD_METHOD( GetPlayerOptionsString );
|
||||
ADD_METHOD( GetCurrentPlayerOptions );
|
||||
ADD_METHOD( GetHealthState );
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user