* [PlayerOptions] Added UsingReverse() Lua binding (automatically tests GetReverse() == 1)

* [PlayerState] Added GetCurrentPlayerOptions() Lua binding
This commit is contained in:
AJ Kelly
2011-04-16 21:10:44 -05:00
parent a14d760e0c
commit 445f9a5e32
3 changed files with 15 additions and 4 deletions
+2
View File
@@ -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 );