Пример #1
0
 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()
Пример #2
0
 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
Пример #3
0
 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
Пример #4
0
 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
Пример #5
0
 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
Пример #6
0
 def _isVisible(self):
     if not IS_VS_EDITOR:
         marker = self._marker.getValue()
         if marker:
             visible = HintManager.hintManager().isMarkerVisible(marker)
             self._visible.setValue(visible)
Пример #7
0
 def __onHide(self):
     if not IS_VS_EDITOR:
         marker = self._marker.getValue()
         if marker:
             HintManager.hintManager().hideMarker(marker)
     self._out.call()
Пример #8
0
    def __onHide(self):
        for hint in HintManager.hintManager().getHints().itervalues():
            if hint.isActive():
                hint.hide()

        self._out.call()
Пример #9
0
 def createHintManager(self, Game, AI):
     return HintManager(Game, AI)