コード例 #1
0
 def _populate(self):
     super(VoiceChatManager, self)._populate()
     g_playerEvents.onAccountBecomePlayer += self.onAccountBecomePlayer
     chatManager.subscribeChatAction(self.checkForInitialization, CHAT_ACTIONS.VOIPSettings)
     voipMgr = getVOIPManager()
     voipMgr.channelsMgr.onInitialized += self.__initResponse
     voipMgr.OnCaptureDevicesUpdated += self.__captureDevicesResponse
     voipMgr.onPlayerSpeaking += self.__onPlayerSpeaking
コード例 #2
0
 def populateUI(self, proxy):
     UIInterface.populateUI(self, proxy)
     chatManager.subscribeChatAction(self.processFailedMessage,
                                     CHAT_ACTIONS.VOIPSettings)
     import VOIP
     VOIP.getVOIPManager().channelsMgr.onInitialized += self.__initResponse
     VOIP.getVOIPManager(
     ).OnCaptureDevicesUpdated += self.__captureDevicesResponse
コード例 #3
0
 def _populate(self):
     super(VoiceChatManager, self)._populate()
     g_playerEvents.onAccountBecomePlayer += self.onAccountBecomePlayer
     chatManager.subscribeChatAction(self.checkForInitialization,
                                     CHAT_ACTIONS.VOIPSettings)
     voipMgr = getVOIPManager()
     voipMgr.channelsMgr.onInitialized += self.__initResponse
     voipMgr.OnCaptureDevicesUpdated += self.__captureDevicesResponse
     voipMgr.onPlayerSpeaking += self.__onPlayerSpeaking
コード例 #4
0
ファイル: voipmanager.py プロジェクト: wotmods/WOTDecompiled
 def onConnected(self):
     LOG_VOIP_INT('VOIPManager.subscribe')
     voipEvents = g_messengerEvents.voip
     voipEvents.onChannelEntered += self.__onChatChannelEntered
     voipEvents.onChannelLeft += self.__onChatChannelLeft
     voipEvents.onCredentialReceived += self.__onCredentialReceived
     params = self.bwProto.voipProvider.getChannelParams()
     if params[0]:
         self.__onChatChannelEntered(*params)
     chatManager.subscribeChatAction(self.__onRequestUsersRoster, CHAT_ACTIONS.requestUsersRoster)
     chatManager.subscribeChatAction(self.__onChatActionSetMuted, CHAT_ACTIONS.setMuted)
     chatManager.subscribeChatAction(self.__onChatActionUnsetMuted, CHAT_ACTIONS.unsetMuted)
     chatManager.subscribeChatAction(self.__onChatResponseMutedError, CHAT_RESPONSES.setMutedError)
     chatManager.subscribeChatAction(self.__onChatResponseMutedError, CHAT_RESPONSES.unsetMutedError)
     self.channelsMgr.onConnected()
コード例 #5
0
 def addListener(self, callback, action, cid = None):
     chatManager.subscribeChatAction(callback, action, cid)
コード例 #6
0
 def addListener(self, callback, action, cid = None):
     chatManager.subscribeChatAction(callback, action, cid)
コード例 #7
0
 def onConnected(self):
     chatManager.subscribeChatAction(self.__onEnterChatChannel,
                                     CHAT_ACTIONS.VOIPSettings)
     chatManager.subscribeChatAction(self.__onLeftChatChannel,
                                     CHAT_ACTIONS.channelDestroyed)
     chatManager.subscribeChatAction(self.__onLeftChatChannel,
                                     CHAT_ACTIONS.selfLeave)
     chatManager.subscribeChatAction(self.__onUserCredentials,
                                     CHAT_ACTIONS.VOIPCredentials)
     chatManager.subscribeChatAction(self.__onRequestUsersRoster,
                                     CHAT_ACTIONS.requestUsersRoster)
     chatManager.subscribeChatAction(self.__onChatActionSetMuted,
                                     CHAT_ACTIONS.setMuted)
     chatManager.subscribeChatAction(self.__onChatActionUnsetMuted,
                                     CHAT_ACTIONS.unsetMuted)
     chatManager.subscribeChatAction(self.__onChatResponseMutedError,
                                     CHAT_RESPONSES.setMutedError)
     chatManager.subscribeChatAction(self.__onChatResponseMutedError,
                                     CHAT_RESPONSES.unsetMutedError)
     self.channelsMgr.onConnected()
コード例 #8
0
 def populateUI(self, proxy):
     UIInterface.populateUI(self, proxy)
     chatManager.subscribeChatAction(self.processFailedMessage, CHAT_ACTIONS.VOIPSettings)
     import VOIP
     VOIP.getVOIPManager().channelsMgr.onInitialized += self.__initResponse
     VOIP.getVOIPManager().OnCaptureDevicesUpdated += self.__captureDevicesResponse
コード例 #9
0
ファイル: voipmanager.py プロジェクト: 19colt87/WOTDecompiled
 def onConnected(self):
     chatManager.subscribeChatAction(self.__onEnterChatChannel, CHAT_ACTIONS.VOIPSettings)
     chatManager.subscribeChatAction(self.__onLeftChatChannel, CHAT_ACTIONS.channelDestroyed)
     chatManager.subscribeChatAction(self.__onLeftChatChannel, CHAT_ACTIONS.selfLeave)
     chatManager.subscribeChatAction(self.__onUserCredentials, CHAT_ACTIONS.VOIPCredentials)
     chatManager.subscribeChatAction(self.__onRequestUsersRoster, CHAT_ACTIONS.requestUsersRoster)
     chatManager.subscribeChatAction(self.__onChatActionSetMuted, CHAT_ACTIONS.setMuted)
     chatManager.subscribeChatAction(self.__onChatActionUnsetMuted, CHAT_ACTIONS.unsetMuted)
     chatManager.subscribeChatAction(self.__onChatResponseMutedError, CHAT_RESPONSES.setMutedError)
     chatManager.subscribeChatAction(self.__onChatResponseMutedError, CHAT_RESPONSES.unsetMutedError)
     self.channelsMgr.onConnected()