private void OnValueChanged(bool on) { //IL_0015: Unknown result type (might be due to invalid IL or missing references) //IL_001a: Unknown result type (might be due to invalid IL or missing references) //IL_0064: Unknown result type (might be due to invalid IL or missing references) //IL_0071: 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_0084: 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) if (!(m_tickImage == null)) { Color val = m_tickImage.get_color(); if (m_style.useOnlyAlpha) { val.a = (this.get_isOn() ? m_style.selectedGraphicColor.a : m_style.baseGraphicColor.a); } else { val = (on ? m_style.selectedGraphicColor : m_style.baseGraphicColor); } if (!Application.get_isPlaying()) { m_tickImage.set_color(val); } else { DOTweenModuleUI.DOBlendableColor(m_tickImage, val, m_style.selectionTransitionDuration); } } }
public IEnumerator PlayEnterAnimation() { yield return((object)new WaitForTime(0.5f)); DOTweenModuleUI.DOFade(base.canvasGroup, 1f, 1.5f); yield return((object)new WaitForTime(0.5f)); }
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 unsafe void OnDrag(Vector2 screenPosition, Camera cam) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) //IL_001e: 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_002a: Unknown result type (might be due to invalid IL or missing references) //IL_0037: Unknown result type (might be due to invalid IL or missing references) //IL_003c: 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_0047: Unknown result type (might be due to invalid IL or missing references) //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_0066: Unknown result type (might be due to invalid IL or missing references) //IL_0078: 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_009e: Expected O, but got Unknown if (!dragging) { return; } Vector2 val = ((_003F?)m_snapScreenPosition) ?? screenPosition; Vector2 val2 = default(Vector2); if (RectTransformUtility.ScreenPointToLocalPointInRectangle(m_content, val, cam, ref val2) && !(m_previousPosition == 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); TweenSettingsExtensions.OnKill <Tween>(m_tweenViewPosition, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)); } }
private unsafe void DisplayPedestalInfo(bool display) { //IL_008e: Unknown result type (might be due to invalid IL or missing references) //IL_00b6: Unknown result type (might be due to invalid IL or missing references) //IL_012f: Unknown result type (might be due to invalid IL or missing references) //IL_0161: 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_018f: Expected O, but got Unknown Sequence pedestalTweenSequence = m_pedestalTweenSequence; if (pedestalTweenSequence != null) { TweenExtensions.Kill(pedestalTweenSequence, false); } Sequence val = DOTween.Sequence(); if (display) { m_pedestalSpellAbilityBGCanvasGroup.get_gameObject().SetActive(true); m_pedestalSpellAbilityMainCanvasGroup.get_gameObject().SetActive(true); TweenSettingsExtensions.Insert(val, 0f, DOTweenModuleUI.DOFade(m_pedestalSpellAbilityMainCanvasGroup, 1f, 0.2f)); TweenSettingsExtensions.Insert(val, 0f, DOTweenModuleUI.DOFade(m_pedestalSpellAbilityBGCanvasGroup, 1f, 0.2f)); TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOAnchorPos(m_pedestalSpellAbilityBgRectTransform, Vector2.get_zero(), 0.2f, false), 7)); TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOAnchorPos(m_pedestalSpellAbilityMainRectTransform, Vector2.get_zero(), 0.2f, false), 7)); } else { TweenSettingsExtensions.Insert(val, 0f, DOTweenModuleUI.DOFade(m_pedestalSpellAbilityMainCanvasGroup, 0f, 0.2f)); TweenSettingsExtensions.Insert(val, 0f, DOTweenModuleUI.DOFade(m_pedestalSpellAbilityBGCanvasGroup, 0f, 0.2f)); TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOAnchorPos(m_pedestalSpellAbilityBgRectTransform, new Vector2(0f, 30f), 0.2f, false), 7)); TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOAnchorPos(m_pedestalSpellAbilityMainRectTransform, new Vector2(0f, 30f), 0.2f, false), 7)); TweenSettingsExtensions.OnKill <Sequence>(val, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)); } m_pedestalTweenSequence = val; }
private IEnumerator DisplayWeaponEnumerator(WeaponDefinition definition) { if (!(m_currentWeapon == definition)) { m_currentWeapon = definition; bool flag = PlayerData.instance.weaponInventory.Contains(definition.get_id()); bool flag2 = !IsCurrentWeapon(definition.get_id()) && flag; m_validateButton.set_interactable(flag2); m_validateButtonText.SetText(flag2 ? 40340 : 38149); PlayerData.instance.weaponInventory.TryGetLevel(m_currentWeapon.get_id(), out m_level); if (m_enterAnimationFinished) { yield return(PlayFadeSequence(toOut: true)); } yield return(LoadWeaponInfos(definition)); BuildDeckList(); m_backgroundShader.TweenColor(definition.deckBuildingBackgroundColor, definition.deckBuildingBackgroundColor2, 0.2f); AssetReference uIAnimatedCharacterReference = definition.GetUIAnimatedCharacterReference(); CanvasGroup characterGroup = m_characterloader.GetComponent <CanvasGroup>(); characterGroup.set_alpha(0f); m_characterloader.Setup(uIAnimatedCharacterReference, AssetBundlesUtility.GetUIAnimatedCharacterResourcesBundleName()); while (m_characterloader.loadState == UIResourceLoadState.Loading) { yield return(null); } DOTweenModuleUI.DOFade(characterGroup, 1f, 0.3f); m_equippedFX.SetEquipped(IsCurrentWeapon(definition.get_id())); if (m_enterAnimationFinished) { yield return(PlayFadeSequence(toOut: false)); } } }
//UI表示終了処理をする public void MenuEndFunc(int mode) { //すでに閉じてます if (!showing || busy) { return; } //0=Normal, 1=Left, 2=Right AudioMan.PlayCloseSound(); MenuEnd = true; busy = true; TweenCallback callback = () => { EnableManager.Disable(); //処理を無効化 EOVRO.show = false; //オーバーレイ無効 SideMenu.up = true; //左右の場合はここで閉じる //fpsを下げる ResoMan.LowFPS(); MenuResetFunc(); }; var seq = DOTween.Sequence(); if (mode == 1) { //Left seq.Append( DOTweenModuleUI.DOAnchorPosX(canvasrect, -260, canvasdutation) ); } else if (mode == 2) { //Rgiht seq.Append( DOTweenModuleUI.DOAnchorPosX(canvasrect, +260, canvasdutation) ); } else { //通常 SideMenu.up = true; //格納してから seq.AppendInterval(0.3f); //Wait side menu seq.Append( DOTweenModuleUI.DOAnchorPosY(canvasrect, 150, canvasdutation) ); } seq.AppendInterval(0.5f); //Wait seq.AppendCallback(callback); seq.Append( DOTweenModuleUI.DOAnchorPosY(canvasrect, 0, canvasdutation) //スワイプアウトのあともとに戻す ); seq.Play(); }
public void DoAlpha(float alpha, float duration) { if (m_image != null) { DOTweenModuleUI.DOFade(m_image, alpha, duration); } DOTweenModuleUI.DOFade(m_text, alpha, duration); }
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*/)); } }
public unsafe override Sequence DestroySequence() { //IL_0017: Unknown result type (might be due to invalid IL or missing references) Sequence obj = DOTween.Sequence(); TweenSettingsExtensions.Insert(obj, 0f, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveY(this.get_transform(), ((IntPtr)(void *)this.get_transform().get_localPosition()).y + 40f, 0.25f, false), 3)); TweenSettingsExtensions.Insert(obj, 0f, DOTweenModuleUI.DOFade(m_canvasGroup, 0f, 0.25f)); return(obj); }
/// <summary> /// Create&ShowUI /// </summary> public void OpenPanel <T>(UILevel canvasLevel = UILevel.Common, IUIData uiData = null, UITransitionType transitionType = UITransitionType.NULL, UIPanel view = null, string assetBundleName = null, string prefabName = null, UnityAction action = null) where T : UIPanel { if (view.IsNotNull()) { Push(view, transitionType); } if (transitionType == UITransitionType.CIRCLE) { if (!mIsChangingView) { mIsChangingView = true; mCircleMask.transform.parent.gameObject.Show(); var tweenerCore = mCircleMask.transform.DOScale(new Vector3(1, 1, 1), 0.5f); DOTweenModuleUI.DOFade(mCircleMask, 1, 0.5f); tweenerCore.onComplete = delegate() { action?.Invoke(); OpenUI(prefabName ?? GetUIBehaviourName <T>(), transitionType, canvasLevel, uiData, assetBundleName, view.IsNotNull()); var t = mCircleMask.DOFade(0, 0.5f).SetEase(Ease.OutQuint); t.onComplete = delegate() { mCircleMask.transform.parent.gameObject.Hide(); mCircleMask.transform.localScale = Vector3.zero; mCircleMask.color = new Color(255, 255, 255, 0); mIsChangingView = false; }; }; } } else if (transitionType == UITransitionType.CLOUD) { if (!mIsChangingView) { mIsChangingView = true; mCloudAnimationController.transform.parent.Show(); mCloudAnimationController.PlayAnimation(CloudState.OPENANDCLOSE); IDisposable disposable = null; disposable = SimpleEventSystem.GetEvent <CloudOpenAnimation>().Subscribe(_ => { disposable.Dispose(); action?.Invoke(); OpenUI(prefabName ?? GetUIBehaviourName <T>(), transitionType, canvasLevel, uiData, assetBundleName, view); }); } } else { OpenUI(prefabName ?? GetUIBehaviourName <T>(), transitionType, canvasLevel, uiData, assetBundleName, view); } }
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 IEnumerator fade(CanvasGroup can, float alpha, float duration, UIPanelType panelType) { var Seq = DOTween.Sequence(); Seq.Append(DOTweenModuleUI.DOFade(can, alpha, duration)); yield return(Seq.WaitForCompletion(true)); ChangePanelType(panelType); Seq.Join(DOTweenModuleUI.DOFade(can, 1.0f, duration)); yield return(Seq.WaitForCompletion(true)); }
public void SetEquipped(bool b) { this.get_gameObject().SetActive(b); if (b) { foreach (Image item in m_ImageToColor) { DOTweenModuleUI.DOFade(item, 1f, 0.1f); } } }
public unsafe void GotoEditAnim() { //IL_005e: Unknown result type (might be due to invalid IL or missing references) //IL_0068: Expected O, but got Unknown this.StartCoroutine(PlayFadeSequence(toOut: true)); DisplayPedestalInfo(display: true); Sequence obj = DOTween.Sequence(); TweenSettingsExtensions.Append(obj, DOTweenModuleUI.DOFade(m_weaponListCanvas, 0f, 0.3f)); TweenSettingsExtensions.Insert(obj, 0f, DOTweenModuleUI.DOFade(m_validateCanvas, 0f, 0.3f)); TweenSettingsExtensions.OnKill <Sequence>(obj, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)); }
private void OnValueChanged(bool selected) { //IL_000a: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Unknown result type (might be due to invalid IL or missing references) DOTweenModuleUI.DOSizeDelta(m_rectTransform, selected ? m_selectedSizeDelta : m_defaultSizeDelta, 0.1f, false); m_editButton.get_gameObject().SetActive(selected); m_bg.set_enabled(!selected); m_slectedOutline.set_enabled(selected); if (selected) { this.OnSelectRequest?.Invoke(m_deckSlot); } }
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); }
//UI表示開始処理をする void MenuStartFunc() { canvasrect.anchoredPosition = new Vector3(0, 500, 0); EnableManager.Enable(); //処理を有効化 EOVRO.show = true; //オーバーレイ有効 AudioMan.PlayOpenSound(); //fpsを上げる ResoMan.HighFPS(); //画面位置固定機能が有効の場合は位置を修正しない if (!FixedPosition) { setPosition(); } //スタイリッシュホームを適用 StylishHomeApply(); busy = true; showing = true; MenuEnd = false; DOTween.Sequence() .Append( DOTweenModuleUI.DOAnchorPosY(canvasrect, 0, canvasdutation) ) .AppendCallback(() => { SideMenu.down = true; }) .AppendInterval(0.2f) //Wait .AppendCallback(() => { //ホームを隠すが有効でないときだけ if (!config.hideHome) { ApplyHandPosToSideMenu(); } }) .AppendInterval(0.2f) //Wait .AppendCallback(() => { MenuStart = false; MenuEnd = false; busy = false; }) .Play(); }
public unsafe IEnumerator GotoSelectMode() { if (m_inEdition) { m_inEdition = false; Sequence val = DOTween.Sequence(); TweenSettingsExtensions.Insert(val, 0f, DOTweenModuleUI.DOFade(m_mainCanvasGroup, 0f, 0.2f)); TweenSettingsExtensions.Insert(val, 0f, m_deck.LeaveEditMode()); TweenSettingsExtensions.Insert(val, 0f, m_editModeUI.Hide()); m_closeCanvas.Invoke(); m_inputBlocker.SetActive(false); TweenSettingsExtensions.InsertCallback(val, TweenExtensions.Duration(val, true), new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)); m_isOpen = false; m_fightTooltip.Hide(); yield return(TweenExtensions.WaitForKill(val)); } }
public IEnumerator GotoEdit(EditModeSelection selection) { m_inEdition = true; Sequence val = DOTween.Sequence(); if (!(m_deck == null)) { m_deck.get_gameObject().SetActive(true); m_mainCanvasGroup.get_gameObject().SetActive(true); TweenSettingsExtensions.Insert(val, 0f, DOTweenModuleUI.DOFade(m_mainCanvasGroup, 1f, 0.2f)); TweenSettingsExtensions.Insert(val, 0f, m_deck.EnterEditMode(selection)); TweenSettingsExtensions.Insert(val, 0f, m_editModeUI.Display(selection, m_selectedSlot)); m_openCanvas.Invoke(); m_isOpen = true; yield return(TweenExtensions.WaitForKill(val)); } }
protected virtual void ApplySelect() { //IL_0021: 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_0035: Unknown result type (might be due to invalid IL or missing references) //IL_0082: Unknown result type (might be due to invalid IL or missing references) if (!m_selected) { m_selectedTicks.get_gameObject().SetActive(true); m_tickRectTransform.set_sizeDelta(m_defaultTickDelta + new Vector2(0f, 100f)); m_selectedTicks.set_alpha(0f); Sequence obj = DOTween.Sequence(); TweenSettingsExtensions.Insert(obj, 0f, DOTweenModuleUI.DOFade(m_selectedTicks, 1f, 0.1f)); TweenSettingsExtensions.Insert(obj, 0f, DOTweenModuleUI.DOSizeDelta(m_tickRectTransform, m_defaultTickDelta, 0.1f, false)); TweenExtensions.Play <Sequence>(obj); m_selected = true; } }
public override void OnConfiguratorUpdate(bool instant) { //IL_0049: 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) base.OnConfiguratorUpdate(instant); float num = (m_configurator?.IsWeaponDataAvailable(m_value) ?? true) ? 1f : 0f; Color val = default(Color); val._002Ector(1f, num, 1f); if (instant) { m_weaponImage.set_color(val); } else { DOTweenModuleUI.DOColor(m_weaponImage, val, 0.2f); } }
// Update is called once per frame void Update() { if (down) { down = false; for (int i = 0; i < buttons.Length; i++) { DOTweenModuleUI.DOAnchorPosY(buttons[i].GetComponent <RectTransform>(), pos[i].y, dutation); } } if (up) { up = false; for (int i = 0; i < buttons.Length; i++) { DOTweenModuleUI.DOAnchorPosY(buttons[i].GetComponent <RectTransform>(), top, dutation); } } }
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 unsafe IEnumerator PlayEnterAnimation() { DOTweenModuleUI.DOFade(m_bgCanvas, 1f, 0.3f); yield return(BuildGodList()); yield return((object)new WaitForEndOfFrame()); if (((IntPtr)(void *)m_godContent.get_sizeDelta()).x < ((IntPtr)(void *)m_godRibbon.get_sizeDelta()).x) { Vector2 sizeDelta = m_godContent.get_sizeDelta(); sizeDelta.x += 10f; sizeDelta.y = ((IntPtr)(void *)m_godRibbon.get_sizeDelta()).y; m_godRibbon.set_sizeDelta(sizeDelta); Vector3 localPosition = m_godContent.get_transform().get_localPosition(); localPosition.x = 0f; m_godContent.get_transform().set_localPosition(localPosition); m_godScrollRect.set_enabled(false); m_godLeftArrow.SetActive(false); m_godRightArrow.SetActive(false); } yield return(PlayAnimation(m_animationDirector.GetAnimation("Open"))); }
//初期化する void MenuResetFunc() { MenuReset = false; MenuStart = false; MenuEnd = false; busy = false; showing = false; //初期位置に移動 if (!dialogShowing) { MainScreen.Find("DialogOK").GetComponent <RectTransform>().DOScale(0.0f, 0.1f); MainScreen.Find("DialogOKCancel").GetComponent <RectTransform>().DOScale(0.0f, 0.1f); } DOTweenModuleUI.DOAnchorPosY(canvasrect, 500, canvasdutation); //デスクトップ画面が無効にされているなら if (MainScreen.Find("MiscDesktopViewer").gameObject.activeInHierarchy == false) { //フルスクリーンで消されたサイドメニューを復活させる SideMenuObject.transform.DOScale(1f, 0.5f); } }
// Update is called once per frame void Update() { if (right != oldRight) { oldRight = right; if (right) { foreach (var o in objs) { DOTweenModuleUI.DOAnchorPosX(o.GetComponent <RectTransform>(), 425f, 0.2f); o.GetComponent <Text>().text = "▶"; } } else { foreach (var o in objs) { DOTweenModuleUI.DOAnchorPosX(o.GetComponent <RectTransform>(), -422.9f, 0.2f); o.GetComponent <Text>().text = "◀"; } } } }
private IEnumerator CloneAnimation(DeckSlot newSlot) { Sequence sequence2 = DOTween.Sequence(); TweenSettingsExtensions.Insert(sequence2, 0f, DOTweenModuleUI.DOFade(m_mainCanvasGroup, 0f, 0.2f)); TweenSettingsExtensions.Insert(sequence2, 0f, m_deck.LeaveEditMode()); TweenSettingsExtensions.Insert(sequence2, 0f, m_editModeUI.Hide()); yield return(TweenExtensions.Play <Sequence>(sequence2)); while (TweenExtensions.IsPlaying(sequence2)) { yield return(null); } yield return((object)new WaitForTime(0.1f)); m_selectedSlot = newSlot; m_deck.SetValue(m_selectedSlot); sequence2 = DOTween.Sequence(); TweenSettingsExtensions.Append(sequence2, DOTweenModuleUI.DOFade(m_mainCanvasGroup, 1f, 0.2f)); TweenSettingsExtensions.Append(sequence2, m_deck.EnterEditMode(m_editModeUI.GetCurrentMode())); TweenSettingsExtensions.Append(sequence2, m_editModeUI.Display(m_editModeUI.GetCurrentMode(), m_selectedSlot)); TweenExtensions.Play <Sequence>(sequence2); m_deck.OnCloneValidate(); }
private unsafe void ShowMenu(bool value) { //IL_0079: Unknown result type (might be due to invalid IL or missing references) //IL_0083: Expected O, but got Unknown m_menuOpen = value; Tween fadeTween = m_fadeTween; if (fadeTween != null) { TweenExtensions.Kill(fadeTween, false); } if (m_menuOpen) { m_menu.get_gameObject().SetActive(true); m_fadeTween = DOTweenModuleUI.DOFade(m_menu, 1f, m_fadeDuration); m_openAudio.Trigger(); } else { m_fadeTween = TweenSettingsExtensions.OnComplete <Tweener>(DOTweenModuleUI.DOFade(m_menu, 0f, m_fadeDuration), new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/)); m_closeAudio.Trigger(); } onShowMenu?.Invoke(value); }
private Tween Fade(bool visible) { return(DOTweenModuleUI.DOFade(m_blockerCanvasGroup, visible ? 0f : 1f, 0f)); }