def setClickState(self, clickState): if self.isClickable(): self.applyClickState(clickState) else: self.applyClickState(PGButton.SInactive) Clickable3d.setClickState(self, clickState)
def __init__(self): Nametag.__init__(self) Clickable3d.__init__(self, 'Nametag3d') self.distance = 0 self.billboardOffset = 3 self.doBillboardEffect()
def destroy(self): self.ignoreAll() if self.chatBalloonAnimTrack is not None: self.chatBalloonAnimTrack.finish() self.chatBalloonAnimTrack = None Nametag.destroy(self) Clickable3d.destroy(self)
def __init__(self): Nametag.__init__(self) Clickable3d.__init__(self, 'Nametag3d') self.distance = 0 self.billboardOffset = 3 self.doBillboardEffect() self.chatBalloonAnimTrack = None
def isClickable(self): if self.getChatText() and self.hasChatButton(): return True return NametagGlobals.wantActiveNametags and Clickable3d.isClickable(self)
def destroy(self): self.ignoreAll() Nametag.destroy(self) Clickable3d.destroy(self)
def setAvatar(self, avatar): Nametag.setAvatar(self, avatar) Clickable3d.setAvatar(self, avatar)