def hide(self): self._hideCallbackId = None if self.typeId not in self.HINT_IDS_TO_COMPLETE: self.playSound(self.HIDE_SOUND_ID) g_eventBus.handleEvent(events.BootcampEvent(BootcampEvent.HINT_HIDE, self.typeId), self._scope) if self.typeId in PrimaryHintController.HINT_HIGHLIGHTS: g_eventBus.handleEvent(events.LoadViewEvent(BootcampEvent.REMOVE_HIGHLIGHT, None, PrimaryHintController.HINT_HIGHLIGHTS[self.typeId]), EVENT_BUS_SCOPE.BATTLE) return
def complete(self): if not self._completed: self._completed = True if self._isOnScreen: g_eventBus.handleEvent(events.BootcampEvent(BootcampEvent.HINT_COMPLETE, self.typeId), self._scope) self.hideWithTimeout() if self.typeId in self.HINT_IDS_TO_COMPLETE: self.playSound(self.TASK_DONE_SOUND_ID) else: self.playSound(self.COMPLETE_SOUND_ID)
def close(self): g_eventBus.handleEvent(events.BootcampEvent(BootcampEvent.HINT_CLOSE), self._scope) if self.typeId in PrimaryHintController.HINT_HIGHLIGHTS: g_eventBus.handleEvent(events.LoadViewEvent(BootcampEvent.REMOVE_HIGHLIGHT, None, PrimaryHintController.HINT_HIGHLIGHTS[self.typeId]), EVENT_BUS_SCOPE.BATTLE) if self.voiceover and not self.muted: self._hintSystem.unscheduleVoiceover(self.voiceover) if self._hideCallbackId: BigWorld.cancelCallback(self._hideCallbackId) self._hideCallbackId = None return
def hide(self): if self._onScreen: if self._typeId in SecondaryHintController.HINT_HIGHLIGHTS: g_eventBus.handleEvent( events.LoadViewEvent( BootcampEvent.REMOVE_HIGHLIGHT, None, SecondaryHintController.HINT_HIGHLIGHTS[self._typeId]), EVENT_BUS_SCOPE.BATTLE) g_eventBus.handleEvent( events.BootcampEvent(events.BootcampEvent.HIDE_SECONDARY_HINT, None, None), EVENT_BUS_SCOPE.BATTLE) self._onScreen = False return
def show(self): if not self._onScreen: g_eventBus.handleEvent( events.BootcampEvent(events.BootcampEvent.SHOW_SECONDARY_HINT, self._typeId, self._message), EVENT_BUS_SCOPE.BATTLE) self._onScreen = True if self._typeId in SecondaryHintController.HINT_HIGHLIGHTS: g_eventBus.handleEvent( events.LoadViewEvent( BootcampEvent.ADD_HIGHLIGHT, None, SecondaryHintController.HINT_HIGHLIGHTS[self._typeId]), EVENT_BUS_SCOPE.BATTLE) return
def show(self): if not self._onScreen: g_eventBus.handleEvent(events.BootcampEvent(events.BootcampEvent.SHOW_SECONDARY_HINT, self._typeId, self._message), EVENT_BUS_SCOPE.BATTLE) self._onScreen = True if self._typeId in SecondaryHintController.HINT_HIGHLIGHTS: g_eventBus.handleEvent(events.LoadViewEvent(SFViewLoadParams(VIEW_ALIAS.BOOTCAMP_ADD_HIGHLIGHT), ctx=SecondaryHintController.HINT_HIGHLIGHTS[self._typeId]), EVENT_BUS_SCOPE.BATTLE)
def __onClosePrebattle(self): g_eventBus.handleEvent( events.BootcampEvent(BootcampEvent.CLOSE_PREBATTLE, None, {}), EVENT_BUS_SCOPE.BATTLE) self.__idClosePrebattleTimer = None return
def unloadBootcampQueue(self): self.__fireEvent(events.BootcampEvent(events.BootcampEvent.QUEUE_DIALOG_CLOSE))
def loadBootcampQueue(self): self.__fireEvent(events.BootcampEvent(events.BootcampEvent.QUEUE_DIALOG_SHOW))