當前位置: 首頁>>代碼示例>>Python>>正文


Python ShadowCaster.ShadowCaster類代碼示例

本文整理匯總了Python中otp.avatar.ShadowCaster.ShadowCaster的典型用法代碼示例。如果您正苦於以下問題:Python ShadowCaster類的具體用法?Python ShadowCaster怎麽用?Python ShadowCaster使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了ShadowCaster類的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: __init__

    def __init__(self, other = None):
        self.name = ''
        try:
            self.Avatar_initialized
            return
        except:
            self.Avatar_initialized = 1

        Actor.__init__(self, None, None, other, flattenable=0, setFinal=0)
        ShadowCaster.__init__(self)
        self.__font = OTPGlobals.getInterfaceFont()
        self.__speechFont = OTPGlobals.getInterfaceFont()
        self.soundChatBubble = None
        self.avatarType = ''
        self.nametagNodePath = None
        self.__nameVisible = 1
        self.nametag = NametagGroup()
        self.nametag.setAvatar(self)
        self.nametag.setFont(OTPGlobals.getInterfaceFont())
        self.nametag.setSpeechFont(OTPGlobals.getInterfaceFont())
        self.nametag2dContents = Nametag.CName | Nametag.CSpeech
        self.nametag2dDist = Nametag.CName | Nametag.CSpeech
        self.nametag2dNormalContents = Nametag.CName | Nametag.CSpeech
        self.nametag3d = self.attachNewNode('nametag3d')
        self.nametag3d.setTag('cam', 'nametag')
        self.nametag3d.setLightOff()
        if self.ManagesNametagAmbientLightChanged:
            self.acceptNametagAmbientLightChange()
        OTPRender.renderReflection(False, self.nametag3d, 'otp_avatar_nametag', None)
        self.getGeomNode().showThrough(OTPRender.ShadowCameraBitmask)
        self.nametag3d.hide(OTPRender.ShadowCameraBitmask)
        self.collTube = None
        self.battleTube = None
        self.scale = 1.0
        self.nametagScale = 1.0
        self.height = 0.0
        self.battleTubeHeight = 0.0
        self.battleTubeRadius = 0.0
        self.style = None
        self.commonChatFlags = 0
        self.understandable = 1
        self.setPlayerType(NametagGroup.CCNormal)
        self.ghostMode = 0
        self.__chatParagraph = None
        self.__chatMessage = None
        self.__chatFlags = 0
        self.__chatPageNumber = None
        self.__chatAddressee = None
        self.__chatDialogueList = []
        self.__chatSet = 0
        self.__chatLocal = 0
        self.__currentDialogue = None
        self.whitelistChatFlags = 0
        self.wantAdminTag = True
        return
開發者ID:Toonerz,項目名稱:Toontown-World-Online-Leak,代碼行數:55,代碼來源:Avatar.py

示例2: delete

 def delete(self):
     try:
         self.Avatar_deleted
     except:
         self.deleteNametag3d()
         Actor.cleanup(self)
         self.Avatar_deleted = 1
         del self.__font
         del self.style
         del self.soundChatBubble
         self.nametag.destroy()
         del self.nametag
         self.nametag3d.removeNode()
         ShadowCaster.delete(self)
         Actor.delete(self)
開發者ID:BmanGames,項目名稱:ToontownStride,代碼行數:15,代碼來源:Avatar.py

示例3: delete

 def delete(self):
     try:
         self.Avatar_deleted
     except:
         self.deleteNametag3d()
         Actor.cleanup(self)
         if self.ManagesNametagAmbientLightChanged:
             self.ignoreNametagAmbientLightChange()
         self.Avatar_deleted = 1
         del self.__font
         del self.style
         del self.soundChatBubble
         del self.nametag
         self.nametag3d.removeNode()
         ShadowCaster.delete(self)
         Actor.delete(self)
開發者ID:MasterLoopyBM,項目名稱:c0d3,代碼行數:16,代碼來源:Avatar.py

示例4: __init__

 def __init__(self, name, geom = None):
     an = ActorNode('flyingGagAN')
     NodePath.__init__(self, an)
     self.actorNode = an
     self.gag = None
     self.gagNode = None
     ShadowCaster.__init__(self, False)
     if geom:
         self.gagNode = self.attachNewNode('PieNode')
         self.gag = geom.copyTo(self.gagNode)
         self.gag.setScale(3)
         self.gagNode.setHpr(0, -45, 0)
         self.gagNode.setPos(0, 0, 2)
         self.initializeDropShadow()
         self.setActiveShadow()
         self.dropShadow.setPos(0, 0, 2)
         self.dropShadow.setScale(3)
     return
開發者ID:nate97,項目名稱:src,代碼行數:18,代碼來源:FlyingGag.py

示例5: __init__

 def __init__(self, other = None):
     Actor.__init__(self, None, None, other, flattenable=0, setFinal=1)
     ShadowCaster.__init__(self)
     self.__font = OTPGlobals.getInterfaceFont()
     self.name = ''
     self.soundChatBubble = None
     self.avatarType = ''
     self.nametagNodePath = None
     self.__nameVisible = 1
     self.nametag = NametagGroup()
     self.nametag.setAvatar(self)
     self.nametag.setFont(OTPGlobals.getInterfaceFont())
     self.nametag.setSpeechFont(OTPGlobals.getInterfaceFont())
     self.nametag2dContents = Nametag.CName | Nametag.CSpeech
     self.nametag2dDist = Nametag.CName | Nametag.CSpeech
     self.nametag2dNormalContents = Nametag.CName | Nametag.CSpeech
     self.nametag3d = self.attachNewNode('nametag3d')
     self.nametag3d.setTag('cam', 'nametag')
     self.nametag3d.setLightOff()
     self.getGeomNode().showThrough(OTPRender.ShadowCameraBitmask)
     self.nametag3d.hide(OTPRender.ShadowCameraBitmask)
     self.collTube = None
     self.scale = 1.0
     self.height = 0.0
     self.style = None
     self.understandable = 1
     self.setPlayerType(NametagGroup.CCNormal)
     self.ghostMode = 0
     self.__chatParagraph = None
     self.__chatMessage = None
     self.__chatFlags = 0
     self.__chatPageNumber = None
     self.__chatAddressee = None
     self.__chatDialogueList = []
     self.__chatSet = 0
     self.__chatLocal = 0
     self.__currentDialogue = None
     self.wantAdminTag = True
開發者ID:BmanGames,項目名稱:ToontownStride,代碼行數:38,代碼來源:Avatar.py

示例6: delete

 def delete(self):
     ShadowCaster.delete(self)
     NodePath.remove(self)
     self.gag = None
     return
開發者ID:nate97,項目名稱:src,代碼行數:5,代碼來源:FlyingGag.py

示例7: __init__

 def __init__(self, cr):
     ShadowCaster.__init__(self)
     DistributedSmoothNode.__init__(self, cr)
     NodePath.__init__(self, 'Projectile')
開發者ID:MasterLoopyBM,項目名稱:c0d3,代碼行數:4,代碼來源:DistributedProjectile.py


注:本文中的otp.avatar.ShadowCaster.ShadowCaster類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。