diff options
author | Aaron <51387595+AzureAaron@users.noreply.github.com> | 2023-11-03 04:25:12 -0400 |
---|---|---|
committer | Aaron <51387595+AzureAaron@users.noreply.github.com> | 2023-11-03 04:25:12 -0400 |
commit | 1c2d6508bfaeafa116fe3720507aa03831123c4a (patch) | |
tree | b92a4e16dac7418f27e6e3f7b703ad5813e36f3c /src/main/java | |
parent | bc264534f6f1fa5d9a5841da5e3661bd1832ab8b (diff) | |
download | Skyblocker-1c2d6508bfaeafa116fe3720507aa03831123c4a.tar.gz Skyblocker-1c2d6508bfaeafa116fe3720507aa03831123c4a.tar.bz2 Skyblocker-1c2d6508bfaeafa116fe3720507aa03831123c4a.zip |
Tweak DungeonPuzzleWidget
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/de/hysky/skyblocker/skyblock/tabhud/widget/DungeonPuzzleWidget.java | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/main/java/de/hysky/skyblocker/skyblock/tabhud/widget/DungeonPuzzleWidget.java b/src/main/java/de/hysky/skyblocker/skyblock/tabhud/widget/DungeonPuzzleWidget.java index 01413733..53f84f71 100644 --- a/src/main/java/de/hysky/skyblocker/skyblock/tabhud/widget/DungeonPuzzleWidget.java +++ b/src/main/java/de/hysky/skyblocker/skyblock/tabhud/widget/DungeonPuzzleWidget.java @@ -39,22 +39,19 @@ public class DungeonPuzzleWidget extends Widget { } Formatting statcol = switch (m.group("status")) { - case "✔" -> Formatting.GREEN; - case "✖" -> Formatting.RED; - default -> Formatting.WHITE; + case "✦" -> Formatting.GOLD; // Unsolved + case "✔" -> Formatting.GREEN; // Solved + case "✖" -> Formatting.RED; // Failed + default -> Formatting.WHITE; // Who knows if they'll add another puzzle state or not? }; Text t = Text.literal(m.group("name") + ": ") .append(Text.literal("[").formatted(Formatting.GRAY)) - .append(Text.literal(m.group("status")).formatted(statcol)) + .append(Text.literal(m.group("status")).formatted(statcol, Formatting.BOLD)) .append(Text.literal("]").formatted(Formatting.GRAY)); IcoTextComponent itc = new IcoTextComponent(Ico.SIGN, t); this.addComponent(itc); pos++; - // code points for puzzle status chars unsolved and solved: 10022, 10004 - // not sure which one is which - // still need to find out codepoint for the puzzle failed char - m.group("status").codePoints().forEach(System.out::println); } if (pos == 48) { this.addComponent( |