Example #1
0
    def destroy(self):
        self.ignoreAll()
        
        self.cTag = None

        Nametag.destroy(self)
        Clickable3d.destroy(self)
Example #2
0
 def update(self):
     self.contents.node().removeAllChildren()
     Nametag.update(self)
     if self.cell is not None:
         self.reposition()
         self.updateClickRegion()
     else:
         if self.region is not None:
             self.region.setActive(False)
     return
Example #3
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)
     return
Example #4
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)
     return
Example #5
0
    def __init__(self):
        Nametag.__init__(self)
        Clickable3d.__init__(self, 'Nametag3d')

        self.cTag = CNametag3d()

        self.distance = 0

        self.card = None
        self.cardNP = None

        self.avatarNode = None

        self.billboardOffset = 3
        self.doBillboardEffect()
Example #6
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()
            if self.isClickable():
                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 __init__(self):
        Nametag.__init__(self)
        Clickable3d.__init__(self, 'Nametag3d')
        
        self.contents.setShaderOff(1)
        self.contents.setLightOff(1)
        self.contents.hide(CIGlobals.ShadowCameraBitmask)
        CIGlobals.applyNoGlow(self.contents)

        self.distance = 0

        self.card = None
        self.cardNP = None

        self.avatarNode = None

        self.billboardOffset = 3
        self.doBillboardEffect()
Example #8
0
 def __init__(self):
     Nametag.__init__(self, 10.5)
     PandaNode.__init__(self, 'unnamed')
     self.m_np_360 = None
     self.m_np_372 = None
     self.m_np_balloon = None
     self.cbNode = CallbackNode(self.getName() + '-cbNode')
     self.cbNode.setCullCallback(PythonCallbackObject(self.cullCallback))
     self.addChild(self.cbNode)
     self.m_billboard_offset = 3.0
     self.m_np_top = NodePath.anyPath(PandaNode('top'))
     self.m_is_3d = 1
     self.m_field_396 = 0
     self.m_name_frame = Vec4(0, 0, 0, 0)
     self.m_chat_contents = None
     self.m_scale_adj = 1
     self.setBounds(BoundingSphere((0, 0, 0), 2.0))
     return
Example #9
0
 def __init__(self):
     Nametag.__init__(self, 8.075)
     MarginPopup.__init__(self)
     self.m_copied_np = None
     self.m_attached_np = None
     self.m_arrow = None
     self.m_unknown_np = None
     self.cbNode = CallbackNode(self.getName() + '-cbNode')
     self.cbNode.setCullCallback(PythonCallbackObject(self.cullCallback))
     self.addChild(self.cbNode)
     self.setName('unnamed')
     self.m_contents = 3
     self.m_chat_contents = 0
     self.updateContents()
     self.m_on = NametagGlobals._master_arrows_on
     self.m_seq2d = 0
     self.m_trans_vec = Vec3(0, 0, 0)
     return
Example #10
0
 def unmanage(self, manager):
     Nametag.unmanage(self, manager)
     manager.unmanagePopup(self)
Example #11
0
 def unmanage(self, manager):
     self.m_np_top.detachNode()
     Nametag.unmanage(self, manager)
 def update(self):
     self.contents.node().removeAllChildren()
     Nametag.update(self)
 def destroy(self):
     self.ignoreAll()
     Nametag.destroy(self)
     Clickable3d.destroy(self)
 def __init__(self):
     Nametag.__init__(self)
     Clickable3d.__init__(self, 'Nametag3d')
     self.distance = 0
     self.billboardOffset = 3
     self.doBillboardEffect()
Example #15
0
 def setChatText(self, chatText):
     self.actualChatText = chatText
     Nametag.setChatText(self, chatText)