def receiveSystemMessage(self, message):
     base.localAvatar.guiMgr.messageStack.addTextMessage(message, seconds=20, priority=0, color=(0.5,
                                                                                                 0,
                                                                                                 0,
                                                                                                 1), icon=('admin',
                                                                                                           ''))
     TalkAssistant.receiveSystemMessage(self, message)
    def receiveOpenTalk(self, avatarId, avatarName, accountId, accountName, message, scrubbed=0):
        if hasattr(base, 'localAvatar') and base.localAvatar.getDoId() == avatarId:
            for playerId in base.localAvatar.playersNearby.keys():
                chatFlags = base.localAvatar.playersNearby[playerId]
                if chatFlags[0] or chatFlags[1]:
                    if scrubbed:
                        player = base.cr.doId2do.get(playerId)
                        if player:
                            player.requestConfusedText(True)
                    elif not chatFlags[1]:
                        player = base.cr.doId2do.get(playerId)
                        if player:
                            player.requestConfusedText(False)

        TalkAssistant.receiveOpenTalk(self, avatarId, avatarName, accountId, accountName, message, scrubbed)
Exemple #3
0
    def receiveOpenTalk(self, avatarId, avatarName, accountId, accountName, message, scrubbed=0):
        if hasattr(base, "localAvatar") and base.localAvatar.getDoId() == avatarId:
            for playerId in base.localAvatar.playersNearby.keys():
                chatFlags = base.localAvatar.playersNearby[playerId]
                if not chatFlags[0]:
                    if chatFlags[1] and scrubbed:
                        player = base.cr.doId2do.get(playerId)
                        if player:
                            player.requestConfusedText(True)

                    elif not chatFlags[1]:
                        player = base.cr.doId2do.get(playerId)
                        if player:
                            player.requestConfusedText(False)

        TalkAssistant.receiveOpenTalk(self, avatarId, avatarName, accountId, accountName, message, scrubbed)
 def clearHistory(self):
     TalkAssistant.clearHistory(self)
     self.historyParty = []
     self.historyPVP = []
     self.labelParty = OTPLocalizer.TalkParty
     self.labelPVP = OTPLocalizer.TalkPVP
 def __init__(self):
     TalkAssistant.__init__(self)
     self.SCDecoder = PSCDecoders
Exemple #6
0
 def clearHistory(self):
     TalkAssistant.clearHistory(self)
Exemple #7
0
 def __init__(self):
     TalkAssistant.__init__(self)
 def clearHistory(self):
     TalkAssistant.clearHistory(self)
 def __init__(self):
     TalkAssistant.__init__(self)
Exemple #10
0
 def clearHistory(self):
     TalkAssistant.clearHistory(self)
     self.historyParty = []
     self.historyPVP = []
     self.labelParty = OTPLocalizer.TalkParty
     self.labelPVP = OTPLocalizer.TalkPVP
Exemple #11
0
 def receiveSystemMessage(self, message):
     base.localAvatar.guiMgr.messageStack.addTextMessage(
         message, seconds=20, priority=0, color=(0.5, 0, 0, 1), icon=("admin", "")
     )
     TalkAssistant.receiveSystemMessage(self, message)
Exemple #12
0
 def __init__(self):
     TalkAssistant.__init__(self)
     self.SCDecoder = PSCDecoders