public void Highlight(bool highlight) { //IL_0079: Unknown result type (might be due to invalid IL or missing references) if (m_highlighted == highlight || m_previewResource == null || !m_previewResource.highlightEnabled) { return; } Tween highlightTweener = m_highlightTweener; if (highlightTweener != null && TweenExtensions.IsPlaying(highlightTweener)) { TweenExtensions.Kill(m_highlightTweener, true); m_highlightTweener = null; } if (highlight && m_image != null) { float highlightPunch = m_previewResource.highlightPunch; m_highlightTweener = ShortcutExtensions.DOPunchScale(m_image.get_transform(), new Vector3(highlightPunch, highlightPunch, highlightPunch), m_previewResource.highlightDuration, m_previewResource.highlightVibrato, m_previewResource.highlightElasticity); int highlightLoopCount = m_previewResource.highlightLoopCount; if (highlightLoopCount != 1) { TweenSettingsExtensions.SetLoops <Tween>(m_highlightTweener, highlightLoopCount); } } m_highlighted = highlight; }
private unsafe void UpdateElements() { //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_0051: Unknown result type (might be due to invalid IL or missing references) //IL_008b: Unknown result type (might be due to invalid IL or missing references) //IL_0090: Unknown result type (might be due to invalid IL or missing references) //IL_00af: Unknown result type (might be due to invalid IL or missing references) //IL_00c7: Unknown result type (might be due to invalid IL or missing references) //IL_00de: Unknown result type (might be due to invalid IL or missing references) //IL_00fe: Unknown result type (might be due to invalid IL or missing references) //IL_017c: Unknown result type (might be due to invalid IL or missing references) //IL_0186: Expected O, but got Unknown int num = m_displayedElements.Count - m_datas.maxElements; if (num > m_datas.maxHiddableElements) { int num2 = num - m_datas.maxHiddableElements; for (int i = 0; i < num2; i++) { DeQueueVisibleElement(); } } Tweener val = null; Vector2 zero = Vector2.get_zero(); for (int j = 0; j < m_displayedElements.Count; j++) { HistoryAbstractElement historyAbstractElement = m_displayedElements[m_displayedElements.Count - 1 - j]; CanvasGroup canvasGroup = historyAbstractElement.canvasGroup; RectTransform val2 = historyAbstractElement.get_transform() as RectTransform; Rect rect = val2.get_rect(); float height = rect.get_height(); ShortcutExtensions.DOKill(canvasGroup, false); ShortcutExtensions.DOKill(val2, false); val = TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOAnchorPos(val2, zero, m_datas.positionTweenDuration, false), m_datas.postitionTweenEase); if (j == 0) { ShortcutExtensions.DOPunchScale(val2, m_datas.inScalePunchValue, m_datas.inScalePunchDuration, 0, 0f); } else { val2.set_localScale(Vector3.get_one()); } if (j < m_datas.maxElements - 1) { zero.y -= height + m_datas.spacing; } if (j >= m_datas.maxElements) { DOTweenModuleUI.DOFade(canvasGroup, 0f, m_datas.outAlphaTweenDuration); } } if (val != null) { TweenSettingsExtensions.OnComplete <Tweener>(val, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)); } }
//冲压机,在 n 秒内在原始比例和下面比例之间,来回冲压变化 public static Tweener DOPunchScale(Transform target, Vector3 punch, float duration, int vibrato = 10, float elasticity = 1f) { return(ShortcutExtensions.DOPunchScale(target, punch, duration, vibrato, elasticity)); }
private void OnEnable() { //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_005e: Unknown result type (might be due to invalid IL or missing references) if (!(m_datas == null)) { m_loopSequence = DOTween.Sequence(); TweenSettingsExtensions.SetLoops <Sequence>(m_loopSequence, -1); for (int i = 0; i < m_points.Length; i++) { CanvasGroup val = m_points[i]; TweenSettingsExtensions.Insert(m_loopSequence, (float)i * m_datas.delayBetweenPoints, ShortcutExtensions.DOPunchScale(val.get_transform(), Vector3.get_one() * m_datas.scale, m_datas.duration, m_datas.vibrato, m_datas.elasticity)); } TweenSettingsExtensions.AppendInterval(m_loopSequence, m_datas.delayBetweenLoops); } }