mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2024-12-24 20:22:33 -06:00
Fixed cog level gui.
This commit is contained in:
parent
f8a7e32d7b
commit
330cfb7b4b
1 changed files with 13 additions and 8 deletions
|
@ -60,12 +60,6 @@ class TownBattleCogPanel(DirectFrame):
|
||||||
return
|
return
|
||||||
self.suit = suit
|
self.suit = suit
|
||||||
self.setLevelText(self.suit.getActualLevel())
|
self.setLevelText(self.suit.getActualLevel())
|
||||||
if self.suit.isSkeleton == 1:
|
|
||||||
self.type = "Skel"
|
|
||||||
self.setTypeText(self.type)
|
|
||||||
if self.suit.revives == 1:
|
|
||||||
self.type = "V2.0"
|
|
||||||
self.setTypeText(self.type)
|
|
||||||
if self.head:
|
if self.head:
|
||||||
self.head.removeNode()
|
self.head.removeNode()
|
||||||
self.setSuitHead(self.suit.getStyleName())
|
self.setSuitHead(self.suit.getStyleName())
|
||||||
|
@ -78,6 +72,16 @@ class TownBattleCogPanel(DirectFrame):
|
||||||
self.accept(self.hpChangeEvent, self.updateHealthBar)
|
self.accept(self.hpChangeEvent, self.updateHealthBar)
|
||||||
self.updateHealthBar()
|
self.updateHealthBar()
|
||||||
self.healthBar.show()
|
self.healthBar.show()
|
||||||
|
if self.suit.isSkelecog == 1:
|
||||||
|
self.type = 'Skel'
|
||||||
|
self.setTypeText(self.type)
|
||||||
|
self.suitRevives = self.suit.getSkeleRevives()
|
||||||
|
if self.suitRevives == 1:
|
||||||
|
self.type = 'v2.0'
|
||||||
|
self.setTypeText(self.type)
|
||||||
|
if self.suitRevives < 1 and self.suit.isSkelecog == 0:
|
||||||
|
self.type = ''
|
||||||
|
self.setTypeText(self.type)
|
||||||
|
|
||||||
def getSuit(self, suit):
|
def getSuit(self, suit):
|
||||||
return self.suit
|
return self.suit
|
||||||
|
@ -214,6 +218,7 @@ class TownBattleCogPanel(DirectFrame):
|
||||||
del self.head
|
del self.head
|
||||||
self.levelText.destroy()
|
self.levelText.destroy()
|
||||||
del self.levelText
|
del self.levelText
|
||||||
|
del self.suitType
|
||||||
del self.healthBar
|
del self.healthBar
|
||||||
if self.healthBarGlow is not None:
|
if self.healthBarGlow is not None:
|
||||||
self.healthBarGlow.removeNode()
|
self.healthBarGlow.removeNode()
|
||||||
|
|
Loading…
Reference in a new issue