spectate.lua: implement unit banners and mouse tooltips#5264
spectate.lua: implement unit banners and mouse tooltips#5264myk002 merged 11 commits intoDFHack:developfrom
Conversation
|
one truly new thing here compared to the DFHack/scripts#1365 is |
plugins/lua/spectate.lua
Outdated
| end | ||
| config.data[key] = value | ||
| config:write() | ||
| config[key] = value |
There was a problem hiding this comment.
how does this work with the table-valued settings?
There was a problem hiding this comment.
haven't gotten to that yet, I was thinking of an optional 3rd argument to set_settings.
There was a problem hiding this comment.
spectate set tooltip-stress-levels 6 text XD is now valid command
Also: * print settings in key order * use string keys to simplify using json for persistence * change default tooltip-follow-blink-milliseconds to 3000ms
Also, make it possible to set `tooltip-stress-levels`.
|
I think (hope) this part is done now. Config UI is in scripts, and possible other features (tooltips/banners for workshops) I think can be delayed. |
| If the ``spectate.tooltip`` overlay is enabled, toggle whether to show the | ||
| tooltip. | ||
|
|
||
| ``tooltip-follow-blink-milliseconds`` (default: 3000) |
There was a problem hiding this comment.
we'll have to get feedback on this in the beta. It might make sense to default to always on for graphics mode but default to a slow blink for ascii. Other tools that display things over the map do that, like the warm/damp overlay and the gui/quickfort preview shadow.
Co-authored-by: Myk <myk.taylor@gmail.com>
Co-authored-by: Myk <myk.taylor@gmail.com>
Implement the unit banners and mouse tooltips optionally showing unit stress/happiness, name, and current job; optionally as a "banner" following units, or as a mouse tooltip.
This is an evolution of the work in DFHack/scripts#1365, which will be reduced to just the config UI.