Skip to content

Commit b39740d

Browse files
committed
add current status display to tooltip
1 parent 6dc3565 commit b39740d

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ All notable changes to this project will be documented in this file.
77
- added new status for missing CPU ([#38](https://github.com/AlmostReliable/merequester/issues/38))
88
- added the energy capability to the wireless terminal to allow charging with other
99
mods ([Kolja](https://github.com/ko-lja)@[#51](https://github.com/AlmostReliable/merequester/pull/51))
10+
- added current status to non-expanded tooltip
1011
- fixed scroll bar drag control using wrong texture ([#49](https://github.com/AlmostReliable/merequester/issues/49))
1112

1213
### Known Bugs

src/main/java/com/almostreliable/merequester/client/widgets/StatusDisplay.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,8 @@ public List<Component> getTooltipMessage() {
8181
Utils.translate("tooltip", String.format("%s_desc", RequestStatus.EXPORT.toString().toLowerCase()))
8282
));
8383
} else {
84+
tooltip.add(Utils.translate("tooltip", status.toString().toLowerCase()).withStyle(getStatusColor(status)));
85+
tooltip.add(Component.literal(" "));
8486
Utils.addShiftInfoTooltip(tooltip);
8587
}
8688
return tooltip;

0 commit comments

Comments
 (0)