summaryrefslogtreecommitdiff
path: root/library/LuaTools.cpp
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-09-05 19:45:45 +0400
committerAlexander Gavrilov2012-09-05 19:45:45 +0400
commit57086ac56eb489abd0c7759aed084020edc71148 (patch)
tree06b3e64f5f9114ae762ca1d2a99d08382a63ce23 /library/LuaTools.cpp
parent27f169e298e658f3957aa2db1f76fe8aa20caef7 (diff)
downloaddfhack-57086ac56eb489abd0c7759aed084020edc71148.tar.gz
dfhack-57086ac56eb489abd0c7759aed084020edc71148.tar.bz2
dfhack-57086ac56eb489abd0c7759aed084020edc71148.tar.xz
Add stock MessageBox and InputBox dialog screens for lua scripts.
Diffstat (limited to 'library/LuaTools.cpp')
-rw-r--r--library/LuaTools.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/LuaTools.cpp b/library/LuaTools.cpp
index 9f047753..a283d215 100644
--- a/library/LuaTools.cpp
+++ b/library/LuaTools.cpp
@@ -1580,6 +1580,9 @@ lua_State *DFHack::Lua::Open(color_ostream &out, lua_State *state)
lua_rawsetp(state, LUA_REGISTRYINDEX, &DFHACK_BASE_G_TOKEN);
lua_setfield(state, -2, "BASE_G");
+ lua_pushstring(state, DFHACK_VERSION);
+ lua_setfield(state, -2, "VERSION");
+
lua_pushboolean(state, IsCoreContext(state));
lua_setfield(state, -2, "is_core_context");