Clickable Happiness Overlay

If you liked this item, please rate it up on Steam Workshop page.

Author: Ghosgar3D

Last revision: 16 May at 17:08 UTC

File size: 339.72 KB

On Steam Workshop

Description:

Requires DFHack
Install DFHack separately and launch the game via DFHack.

This mod makes the stress/happiness icons in the UI clickable.
Clicking an icon opens a filtered unit list of all dwarves in that stress category.
Selecting a dwarf from the list centers the map on that unit for quick navigation.

Compatibility
Compatible with most mods. Conflicts may occur with mods that place UI elements at the same screen position.
If the position of the stress-level icons is modified, the offset variables at the top of the script must be adjusted accordingly.
Changing the appearance of the icons (tilesets/graphics) is supported, since this mod does not modify any existing game files and only adds a DFHack script.

Tested with
Dwarf Fortress 53.11
DFHack 53.11-r3rc2

This is my first Dwarf Fortress mod, so issues may exist.

Feel free to use or modify the code. Attribution is appreciated but not required.

Patch Notes:
-Fixed not being able to open the same stress category after clicking on a stress smiley twice and then closing it before opening another.
-Fixed Units with no soul potentially leading to a crash.
-Removed Version Tag in info.txt because it caused problems for some.
-Hardened unit list handling and reduced repeated stress lookups.