本文整理汇总了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)
示例2: __init__
def __init__(self, cr):
DistributedNPCToonBase.__init__(self, cr)
self.isInteractingWithLocalToon = 0
self.av = None
self.button = None
self.askGui = None
return
示例3: delete
def delete(self):
if self.askGui:
self.ignore(self.planPartyQuestionGuiDoneEvent)
self.askGui.cleanup()
del self.askGui
DistributedNPCToonBase.delete(self)
示例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)
示例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
示例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()
示例7: generate
def generate(self):
DistributedNPCToonBase.generate(self)
示例8: __init__
def __init__(self, cr):
DistributedNPCToonBase.__init__(self, cr)
self.lastCollision = 0
self.laffDialog = None
示例9: disable
def disable(self):
self.ignoreAll()
self.destroyDialog()
DistributedNPCToonBase.disable(self)
示例10: __init__
def __init__(self, cr):
DistributedNPCToonBase.__init__(self, cr)
self.isLocalToon = 0
self.av = None
self.laffGui = None
示例11: disable
def disable(self):
self.stopSequence()
self.ignore('SillyMeterPhase')
DistributedNPCToonBase.disable(self)
示例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)
示例13: __init__
def __init__(self, cr):
DistributedNPCToonBase.__init__(self, cr)
self.lastCollision = 0
self.purchaseGui = None