本文整理匯總了Python中src.otp.nametag.NametagGlobals.setMasterNametagsActive方法的典型用法代碼示例。如果您正苦於以下問題:Python NametagGlobals.setMasterNametagsActive方法的具體用法?Python NametagGlobals.setMasterNametagsActive怎麽用?Python NametagGlobals.setMasterNametagsActive使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類src.otp.nametag.NametagGlobals
的用法示例。
在下文中一共展示了NametagGlobals.setMasterNametagsActive方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: exitFLM
# 需要導入模塊: from src.otp.nametag import NametagGlobals [as 別名]
# 或者: from src.otp.nametag.NametagGlobals import setMasterNametagsActive [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')
base.localAvatar.setFriendsListButtonActive(0)
NametagGlobals.setMasterNametagsActive(0)
if self.avatarPanel:
self.avatarPanel.cleanup()
self.avatarPanel = None
self.ignore('gotoAvatar')
self.ignore('friendAvatar')
self.ignore('avatarDetails')
FriendsListPanel.hideFriendsList()
if base.cr.friendManager:
base.cr.friendManager.setAvailable(0)
self.ignore('friendInvitation')
FriendInviter.hideFriendInviter()
ToonAvatarDetailPanel.hideAvatarDetail()
ToonTeleportPanel.hideTeleportPanel()
return
示例2: enterBattleFour
# 需要導入模塊: from src.otp.nametag import NametagGlobals [as 別名]
# 或者: from src.otp.nametag.NametagGlobals import setMasterNametagsActive [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.setMasterArrowsOn(0)
NametagGlobals.setMasterNametagsActive(1)
示例3: enterFLM
# 需要導入模塊: from src.otp.nametag import NametagGlobals [as 別名]
# 或者: from src.otp.nametag.NametagGlobals import setMasterNametagsActive [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.setMasterNametagsActive(1)
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)