diff options
author | jani270 <69345714+jani270@users.noreply.github.com> | 2024-05-19 07:56:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-19 15:56:03 +1000 |
commit | 080c9d8b24213441adf8ff594e646b8e905a14cd (patch) | |
tree | 561829c3166113f8cdea51b7f8c6a83afbb4a67d | |
parent | 26f5797bf55cbc34c5c0ae606e6560bb0a1c5661 (diff) | |
download | NotEnoughUpdates-080c9d8b24213441adf8ff594e646b8e905a14cd.tar.gz NotEnoughUpdates-080c9d8b24213441adf8ff594e646b8e905a14cd.tar.bz2 NotEnoughUpdates-080c9d8b24213441adf8ff594e646b8e905a14cd.zip |
Add Personal Bank Balance to PV (#1176)
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ExtraPage.java | 6 | ||||
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/profileviewer/data/APIDataJson.java | 1 |
2 files changed, 5 insertions, 2 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ExtraPage.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ExtraPage.java index 78ed2218..5f3a31f1 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ExtraPage.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/ExtraPage.java @@ -259,10 +259,12 @@ public class ExtraPage extends GuiProfileViewerPage { "banking.balance" ), 0); float purseBalance = data.currencies.coin_purse; + float personalBankBalance = data.profile.bank_account; Utils.renderAlignedString( - EnumChatFormatting.GOLD + "Bank Balance", - EnumChatFormatting.WHITE + StringUtils.shortNumberFormat(bankBalance), + EnumChatFormatting.GOLD + "Bank", + EnumChatFormatting.WHITE + StringUtils.shortNumberFormat(bankBalance) + "/" + + StringUtils.shortNumberFormat(personalBankBalance), guiLeft + xStart, guiTop + yStartTop, 76 diff --git a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/data/APIDataJson.java b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/data/APIDataJson.java index 768ff674..ff83d163 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/data/APIDataJson.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/profileviewer/data/APIDataJson.java @@ -55,6 +55,7 @@ public class APIDataJson { public static class Profile { public int personal_bank_upgrade = 0; public boolean cookie_buff_active = false; + public float bank_account = 0; } public Experimentation experimentation = new Experimentation(); |