From 89ff8ad9aaaef762f6592959fe178ffc6c628a6f Mon Sep 17 00:00:00 2001 From: jacksonmj Date: Tue, 6 Sep 2011 06:37:26 +0800 Subject: tpt.get_property("id",x,y) diff --git a/src/luaconsole.c b/src/luaconsole.c index f9ce853..5febe48 100644 --- a/src/luaconsole.c +++ b/src/luaconsole.c @@ -612,6 +612,10 @@ int luatpt_get_property(lua_State* l) lua_pushnumber(l, parts[i].y); return 1; } + if (strcmp(prop,"id")==0){ + lua_pushnumber(l, i); + return 1; + } } else if (strcmp(prop,"type")==0){ lua_pushinteger(l, 0); -- cgit v0.9.2-21-gd62e