kourendlibrary: highlight the customer's desired book in the overlay

This commit is contained in:
Shawn Shadrix
2019-11-27 12:57:03 +00:00
committed by Hydrox6
parent 76fdb50fa6
commit 67f7927b3e

View File

@@ -125,7 +125,7 @@ class KourendLibraryOverlay extends Overlay
book = possible.iterator().next();
bookIsKnown = true;
}
Color color = bookIsKnown ? Color.ORANGE : Color.WHITE;
Color color = bookIsKnown ? (book == library.getCustomerBook() ? Color.GREEN : Color.ORANGE) : Color.WHITE;
// Render the poly on the floor
if (!(bookIsKnown && book == null) && (library.getState() == SolvedState.NO_DATA || book != null || !possible.isEmpty()) && !shouldHideOverlayIfDuplicateBook(book))