From ae300c7cc8a2c6b7911ff5814c8f277424b6e0a3 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Fri, 23 Sep 2022 16:13:08 -0400 Subject: [PATCH] v1.4.0: added a highlight for unread pages in WndDocument --- .../shatteredpixeldungeon/windows/WndDocument.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndDocument.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndDocument.java index 34d8aa677..31a1b964e 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndDocument.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/windows/WndDocument.java @@ -53,6 +53,7 @@ public class WndDocument extends Window { doc.pageTitle(page), doc.pageBody(page) )); doc.readPage(page); + hardlight(Window.WHITE); return true; } else { return false; @@ -62,6 +63,8 @@ public class WndDocument extends Window { if (!found){ item.hardlight(0x999999); item.hardlightIcon(0x999999); + } else if (!doc.isPageRead(page)){ + item.hardlight(Window.TITLE_COLOR); } list.addItem(item); }