Exemplo n.º 1
0
 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)
Exemplo n.º 2
0
 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)
Exemplo n.º 3
0
 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)
Exemplo n.º 4
0
 def channelCloseClick(self, itemID):
     LOG_DEBUG('close click: ', itemID)
     self.fireEvent(ChannelCarouselEvent(self, ChannelCarouselEvent.CLOSE_BUTTON_CLICK, itemID), scope=EVENT_BUS_SCOPE.LOBBY)
Exemplo n.º 5
0
 def channelOpenClick(self, itemID):
     LOG_DEBUG('open click: ', itemID)
     self.fireEvent(ChannelCarouselEvent(self, ChannelCarouselEvent.OPEN_BUTTON_CLICK, itemID), scope=EVENT_BUS_SCOPE.LOBBY)
Exemplo n.º 6
0
 def _dispose(self):
     self.fireEvent(ChannelCarouselEvent(self, ChannelCarouselEvent.CAROUSEL_DESTROYED), scope=EVENT_BUS_SCOPE.LOBBY)
     super(ChannelCarousel, self)._dispose()
Exemplo n.º 7
0
 def _populate(self):
     super(ChannelCarousel, self)._populate()
     self.fireEvent(ChannelCarouselEvent(self, ChannelCarouselEvent.CAROUSEL_INITED), scope=EVENT_BUS_SCOPE.LOBBY)
Exemplo n.º 8
0
 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)