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


Python DistributedNPCToonBase.DistributedNPCToonBase类代码示例

本文整理汇总了Python中DistributedNPCToonBase.DistributedNPCToonBase的典型用法代码示例。如果您正苦于以下问题:Python DistributedNPCToonBase类的具体用法?Python DistributedNPCToonBase怎么用?Python DistributedNPCToonBase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: disable

 def disable(self):
     self.ignoreAll()
     if self.laffGui:
         self.laffGui.destroy()
         self.laffGui = None
     self.av = None
     DistributedNPCToonBase.disable(self)
开发者ID:Teku16,项目名称:Toontown-Crystal-Master,代码行数:7,代码来源:DistributedNPCLaffRestock.py

示例2: __init__

 def __init__(self, cr):
     DistributedNPCToonBase.__init__(self, cr)
     self.isInteractingWithLocalToon = 0
     self.av = None
     self.button = None
     self.askGui = None
     return
开发者ID:BmanGames,项目名称:ToontownStride,代码行数:7,代码来源:DistributedNPCPartyPerson.py

示例3: delete

 def delete(self):
     if self.askGui:
         self.ignore(self.planPartyQuestionGuiDoneEvent)
         self.askGui.cleanup()
         del self.askGui
     
     DistributedNPCToonBase.delete(self)
开发者ID:OldToontown,项目名称:OldToontown,代码行数:7,代码来源:DistributedNPCPartyPerson.py

示例4: updatePosition

 def updatePosition(self):
     if self.name in NPCToons.ClerkPositions:
         pos = NPCToons.ClerkPositions[self.name]
         self.setPos(*pos[0])
         self.setH(pos[1])
     else:
         DistributedNPCToonBase.initToonState(self)
开发者ID:ToontownBattlefront,项目名称:Toontown-Battlefront,代码行数:7,代码来源:DistributedNPCClerk.py

示例5: disable

 def disable(self):
     self.ignoreAll()
     taskMgr.remove(self.uniqueName('popupAskGUI'))
     taskMgr.remove(self.uniqueName('lerpCamera'))
     self.av = None
     if self.isInteractingWithLocalToon:
         base.localAvatar.posCamera(0, 0)
     DistributedNPCToonBase.disable(self)
     return
开发者ID:AdrianF98,项目名称:Toontown-Rewritten,代码行数:9,代码来源:DistributedNPCPartyPerson.py

示例6: announceGenerate

 def announceGenerate(self):
     DistributedNPCToonBase.announceGenerate(self)
     self.planPartyQuestionGuiDoneEvent = 'planPartyQuestionDone'
     self.askGui = TTDialog.TTGlobalDialog(dialogName=self.uniqueName('askGui'), doneEvent=self.planPartyQuestionGuiDoneEvent, message=TTLocalizer.PartyDoYouWantToPlan, style=TTDialog.YesNo, okButtonText=OTPLocalizer.DialogYes, cancelButtonText=OTPLocalizer.DialogNo)
     self.askGui.hide()
开发者ID:AdrianF98,项目名称:Toontown-Rewritten,代码行数:5,代码来源:DistributedNPCPartyPerson.py

示例7: generate

 def generate(self):
     DistributedNPCToonBase.generate(self)
开发者ID:AdrianF98,项目名称:Toontown-Rewritten,代码行数:2,代码来源:DistributedNPCPartyPerson.py

示例8: __init__

 def __init__(self, cr):
     DistributedNPCToonBase.__init__(self, cr)
     self.lastCollision = 0
     self.laffDialog = None
开发者ID:ToontownBattlefront,项目名称:Toontown-Battlefront,代码行数:4,代码来源:DistributedNPCLaffRestock.py

示例9: disable

 def disable(self):
     self.ignoreAll()
     self.destroyDialog()
     DistributedNPCToonBase.disable(self)
开发者ID:ToontownBattlefront,项目名称:Toontown-Battlefront,代码行数:4,代码来源:DistributedNPCLaffRestock.py

示例10: __init__

 def __init__(self, cr):
     DistributedNPCToonBase.__init__(self, cr)
     self.isLocalToon = 0
     self.av = None
     self.laffGui = None
开发者ID:Teku16,项目名称:Toontown-Crystal-Master,代码行数:5,代码来源:DistributedNPCLaffRestock.py

示例11: disable

 def disable(self):
     self.stopSequence()
     self.ignore('SillyMeterPhase')
     DistributedNPCToonBase.disable(self)
开发者ID:ToontownBattlefront,项目名称:Toontown-Battlefront,代码行数:4,代码来源:DistributedNPCScientist.py

示例12: generateToon

 def generateToon(self):
     DistributedNPCToonBase.generateToon(self)
     self.setupToonNodes()
     self.setModelHand('phase_4/models/props/tt_m_prp_acs_%s' % ('sillyReader' if self.style.getAnimal() == 'duck' else 'clipboard'))
     self.startSequence(config.GetInt('silly-meter-phase', 12))
     self.accept('SillyMeterPhase', self.startSequence)
开发者ID:ToontownBattlefront,项目名称:Toontown-Battlefront,代码行数:6,代码来源:DistributedNPCScientist.py

示例13: __init__

 def __init__(self, cr):
     DistributedNPCToonBase.__init__(self, cr)
     self.lastCollision = 0
     self.purchaseGui = None
开发者ID:BmanGames,项目名称:ToontownStride,代码行数:4,代码来源:DistributedNPCClerk.py


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