def destroy(self): self.ignoreAll() self.cTag = None Nametag.destroy(self) Clickable3d.destroy(self)
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
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
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
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()
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()
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
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
def unmanage(self, manager): Nametag.unmanage(self, manager) manager.unmanagePopup(self)
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()
def setChatText(self, chatText): self.actualChatText = chatText Nametag.setChatText(self, chatText)