From c39a33722316ee91f7a42abcd76149788dd19196 Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Thu, 20 Sep 2012 11:11:20 +0400 Subject: Add unit/item/job/building getter hook vmethods to dfhack_viewscreen. --- Lua API.html | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Lua API.html') 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
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.
+