def updateItemDataOpened(self, itemID, wndType, isWindowOpened): if isWindowOpened is False: self.updateItemDataFocus(itemID, wndType, False) self.fireEvent(ChannelCarouselEvent( self, ChannelCarouselEvent.ON_WINDOW_CHANGE_OPEN_STATE, itemID, wndType, isWindowOpened), scope=EVENT_BUS_SCOPE.LOBBY)
def __setPreBattleCarouselOpened(self, isWindowOpened): g_eventBus.handleEvent(ChannelCarouselEvent(self, ChannelCarouselEvent.ON_WINDOW_CHANGE_OPEN_STATE, self.__getClientID(), MESSENGER_CHANNEL_CAROUSEL_ITEM_TYPES.CHANNEL_CAROUSEL_ITEM_TYPE_PREBATTLE, isWindowOpened), scope=EVENT_BUS_SCOPE.LOBBY)
def __setPreBattleCarouselFocus(self, isFocusIn): g_eventBus.handleEvent(ChannelCarouselEvent(self, ChannelCarouselEvent.ON_WINDOW_CHANGE_FOCUS, self.__getClientID(), MESSENGER_CHANNEL_CAROUSEL_ITEM_TYPES.CHANNEL_CAROUSEL_ITEM_TYPE_PREBATTLE, isFocusIn), scope=EVENT_BUS_SCOPE.LOBBY)
def channelCloseClick(self, itemID): LOG_DEBUG('close click: ', itemID) self.fireEvent(ChannelCarouselEvent(self, ChannelCarouselEvent.CLOSE_BUTTON_CLICK, itemID), scope=EVENT_BUS_SCOPE.LOBBY)
def channelOpenClick(self, itemID): LOG_DEBUG('open click: ', itemID) self.fireEvent(ChannelCarouselEvent(self, ChannelCarouselEvent.OPEN_BUTTON_CLICK, itemID), scope=EVENT_BUS_SCOPE.LOBBY)
def _dispose(self): self.fireEvent(ChannelCarouselEvent(self, ChannelCarouselEvent.CAROUSEL_DESTROYED), scope=EVENT_BUS_SCOPE.LOBBY) super(ChannelCarousel, self)._dispose()
def _populate(self): super(ChannelCarousel, self)._populate() self.fireEvent(ChannelCarouselEvent(self, ChannelCarouselEvent.CAROUSEL_INITED), scope=EVENT_BUS_SCOPE.LOBBY)
def updateItemDataFocus(self, itemID, wndType, isFocusIn): self.fireEvent(ChannelCarouselEvent( self, ChannelCarouselEvent.ON_WINDOW_CHANGE_FOCUS, itemID, wndType, isFocusIn), scope=EVENT_BUS_SCOPE.LOBBY)
def closeAllExceptCurrent(self): self.fireEvent(ChannelCarouselEvent( self, ChannelCarouselEvent.CLOSE_ALL_EXCEPT_CURRENT, self._clientID), scope=EVENT_BUS_SCOPE.LOBBY)
def minimizeAll(self): self.fireEvent(ChannelCarouselEvent( self, ChannelCarouselEvent.MINIMIZE_ALL_CHANNELS, None), scope=EVENT_BUS_SCOPE.LOBBY) return
def closeCurrent(self): self.fireEvent(ChannelCarouselEvent( self, ChannelCarouselEvent.CLOSE_BUTTON_CLICK, self._clientID), scope=EVENT_BUS_SCOPE.LOBBY)