private void OnShown() { Vector3 localPosition = new Vector3(this.mLabel_Message.get_transform().get_localPosition().x - 50f, this.mLabel_Message.get_transform().get_localPosition().y, this.mLabel_Message.get_transform().get_localPosition().z); Vector3 localPosition2 = this.mLabel_Message.get_transform().get_localPosition(); this.mLabel_Message.get_transform().set_localPosition(localPosition); ShortcutExtensions.DOLocalMove(this.mLabel_Message.get_transform(), localPosition2, 0.3f, false); this.mLabel_Message.alpha = 1f; }
public unsafe IEnumerator Unload() { DOTweenModuleUI.DOFade(m_greyBG, 0f, 0.5f); DOTween.To(new DOGetter <float>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), new DOSetter <float>((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), 0f, 0.25f); Sequence val = DOTween.Sequence(); TweenSettingsExtensions.Append(val, ShortcutExtensions.DOLocalMove(SafeArea, new Vector3(((IntPtr)(void *)SafeArea.get_localPosition()).x, 1080f, 0f), 0.25f, false)); TweenExtensions.Play <Sequence>(val); yield return(TweenExtensions.WaitForKill(val)); }
public void HideYousei() { Vector3 vector = this._dicFairyPos.get_Item(false); float num = 0.55f; TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(this._uiSprite.get_transform(), vector, 0.25f, false), 18); TweenSettingsExtensions.SetEase <Tweener>(DOVirtual.Float(this._uiSprite.fillAmount, num, 0.1f, delegate(float amount) { this._uiSprite.fillAmount = amount; }), 18); }
public void MoveToButtonDefaultFocus(Action onFinishedAnimation) { TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(this.mButton_BattlePractice.get_transform(), this.mVector3_DefaultPositionBattlePractice, 0.4f, false), 21); TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.OnComplete <Tweener>(ShortcutExtensions.DOLocalMove(this.mButton_DeckPractice.get_transform(), this.mVector3_DefaultPositionDeckPractice, 0.4f, false), delegate { if (onFinishedAnimation != null) { onFinishedAnimation.Invoke(); } }), 21); }
public void Initialize(ShipModel model) { if (model == null) { return; } this.mTexture_ShipCard.mainTexture = SingletonMonoBehaviour <ResourceManager> .Instance.ShipTexture.Load(model.MstId, 3); TweenSettingsExtensions.OnComplete <Tweener>(ShortcutExtensions.DOShakePosition(this.mTexture_ShipCard.get_transform(), 0.3f, 5f, 10, 90f, false), delegate { ShortcutExtensions.DOLocalMove(this.mTexture_ShipCard.get_transform(), this.mVector3ShipCardDefaultPosition, 0.1f, false); }); }
public void Hide() { Sequence sequence = DOTween.Sequence(); Tween tween = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(this.mTransform_Arsenal.get_transform(), this.newVector3(-7200f, 0f, 0f), 1f, false), 18); Tween tween2 = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(this.mTransform_Revamp.get_transform(), this.newVector3(720f, 0f, 0f), 1f, false), 18); Tween tween3 = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(this.mTransform_ShipFrame, this.newVector3(0f, -1024f, 0f), 0.8f, false), 26); TweenSettingsExtensions.SetId <Sequence>(sequence, this); TweenSettingsExtensions.SetId <Tween>(tween, this); TweenSettingsExtensions.SetId <Tween>(tween2, this); TweenSettingsExtensions.SetId <Tween>(tween3, this); TweenSettingsExtensions.Join(TweenSettingsExtensions.Join(TweenSettingsExtensions.Append(sequence, tween), tween2), tween3); }
private void ChangeOrientation(UserInterfaceAlbumShipViewer.Orientation changeToOrientation, Action onFinished) { this.mDisplayOrientation = changeToOrientation; Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), UserInterfaceAlbumShipViewer.AnimationType.RotateDisplay); Tween tween = null; if (changeToOrientation != UserInterfaceAlbumShipViewer.Orientation.Vertical) { if (changeToOrientation == UserInterfaceAlbumShipViewer.Orientation.Horizontal) { Screen.set_orientation(3); Tween tween2 = ShortcutExtensions.DOLocalMove(this.mCamera_Main.get_transform(), Vector3.get_zero(), 0.3f, false); Tween tween3 = DOVirtual.Float(this.mCamera_Main.get_orthographicSize(), 1f, 0.9f, delegate(float size) { this.mCamera_Main.set_orthographicSize(size); }); Tween tween4 = TweenSettingsExtensions.OnComplete <Tweener>(ShortcutExtensions.DORotate(this.mCamera_Main.get_transform(), new Vector3(0f, 0f, 0f), 0.9f, 0), delegate { this.mCamera_Main.get_transform().set_rotation(Quaternion.Euler(0f, 0f, 0f)); }); TweenSettingsExtensions.Append(sequence, tween4); TweenSettingsExtensions.Join(sequence, tween); TweenSettingsExtensions.Join(sequence, tween2); TweenSettingsExtensions.Join(sequence, tween3); } } else { Screen.set_orientation(1); Tween tween2 = ShortcutExtensions.DOLocalMove(this.mCamera_Main.get_transform(), Vector3.get_zero(), 0.3f, false); Tween tween3 = DOVirtual.Float(this.mCamera_Main.get_orthographicSize(), (float)this.DISPLAY_HEIGHT / (float)this.DISPLAY_WIDTH, 0.9f, delegate(float size) { this.mCamera_Main.set_orthographicSize(size); }); Tween tween4 = TweenSettingsExtensions.OnComplete <Tweener>(ShortcutExtensions.DORotate(this.mCamera_Main.get_transform(), new Vector3(0f, 0f, 90f), 0.9f, 0), delegate { this.mCamera_Main.get_transform().set_rotation(Quaternion.Euler(0f, 0f, 90f)); }); TweenSettingsExtensions.Append(sequence, tween3); TweenSettingsExtensions.Join(sequence, tween); TweenSettingsExtensions.Join(sequence, tween2); TweenSettingsExtensions.Join(sequence, tween4); } TweenSettingsExtensions.OnComplete <Sequence>(sequence, delegate { if (onFinished != null) { onFinished.Invoke(); } }); }
private void Animation() { bool flag = DOTween.IsTweening(this); if (flag) { return; } Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this); TweenCallback tweenCallback = delegate { this.OpenGate(); this.mPegion.get_gameObject().SetActive(true); this.mPegion.get_transform().set_localPosition(this.mVector2_ClosePegionLocalPosition); SoundUtils.PlaySE(this.mAudioClip_Pegion); this.OffPegion(); }; Tween tween = TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOLocalMove(this.mPegion.get_transform(), this.mVector2_OpenPegionLocalPosition, 0.3f, false), this); Sequence sequence2 = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this); TweenCallback tweenCallback2 = delegate { this.OnPegion(); }; TweenCallback tweenCallback3 = delegate { this.OffPegion(); }; TweenSettingsExtensions.AppendCallback(sequence2, tweenCallback2); TweenSettingsExtensions.AppendInterval(sequence2, 0.1f); TweenSettingsExtensions.AppendCallback(sequence2, tweenCallback3); TweenSettingsExtensions.AppendInterval(sequence2, 0.1f); TweenSettingsExtensions.AppendCallback(sequence2, tweenCallback2); TweenSettingsExtensions.AppendInterval(sequence2, 0.1f); TweenSettingsExtensions.AppendCallback(sequence2, tweenCallback3); TweenSettingsExtensions.AppendInterval(sequence2, 0.1f); Tween tween2 = TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOLocalMove(this.mPegion.get_transform(), this.mVector2_ClosePegionLocalPosition, 0.15f, false), this); TweenCallback tweenCallback4 = delegate { this.CloseGate(); this.mPegion.get_gameObject().SetActive(false); }; TweenSettingsExtensions.OnPlay <Sequence>(sequence, tweenCallback); TweenSettingsExtensions.Append(sequence, tween); TweenSettingsExtensions.Append(sequence, sequence2); TweenSettingsExtensions.Append(sequence, tween2); TweenSettingsExtensions.AppendCallback(sequence, tweenCallback4); }
public void SetExpectedIndex(int expected, bool tween) { //IL_003a: Unknown result type (might be due to invalid IL or missing references) //IL_004a: 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) Vector3 val = default(Vector3); val._002Ector(0f, (0f - m_verticalSpacing) * (float)expected, 0f); if (tween) { this.get_transform().set_localPosition(new Vector3(0f, (0f - m_verticalSpacing) * (float)(expected + 1), 0f)); ShortcutExtensions.DOLocalMove(this.get_transform(), val, 0.5f, false); } else { this.get_transform().set_localPosition(val); } }
public void PlayResult(Action onFinished) { this.mLabel_Exp.text = "0"; this.mLabel_Fuel.text = "0"; this.mLabel_Ammo.text = "0"; this.mLabel_Steel.text = "0"; this.mLabel_Bauxite.text = "0"; this.mLabel_SPoint.text = "0"; Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this); Tween tween = ShortcutExtensions.DOLocalMove(this.mTransform_ShipFrame, new Vector3(265f, 150f), 0.8f, false); this.mTransform_ResultBonusFrame.get_transform().localPositionX(128f); Tween tween2 = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(this.mTransform_ResultBonusFrame, Vector3.get_zero(), 0.4f, false), 21); UIWidget resultBonusAlpha = this.mTransform_ResultBonusFrame.GetComponent <UIWidget>(); resultBonusAlpha.alpha = 0f; Tween tween3 = TweenSettingsExtensions.SetEase <Tweener>(DOVirtual.Float(0f, 1f, 0.3f, delegate(float alpha) { resultBonusAlpha.alpha = alpha; }), 20); Tween tween4 = DOVirtual.Float(0f, 1f, 0.8f, delegate(float part) { MaterialInfo materialInfo = this.mMissionResultModel.GetMaterialInfo(); this.mLabel_Exp.text = ((int)((float)this.mMissionResultModel.Exp * part)).ToString(); this.mLabel_Fuel.text = ((int)((float)materialInfo.Fuel * part)).ToString(); this.mLabel_Ammo.text = ((int)((float)materialInfo.Ammo * part)).ToString(); this.mLabel_Steel.text = ((int)((float)materialInfo.Steel * part)).ToString(); this.mLabel_Bauxite.text = ((int)((float)materialInfo.Baux * part)).ToString(); this.mLabel_SPoint.text = ((int)((float)this.mMissionResultModel.Spoint * part)).ToString(); }); TweenSettingsExtensions.Append(sequence, tween); TweenSettingsExtensions.AppendInterval(sequence, 0.5f); TweenSettingsExtensions.Append(sequence, tween4); TweenSettingsExtensions.Join(sequence, tween3); TweenSettingsExtensions.Join(sequence, tween2); TweenSettingsExtensions.OnComplete <Sequence>(sequence, delegate { if (onFinished != null) { onFinished.Invoke(); } }); }
public void Show() { DOTween.Kill(this, false); Sequence sequence = DOTween.Sequence(); Tween tween = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(this.mTransform_Arsenal.get_transform(), this.newVector3(-240f, 0f, 0f), 1f, false), 18); Tween tween2 = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(this.mTransform_Revamp.get_transform(), this.newVector3(240f, 0f, 0f), 1f, false), 18); Tween tween3 = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(this.mTransform_ShipFrame, this.ShipLocate, 1.2f, false), 27); TweenSettingsExtensions.SetId <Sequence>(sequence, this); TweenSettingsExtensions.SetId <Tween>(tween, this); TweenSettingsExtensions.SetId <Tween>(tween2, this); TweenSettingsExtensions.SetId <Tween>(tween3, this); TweenSettingsExtensions.Join(TweenSettingsExtensions.Join(TweenSettingsExtensions.Append(sequence, tween), tween2), tween3); TweenSettingsExtensions.OnComplete <Sequence>(sequence, delegate { this.mIsShown = true; this.ChangeFocus(UIArsenalSelector.SelectType.Arsenal); }); }
public void PlayShowStatusAnimation(Action onFinished) { Vector3 localPosition = this.mWidget_Status.get_transform().get_localPosition(); Vector3 localPosition2 = new Vector3(localPosition.x + 20f, localPosition.y); this.mWidget_Status.get_transform().set_localPosition(localPosition2); float num = (float)this.mSlotIndex * 0.1f; float num2 = 0.5f; TweenSettingsExtensions.SetDelay <Tweener>(ShortcutExtensions.DOLocalMove(this.mWidget_Status.get_transform(), localPosition, num2, false), num); TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetDelay <Tweener>(DOVirtual.Float(0f, 1f, num2, delegate(float alpha) { this.mWidget_Status.alpha = alpha; }), num), delegate { if (onFinished != null) { onFinished.Invoke(); } }); }
private void RelocationWithAnimation() { Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this); View[] childrenViews = this.GetChildrenViews(); for (int i = 0; i < childrenViews.Length; i++) { View view = childrenViews[i]; int loopIndex = this.GetLoopIndex(view.SortIndex, this.GetLogicViewingLength(), -this.RollCount); Tween tween = ShortcutExtensions.DOLocalMove(view.cachedTransform, this.ViewsDefaultLocalPosition[loopIndex], 0.3f, false); TweenSettingsExtensions.Join(sequence, tween); } this.AnimationViewPositionNow = true; TweenSettingsExtensions.OnComplete <Sequence>(sequence, delegate { if (this.mUseBottomUpReposition) { this.BottomDown(); } this.AnimationViewPositionNow = false; }); }
private void PlayLevelUpAnimation() { this.mTexture_LevelUp.SetActive(true); Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this); TweenCallback tweenCallback = delegate { this.mTexture_LevelUp.get_transform().set_localPosition(new Vector3(225f, -15f)); }; Tween tween = ShortcutExtensions.DOLocalMove(this.mTexture_LevelUp.get_transform(), new Vector3(225f, -10f), 0.15f, false); Tween tween2 = ShortcutExtensions.DOLocalMove(this.mTexture_LevelUp.get_transform(), new Vector3(225f, -15f), 0.15f, false); Tween tween3 = TweenSettingsExtensions.OnComplete <Tweener>(DOVirtual.Float(1f, 0f, 0.5f, delegate(float alpha) { this.mTexture_LevelUp.alpha = alpha; }), delegate { this.mTexture_LevelUp.SetActive(false); }); TweenSettingsExtensions.OnPlay <Sequence>(sequence, tweenCallback); TweenSettingsExtensions.Append(sequence, tween); TweenSettingsExtensions.Append(sequence, tween2); TweenSettingsExtensions.AppendInterval(sequence, 0.5f); TweenSettingsExtensions.Append(sequence, tween3); }
private unsafe void ScrollToIndex(bool useTween) { //IL_00a6: Unknown result type (might be due to invalid IL or missing references) //IL_00c2: Unknown result type (might be due to invalid IL or missing references) //IL_014d: Unknown result type (might be due to invalid IL or missing references) //IL_01a9: Unknown result type (might be due to invalid IL or missing references) ElementState[] array = ComputeElementStates(); if (useTween) { Sequence currentTweenSequence = m_currentTweenSequence; if (currentTweenSequence != null) { TweenExtensions.Kill(currentTweenSequence, false); } Sequence val = m_currentTweenSequence = DOTween.Sequence(); m_currentTweenElementStates = array; for (int i = 0; i < m_elements.Count; i++) { T element = m_elements[i]; ElementState elementState = array[i]; element.SetHighlightFactor((i == m_selectedIndex) ? 1f : 0f); TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(element.get_transform(), elementState.pos, m_config.moveTweenDuration, false), m_config.moveTweenEase)); if (i == m_selectedIndex) { element.SetVisibilityFactor(m_config.cellVisibilityCurve.Evaluate(elementState.depth)); continue; } Sequence obj = val; T val2 = element; _003C_003Ec__DisplayClass45_0 _003C_003Ec__DisplayClass45_; TweenSettingsExtensions.Insert(obj, 0f, TweenSettingsExtensions.SetEase <TweenerCore <float, float, FloatOptions> >(DOTween.To(new DOGetter <float>((object)val2, (IntPtr)(void *) /*OpCode not supported: LdVirtFtn*/), new DOSetter <float>((object)_003C_003Ec__DisplayClass45_, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), elementState.depth, m_config.moveTweenDuration), m_config.moveTweenEase)); } UpdateSiblingIndexes(); } else { for (int j = 0; j < m_elements.Count; j++) { T val3 = m_elements[j]; ElementState elementState2 = array[j]; val3.get_transform().set_localPosition(elementState2.pos); val3.get_transform().SetSiblingIndex(elementState2.siblingIndex); val3.SetVisibilityFactor(m_config.cellVisibilityCurve.Evaluate(elementState2.depth)); val3.SetHighlightFactor(m_config.cellHighlightCurve.Evaluate((j == m_selectedIndex) ? 1f : 0f)); } } UpdateArrowState(); }
private void Start() { if (this.mLoop < 0) { this.mLoop = -2147483648; } this.mTween = TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.SetDelay <Tweener>(TweenSettingsExtensions.SetLoops <Tweener>(ShortcutExtensions.DOLocalMove(base.get_transform(), this.mVector3_To, this.mDuration, false), this.mLoop, this.mLoopType_Type), this.mDelay), this.mEase); }
private unsafe void EndDrag(bool force, DndCastBehaviour behaviour) { //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_004f: Unknown result type (might be due to invalid IL or missing references) //IL_0056: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_005d: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Unknown result type (might be due to invalid IL or missing references) //IL_006d: Unknown result type (might be due to invalid IL or missing references) //IL_0072: Unknown result type (might be due to invalid IL or missing references) //IL_007c: Unknown result type (might be due to invalid IL or missing references) //IL_008a: Unknown result type (might be due to invalid IL or missing references) //IL_009d: Unknown result type (might be due to invalid IL or missing references) //IL_00ae: Unknown result type (might be due to invalid IL or missing references) //IL_00bf: Unknown result type (might be due to invalid IL or missing references) //IL_00d0: Unknown result type (might be due to invalid IL or missing references) //IL_00e0: Unknown result type (might be due to invalid IL or missing references) //IL_00e6: Unknown result type (might be due to invalid IL or missing references) //IL_00ed: Unknown result type (might be due to invalid IL or missing references) //IL_00f3: Unknown result type (might be due to invalid IL or missing references) //IL_00fa: Unknown result type (might be due to invalid IL or missing references) //IL_010a: Unknown result type (might be due to invalid IL or missing references) //IL_011a: Unknown result type (might be due to invalid IL or missing references) //IL_012a: Unknown result type (might be due to invalid IL or missing references) //IL_015b: Unknown result type (might be due to invalid IL or missing references) //IL_0185: Unknown result type (might be due to invalid IL or missing references) //IL_01ae: Unknown result type (might be due to invalid IL or missing references) //IL_01b3: Unknown result type (might be due to invalid IL or missing references) //IL_01d6: Unknown result type (might be due to invalid IL or missing references) //IL_01f6: Unknown result type (might be due to invalid IL or missing references) //IL_0200: Expected O, but got Unknown //IL_0224: Unknown result type (might be due to invalid IL or missing references) //IL_022e: Expected O, but got Unknown if (m_elementState != DndElementState.Drag && m_elementState != DndElementState.SimulatedDrag && !force) { return; } DragNDropListener.instance.OnEndDrag(); m_elementState = DndElementState.Idle; m_content.SetParent(m_contentParent); if (behaviour == DndCastBehaviour.MoveBack) { Rect rect = m_content.get_rect(); Vector2 anchoredPosition = m_content.get_anchoredPosition(); Vector2 val = m_contentPivot - m_content.get_pivot(); Vector2 val2 = default(Vector2); val2._002Ector(rect.get_width() * ((IntPtr)(void *)val).x, rect.get_height() * ((IntPtr)(void *)val).y); m_content.set_anchorMin(m_contentAnchorMin); m_content.set_anchorMax(m_contentAnchorMax); m_content.set_sizeDelta(m_contentSizeDelta); m_content.set_pivot(m_contentPivot); m_content.set_anchoredPosition(new Vector2(((IntPtr)(void *)anchoredPosition).x + ((IntPtr)(void *)val2).x, ((IntPtr)(void *)anchoredPosition).y + ((IntPtr)(void *)val2).y)); m_subContent.set_anchorMin(Vector2.get_zero()); m_subContent.set_anchorMax(Vector2.get_one()); m_subContent.set_sizeDelta(Vector2.get_zero()); Tween animationTween = m_animationTween; if (animationTween != null) { TweenExtensions.Kill(animationTween, false); } Sequence val3 = DOTween.Sequence(); TweenSettingsExtensions.Insert(val3, 0f, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(m_content, m_contentPosition, 0.3f, true), 18)); TweenSettingsExtensions.Insert(val3, 0f, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(m_content, Vector3.get_one(), 0.3f), 27)); TweenSettingsExtensions.Insert(val3, 0f, DOTweenModuleUI.DOAnchorPos(m_subContent, Vector2.op_Implicit(Vector3.get_zero()), 0.3f, false)); TweenSettingsExtensions.Insert(val3, 0f, ShortcutExtensions.DOLocalRotate(m_subContent, Vector3.get_zero(), 0.3f, 0)); m_animationTween = TweenSettingsExtensions.OnKill <Sequence>(val3, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)); } else { m_animationTween = TweenSettingsExtensions.OnKill <Tweener>(DOTweenModuleUI.DOFade(m_canvasGroup, 0f, 0.3f), new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)); } m_wasOnTarget = m_onTarget; m_buttonPressed = false; m_onTarget = false; }
private void OnMoveView(View view, Vector3 moveTo) { this.mIsAnimationNow = true; TweenExtensions.PlayForward(TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(view.get_transform(), moveTo, this.ANIMATION_TIME_MOVE, false), this.ANIMATION_EASE_MOVE), delegate { this.mIsAnimationNow = false; })); }
public void Show() { this.Shown = true; base.get_transform().SetActive(true); if (this.mTweenShowHide != null) { TweenExtensions.Kill(this.mTweenShowHide, false); this.mTweenShowHide = null; } this.ConditionInfo.Initialize(this.mMapModel); this.DelayActionFrame(1, delegate { this.mTweenShowHide = TweenSettingsExtensions.SetId <Sequence>(TweenSettingsExtensions.Join(TweenSettingsExtensions.Append(DOTween.Sequence(), ShortcutExtensions.DOLocalMove(base.get_transform(), this.mVector3_ShowPosition, 0.3f, false)), TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(this.mButton_GoStage.get_transform(), new Vector3(1f, 1f), 0.2f), 27)), this); }); }
private void Hide(float delay) { this.mTexture_Akashi.mainTexture = this.mTextureAkashi[1]; TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetDelay <Tweener>(ShortcutExtensions.DOLocalMove(this.mTexture_Akashi.get_transform(), this.mVector3_Akashi_GoBackLocalPosition, 0.4f, false), delay), delegate { this.mShown = false; this.OnHidden(); }), 3); }
public unsafe void Close(bool forceImmediate = false) { //IL_0074: Unknown result type (might be due to invalid IL or missing references) //IL_00b9: 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_00e8: Expected O, but got Unknown if (forceImmediate) { Tween tween = m_tween; if (tween != null) { tween.onKill.Invoke(); } OnClosed(); } else if (m_state != ContainerDrawerState.Closed && m_state != ContainerDrawerState.Closing) { Tween tween2 = m_tween; if (tween2 != null) { TweenExtensions.Kill(tween2, false); } m_state = ContainerDrawerState.Closing; m_mask.set_enabled(true); m_canvasGroup.set_alpha(1f); m_content.get_transform().set_localPosition(m_basePosition); Sequence val = DOTween.Sequence(); TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOFade(m_canvasGroup, 0f, 0.3f), 19)); TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(m_content, m_hiddenPosition, 0.3f, false), 19)); TweenSettingsExtensions.OnKill <Sequence>(val, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)); m_tween = val; } }
public void Hide(Action onFinishedAnimation) { this.mTexture_Ohyodo.mainTexture = this.mTextureOhyodo[1]; TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetDelay <Tweener>(ShortcutExtensions.DOLocalMove(this.mTexture_Ohyodo.get_transform(), this.mVector3_Ohyodo_GoBackLocalPosition, 0.4f, false), 0.5f), delegate { if (onFinishedAnimation != null) { onFinishedAnimation.Invoke(); } }), 3); }
public void Hide() { this.Shown = false; if (this.mTweenShowHide != null) { TweenExtensions.Kill(this.mTweenShowHide, false); this.mTweenShowHide = null; } this.mTweenShowHide = TweenSettingsExtensions.SetId <Sequence>(TweenSettingsExtensions.Join(TweenSettingsExtensions.Append(DOTween.Sequence(), TweenSettingsExtensions.OnComplete <Tweener>(ShortcutExtensions.DOLocalMove(base.get_transform(), this.mVector3_HidePosition, 0.2f, false), delegate { base.get_transform().SetActive(false); })), ShortcutExtensions.DOScale(this.mButton_GoStage.get_transform(), new Vector3(0.1f, 0.1f), 0.3f)), this); }
private void BottomDown() { ShortcutExtensions.DOLocalMove(this.mGridContaints.get_transform(), this.mVector3_GridContaintsDefaultPosition, 0.3f, false); }
protected unsafe virtual Sequence TweenOutSequence() { //IL_0093: 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_00f3: Unknown result type (might be due to invalid IL or missing references) //IL_0105: Unknown result type (might be due to invalid IL or missing references) //IL_010f: Expected O, but got Unknown //IL_0157: Unknown result type (might be due to invalid IL or missing references) //IL_0192: Unknown result type (might be due to invalid IL or missing references) //IL_019c: Expected O, but got Unknown Sequence val = m_currentTweenSequence = DOTween.Sequence(); enableScrollButtons = false; float num = (m_config.outTweenDelayByElement >= 0f) ? m_config.outTweenDelayByElement : ((0f - m_config.outTweenDelayByElement) * (float)(m_elements.Count - 1)); for (int i = 0; i < m_elements.Count; i++) { T element = m_elements[i]; TweenSettingsExtensions.Insert(val, num, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(element.get_transform(), m_outPosition.get_localPosition(), m_config.outTweenDuration, false), m_config.outTweenEase)); _003C_003Ec__DisplayClass49_0 _003C_003Ec__DisplayClass49_; TweenSettingsExtensions.Insert(val, num, TweenSettingsExtensions.OnComplete <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScaleX(element.get_transform(), m_config.outScale, m_config.outTweenDuration), m_config.outTweenEase), new TweenCallback((object)_003C_003Ec__DisplayClass49_, (IntPtr)(void *) /*OpCode not supported: LdFtn*/))); Sequence obj = val; float num2 = num; T val2 = element; TweenSettingsExtensions.Insert(obj, num2, TweenSettingsExtensions.SetEase <TweenerCore <float, float, FloatOptions> >(DOTween.To(new DOGetter <float>((object)val2, (IntPtr)(void *) /*OpCode not supported: LdVirtFtn*/), new DOSetter <float>((object)_003C_003Ec__DisplayClass49_, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), 0f, m_config.outTweenDuration), m_config.outTweenEase)); num += m_config.outTweenDelayByElement; } TweenSettingsExtensions.OnKill <Sequence>(val, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)); return(val); }
public void Show() { TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.OnComplete <Tweener>(ShortcutExtensions.DOLocalMove(this.mTexture_Akashi.get_transform(), this.mVector3_Akashi_ShowLocalPosition, 0.4f, false), delegate { this.mShown = true; }), 3); }
protected unsafe virtual Sequence TweenInSequence() { //IL_00c6: Unknown result type (might be due to invalid IL or missing references) //IL_00e2: Unknown result type (might be due to invalid IL or missing references) //IL_0120: Unknown result type (might be due to invalid IL or missing references) //IL_0183: Unknown result type (might be due to invalid IL or missing references) Sequence val = m_currentTweenSequence = DOTween.Sequence(); enableScrollButtons = true; ElementState[] array = m_currentTweenElementStates = ComputeElementStates(); UpdateSiblingIndexes(); float num = (m_config.inTweenDelayByElement >= 0f) ? m_config.inTweenDelayByElement : ((0f - m_config.inTweenDelayByElement) * (float)(m_elements.Count - 1)); for (int i = 0; i < m_elements.Count; i++) { T element = m_elements[i]; ElementState elementState = array[i]; element.get_gameObject().SetActive(true); TweenSettingsExtensions.Insert(val, num, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(element.get_transform(), elementState.pos, m_config.inTweenDuration, false), m_config.inTweenEase)); TweenSettingsExtensions.Insert(val, num, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScaleX(element.get_transform(), 1f, m_config.inTweenDuration), m_config.inTweenEase)); Sequence obj = val; float num2 = num; T val2 = element; _003C_003Ec__DisplayClass50_0 _003C_003Ec__DisplayClass50_; TweenSettingsExtensions.Insert(obj, num2, TweenSettingsExtensions.SetEase <TweenerCore <float, float, FloatOptions> >(DOTween.To(new DOGetter <float>((object)val2, (IntPtr)(void *) /*OpCode not supported: LdVirtFtn*/), new DOSetter <float>((object)_003C_003Ec__DisplayClass50_, (IntPtr)(void *) /*OpCode not supported: LdFtn*/), (i == m_selectedIndex) ? 1f : 0f, m_config.inTweenDuration), m_config.inTweenEase)); num += m_config.inTweenDelayByElement; } return(val); }
private Tween GenerateTweenLevelUp() { Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this); this.mTexture_LevelUp.alpha = 0f; this.mTexture_LevelUp.get_transform().set_localPosition(this.mVector3_Show_From); Tween tween = TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetDelay <Tweener>(DOVirtual.Float(1f, 0f, this.slotTime, delegate(float alpha) { this.mTexture_LevelUp.alpha = alpha; }), this.delay), this); TweenSettingsExtensions.Append(sequence, TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOLocalMove(this.mTexture_LevelUp.get_transform(), this.mVector3_Show_To, this.slotTime, false), this)); TweenSettingsExtensions.Join(sequence, tween); TweenSettingsExtensions.OnPlay <Sequence>(sequence, delegate { this.mTexture_LevelUp.alpha = 1f; }); return(sequence); }
public void Init() { base.transform.localPosition = Vector3.zero; this.canvasgroup.alpha = 1f; if (this.seq != null) { TweenExtensions.Kill(this.seq, false); } Tweener tweener = TweenSettingsExtensions.SetUpdate <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMove(base.transform, endpos, 1.5f, false), 15), true); Sequence sequence = DOTween.Sequence(); TweenSettingsExtensions.SetUpdate <Sequence>(sequence, true); TweenSettingsExtensions.Append(sequence, ShortcutExtensions46.DOFade(this.canvasgroup, 0.6f, 0.9f)); TweenSettingsExtensions.Append(sequence, ShortcutExtensions46.DOFade(this.canvasgroup, 0f, 0.6f)); base.transform.localScale = Vector3.one * 0.5f; Tweener tweener2 = ShortcutExtensions.DOScale(base.transform, 1f, 0.45f); this.seq = DOTween.Sequence(); TweenSettingsExtensions.SetUpdate <Sequence>(this.seq, true); TweenSettingsExtensions.Append(this.seq, tweener); TweenSettingsExtensions.Join(this.seq, sequence); TweenSettingsExtensions.Join(this.seq, tweener2); TweenSettingsExtensions.AppendCallback(this.seq, new TweenCallback(this, this.< Init > m__1)); }
public void Show(Action onFinishedAnimation) { ShipUtils.PlayPortVoice(1); TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.OnComplete <Tweener>(ShortcutExtensions.DOLocalMove(this.mTexture_Ohyodo.get_transform(), this.mVector3_Ohyodo_ShowLocalPosition, 0.4f, false), delegate { if (onFinishedAnimation != null) { onFinishedAnimation.Invoke(); } }), 3); }