Skip to content

Commit 98257f7

Browse files
committed
feat: colorize client in overlay if they have unique rewards
1 parent 92a6358 commit 98257f7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/main/java/io/github/mmagicala/gnomeRestaurant/overlay/GnomeRestaurantOverlay.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ public Dimension render(Graphics2D graphics) {
7777
private void renderOrderOverlay(OverlayHeader header) {
7878
String headerCustomerText = header.order.getName() + " to " + header.customer.getName();
7979
LineComponent headerCustomerComponent = LineComponent.builder().left(headerCustomerText).build();
80+
if (!header.customer.getUniqueRewards().isEmpty()) {
81+
headerCustomerComponent.setLeftColor(Color.CYAN);
82+
}
8083
panelComponent.getChildren().add(headerCustomerComponent);
8184

8285
String headerStepText = "Step " + header.stepNum + "/" + header.totalSteps + ": " + header.instruction;

0 commit comments

Comments
 (0)