def __me_onPlayerEnterChannelByAction(self, channel): controller = self.channelsCtrl.getController(channel.getClientID()) if controller is None: LOG_ERROR('Controller not found', channel) else: events_dispatcher.showLobbyChannelWindow(channel.getClientID()) return
def addChannel(self, channel, lazy = False, isNotified = False): clientID = channel.getClientID() isSystem = channel.isSystem() if lazy: order = channel_num_gen.getOrder4LazyChannel(channel.getName()) openHandler = lambda : events_dispatcher.showLazyChannelWindow(clientID) else: order = channel_num_gen.genOrder4Channel(channel) openHandler = lambda : events_dispatcher.showLobbyChannelWindow(clientID) self.__handlers[clientID] = (ChannelFindCriteria(clientID), openHandler) self.__channelsDP.addItem(clientID, {'label': channel.getFullName(), 'canClose': not isSystem, 'isNotified': isNotified, 'icon': None, 'order': order}) return
def addChannel(self, channel, lazy=False, isNotified=False): clientID = channel.getClientID() isSystem = channel.isSystem() if lazy: order = channel_num_gen.getOrder4LazyChannel(channel.getName()) openHandler = lambda: events_dispatcher.showLazyChannelWindow(clientID) else: order = channel_num_gen.genOrder4Channel(channel) openHandler = lambda: events_dispatcher.showLobbyChannelWindow(clientID) self.__handlers[clientID] = (ChannelFindCriteria(clientID), openHandler, ViewTypes.WINDOW) self.__channelsDP.addItem( clientID, { "label": channel.getFullName(), "canClose": not isSystem, "isNotified": isNotified, "icon": None, "order": order, "isInProgress": False, }, ) return
def addChannel(self, channel, lazy=False, isNotified=False): clientID = channel.getClientID() isSystem = channel.isSystem() if lazy: order = channel_num_gen.getOrder4LazyChannel(channel.getName()) openHandler = lambda: events_dispatcher.showLazyChannelWindow( clientID) else: order = channel_num_gen.genOrder4Channel(channel) openHandler = lambda: events_dispatcher.showLobbyChannelWindow( clientID) self.__handlers[clientID] = (ChannelFindCriteria(clientID), openHandler, ViewTypes.WINDOW) self.__channelsDP.addItem( clientID, { 'label': channel.getFullName(), 'canClose': not isSystem, 'isNotified': isNotified, 'icon': None, 'order': order, 'isInProgress': False }) return
def __me_onPlayerEnterChannelByAction(self, channel): controller = self.channelsCtrl.getController(channel.getClientID()) if controller is None: LOG_ERROR('Controller not found', channel) else: events_dispatcher.showLobbyChannelWindow(channel.getClientID())