private void UpdateView(DeckModel deckModel) { int num = 0; int count = deckModel.Count; UIRebellionOrgaizeShipBanner[] shipStates = this.ShipStates; for (int i = 0; i < shipStates.Length; i++) { UIRebellionOrgaizeShipBanner uIRebellionOrgaizeShipBanner = shipStates[i]; int nIndex = num + 1; uIRebellionOrgaizeShipBanner.SetShipData(deckModel.GetShip(num), nIndex); uIRebellionOrgaizeShipBanner.SetShipIndex(num); num++; } if (this.FocusBanner != null) { this.BannerFocusAnim(false); this.FocusBanner = this.ShipStates[this.key.Index]; this.BannerFocusAnim(true); } this.DeckNoLabel.text = deckModel.Name; this.DeckNoLabel.supportEncoding = false; this.DeckNoIcon.mainTexture = (Resources.Load("Textures/Common/DeckFlag/icon_deck" + deckModel.Id) as Texture2D); if (deckModel.IsActionEnd()) { this.DeckActionEnd.SetActive(true); ShortcutExtensions.DOKill(this.DeckActionEnd, false); ShortcutExtensions.DOLocalRotate(this.DeckActionEnd, new Vector3(0f, 0f, 300f), 0f, 1); TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalRotate(this.DeckActionEnd, new Vector3(0f, 0f, 360f), 0.8f, 1), 30); } else { this.DeckActionEnd.SetActive(false); } }
public void RefreshTitle(ScreenStatus status, DeckModel deck) { string text = string.Empty; switch (status) { case ScreenStatus.SELECT_DECK_SHIP: if (deck.Name == string.Empty) { text = "艦娘選択 - 第" + deck.Id + "艦隊 -"; } else { text = "艦娘選択 -" + deck.Name + "-"; } break; case ScreenStatus.SELECT_OTHER_SHIP: text = "艦娘選択 - その他 -"; break; case ScreenStatus.SELECT_SETTING_MODE: text = "メニュー選択"; break; case ScreenStatus.MODE_SOUBI_HENKOU: case ScreenStatus.MODE_SOUBI_HENKOU_TYPE_SELECT: case ScreenStatus.MODE_SOUBI_HENKOU_ITEM_SELECT: case ScreenStatus.MODE_SOUBI_HENKOU_PREVIEW: text = "装備変更"; break; case ScreenStatus.MODE_KINDAIKA_KAISHU: case ScreenStatus.MODE_KINDAIKA_KAISHU_SOZAI_SENTAKU: case ScreenStatus.MODE_KINDAIKA_KAISHU_KAKUNIN: case ScreenStatus.MODE_KINDAIKA_KAISHU_ANIMATION: case ScreenStatus.MODE_KINDAIKA_KAISHU_END_ANIMATION: text = "近代化改修"; break; case ScreenStatus.MODE_KAIZO: case ScreenStatus.MODE_KAIZO_ANIMATION: case ScreenStatus.MODE_KAIZO_END_ANIMATION: text = "改造"; break; } if (deck != null && deck.IsActionEnd()) { this.mTransform_TurnEndStamp.SetActive(true); ShortcutExtensions.DOKill(this.mTransform_TurnEndStamp, false); ShortcutExtensions.DOLocalRotate(this.mTransform_TurnEndStamp, new Vector3(0f, 0f, 300f), 0f, 1); TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalRotate(this.mTransform_TurnEndStamp, new Vector3(0f, 0f, 360f), 0.8f, 1), 30); } else { this.mTransform_TurnEndStamp.SetActive(false); } this.titleLabel.text = text; this.titleLabel.supportEncoding = false; }
private void Animation() { bool flag = DOTween.IsTweening(this); if (flag) { return; } Sequence sequence = DOTween.Sequence(); TweenSettingsExtensions.SetId <Sequence>(sequence, this); Sequence sequence2 = DOTween.Sequence(); TweenSettingsExtensions.SetId <Sequence>(sequence2, this); this.mTransform_Fuurin.set_localRotation(Quaternion.Euler(new Vector3(0f, 0f, -10f))); Tween tween = ShortcutExtensions.DOLocalRotate(this.mTransform_Fuurin.get_transform(), Vector3.get_zero(), 0.6f, 0); Tween tween2 = ShortcutExtensions.DOLocalRotate(this.mTransform_Fuurin.get_transform(), new Vector3(0f, 0f, -5f), 0.6f, 0); Tween tween3 = ShortcutExtensions.DOLocalRotate(this.mTransform_Fuurin.get_transform(), Vector3.get_zero(), 0.3f, 0); TweenSettingsExtensions.Append(sequence2, tween); TweenSettingsExtensions.Append(sequence2, tween2); TweenSettingsExtensions.Append(sequence2, tween3); Sequence sequence3 = DOTween.Sequence(); TweenSettingsExtensions.SetId <Sequence>(sequence3, this); TweenCallback tweenCallback = delegate { this.mTexture_Wing.mainTexture = this.mTexture2d_Frame_2; }; TweenSettingsExtensions.OnPlay <Sequence>(sequence3, tweenCallback); TweenSettingsExtensions.AppendInterval(sequence3, 0.1f); TweenCallback tweenCallback2 = delegate { this.mTexture_Wing.mainTexture = this.mTexture2d_Frame_0; }; Tween tween4 = ShortcutExtensions.DOLocalRotate(this.mTransform_Wing.get_transform(), new Vector3(0f, 0f, -4f), 0.2f, 0); Tween tween5 = ShortcutExtensions.DOLocalRotate(this.mTransform_Wing.get_transform(), new Vector3(0f, 0f, 25f), 0.8f, 0); Tween tween6 = ShortcutExtensions.DOLocalRotate(this.mTransform_Wing.get_transform(), new Vector3(0f, 0f, -12.5f), 0.8f, 0); Tween tween7 = ShortcutExtensions.DOLocalRotate(this.mTransform_Wing.get_transform(), new Vector3(0f, 0f, 0f), 0.8f, 0); TweenSettingsExtensions.Append(sequence3, tween4); TweenSettingsExtensions.Append(sequence3, tween5); TweenSettingsExtensions.Append(sequence3, tween6); TweenSettingsExtensions.Append(sequence3, tween7); TweenSettingsExtensions.AppendCallback(sequence3, delegate { this.mTexture_Wing.mainTexture = this.mTexture2d_Frame_1; }); TweenSettingsExtensions.AppendInterval(sequence3, 0.1f); TweenSettingsExtensions.AppendCallback(sequence3, delegate { this.mTexture_Wing.mainTexture = this.mTexture2d_Frame_0; }); TweenSettingsExtensions.Append(sequence, sequence2); TweenSettingsExtensions.Join(sequence, sequence3); SoundUtils.PlaySE(this.mAudioClip_Fuurin); }
public void OnDeckChange(DeckModel deck) { if (this.currentDeck != null) { bool flag = this.GetDeckID() < deck.Id; for (int i = 0; i < 6; i++) { this._bannerManager[i].UpdateChangeBanner(false); if (flag) { this._bannerManager[i].DeckChangeAnimetion(true); } else { this._bannerManager[i].DeckChangeAnimetion(false); } } } this.currentDeck = deck; SingletonMonoBehaviour <AppInformation> .Instance.CurrentDeck = (DeckModel)this.currentDeck; if (this.currentDeck != null && deck.IsActionEnd()) { this.mTransform_TurnEndStamp.SetActive(true); ShortcutExtensions.DOKill(this.mTransform_TurnEndStamp, false); ShortcutExtensions.DOLocalRotate(this.mTransform_TurnEndStamp, new Vector3(0f, 0f, 300f), 0f, 1); TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalRotate(this.mTransform_TurnEndStamp, new Vector3(0f, 0f, 360f), 0.8f, 1), 30); } else { this.mTransform_TurnEndStamp.SetActive(false); } ShipModel[] ships = deck.GetShips(); for (int j = 0; j < 6; j++) { if (j < ships.Length) { this._bannerManager[j].setShip(ships[j]); this._bannerManager[j].IsSet = true; } else { this._bannerManager[j].IsSet = false; } } TaskOrganizeTop.BannerIndex = 1; this.setControlState(); this.UpdateDeckName(); this.UpdeteDeckIcon(); this.UpdateSystemButtons(); this.deckChangeArrows.UpdateView(); }
private Tween GenerateTweenYouseiMove() { Sequence sequence = DOTween.Sequence(); TweenSettingsExtensions.SetId <Sequence>(sequence, this); TweenCallback tweenCallback = delegate { this.mTransform_YouseiOffset.localPositionX(250f); this.mTransform_YouseiOffset.set_localRotation(Quaternion.Euler(Vector3.get_zero())); }; Tween tween = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveX(this.mTransform_YouseiOffset, -380f, 5f, false), 1); Tween tween2 = ShortcutExtensions.DOLocalRotate(this.mTransform_YouseiOffset, new Vector3(0f, 180f, 0f), 1f, 0); Tween tween3 = TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalMoveX(this.mTransform_YouseiOffset, 250f, 5f, false), 1); Tween tween4 = ShortcutExtensions.DOLocalRotate(this.mTransform_YouseiOffset, new Vector3(0f, 0f, 0f), 1f, 0); TweenSettingsExtensions.OnPlay <Sequence>(sequence, tweenCallback); TweenSettingsExtensions.Append(sequence, tween); TweenSettingsExtensions.Append(sequence, tween2); TweenSettingsExtensions.Append(sequence, tween3); TweenSettingsExtensions.Append(sequence, tween4); TweenSettingsExtensions.SetLoops <Sequence>(sequence, 2147483647, 0); return(sequence); }
protected unsafe override Tween OnExitTargetTween() { //IL_0011: Unknown result type (might be due to invalid IL or missing references) //IL_003a: 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) //IL_0068: Expected O, but got Unknown Sequence obj = DOTween.Sequence(); TweenSettingsExtensions.Insert(obj, 0f, TweenSettingsExtensions.SetEase <Tweener>(ShortcutExtensions.DOLocalRotate(m_subContent, Vector3.get_zero(), 0.5f, 0), 18)); TweenSettingsExtensions.Insert(obj, 0f, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOAnchorPos(m_subContent, Vector2.get_zero(), 0.5f, false), 18)); return(TweenSettingsExtensions.OnKill <Sequence>(obj, new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/))); }
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; }