From d9ccdc541f76bd93585b50803e4c018228672043 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Fri, 25 Oct 2024 21:42:30 +0500 Subject: upd: number formatter --- core/src/kz/ilotterytea/maxon/ui/SavegameWidget.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'core/src/kz/ilotterytea/maxon/ui') diff --git a/core/src/kz/ilotterytea/maxon/ui/SavegameWidget.java b/core/src/kz/ilotterytea/maxon/ui/SavegameWidget.java index 2d12f86..364a793 100644 --- a/core/src/kz/ilotterytea/maxon/ui/SavegameWidget.java +++ b/core/src/kz/ilotterytea/maxon/ui/SavegameWidget.java @@ -101,7 +101,7 @@ public class SavegameWidget extends Table implements Disposable { Image pointsIcon = new Image(atlas.findRegion("points")); data.add(pointsIcon).size(iconSize, iconSize).padRight(8f); - Label points = new Label(NumberFormatter.format((long) savegame.getMoney()), skin, styleName); + Label points = new Label(NumberFormatter.format(savegame.getMoney(), false), skin, styleName); data.add(points).padRight(iconSize); // Unit @@ -121,7 +121,7 @@ public class SavegameWidget extends Table implements Disposable { Image multiplierIcon = new Image(atlas.findRegion("multiplier")); data.add(multiplierIcon).size(iconSize, iconSize).padRight(8f); - Label multiplier = new Label(NumberFormatter.format((long) savegame.getMultiplier()), skin, styleName); + Label multiplier = new Label(NumberFormatter.format(savegame.getMultiplier()), skin, styleName); data.add(multiplier); this.dataTable.add(data).grow(); -- cgit v1.2.3