Skip to content

Commit

Permalink
Merge pull request #1398 from myk002/myk_moody
Browse files Browse the repository at this point in the history
[gui/notify] colorize moody dwarf warnings
  • Loading branch information
myk002 authored Feb 9, 2025
2 parents 766c6b2 + a6d26cd commit 566edd7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ Template for new versions:
## Misc Improvements
- `hide-tutorials`: if enabled, also hide tutorial popups for adventure mode
- `hide-tutorials`: new ``reset`` command that will re-enable popups in the current game
- `gui/notify`: moody dwarf notification turns red when they can't find workshop or items

## Removed

Expand Down
4 changes: 2 additions & 2 deletions internal/notify/notifications.lua
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ NOTIFICATIONS_BY_IDX = {
if dfhack.buildings.findAtTile(unit.path.dest) then
message = 'moody dwarf is claiming a workshop'
else
message = 'moody dwarf can\'t find needed workshop!'
message = {{text='moody dwarf can\'t find needed workshop!', pen=COLOR_LIGHTRED}}
end
elseif job.flags.fetching or job.flags.bringing or
unit.path.goal == df.unit_path_goal.None
Expand All @@ -437,7 +437,7 @@ NOTIFICATIONS_BY_IDX = {
elseif job.flags.working then
message = 'moody dwarf is working'
else
message = 'moody dwarf can\'t find needed item!'
message = {{text='moody dwarf can\'t find needed item!', pen=COLOR_LIGHTRED}}
end
return true
end)
Expand Down

0 comments on commit 566edd7

Please sign in to comment.