本文整理汇总了Python中toontown.nametag.NametagGlobals.setWantActiveNametags方法的典型用法代码示例。如果您正苦于以下问题:Python NametagGlobals.setWantActiveNametags方法的具体用法?Python NametagGlobals.setWantActiveNametags怎么用?Python NametagGlobals.setWantActiveNametags使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类toontown.nametag.NametagGlobals
的用法示例。
在下文中一共展示了NametagGlobals.setWantActiveNametags方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: exitFLM
# 需要导入模块: from toontown.nametag import NametagGlobals [as 别名]
# 或者: from toontown.nametag.NametagGlobals import setWantActiveNametags [as 别名]
def exitFLM(self):
self.notify.debug('FriendsListManager: exitFLM()')
if self._preserveFriendsList:
return
if not self._entered:
return
self._entered = False
self.ignore('openFriendsList')
self.ignore('clickedNametag')
self.ignore('clickedNametagPlayer')
base.localAvatar.setFriendsListButtonActive(0)
NametagGlobals.setWantActiveNametags(False)
if self.avatarPanel:
self.avatarPanel.cleanup()
self.avatarPanel = None
self.ignore('gotoAvatar')
self.ignore('friendAvatar')
self.ignore('avatarDetails')
self.ignore('playerDetails')
FriendsListPanel.hideFriendsList()
ToontownFriendSecret.hideFriendSecret()
if base.cr.friendManager:
base.cr.friendManager.setAvailable(0)
self.ignore('friendInvitation')
FriendInviter.hideFriendInviter()
ToonAvatarDetailPanel.hideAvatarDetail()
ToonTeleportPanel.hideTeleportPanel()
return
示例2: enterBattleFour
# 需要导入模块: from toontown.nametag import NametagGlobals [as 别名]
# 或者: from toontown.nametag.NametagGlobals import setWantActiveNametags [as 别名]
def enterBattleFour(self):
self.cleanupIntervals()
self.releaseToons(finalBattle=1)
self.accept('clickedNametag', self.__clickedNameTag)
self.accept('friendAvatar', self.__handleFriendAvatar)
self.accept('avatarDetails', self.__handleAvatarDetails)
NametagGlobals.setWant2dNametags(False)
NametagGlobals.setWantActiveNametags(True)
示例3: enterFLM
# 需要导入模块: from toontown.nametag import NametagGlobals [as 别名]
# 或者: from toontown.nametag.NametagGlobals import setWantActiveNametags [as 别名]
def enterFLM(self):
self.notify.debug('FriendsListManager: enterFLM()')
if self._preserveFriendsList:
self._preserveFriendsList = 0
return
self._entered = True
self.accept('openFriendsList', self.__openFriendsList)
self.accept('clickedNametag', self.__handleClickedNametag)
base.localAvatar.setFriendsListButtonActive(1)
NametagGlobals.setWantActiveNametags(True)
self.accept('gotoAvatar', self.__handleGotoAvatar)
self.accept('friendAvatar', self.__handleFriendAvatar)
self.accept('avatarDetails', self.__handleAvatarDetails)
self.accept('friendInvitation', self.__handleFriendInvitation)
if base.cr.friendManager:
base.cr.friendManager.setAvailable(1)