summaryrefslogtreecommitdiff
path: root/LUA_API.rst
diff options
context:
space:
mode:
Diffstat (limited to 'LUA_API.rst')
-rw-r--r--LUA_API.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/LUA_API.rst b/LUA_API.rst
index 898ab79c..d9b75c48 100644
--- a/LUA_API.rst
+++ b/LUA_API.rst
@@ -1467,6 +1467,14 @@ Supported callbacks and fields are:
If this method is omitted, the screen is dismissed on receival of the ``LEAVESCREEN`` key.
+* ``function screen:onGetSelectedUnit()``
+* ``function screen:onGetSelectedItem()``
+* ``function screen:onGetSelectedJob()``
+* ``function screen:onGetSelectedBuilding()``
+
+ Implement these to provide a return value for the matching
+ ``dfhack.gui.getSelected...`` function.
+
Internal API
------------