private void update_progress() { if (((this.Progress_Me != null) && (this.Progress_Other != null)) && (this.Progress_Light != null)) { if ((this.score_me == 0) && (this.score_other == 0)) { this.Progress_Me.sizeDelta = new Vector2(this.allwidth / 2f, this.height); this.Progress_Other.sizeDelta = new Vector2(this.allwidth / 2f, this.height); this.Progress_Light.anchoredPosition = new Vector2(0f, 0f); } else if (this.score_other == 0) { this.Progress_Me.sizeDelta = new Vector2(this.allwidth, this.height); this.Progress_Other.sizeDelta = new Vector2(0f, this.height); this.Progress_Light.anchoredPosition = new Vector2(this.allwidth / 2f, 0f); } else { float num = this.score_me + this.score_other; float num2 = ((float)this.score_me) / num; float x = num2 * this.allwidth; this.Progress_Me.sizeDelta = new Vector2(x, this.height); this.Progress_Other.sizeDelta = new Vector2(this.allwidth - x, this.height); this.Progress_Light.anchoredPosition = new Vector2(x - (this.allwidth / 2f), 0f); Transform transform = null; if (this.score_other > this.score_me) { transform = this.Text_Other_Name.transform; } else if (this.score_me > this.score_other) { transform = this.Text_Me_Name.transform; } if (transform != null) { if (transform != this.t_name) { this.KillSeq(); if (this.t_name != null) { this.t_name.localScale = Vector3.one; this.t_name.localRotation = Quaternion.identity; } this.t_name = transform; this.t_name.localScale = Vector3.one * 1.35f; this.seq_name = DOTween.Sequence(); TweenSettingsExtensions.Append(this.seq_name, ShortcutExtensions.DOScale(this.t_name, Vector3.one * 1.5f, 0.1f)); TweenSettingsExtensions.Join(this.seq_name, ShortcutExtensions.DOShakeRotation(this.t_name, 0.1f, 5f, 10, 90f, true)); TweenSettingsExtensions.SetEase <Sequence>(this.seq_name, 6); TweenSettingsExtensions.SetLoops <Sequence>(this.seq_name, -1, 1); TweenSettingsExtensions.SetUpdate <Sequence>(this.seq_name, true); } } else { this.KillSeq(); } } } }
public void Focus() { DOTween.Kill(this, false); this.mSprite_Yousei.spriteName = "mini_08_a_01"; this.mButton_Menu.SetState(UIButtonColor.State.Hover, true); Sequence sequence = DOTween.Sequence(); Tween tween = ShortcutExtensions.DOLocalMoveY(this.mSprite_Yousei.get_transform(), 50f, 0.3f, false); Tween tween2 = DOVirtual.Float(this.mSprite_Yousei.fillAmount, 1f, 0.3f, delegate(float percentage) { this.mSprite_Yousei.fillAmount = percentage; }); Tween tween3 = DOVirtual.Float(0.2f, 1f, 0.3f, delegate(float percentage) { this.mTexture_Area.alpha = percentage; }); this.mTexture_Area.get_transform().set_localScale(new Vector3(0.1f, 0.1f)); Tween tween4 = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(this.mTexture_Area.get_transform(), Vector3.get_one(), 0.1f), 18); TweenSettingsExtensions.Append(sequence, tween); TweenSettingsExtensions.Join(sequence, tween2); TweenSettingsExtensions.Join(sequence, tween3); TweenSettingsExtensions.Join(sequence, tween4); TweenSettingsExtensions.OnComplete <Sequence>(sequence, delegate { Tween tween5 = TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.SetLoops <Tweener>(TweenSettingsExtensions.SetId <Tweener>(DOVirtual.Float(1f, 0.5f, 1.5f, delegate(float percentage) { this.mTexture_Area.alpha = percentage; }), this), 2147483647, 1), 21); }); TweenSettingsExtensions.SetId <Sequence>(sequence, this); }
public override void OnSelectAnimation(Action onAnimationFinished) { Sequence sequence = DOTween.Sequence(); UISprite spriteFormation = Util.Instantiate(this.mSprite_Formation.get_gameObject(), base.get_transform().get_gameObject(), false, false).GetComponent <UISprite>(); spriteFormation.get_transform().set_localScale(this.mSprite_Formation.get_transform().get_localScale()); spriteFormation.get_transform().set_localPosition(this.mSprite_Formation.get_transform().get_localPosition()); Tween tween = DOVirtual.Float(spriteFormation.alpha, 0f, 1f, delegate(float alpha) { spriteFormation.alpha = alpha; }); Tween tween2 = ShortcutExtensions.DOScale(spriteFormation.get_transform(), new Vector3(1.5f, 1.5f), 1f); this.mTexture_Background_Circle.get_transform().localScale(new Vector3(0.3f, 0.3f)); ShortcutExtensions.DOScale(this.mTexture_Background_Circle.get_transform(), Vector3.get_one(), 0.3f); Tween tween3 = DOVirtual.Float(0f, 1f, 0.3f, delegate(float alpha) { this.mTexture_Background_Circle.alpha = alpha; }); Tween tween4 = ShortcutExtensions.DOScale(this.mTexture_Background_Circle.get_transform(), Vector3.get_one(), 0.3f); TweenSettingsExtensions.SetEase <Tween>(tween4, 27); TweenCallback tweenCallback = delegate { if (onAnimationFinished != null) { onAnimationFinished.Invoke(); } }; TweenSettingsExtensions.OnComplete <Sequence>(TweenSettingsExtensions.AppendInterval(TweenSettingsExtensions.Join(TweenSettingsExtensions.Append(sequence, tween3), tween4), 1f), tweenCallback); }
private void SetIsOn(bool isOn, bool instant) { //IL_0024: Unknown result type (might be due to invalid IL or missing references) //IL_002b: Unknown result type (might be due to invalid IL or missing references) //IL_0030: Unknown result type (might be due to invalid IL or missing references) //IL_0046: 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_006e: Unknown result type (might be due to invalid IL or missing references) //IL_007e: Unknown result type (might be due to invalid IL or missing references) //IL_00a2: Unknown result type (might be due to invalid IL or missing references) //IL_00cb: Unknown result type (might be due to invalid IL or missing references) if (m_isOn != isOn) { m_isOn = isOn; float num = isOn ? 1.2f : 1f; Color val = isOn ? Color.get_white() : Color.get_gray(); if (instant) { m_illustration.get_transform().set_localScale(new Vector3(num, num, 1f)); m_illustration.set_color(val); m_invalidDeck.get_transform().set_localScale(new Vector3(num, num, 1f)); m_invalidDeck.set_color(val); } else { ShortcutExtensions.DOScale(m_illustration.get_transform(), num, 0.15f); DOTweenModuleUI.DOColor(m_illustration, val, 0.15f); ShortcutExtensions.DOScale(m_invalidDeck.get_transform(), num, 0.15f); DOTweenModuleUI.DOColor(m_invalidDeck, val, 0.15f); } } }
public static void OnToggleClick(Toggle toggle, bool value) { if (!Main.enabled) { return; } if (value == false) { return; } string[] temp = toggle.name.Split(','); int cost = int.Parse(temp[1]); Traverse.Create(BattleSystem.instance).Field("actorWeaponCost").SetValue(new int[6] { cost, cost, cost, cost, cost, cost }); for (int i = 0; i < 6; i++) { SingletonObject.getInstance <DynamicSetSprite>().SetImageSprite(BattleSystem.instance.actorWeaponCostIcon[i], "gongFaCostSprites", new int[] { int.Parse(DateFile.instance.attackTypDate[cost][98]) }); //BattleSystem.instance.actorWeaponCostIcon[i].sprite = GetSprites.instance.gongFaCostSprites[DateFile.instance.ParseInt(DateFile.instance.attackTypDate[cost][98])]; TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(BattleSystem.instance.actorWeaponCostIcon[i].GetComponent <RectTransform>(), new Vector3(2f, 2f, 1f), 0.1f), Ease.OutBack); TweenSettingsExtensions.SetEase <Tweener>(TweenSettingsExtensions.SetDelay <Tweener>(ShortcutExtensions.DOScale(BattleSystem.instance.actorWeaponCostIcon[i].GetComponent <RectTransform>(), new Vector3(1f, 1f, 1f), 0.3f), 0.1f), Ease.OutBack); } }
private void ChangeFocus(UIItemListChild child, bool playSE) { if (this.mFocusListChild != null) { this.mFocusListChild.RemoveFocus(); ShortcutExtensions.DOScale(this.mFocusListChild.get_transform(), new Vector3(1f, 1f), 0.3f); ShortcutExtensions.DOScale(this.mTransform_Focus, new Vector3(1f, 1f), 0.3f); } this.mFocusListChild = child; if (this.mFocusListChild != null) { this.OnFocusChange(this.mFocusListChild.mModel); this.mFocusListChild.Focus(); if (child.IsFosable()) { this.mTransform_Focus.set_localPosition(new Vector3(this.mFocusListChild.get_transform().get_localPosition().x, this.mFocusListChild.get_transform().get_localPosition().y - 12f)); ShortcutExtensions.DOScale(this.mTransform_Focus, new Vector3(1.2f, 1.2f), 0.3f); ShortcutExtensions.DOScale(this.mFocusListChild.get_transform(), new Vector3(1.2f, 1.2f), 0.3f); } else { this.mTransform_Focus.set_localPosition(new Vector3(this.mFocusListChild.get_transform().get_localPosition().x, this.mFocusListChild.get_transform().get_localPosition().y - 12f)); } if (playSE) { this.SafePlaySEOneShot(this.mAudioClip_SE_001); } } else { this.mTransform_Focus.get_transform().set_localPosition(new Vector3(this.mItemListChildren[0].get_transform().get_localPosition().x, this.mItemListChildren[0].get_transform().get_localPosition().y - 12f)); this.OnFocusChange(null); } }
public void Hide() { ShortcutExtensions.DOScale(base.get_transform(), Vector3.get_zero(), 0.3f); DOVirtual.Float(this.mPanelThis.alpha, 0f, 0.3f, delegate(float alpha) { this.mPanelThis.alpha = alpha; }); }
public void Show(KeyControl keyController) { base.Show(); this.mTransform_Contents.get_transform().set_localScale(new Vector3(0.5f, 0.5f)); ShortcutExtensions.DOScale(this.mTransform_Contents.get_transform(), Vector3.get_one(), 0.3f); this.mKeyController = keyController; this.PlayKiraAnimation(); }
public Sequence GetTweener() { Sequence sequence = DOTween.Sequence(); TweenSettingsExtensions.Append(sequence, ShortcutExtensions.DOScale(base.transform, Vector3.one * 1.3f, 0.2f)); TweenSettingsExtensions.Append(sequence, ShortcutExtensions.DOScale(base.transform, Vector3.one, 0.1f)); return(sequence); }
public void PlayTextScale(float scale, float time) { if (this.text != null) { Sequence sequence = DOTween.Sequence(); TweenSettingsExtensions.SetUpdate <Sequence>(sequence, true); TweenSettingsExtensions.Append(sequence, ShortcutExtensions.DOScale(this.text.transform, scale, time)); } }
public KeyControl Show() { base.Show(); this.mTransform_Contents.get_transform().set_localScale(new Vector3(0.5f, 0.5f)); ShortcutExtensions.DOScale(this.mTransform_Contents.get_transform(), Vector3.get_one(), 0.3f); this.mKeyController = new KeyControl(0, 0, 0.4f, 0.1f); this.PlayKiraAnimation(); return(this.mKeyController); }
private void SetEnableVisual(bool selected) { if (m_editMode && !selected) { Sequence obj = Sequence(); TweenSettingsExtensions.Insert(obj, 0f, ShortcutExtensions.DOScale(m_canvasGroup.get_transform(), 1f, m_tweenDuration)); TweenSettingsExtensions.Insert(obj, 0f, Fade(visible: true)); } }
public static void AnimationOnFocus(Transform target, Action onFinished) { target.get_transform().set_localScale(new Vector3(1.1f, 1.1f, 1.1f)); TweenSettingsExtensions.OnComplete <Tweener>(ShortcutExtensions.DOScale(target, new Vector3(1f, 1f, 1f), 0.1f), delegate { if (onFinished != null) { onFinished.Invoke(); } }); }
public override void OnFirstDisplay(float animationTime, bool isCenter, Ease easeType) { base.OnFirstDisplay(animationTime, isCenter, easeType); if (isCenter) { TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(this.mSprite_Formation.get_transform(), this.mOnCenterScale, animationTime), easeType); } else { TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(this.mSprite_Formation.get_transform(), this.mOnOtherThanCenterScale, animationTime), easeType); } }
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); }
public void OnFinishedCollectAnimation() { Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this); Tween tween = TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOScale(this.mTargetMenuButton.get_transform(), new Vector3(1.8f, 1.8f), 0.2f), this); Tween tween2 = TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOScale(this.mTargetMenuButton.get_transform(), new Vector3(1.7f, 1.7f), 0.1f), this); TweenSettingsExtensions.Append(sequence, tween); TweenSettingsExtensions.Append(sequence, tween2); if (this.mOnFinishedCollectAnimationListener != null) { this.mOnFinishedCollectAnimationListener.Invoke(); } }
private unsafe void ConfigureCellRenderer(CellRenderer cellRenderer, bool instant, bool andUpdate) { //IL_0018: Unknown result type (might be due to invalid IL or missing references) //IL_0023: Unknown result type (might be due to invalid IL or missing references) //IL_0038: Unknown result type (might be due to invalid IL or missing references) //IL_0043: Unknown result type (might be due to invalid IL or missing references) //IL_004e: Unknown result type (might be due to invalid IL or missing references) //IL_0059: Unknown result type (might be due to invalid IL or missing references) //IL_0069: Unknown result type (might be due to invalid IL or missing references) //IL_006e: Unknown result type (might be due to invalid IL or missing references) //IL_0070: Unknown result type (might be due to invalid IL or missing references) //IL_0076: 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_0087: Unknown result type (might be due to invalid IL or missing references) //IL_0099: Unknown result type (might be due to invalid IL or missing references) //IL_00a5: Unknown result type (might be due to invalid IL or missing references) //IL_00b7: Unknown result type (might be due to invalid IL or missing references) //IL_00cd: 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_00ea: Unknown result type (might be due to invalid IL or missing references) //IL_00fc: Unknown result type (might be due to invalid IL or missing references) //IL_0108: 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_0137: Unknown result type (might be due to invalid IL or missing references) RectTransform component = cellRenderer.GetComponent <RectTransform>(); component.SetParent(m_content, true); if (instant) { component.set_anchorMin(Vector2.get_zero()); component.set_anchorMax(Vector2.get_one()); component.set_pivot(new Vector2(0.5f, 0.5f)); component.set_sizeDelta(Vector2.get_zero()); component.set_anchoredPosition3D(Vector3.get_zero()); component.set_localScale(Vector3.get_one()); } else { Vector3 localPosition = component.get_localPosition(); component.set_localPosition(new Vector3(((IntPtr)(void *)localPosition).x, ((IntPtr)(void *)localPosition).y)); TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOAnchorMin(component, Vector2.get_zero(), m_insertTweenDuration, false), m_insertTweenEase); TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOAnchorMax(component, Vector2.get_one(), m_insertTweenDuration, false), m_insertTweenEase); TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOPivot(component, new Vector2(0.5f, 0.5f), m_insertTweenDuration), m_insertTweenEase); TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOSizeDelta(component, Vector2.get_zero(), m_insertTweenDuration, false), m_insertTweenEase); TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOAnchorPos3D(component, Vector3.get_zero(), m_insertTweenDuration, false), m_insertTweenEase); TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(component, 1f, m_insertTweenDuration), m_insertTweenEase); } cellRenderer.dragNDropClient = this; cellRenderer.SetConfigurator(m_cellRendererConfigurator, andUpdate); }
public Sequence Init(LocalSave.EquipOne equip, int count) { this.DeInit(); this.equipdata = equip; object[] args = new object[] { count }; this.Text_Count.text = Utils.FormatString("x{0}", args); this.mAddParent.SetActive(false); this.fx_open.SetActive(false); this.equipparent.localScale = Vector3.zero; int quality = 1; if (count <= 5) { quality = 1; } else if (count <= 10) { quality = 2; } else { quality = 3; } this.Text_Title.set_color(this.GetColor(quality)); this.Text_Count.set_color(this.Text_Title.get_color()); object[] objArray2 = new object[1]; object[] objArray3 = new object[] { quality }; objArray2[0] = GameLogic.Hold.Language.GetLanguageByTID(Utils.FormatString("BoxOpenOne_EquipTitle{0}", objArray3), Array.Empty <object>()); this.Text_Title.text = Utils.FormatString("{0}!", objArray2); this.Text_Name.text = equip.NameString; this.Text_Info.text = equip.InfoString; this.Text_Title.transform.localScale = Vector3.zero; this.Text_Name.transform.localScale = Vector3.zero; this.Text_Info.transform.localScale = Vector3.zero; object[] objArray4 = new object[] { this.equipdata.Quality }; this.Image_BG.set_sprite(SpriteManager.GetCharUI(Utils.FormatString("CharUI_Quality{0}", objArray4))); this.Image_Icon.set_sprite(this.equipdata.Icon); this.Image_White.set_color(new Color(1f, 1f, 1f, 0.7f)); this.seq = DOTween.Sequence(); TweenSettingsExtensions.Append(this.seq, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(this.Text_Title.transform, 1f, 0.3f), 0x1b)); TweenSettingsExtensions.AppendInterval(this.seq, 0.3f); TweenSettingsExtensions.Append(this.seq, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(this.Text_Name.transform, 1f, 0.3f), 0x1b)); TweenSettingsExtensions.Append(this.seq, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(this.Text_Info.transform, 1f, 0.3f), 0x1b)); TweenSettingsExtensions.AppendCallback(this.seq, new TweenCallback(this, this.< Init > m__0)); TweenSettingsExtensions.Append(this.seq, ShortcutExtensions.DOScale(this.equipparent, 1f, 0.3f)); TweenSettingsExtensions.AppendInterval(this.seq, 0.3f); TweenSettingsExtensions.AppendCallback(this.seq, new TweenCallback(this, this.< Init > m__1)); TweenSettingsExtensions.AppendInterval(this.seq, 0.3f); return(this.seq); }
private Tween GenerateTweenMove(UILabel from, float toAlpha, Vector3 toPosition, Vector3 toScale, float duration) { Sequence sequence = DOTween.Sequence(); Tween tween = ShortcutExtensions.DOLocalMoveX(from.get_transform(), toPosition.x, duration, false); Tween tween2 = ShortcutExtensions.DOScale(from.get_transform(), toScale, duration); Tween tween3 = DOVirtual.Float(from.alpha, toAlpha, duration, delegate(float alpha) { from.alpha = alpha; }); TweenSettingsExtensions.Append(sequence, tween); TweenSettingsExtensions.Join(sequence, tween2); TweenSettingsExtensions.Join(sequence, tween3); return(sequence); }
public virtual Tween GenerateTweenFocus() { Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this); Tween tween = TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(this.mTexture_Front.get_transform(), this.mVector3_FrontCoverOutScale, 0.15f), 18), this); Tween tween2 = TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(this.mTexture_Front.get_transform(), this.mVector3_DefaultFrontScale, 0.15f), 1), this); TweenSettingsExtensions.Append(sequence, tween); TweenSettingsExtensions.Append(sequence, tween2); Sequence sequence2 = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this); Tween tween3 = TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOScale(this.mTexture_Glow_Back.get_transform(), this.mBackMinimum, 0.1f), this); Tween tween4 = TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOScale(this.mTexture_Glow_Front.get_transform(), this.mFrontMinimum, 0.1f), this); TweenSettingsExtensions.Append(sequence2, tween3); TweenSettingsExtensions.Join(sequence2, tween4); Sequence sequence3 = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this); Tween tween5 = TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOScale(this.mTexture_Glow_Back.get_transform(), this.mBackMaximum, 1f), this); Tween tween6 = TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOScale(this.mTexture_Glow_Front.get_transform(), this.mFrontMaximum, 1f), this); TweenSettingsExtensions.Append(sequence3, tween5); TweenSettingsExtensions.Join(sequence3, tween6); TweenSettingsExtensions.SetEase <Sequence>(sequence3, 4); Sequence sequence4 = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this); Tween tween7 = TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOScale(this.mTexture_Glow_Back.get_transform(), this.mBackMinimum, 2f), this); Tween tween8 = TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOScale(this.mTexture_Glow_Front.get_transform(), this.mFrontMinimum, 2f), this); TweenSettingsExtensions.Append(sequence4, tween7); TweenSettingsExtensions.Join(sequence4, tween8); TweenSettingsExtensions.SetEase <Sequence>(sequence4, 4); Sequence sequence5 = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this); TweenSettingsExtensions.Append(sequence5, sequence3); TweenSettingsExtensions.Append(sequence5, sequence4); TweenSettingsExtensions.SetLoops <Sequence>(sequence5, 2147483647); Sequence sequence6 = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this); Tween tween9 = TweenSettingsExtensions.SetId <Tweener>(DOVirtual.Float(this.mTexture_Text.alpha, 1f, 0.15f, delegate(float alpha) { this.mTexture_Text.alpha = alpha; }), this); TweenSettingsExtensions.Append(sequence6, sequence2); TweenSettingsExtensions.Join(sequence6, tween9); TweenSettingsExtensions.Append(sequence6, sequence); TweenSettingsExtensions.Append(sequence6, sequence5); return(sequence6); }
public Sequence PlayScrollShow(bool value) { if (this.mScrollCtrl == null) { return(null); } this.seq = DOTween.Sequence(); if (value) { this.mScrollCtrl.transform.localScale = Vector3.zero; TweenSettingsExtensions.Append(this.seq, ShortcutExtensions.DOScale(this.mScrollCtrl.transform, 1f, 0.3f)); } else { this.mScrollCtrl.transform.localScale = Vector3.zero; } return(this.seq); }
public void Init(TurnTableData data) { this.mData = data; this.child.localScale = Vector3.one; this.Text_Value.text = string.Empty; this.Image_Icon.enabled = true; if ((data.type != TurnTableType.Get) && (this._equipone != null)) { this._equipone.gameObject.SetActive(false); } switch (data.type) { case TurnTableType.BigEquip: case TurnTableType.SmallEquip: { this.Image_Icon.enabled = false; Drop_DropModel.DropData data2 = data.value as Drop_DropModel.DropData; this.equipone.gameObject.SetActive(true); this.equipone.InitEquip(data2.id, data2.count); this.Image_Icon.set_sprite(SpriteManager.GetEquip(LocalModelManager.Instance.Equip_equip.GetBeanById(data2.id).EquipIcon)); break; } case TurnTableType.Boss: this.Image_Icon.set_sprite(SpriteManager.GetBattle("GameTurn_Monster")); break; case TurnTableType.Hitted: this.Image_Icon.set_sprite(SpriteManager.GetBattle("GameTurn_Hitted")); break; case TurnTableType.Get: { Sequence sequence = DOTween.Sequence(); TweenSettingsExtensions.SetUpdate <Sequence>(sequence, true); TweenSettingsExtensions.Append(sequence, ShortcutExtensions.DOScale(this.child, 1.3f, 0.18f)); TweenSettingsExtensions.Append(sequence, ShortcutExtensions.DOScale(this.child, 1f, 0.18f)); TweenSettingsExtensions.AppendCallback(sequence, new TweenCallback(this, this.< Init > m__0)); break; } } }
public virtual Tween GenerateTweenRemoveFocus() { Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this); Tween tween = TweenSettingsExtensions.SetId <Tweener>(DOVirtual.Float(this.mTexture_Text.alpha, 0f, 0.15f, delegate(float alpha) { this.mTexture_Text.alpha = alpha; }), this); Tween tween2 = TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(this.mTexture_Front.get_transform(), Vector3.get_one(), 0.15f), 18), this); Sequence sequence2 = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this); Tween tween3 = TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOScale(this.mTexture_Glow_Back.get_transform(), Vector3.get_zero(), 0.2f), this); Tween tween4 = TweenSettingsExtensions.SetId <Tweener>(ShortcutExtensions.DOScale(this.mTexture_Glow_Front.get_transform(), Vector3.get_zero(), 0.2f), this); TweenSettingsExtensions.Append(sequence2, tween3); TweenSettingsExtensions.Join(sequence2, tween4); TweenSettingsExtensions.SetEase <Sequence>(sequence2, 10); TweenSettingsExtensions.Append(sequence, tween2); TweenSettingsExtensions.Join(sequence, sequence2); TweenSettingsExtensions.Join(sequence, tween); return(sequence); }
public void OnBeginDrag(Vector2 screenPosition, Camera cam, RectTransform dragObject) { //IL_0041: Unknown result type (might be due to invalid IL or missing references) //IL_0046: 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_0083: Unknown result type (might be due to invalid IL or missing references) //IL_0088: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Unknown result type (might be due to invalid IL or missing references) //IL_0094: Unknown result type (might be due to invalid IL or missing references) //IL_00a0: Unknown result type (might be due to invalid IL or missing references) //IL_00a1: 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_00c0: Unknown result type (might be due to invalid IL or missing references) //IL_00d2: Unknown result type (might be due to invalid IL or missing references) if (m_dragObject != null) { return; } dragging = true; UpdateCamera(); m_dragObject = dragObject; m_dragObject.SetParent(m_content, true); m_dragObject.set_anchoredPosition3D(Vector2.op_Implicit(m_dragObject.get_anchoredPosition())); TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(m_dragObject, m_scaleFactor, m_scaleTweenDuration), m_scaleEase); Vector2 val = ((_003F?)m_snapScreenPosition) ?? screenPosition; Vector2 val2 = default(Vector2); if (RectTransformUtility.ScreenPointToLocalPointInRectangle(m_content, val, cam, ref val2)) { m_previousPosition = val2; Tween tweenViewPosition = m_tweenViewPosition; if (tweenViewPosition != null) { TweenExtensions.Kill(tweenViewPosition, false); } m_tweenViewPosition = TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOAnchorPos3D(m_dragObject, Vector2.op_Implicit(val2), m_moveTweenDuration, false), m_moveEase); } this.OnDragBegin?.Invoke(); }
public Sequence Init(Drop_DropModel.DropData data) { this.DeInit(); this.gift.SetActive(false); this.Text_Gift.text = GameLogic.Hold.Language.GetLanguageByTID("Box_Gift", Array.Empty <object>()); this.Text_Content.text = string.Empty; this.Image_Icon.gameObject.SetActive(false); object[] args = new object[] { data.count }; this.Text_Count.text = Utils.FormatString("x{0}", args); CurrencyType id = (CurrencyType)data.id; if (id == CurrencyType.Reborn) { this.Text_Content.text = GameLogic.Hold.Language.GetLanguageByTID("currency_reborn", Array.Empty <object>()); } else { this.Image_Icon.gameObject.SetActive(true); this.Image_Icon.set_sprite(SpriteManager.GetUICommonCurrency(id)); } this.fx_open.SetActive(true); return(TweenSettingsExtensions.Append(DOTween.Sequence(), ShortcutExtensions.DOScale(this.child, 1f, 0.3f))); }
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 Select(bool select, bool fullAnimation = true) { if (m_selected == select) { return; } m_selected = select; int i = 0; for (int count = m_companionItems.Count; i < count; i++) { m_companionItems[i].enableDragAndDrop = m_editMode; } if (select) { m_listSelectionAnimator.SetBool("Selected", true); if (fullAnimation) { Sequence val = Sequence(); TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(m_canvasGroup.get_transform(), m_minScale, 0.05f), 3)); TweenSettingsExtensions.Append(val, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(m_canvasGroup.get_transform(), 1f, 0.1f), 3)); if (m_editMode) { TweenSettingsExtensions.Insert(val, 0f, Fade(visible: true)); } } return; } m_listSelectionAnimator.SetBool("Selected", false); if (fullAnimation) { Sequence val2 = Sequence(); if (m_editMode) { TweenSettingsExtensions.Insert(val2, 0f, Fade(visible: false)); } } }
public virtual Tween GenerateTweenHoverScale() { return(ShortcutExtensions.DOScale(endValue: new Vector3(1.15f, 1.15f), target: base.transform, duration: 0.15f).SetId(this)); }
public void StartState() { if (DOTween.IsTweening(this)) { DOTween.Kill(this, false); } Sequence sequence = TweenSettingsExtensions.SetId <Sequence>(DOTween.Sequence(), this); UIInteriorMenuButton[] array = this.mFocasableUIInteriorMenuButtons; for (int i = 0; i < array.Length; i++) { UIInteriorMenuButton uIInteriorMenuButton = array[i]; uIInteriorMenuButton.get_transform().set_localScale(new Vector3(0f, 0f)); Tween tween = TweenSettingsExtensions.SetId <Tweener>(TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(uIInteriorMenuButton.get_transform(), Vector3.get_one(), 0.25f), 21), this); TweenSettingsExtensions.SetDelay <Tween>(tween, 0.075f); TweenSettingsExtensions.Join(sequence, tween); } UIInteriorMenuButton[] array2 = this.mFocasableUIInteriorMenuButtons; for (int j = 0; j < array2.Length; j++) { UIInteriorMenuButton uIInteriorMenuButton2 = array2[j]; uIInteriorMenuButton2.SetEnableButton(true); } this.ChangeFocus(this.mFocasableUIInteriorMenuButtons[0], false); }
public unsafe void Open(string message) { //IL_0042: Unknown result type (might be due to invalid IL or missing references) //IL_0079: Unknown result type (might be due to invalid IL or missing references) //IL_0091: Unknown result type (might be due to invalid IL or missing references) //IL_009b: Expected O, but got Unknown m_messageField.SetText(message); if (m_state == NotificationWindowState.OPENING) { Sequence val = DOTween.Sequence(); TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOFade(m_canvasGroup, 1f, m_style.fadeInDuration), m_style.fadeInEase)); TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOScale(this.get_transform(), 1f, m_style.fadeInDuration), m_style.scaleFadeInEase)); TweenSettingsExtensions.OnKill <Sequence>(val, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)); m_tween = val; } }