From 6382bdc0d84f2a39c2adeb13c686f422f1914f45 Mon Sep 17 00:00:00 2001 From: Vixid <52578495+Vixid1@users.noreply.github.com> Date: Wed, 2 Nov 2022 16:12:45 +0000 Subject: Crimson Isle Profile Viewer Page (#346) * Made a profile viewer page for Crimson Isle information. * Changed Black dojo rank to have dark gray colour, so it's readable. * Fixed NullPointerExceptions for missing data * Tried to use ItemResolutionQuery but Nea said this is fine * Added Hostile and Unfriendly faction thresholds * don't recreate helper objects in every render tick * Formatted the class and put drawMageReputation and drawBarbarianReputation into a single function * Last commit broke with players with no selected faction. This fixes it Co-authored-by: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> Co-authored-by: hannibal2 <24389977+hannibal00212@users.noreply.github.com> --- .../java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java b/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java index 6c6c7169..948b2550 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/NotEnoughUpdates.java @@ -266,6 +266,9 @@ public class NotEnoughUpdates { if (config.profileViewer.pageLayout.size() == 9) { config.profileViewer.pageLayout.add(9); } + if (config.profileViewer.pageLayout.size() == 10) { + config.profileViewer.pageLayout.add(10); + } // Remove after 2.1 ig if ("dangerous".equals(config.apiData.repoBranch)) { -- cgit