mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-23 11:42:39 -06:00
Fix bank money display
This commit is contained in:
parent
1ca717a236
commit
485eaa83ec
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue