diff options
| author | jacob1 <jfu614@gmail.com> | 2013-01-08 02:05:58 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-01-08 02:05:58 (GMT) |
| commit | 158b05402348f6eae3ed08f40676c1b8adf0b268 (patch) | |
| tree | 2810c368e25d27ccf5e086935073ba501332e938 /src/cat/LuaScriptInterface.h | |
| parent | 986173af4c1aec6308ea6f6f2e126b65eeaf37a3 (diff) | |
| download | powder-158b05402348f6eae3ed08f40676c1b8adf0b268.zip powder-158b05402348f6eae3ed08f40676c1b8adf0b268.tar.gz | |
fix tpt.selectedl/r/a, but it returns the string identifier now instead of an id
Diffstat (limited to 'src/cat/LuaScriptInterface.h')
| -rw-r--r-- | src/cat/LuaScriptInterface.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cat/LuaScriptInterface.h b/src/cat/LuaScriptInterface.h index bf7d277..616398a 100644 --- a/src/cat/LuaScriptInterface.h +++ b/src/cat/LuaScriptInterface.h @@ -27,7 +27,7 @@ namespace pim { class VirtualMachine; } - +class Tool; //Because lua only has bindings for C, we're going to have to go outside "outside" the LuaScriptInterface, this means we can only have one instance :( @@ -47,7 +47,8 @@ namespace pim class TPTScriptInterface; class LuaScriptInterface: public CommandInterface { - int luacon_mousex, luacon_mousey, luacon_selectedl, luacon_selectedr, luacon_mousebutton, luacon_brushx, luacon_brushy; + int luacon_mousex, luacon_mousey, luacon_mousebutton, luacon_brushx, luacon_brushy; + std::string luacon_selectedl, luacon_selectedr, luacon_selectedalt; bool luacon_mousedown; bool currentCommand; TPTScriptInterface * legacy; @@ -110,6 +111,7 @@ public: lua_State *l; LuaScriptInterface(GameController * c, GameModel * m); virtual bool OnBrushChanged(int brushType, int rx, int ry); + virtual bool OnActiveToolChanged(int toolSelection, Tool * tool); virtual bool OnMouseMove(int x, int y, int dx, int dy); virtual bool OnMouseDown(int x, int y, unsigned button); virtual bool OnMouseUp(int x, int y, unsigned button); |
