def __onShow(self): if not IS_VS_EDITOR: marker = self._marker.getValue() if marker: HintManager.hintManager().addMarker(marker) HintManager.hintManager().showMarker(marker) self._out.call()
def _isVisible(self): hintId = self._id.getValue() hint = HintManager.hintManager().getHint(hintId) if hint is not None: visible = hint.isActive() self._visible.setValue(visible) else: errorVScript(self, 'Unknown hint id') return
def __execute(self): if not IS_EDITOR: hintId = self._id.getValue() hint = HintManager.hintManager().getHint(hintId) if hint is not None: self._processHint(hint) else: errorVScript(self, 'Unknown hint id') self._out.call() return
def _onInit(self): avatar = BigWorld.player() message = self._text.getValue() hintParam = (avatar, HINT_TYPE.HINT_WAIT_RELOAD, 0.0, 0.0, message, None) hint = HintManager.hintManager().addHint(hintParam, secondary=True) hint.start() self._id.setValue(hint.id) self._out.call() return
def _onInit(self): avatar = BigWorld.player() hintTypeId = self.__getHintTypeId() timeCompleted = self._timeCompleteDuration.getValue( ) if self._timeCompleteDuration.hasValue() else 1.0 cooldownAfter = self._timeCooldownAfter.getValue( ) if self._timeCooldownAfter.hasValue() else 0.0 message = self._text.getValue() voiceover = self._voiceover.getValue() if self._voiceover.hasValue( ) else None hintParam = (avatar, hintTypeId, timeCompleted, cooldownAfter, message, voiceover) hint = HintManager.hintManager().addHint(hintParam) hint.start() self._id.setValue(hint.id) self._out.call() return
def _isVisible(self): if not IS_VS_EDITOR: marker = self._marker.getValue() if marker: visible = HintManager.hintManager().isMarkerVisible(marker) self._visible.setValue(visible)
def __onHide(self): if not IS_VS_EDITOR: marker = self._marker.getValue() if marker: HintManager.hintManager().hideMarker(marker) self._out.call()
def __onHide(self): for hint in HintManager.hintManager().getHints().itervalues(): if hint.isActive(): hint.hide() self._out.call()
def createHintManager(self, Game, AI): return HintManager(Game, AI)