Skip to content

unit-info-viewer: show current and long-term mood on unit sheets - #1638

Open
Alistair-Afton wants to merge 1 commit into
DFHack:masterfrom
Alistair-Afton:unit-sheet-mood
Open

Alistair-Afton wants to merge 1 commit into
DFHack:masterfrom
Alistair-Afton:unit-sheet-mood

Conversation

@Alistair-Afton

Copy link
Copy Markdown
Contributor

Summary

  • Adds a gui/unit-info-viewer.mood overlay widget on the unit Overview sheet that shows the viewed unit's current mood and long-term mood, color-coded by stress level
  • Uses the canonical stress category names/colors shared with spectate and dwarfmonitor (Miserable through Ecstatic)
  • Anchors itself into the blank band at the bottom of the vital-stats section by scanning for the "Overview" tab label, so it tracks window resizes; respects user repositioning via config.pos
  • Hidden for soulless units; visible/onupdate gating keeps it out of the way on other tabs

Test plan

  • test -t mood — 3/3 tests pass: mood rendering, stress-change reflection, soulless-unit hiding
  • test -t squads — no regressions
  • Verified in-game: opening/closing unit sheets, switching units, resize tracking

Fixes DFHack/dfhack#5854

Adds an overlay widget on the unit Overview sheet that displays the
viewed unit's current and long-term mood, color-coded by stress level,
per DFHack/dfhack#5854.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add overall mood to the character sheet

1 participant