Add the AppHasFocus lua binding.

This commit is contained in:
Jason Felds
2011-11-01 23:49:50 -04:00
parent 1e82f5ea78
commit 81fc6bc24d
4 changed files with 22 additions and 0 deletions
+1
View File
@@ -12,6 +12,7 @@ StepMania 5.0 $next | 2011xxxx
----------
* [ArrowEffects] Fix Expand, and possibly other mods, from breaking if
using a second player. [Wolfman2000]
* [ArchHooks] Add the AppHasFocus lua binding. [Wolfman2000]
2011/10/29
----------
+3
View File
@@ -535,6 +535,9 @@
<Function name='GetCurrentAnnouncer'/>
<Function name='SetCurrentAnnouncer'/>
</Class>
<Class name='ArchHooks'>
<Function name='AppHasFocus'/>
</Class>
<Class base='BitmapText' name='BPMDisplay'>
<Function name='GetText'/>
<Function name='SetFromCourse'/>
+5
View File
@@ -1364,6 +1364,11 @@
Sets the announcer to <code>sNewAnnouncer</code>.
</Function>
</Class>
<Class name='ArchHooks'>
<Function name='AppHasFocus' return='bool' arguments=''>
Returns <code>true</code> if the application presently has focus.
</Function>
</Class>
<Class name='Banner'>
<Function name='GetScrolling' return='bool' arguments=''>
Returns <code>true</code> if the Banner is currently scrolling.
+13
View File
@@ -55,6 +55,19 @@ ArchHooks *ArchHooks::Create()
return new ARCH_HOOKS;
}
// lua start
#include "LuaBinding.h"
class LunaArchHooks: public Luna<ArchHooks>
{
public:
DEFINE_METHOD( AppHasFocus, AppHasFocus() );
LunaArchHooks()
{
ADD_METHOD( AppHasFocus );
}
};
/*
* (c) 2003-2004 Glenn Maynard, Chris Danford