dfhack
dfhack copied to clipboard
Documentation missing for 'library/lua/gui/script.lua'
The file in question is a wrapper for coroutine based gui dialogs.
Also might be related: add more dialogs (afaik there might be some missing ones). Add more features (e.g function that switches df into 'look' or other cursor mode, waits for user to select place (or many places/rectangles etc...) and then returns).
+1 for docs.
Switching into a cursor mode is supported here: https://github.com/DFHack/dfhack/blob/b61c88663e037ef0c8a6e4366292273421cb53c5/library/lua/gui/dwarfmode.lua#L36
Code for selecting a map area is in gui/blueprint.lua, gui/mass-remove.lua, and others. It can be factored out and generalized in the library. Some thought needs to go into the API, though.