DFHack / dfhack

Memory hacking library for Dwarf Fortress and a set of tools that use it
Other
1.84k stars 462 forks source link

DFHack tooltips #3300

Open myk002 opened 1 year ago

myk002 commented 1 year ago

Tooltips would help players understand the usage of DFHack interface elements. Previous attempts at "tooltip-like" elements added text as a peer widget below the widget that they were annotating. This proved to be inflexible and it wasn't used outside of the gui/blueprint proof of concept.

Now that we have the overlay system, we have a mechanism for displaying ephemeral widgets outside the bounding box of the annotated widget, so we can have a lot more flexibility in how they are displayed and managed.

Here's an idea for an architecture:

we don't have a keyboard-specific method of triggering tooltips, though. I'm not sure how that can be handled.

myk002 commented 5 months ago

Could add option to have tooltips displayed on the minimap instead of near the cursor, if that's desired