From 7774f5f2c1b1e16b9bd3eefe0fd8b4287d03fef7 Mon Sep 17 00:00:00 2001 From: Alexander Gavrilov Date: Sat, 19 May 2012 19:50:36 +0400 Subject: Add a mechanism converting ui focus to a string representation. The idea is to make ui handling more modular, dispensing with huge functions that switch or if/else on lots of variables. For now, used to split up functions in the sort plugin. --- Lua API.html | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Lua API.html') diff --git a/Lua API.html b/Lua API.html index 7ce777c4..e2d4ec23 100644 --- a/Lua API.html +++ b/Lua API.html @@ -868,6 +868,13 @@ can be omitted.
dfhack.gui.getCurViewscreen()
+Returns the viewscreen that is current in the core.
+dfhack.gui.getFocusString(viewscreen)
+Returns a string representation of the current focus position +in the ui. The string has a "screen/foo/bar/baz..." format.
+dfhack.gui.getSelectedWorkshopJob([silent])
When a job is selected in 'q' mode, returns the job, else prints error unless silent and returns nil.
-- cgit v1.2.1