diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-04-04 20:47:58 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-04-04 20:47:58 (GMT) |
| commit | ea51cde1f07d2a63f824e78c44adad0993115853 (patch) | |
| tree | a6afee4bafb5de2f91caf1235351b7cc6fc2e606 /src/cat/LuaScriptInterface.h | |
| parent | 89cdeef9ad9c164e9f484cded3096bcbc72b7207 (diff) | |
| download | powder-ea51cde1f07d2a63f824e78c44adad0993115853.zip powder-ea51cde1f07d2a63f824e78c44adad0993115853.tar.gz | |
Change brush size with [ and ] keys, change order of drawing for Lua, Fix print and tpt.log so they log to the console when it is open
Diffstat (limited to 'src/cat/LuaScriptInterface.h')
| -rw-r--r-- | src/cat/LuaScriptInterface.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cat/LuaScriptInterface.h b/src/cat/LuaScriptInterface.h index b3ecd7a..a346b1a 100644 --- a/src/cat/LuaScriptInterface.h +++ b/src/cat/LuaScriptInterface.h @@ -36,6 +36,7 @@ extern "C" class LuaScriptInterface: public CommandInterface { int luacon_mousex, luacon_mousey, luacon_selectedl, luacon_selectedr, luacon_mousebutton; bool luacon_mousedown; + bool currentCommand; public: lua_State *l; LuaScriptInterface(GameModel * m); @@ -45,7 +46,7 @@ public: virtual bool OnMouseWheel(int x, int y, int d); virtual bool OnKeyPress(int key, Uint16 character, bool shift, bool ctrl, bool alt); virtual bool OnKeyRelease(int key, Uint16 character, bool shift, bool ctrl, bool alt); - virtual void OnTick(float dt); + virtual void OnTick(); virtual int Command(std::string command); virtual std::string FormatCommand(std::string command); virtual ~LuaScriptInterface(); |
