dfhack icon indicating copy to clipboard operation
dfhack copied to clipboard

Documentation missing for 'library/lua/gui/script.lua'

Open warmist opened this issue 3 years ago • 2 comments

The file in question is a wrapper for coroutine based gui dialogs.

warmist avatar Oct 19 '21 10:10 warmist

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).

warmist avatar Oct 19 '21 11:10 warmist

+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.

myk002 avatar Oct 19 '21 14:10 myk002