diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2011-07-31 11:20:16 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-07-31 11:20:16 (GMT) |
| commit | f51fe2c9838cce5b2f365fc917201b8d8f268e6a (patch) | |
| tree | 08de385f5398a61244f81c2b29733e2a3a1158c1 /src | |
| parent | 3bd5a4711c09284cb8ebd7d7aa2e068d6ee7f76a (diff) | |
| parent | d7a55f1f50bf7eaefdaf7c5758430b68e733680a (diff) | |
| download | powder-f51fe2c9838cce5b2f365fc917201b8d8f268e6a.zip powder-f51fe2c9838cce5b2f365fc917201b8d8f268e6a.tar.gz | |
Merge branch 'master' of github.com:FacialTurd/The-Powder-Toy
Diffstat (limited to 'src')
| -rw-r--r-- | src/luaconsole.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/luaconsole.c b/src/luaconsole.c index c854d67..02ec11b 100644 --- a/src/luaconsole.c +++ b/src/luaconsole.c @@ -42,6 +42,8 @@ void luacon_open(){ {"active_menu", &luatpt_active_menu}, {"decorations_enable", &luatpt_decorations_enable}, {"display_mode", &luatpt_cmode_set}, + {"throw_error", &luatpt_error}, + {"heat", &luatpt_heat}, {NULL,NULL} }; @@ -138,6 +140,13 @@ int luatpt_test(lua_State* l) printf("Test successful, got %d\n", testint); return 0; } +int luatpt_error(lua_State* l) +{ + char *error = ""; + error = luaL_optstring(l, 1, 0); + error_ui(vid_buf, 0, error); + return 0; +} int luatpt_drawtext(lua_State* l) { char *string; @@ -853,6 +862,14 @@ int luatpt_decorations_enable(lua_State* l) decorations_enable = (aheatstate==0?0:1); return 0; } + +int luatpt_heat(lua_State* l) +{ + int heatstate; + heatstate = luaL_optint(l, 1, 0); + legacy_enable = (heatstate==1?0:1); + return 0; +} int luatpt_cmode_set(lua_State* l) { int aheatstate; |
