Esempio n. 1
0
    def __init__(self):
        Nametag.__init__(self)
        Clickable3d.__init__(self, 'Nametag3d')

        self.distance = 0

        self.billboardOffset = 3
        self.doBillboardEffect()
Esempio n. 2
0
    def __init__(self):
        Nametag.__init__(self)
        Clickable3d.__init__(self, 'Nametag3d')

        self.distance = 0

        self.billboardOffset = 3
        self.doBillboardEffect()
Esempio n. 3
0
 def update(self):
     self.contents.node().removeAllChildren()
     Nametag.update(self)
     if self.cell is not None:
         self.reposition()
         self.updateClickRegion()
     elif self.region is not None:
         self.region.setActive(False)
    def destroy(self):
        self.ignoreAll()

        if self.chatBalloonAnimTrack is not None:
            self.chatBalloonAnimTrack.finish()
            self.chatBalloonAnimTrack = None

        Nametag.destroy(self)
        Clickable3d.destroy(self)
    def destroy(self):
        self.ignoreAll()

        if self.chatBalloonAnimTrack is not None:
            self.chatBalloonAnimTrack.finish()
            self.chatBalloonAnimTrack = None

        Nametag.destroy(self)
        Clickable3d.destroy(self)
Esempio n. 6
0
 def __init__(self):
     Nametag.__init__(self)
     Clickable2d.__init__(self, 'Nametag2d')
     MarginVisible.__init__(self)
     self.actualChatText = ''
     self.arrow = None
     self.textNodePath = None
     self.contents.setScale(self.CONTENTS_SCALE)
     self.hideThought()
     self.accept('MarginVisible-update', self.update)
Esempio n. 7
0
 def destroy(self):
     self.ignoreAll()
     Nametag.destroy(self)
     if self.textNodePath is not None:
         self.textNodePath.removeNode()
         self.textNodePath = None
     if self.arrow is not None:
         self.arrow.removeNode()
         self.arrow = None
     Clickable2d.destroy(self)
    def __init__(self):
        Nametag.__init__(self)
        Clickable3d.__init__(self, 'Nametag3d')

        self.distance = 0

        self.billboardOffset = 3
        self.doBillboardEffect()

        self.chatBalloonAnimTrack = None
    def __init__(self):
        Nametag.__init__(self)
        Clickable3d.__init__(self, 'Nametag3d')

        self.distance = 0

        self.billboardOffset = 3
        self.doBillboardEffect()

        self.chatBalloonAnimTrack = None
    def destroy(self):
        self.ignoreAll()

        Nametag.destroy(self)

        if self.textNodePath is not None:
            self.textNodePath.removeNode()
            self.textNodePath = None

        if self.arrow is not None:
            self.arrow.removeNode()
            self.arrow = None

        Clickable2d.destroy(self)
    def __init__(self):
        Nametag.__init__(self)
        Clickable2d.__init__(self, 'Nametag2d')
        MarginVisible.__init__(self)

        self.actualChatText = ''

        self.arrow = None
        self.textNodePath = None

        self.contents.setScale(self.CONTENTS_SCALE)
        self.hideThought()

        self.accept('MarginVisible-update', self.update)
Esempio n. 12
0
    def update(self):
        self.contents.node().removeAllChildren()

        Nametag.update(self)

        if self.cell is not None:
            # We're in the margin display. Reposition our content, and update
            # the click region:
            self.reposition()
            self.updateClickRegion()
        else:
            # We aren't in the margin display. Disable the click region if one
            # is present:
            if self.region is not None:
                self.region.setActive(False)
    def update(self):
        self.contents.node().removeAllChildren()

        Nametag.update(self)

        if self.cell is not None:
            # We're in the margin display. Reposition our content, and update
            # the click region:
            self.reposition()
            self.updateClickRegion()
        else:
            # We aren't in the margin display. Disable the click region if one
            # is present:
            if self.region is not None:
                self.region.setActive(False)
Esempio n. 14
0
 def setChatText(self, chatText):
     self.actualChatText = chatText
     Nametag.setChatText(self, chatText)
Esempio n. 15
0
 def setAvatar(self, avatar):
     Nametag.setAvatar(self, avatar)
     Clickable3d.setAvatar(self, avatar)
Esempio n. 16
0
    def destroy(self):
        self.ignoreAll()

        Nametag.destroy(self)
        Clickable3d.destroy(self)
Esempio n. 17
0
    def update(self):
        self.contents.node().removeAllChildren()

        Nametag.update(self)
    def setChatText(self, chatText):
        self.actualChatText = chatText

        Nametag.setChatText(self, chatText)
Esempio n. 19
0
    def destroy(self):
        self.ignoreAll()

        Nametag.destroy(self)
        Clickable3d.destroy(self)
Esempio n. 20
0
 def update(self):
     self.removeContents()
     Nametag.update(self)
Esempio n. 21
0
    def update(self):
        self.contents.node().removeAllChildren()

        Nametag.update(self)
Esempio n. 22
0
 def update(self):
     self.removeContents()
     Nametag.update(self)