Stats page format fix

This commit is contained in:
John 2015-08-27 20:42:24 +03:00
parent b2688c9107
commit 48a811cd0d

View file

@ -9,7 +9,6 @@ class StatPage(ShtikerPage.ShtikerPage):
ShtikerPage.ShtikerPage.__init__(self)
self.dialog = None
self.chunkCount = 11
base.cr.lol = self
def load(self):
guiButton = loader.loadModel('phase_3/models/gui/quit_button')
@ -57,7 +56,7 @@ class StatPage(ShtikerPage.ShtikerPage):
def updateStats(self):
stats = base.localAvatar.stats
allStats = [TTLocalizer.Stats[i] % stats[i] for i in xrange(len(stats))]
allStats = [TTLocalizer.Stats[i] % '{:,}'.format(stats[i]) for i in xrange(len(stats))]
textChunks = list(self.cutToChunks(allStats, self.chunkCount))
for i, chunk in enumerate(textChunks):