Skip to content

Commit a6d26cd

Browse files
committed
colorize moody dwarf warnings
1 parent 766c6b2 commit a6d26cd

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ Template for new versions:
3939
## Misc Improvements
4040
- `hide-tutorials`: if enabled, also hide tutorial popups for adventure mode
4141
- `hide-tutorials`: new ``reset`` command that will re-enable popups in the current game
42+
- `gui/notify`: moody dwarf notification turns red when they can't find workshop or items
4243

4344
## Removed
4445

internal/notify/notifications.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ NOTIFICATIONS_BY_IDX = {
428428
if dfhack.buildings.findAtTile(unit.path.dest) then
429429
message = 'moody dwarf is claiming a workshop'
430430
else
431-
message = 'moody dwarf can\'t find needed workshop!'
431+
message = {{text='moody dwarf can\'t find needed workshop!', pen=COLOR_LIGHTRED}}
432432
end
433433
elseif job.flags.fetching or job.flags.bringing or
434434
unit.path.goal == df.unit_path_goal.None
@@ -437,7 +437,7 @@ NOTIFICATIONS_BY_IDX = {
437437
elseif job.flags.working then
438438
message = 'moody dwarf is working'
439439
else
440-
message = 'moody dwarf can\'t find needed item!'
440+
message = {{text='moody dwarf can\'t find needed item!', pen=COLOR_LIGHTRED}}
441441
end
442442
return true
443443
end)

0 commit comments

Comments
 (0)