Skip to content

Commit

Permalink
Merge pull request #3918 from myk002/myk_buildingplan_available
Browse files Browse the repository at this point in the history
[buildingplan] display how many items are available on the planner panel
  • Loading branch information
myk002 authored Oct 27, 2023
2 parents f0a0814 + 369ac78 commit cac4b8d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Template for new versions:
## Fixes

## Misc Improvements
- `buildingplan`: display how many items are available on the planner panel

## Documentation

Expand Down
2 changes: 1 addition & 1 deletion plugins/lua/buildingplan/planneroverlay.lua
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ function ItemLine:get_item_line_text()
uibs.building_type, uibs.building_subtype, uibs.custom_type, idx - 1)
if self.available >= quantity then
self.note_pen = COLOR_GREEN
self.note = ' Available now'
self.note = (' %d available now'):format(self.available)
elseif self.available >= 0 then
self.note_pen = COLOR_BROWN
self.note = (' Will link next (need to make %d)'):format(quantity - self.available)
Expand Down

0 comments on commit cac4b8d

Please sign in to comment.