def __init__(self, isColored, width, height): swf = 'keyboard.swf' if isColored else 'keyboardMono.swf' Flash.__init__(self, swf) EventSystemEntity.__init__(self) self.movie.wg_outputToLogitechLcd = True self.addListener(events.ShowViewEvent.SHOW_LOGIN, self.__showLogoScreen, EVENT_BUS_SCOPE.GLOBAL) self.addListener(events.ShowViewEvent.SHOW_LOBBY, self.__showStatsScreen, EVENT_BUS_SCOPE.GLOBAL) self.addListener(events.LoadEvent.LOAD_BATTLE_LOADING, self.__showBattleLoadingScreen, EVENT_BUS_SCOPE.LOBBY) self.addListener(events.LoadEvent.LOAD_TUTORIAL_LOADING, self.__showBattleLoadingScreen, EVENT_BUS_SCOPE.LOBBY)
def __init__(self, isColored, width, height): swf = 'keyboard.swf' if isColored else 'keyboardMono.swf' Flash.__init__(self, swf) EventSystemEntity.__init__(self) self.movie.wg_outputToLogitechLcd = True self.addListener(VIEW_ALIAS.LOGIN, self.__showLogoScreen, EVENT_BUS_SCOPE.GLOBAL) self.addListener(VIEW_ALIAS.LOBBY, self.__showStatsScreen, EVENT_BUS_SCOPE.GLOBAL) self.addListener(VIEW_ALIAS.BATTLE_LOADING, self.__showBattleLoadingScreen, EVENT_BUS_SCOPE.LOBBY) self.addListener(VIEW_ALIAS.TUTORIAL_LOADING, self.__showBattleLoadingScreen, EVENT_BUS_SCOPE.LOBBY) connectionManager.onDisconnected += self.__onDisconnect
def __init__(self, isColored, width, height): swf = 'keyboard.swf' if isColored else 'keyboardMono.swf' Flash.__init__(self, swf) EventSystemEntity.__init__(self) self.movie.wg_outputToLogitechLcd = True self.addListener(events.ShowViewEvent.SHOW_LOGIN, self.__showLogoScreen, EVENT_BUS_SCOPE.GLOBAL) self.addListener(events.ShowViewEvent.SHOW_LOBBY, self.__showStatsScreen, EVENT_BUS_SCOPE.GLOBAL) self.addListener(events.LoadEvent.LOAD_BATTLE_LOADING, self.__showBattleLoadingScreen, EVENT_BUS_SCOPE.LOBBY) self.addListener(events.LoadEvent.LOAD_TUTORIAL_LOADING, self.__showBattleLoadingScreen, EVENT_BUS_SCOPE.LOBBY)
def __init__(self, isColored, width, height): swf = 'keyboard.swf' if isColored else 'keyboardMono.swf' Flash.__init__(self, swf) EventSystemEntity.__init__(self) self.movie.wg_outputToLogitechLcd = True self.addListener(VIEW_ALIAS.LOGIN, self.__showLogoScreen, EVENT_BUS_SCOPE.GLOBAL) self.addListener(VIEW_ALIAS.LOBBY, self.__showStatsScreen, EVENT_BUS_SCOPE.GLOBAL) self.addListener(VIEW_ALIAS.BATTLE_LOADING, self.__showBattleLoadingScreen, EVENT_BUS_SCOPE.LOBBY) self.addListener(VIEW_ALIAS.TUTORIAL_LOADING, self.__showBattleLoadingScreen, EVENT_BUS_SCOPE.LOBBY) connectionManager.onDisconnected += self.__onDisconnect