summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2011-11-18 19:38:08 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2011-11-18 19:38:08 (GMT)
commitf50801333214e79492dd72c23f05cd4bc84fcf54 (patch)
tree3b6f934b80c45f1c696c0f8b1ae5f67c743b25b4 /includes
parent8a962b2f9605672627c077d2878c03fab53495a4 (diff)
downloadpowder-f50801333214e79492dd72c23f05cd4bc84fcf54.zip
powder-f50801333214e79492dd72c23f05cd4bc84fcf54.tar.gz
New tables in lua API: el and version: element ids and version info respectively. New lua functions: element (get element id from name) and element_func for hooking/overriding element update functions
Diffstat (limited to 'includes')
-rw-r--r--includes/luaconsole.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/includes/luaconsole.h b/includes/luaconsole.h
index f98e662..e35da84 100644
--- a/includes/luaconsole.h
+++ b/includes/luaconsole.h
@@ -19,11 +19,14 @@
#define LUACON_KDOWN 1
#define LUACON_KUP 2
+int *lua_el_func, *lua_el_mode;
+
void luacon_open();
int luacon_step(int mx, int my, int selectl, int selectr);
int luacon_mouseevent(int mx, int my, int mb, int event);
int luacon_keyevent(int key, int modifier, int event);
int luacon_eval(char *command);
+int luacon_part_update(int t, int i, int x, int y, int surround_space, int nt);
char *luacon_geterror();
void luacon_close();
int process_command_lua(pixel *vid_buf, char *console, char *console_error);
@@ -32,6 +35,8 @@ int getPartIndex_curIdx;
//TPT Interface
int luatpt_test(lua_State* l);
+int luatpt_getelement(lua_State *l);
+int luatpt_element_func(lua_State *l);
int luatpt_drawtext(lua_State* l);
int luatpt_create(lua_State* l);
int luatpt_setpause(lua_State* l);