Fix bank money display

This commit is contained in:
John 2015-07-03 17:09:04 +03:00
parent 1ca717a236
commit 485eaa83ec

View file

@ -213,10 +213,12 @@ class InventoryPage(ShtikerPage.ShtikerPage):
base.localAvatar.inventory.setActivateMode('book')
base.localAvatar.inventory.show()
base.localAvatar.inventory.reparentTo(self)
self.moneyDisplay['text'] = str(base.localAvatar.getMoney())
self.__moneyChange(base.localAvatar.getMoney())
self.__bankMoneyChange(base.localAvatar.getBankMoney())
self.accept('enterTrackFrame', self.updateTrackInfo)
self.accept('exitTrackFrame', self.clearTrackInfo)
self.accept(localAvatar.uniqueName('moneyChange'), self.__moneyChange)
self.accept(localAvatar.uniqueName('bankMoneyChange'), self.__bankMoneyChange)
self.reparentTo(aspect2d)
self.title.hide()
self.show()
@ -228,6 +230,7 @@ class InventoryPage(ShtikerPage.ShtikerPage):
self.ignore('enterTrackFrame')
self.ignore('exitTrackFrame')
self.ignore(localAvatar.uniqueName('moneyChange'))
self.ignore(localAvatar.uniqueName('bankMoneyChange'))
base.localAvatar.inventory.hide()
base.localAvatar.inventory.reparentTo(hidden)
self.reparentTo(self.book)