def __showHint(self, hint):
     text = hint['text']
     uniqueID = hintID = hint['hintID']
     props = HintProps(uniqueID, hintID, hint['itemID'], text, True, hint['arrow'], None)
     self._gui.showHint(props)
     self.__activeHints[hint['itemID']] = hint
     return
Exemple #2
0
 def triggerEffect(self):
     hint = self.getTarget()
     if hint is None:
         LOG_ERROR('Chain hint is not found', self._effect.getTargetID())
         return
     else:
         text = hint.getText()
         if text:
             text = self._tutorial.getVars().get(text, default=text)
         hintID = hint.getID()
         uniqueID = '{}_{}'.format(self._data.getID(), hintID)
         props = HintProps(uniqueID, hintID, hint.getTargetID(), text, hint.hasBox(), hint.getArrow(), hint.getPadding())
         self._gui.playEffect(GUI_EFFECT_NAME.SHOW_HINT, (props, hint.getActionTypes()))
         return
 def triggerEffect(self):
     hint = self.getTarget()
     if hint is None:
         LOG_ERROR('Chain hint is not found', self._effect.getTargetID())
         return False
     else:
         text = hint.getText()
         if text:
             text = self._tutorial.getVars().get(text, default=text)
         hintID = hint.getID()
         uniqueID = '{}_{}'.format(self._data.getID(), hintID)
         props = HintProps(uniqueID, hintID, hint.getTargetID(), text, hint.hasBox(), hint.getArrow(), hint.getPadding(), updateRuntime=False, hideImmediately=hint.getHideImmediately(), checkViewArea=False)
         silent = False
         return self._gui.playEffect(GUI_EFFECT_NAME.SHOW_HINT, (props, hint.getActionTypes(), silent))
 def __showHint(self, hint):
     text = hint['text']
     uniqueID = hintID = hint['hintID']
     props = HintProps(uniqueID,
                       hintID,
                       hint['itemID'],
                       text,
                       hasBox=hint['hasBox'],
                       arrow=hint['arrow'],
                       padding=None,
                       updateRuntime=hint['updateRuntime'],
                       hideImmediately=hint['hideImmediately'],
                       checkViewArea=hint['checkViewArea'])
     actionType = hint.get('ignoreOutsideClick')
     self._gui.showHint(props, actionType)
     self.__activeHints[hint['itemID']] = hint
     return