mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
Added v2.0 and skelecog to cog level gui.
This commit is contained in:
parent
1e248a081a
commit
a96e9e8910
1 changed files with 11 additions and 1 deletions
|
@ -39,6 +39,7 @@ class TownBattleCogPanel(DirectFrame):
|
|||
self.setScale(0.8)
|
||||
self.initialiseoptions(TownBattleCogPanel)
|
||||
self.levelText = DirectLabel(parent=self, text='', pos=(-0.06, 0, -0.075), text_scale=0.055)
|
||||
self.suitType = DirectLabel(parent=self, text='', pos=(0.12, 0, -0.075), text_scale=0.055)
|
||||
self.healthBar = None
|
||||
self.healthBarGlow = None
|
||||
self.hpChangeEvent = None
|
||||
|
@ -59,6 +60,12 @@ class TownBattleCogPanel(DirectFrame):
|
|||
return
|
||||
self.suit = suit
|
||||
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:
|
||||
self.head.removeNode()
|
||||
self.setSuitHead(self.suit.getStyleName())
|
||||
|
@ -78,6 +85,9 @@ class TownBattleCogPanel(DirectFrame):
|
|||
def setLevelText(self, level):
|
||||
self.levelText['text'] = 'Level '+ str(level)
|
||||
|
||||
def setTypeText(self, suitType):
|
||||
self.suitType['text'] = suitType
|
||||
|
||||
def setSuitHead(self, suitName):
|
||||
self.head = Suit.attachSuitHead(self, suitName)
|
||||
self.head.setX(0.1)
|
||||
|
|
Loading…
Reference in a new issue