diff --git a/LUA_API.rst b/LUA_API.rst index 9ecd2e55e..59a52e596 100644 --- a/LUA_API.rst +++ b/LUA_API.rst @@ -613,6 +613,15 @@ can be omitted. Gui module ---------- +* ``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 diff --git a/Lua API.html b/Lua API.html index 7ce777c42..e2d4ec23e 100644 --- a/Lua API.html +++ b/Lua API.html @@ -868,6 +868,13 @@ can be omitted.

Gui module