当前位置: 首页>>代码示例>>Python>>正文


Python ShadowCaster.__init__方法代码示例

本文整理汇总了Python中otp.avatar.ShadowCaster.ShadowCaster.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python ShadowCaster.__init__方法的具体用法?Python ShadowCaster.__init__怎么用?Python ShadowCaster.__init__使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在otp.avatar.ShadowCaster.ShadowCaster的用法示例。


在下文中一共展示了ShadowCaster.__init__方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from otp.avatar.ShadowCaster import ShadowCaster [as 别名]
# 或者: from otp.avatar.ShadowCaster.ShadowCaster import __init__ [as 别名]
    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,代码行数:57,代码来源:Avatar.py

示例2: __init__

# 需要导入模块: from otp.avatar.ShadowCaster import ShadowCaster [as 别名]
# 或者: from otp.avatar.ShadowCaster.ShadowCaster import __init__ [as 别名]
 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,代码行数:20,代码来源:FlyingGag.py

示例3: __init__

# 需要导入模块: from otp.avatar.ShadowCaster import ShadowCaster [as 别名]
# 或者: from otp.avatar.ShadowCaster.ShadowCaster import __init__ [as 别名]
 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,代码行数:40,代码来源:Avatar.py

示例4: __init__

# 需要导入模块: from otp.avatar.ShadowCaster import ShadowCaster [as 别名]
# 或者: from otp.avatar.ShadowCaster.ShadowCaster import __init__ [as 别名]
 def __init__(self, cr):
     ShadowCaster.__init__(self)
     DistributedSmoothNode.__init__(self, cr)
     NodePath.__init__(self, 'Projectile')
开发者ID:MasterLoopyBM,项目名称:c0d3,代码行数:6,代码来源:DistributedProjectile.py


注:本文中的otp.avatar.ShadowCaster.ShadowCaster.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。