def __init__(self): if self.IS_3D: ClickablePopup.__init__(self, NametagGlobals.camera) else: ClickablePopup.__init__(self) self.contents = 0 # To be set by subclass. self.innerNP = NodePath.anyPath(self).attachNewNode('nametag_contents') self.wordWrap = 7.5 self.chatWordWrap = None self.font = None self.speechFont = None self.name = '' self.displayName = '' self.qtColor = VBase4(1,1,1,1) self.colorCode = CCNormal self.avatar = None self.icon = NodePath('icon') self.frame = (0, 0, 0, 0) self.nameFg = (0,0,0,1) self.nameBg = (1,1,1,1) self.chatFg = (0,0,0,1) self.chatBg = (1,1,1,1) self.chatString = '' self.chatFlags = 0
def __init__(self): if self.IS_3D: ClickablePopup.__init__(self, NametagGlobals.camera) else: ClickablePopup.__init__(self) self.contents = 0 # To be set by subclass. self.innerNP = NodePath.anyPath(self).attachNewNode('nametag_contents') self.wordWrap = 7.5 self.chatWordWrap = 10.0 self.font = None self.name = '' self.displayName = '' self.qtColor = VBase4(1, 1, 1, 1) self.colorCode = CCNormal self.avatar = None self.icon = NodePath('icon') self.nameFg = (0, 0, 0, 1) self.nameBg = (1, 1, 1, 1) self.chatFg = (0, 0, 0, 1) self.chatBg = (1, 1, 1, 1) self.chatString = '' self.chatFlags = 0
def destroy(self): ClickablePopup.destroy(self)