Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a DOT on large numbers #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/main/java/tk/avicia/chestcountmod/InfoDisplay.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
import tk.avicia.chestcountmod.configs.locations.TextElement;

import java.awt.*;
import java.text.NumberFormat;
import java.util.Locale;
import java.util.ArrayList;

public class InfoDisplay {
Expand Down Expand Up @@ -39,9 +41,10 @@ public static MultipleElements getElementsToDraw() {

// offset balances the displays, so they don't have blank rows
int offset = 0;
String chestCount = NumberFormat.getNumberInstance(Locale.GERMAN).format(ChestCountMod.getChestCountData().getTotalChestCount());
if (showChestCount) {
elementsList.add(new TextElement("Chests Opened: " + ChestCountMod.getChestCountData().getTotalChestCount(), location.x + 1, location.y + 1, Color.BLACK));
elementsList.add(new TextElement("Chests Opened: " + ChestCountMod.getChestCountData().getTotalChestCount(), location.x, location.y, Color.WHITE));
elementsList.add(new TextElement("Chests Opened: " + chestCount, location.x + 1, location.y + 1, Color.BLACK));
elementsList.add(new TextElement("Chests Opened: " + chestCount, location.x, location.y, Color.WHITE));
offset++;
}
if (showSessionChestCount) {
Expand Down