diff options
| author | Alexander Gavrilov | 2012-09-20 11:11:20 +0400 |
|---|---|---|
| committer | Alexander Gavrilov | 2012-09-20 11:11:20 +0400 |
| commit | c39a33722316ee91f7a42abcd76149788dd19196 (patch) | |
| tree | e057fabb61758db013f91f633ca5a97bbbd166a2 /Lua API.html | |
| parent | 7ce772ae0ea69ab26009a27d71bd681382ecfac7 (diff) | |
| download | dfhack-c39a33722316ee91f7a42abcd76149788dd19196.tar.gz dfhack-c39a33722316ee91f7a42abcd76149788dd19196.tar.bz2 dfhack-c39a33722316ee91f7a42abcd76149788dd19196.tar.xz | |
Add unit/item/job/building getter hook vmethods to dfhack_viewscreen.
Diffstat (limited to 'Lua API.html')
| -rw-r--r-- | Lua API.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Lua API.html b/Lua API.html index 97770ff7..0da65b5f 100644 --- a/Lua API.html +++ b/Lua API.html @@ -1611,6 +1611,16 @@ options; if multiple interpretations exist, the table will contain multiple keys </dl> <p>If this method is omitted, the screen is dismissed on receival of the <tt class="docutils literal">LEAVESCREEN</tt> key.</p> </li> +<li><p class="first"><tt class="docutils literal">function screen:onGetSelectedUnit()</tt></p> +</li> +<li><p class="first"><tt class="docutils literal">function screen:onGetSelectedItem()</tt></p> +</li> +<li><p class="first"><tt class="docutils literal">function screen:onGetSelectedJob()</tt></p> +</li> +<li><p class="first"><tt class="docutils literal">function screen:onGetSelectedBuilding()</tt></p> +<p>Implement these to provide a return value for the matching +<tt class="docutils literal"><span class="pre">dfhack.gui.getSelected...</span></tt> function.</p> +</li> </ul> </div> <div class="section" id="internal-api"> |
