summaryrefslogtreecommitdiff
path: root/Lua API.html
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-09-20 10:41:03 +0400
committerAlexander Gavrilov2012-09-20 10:41:03 +0400
commit7ce772ae0ea69ab26009a27d71bd681382ecfac7 (patch)
treea4027707021d500286ec510a820068a9226ccfa5 /Lua API.html
parent1fd0654d635ebf8da74fb581eb8d3f16c98b0444 (diff)
downloaddfhack-7ce772ae0ea69ab26009a27d71bd681382ecfac7.tar.gz
dfhack-7ce772ae0ea69ab26009a27d71bd681382ecfac7.tar.bz2
dfhack-7ce772ae0ea69ab26009a27d71bd681382ecfac7.tar.xz
Add an API function that returns the selected building.
Diffstat (limited to 'Lua API.html')
-rw-r--r--Lua API.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lua API.html b/Lua API.html
index 07f038bc..97770ff7 100644
--- a/Lua API.html
+++ b/Lua API.html
@@ -1032,6 +1032,9 @@ a full-screen item view of a container. Note that in the
last case, the highlighted <em>contained item</em> is returned, not
the container itself.</p>
</li>
+<li><p class="first"><tt class="docutils literal"><span class="pre">dfhack.gui.getSelectedBuilding([silent])</span></tt></p>
+<p>Returns the building selected via <em>'q'</em>, <em>'t'</em>, <em>'k'</em> or <em>'i'</em>.</p>
+</li>
<li><p class="first"><tt class="docutils literal"><span class="pre">dfhack.gui.showAnnouncement(text,color[,is_bright])</span></tt></p>
<p>Adds a regular announcement with given text, color, and brightness.
The is_bright boolean actually seems to invert the brightness.</p>