summaryrefslogtreecommitdiff
path: root/Lua API.html
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-09-05 19:45:45 +0400
committerAlexander Gavrilov2012-09-05 19:45:45 +0400
commit57086ac56eb489abd0c7759aed084020edc71148 (patch)
tree06b3e64f5f9114ae762ca1d2a99d08382a63ce23 /Lua API.html
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 'Lua API.html')
-rw-r--r--Lua API.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/Lua API.html b/Lua API.html
index f6f2d42b..f05ee551 100644
--- a/Lua API.html
+++ b/Lua API.html
@@ -846,6 +846,9 @@ following properties:</p>
<div class="section" id="miscellaneous">
<h3><a class="toc-backref" href="#id14">Miscellaneous</a></h3>
<ul>
+<li><p class="first"><tt class="docutils literal">dfhack.VERSION</tt></p>
+<p>DFHack version string constant.</p>
+</li>
<li><p class="first"><tt class="docutils literal"><span class="pre">dfhack.curry(func,args...)</span></tt>, or <tt class="docutils literal"><span class="pre">curry(func,args...)</span></tt></p>
<p>Returns a closure that invokes the function with args combined
both from the curry call and the closure call itself. I.e.
@@ -985,6 +988,9 @@ can be omitted.</p>
<li><p class="first"><tt class="docutils literal">dfhack.getHackPath()</tt></p>
<p>Returns the dfhack directory path, i.e. <tt class="docutils literal"><span class="pre">&quot;.../df/hack/&quot;</span></tt>.</p>
</li>
+<li><p class="first"><tt class="docutils literal">dfhack.getTickCount()</tt></p>
+<p>Returns the tick count in ms, exactly as DF ui uses.</p>
+</li>
<li><p class="first"><tt class="docutils literal">dfhack.isWorldLoaded()</tt></p>
<p>Checks if the world is loaded.</p>
</li>