private IEnumerator CloneCanceledAnimation(DeckSlot previousSLot) { SetValue(previousSLot); yield return(null); m_editModeUI.RefreshList(previousSLot); }
public unsafe Tween Display(EditModeSelection selection, DeckSlot slot) { //IL_009a: Unknown result type (might be due to invalid IL or missing references) //IL_00cf: Unknown result type (might be due to invalid IL or missing references) //IL_00d9: Expected O, but got Unknown m_slot = slot; if (m_slot != null) { m_slot.OnModification += OnSlotModification; } OnFilterChange(); UpdateAllChildren(instant: true); m_canvasGroup.set_alpha(0f); m_spellsTransform.get_gameObject().SetActive(selection == EditModeSelection.Spell); m_companionsTransform.get_gameObject().SetActive(selection == EditModeSelection.Companion); this.get_gameObject().SetActive(true); Sequence val = DOTween.Sequence(); TweenSettingsExtensions.Insert(val, 0f, TweenSettingsExtensions.SetEase <Tweener>(DOTweenModuleUI.DOFade(m_canvasGroup, 1f, m_fadeTweenDuration), m_fadeTweenEase)); Tween val2 = CreateEditModeSelectionTween(selection); if (val2 != null) { TweenSettingsExtensions.Insert(val, 0f, val2); } val.onComplete = new TweenCallback((object)this, (IntPtr)(void *) /*OpCode not supported: LdFtn*/); return(val); }
public DeckSlot OnCloneCanceled() { DeckSlot deckSlot = m_deck.GetPreviousDeck().Clone(); this.StartCoroutine(CloneCanceledAnimation(deckSlot)); return(deckSlot); }
public DeckSlot Clone(bool keepPreconstructed = true) { DeckSlot deckSlot = new DeckSlot(m_deckInfo?.Clone()); if (keepPreconstructed) { deckSlot.m_preconstructed = m_preconstructed; } return(deckSlot); }
public void RefreshList(DeckSlot slot) { SetSlot(slot); m_filterParent.OnEditModeChange(m_currentMode.Value); OnFilterChange(); UpdateAllChildren(instant: true); m_spellsList.AccurateReLayout(); m_spellsList.UpdateAllConfigurators(); m_companionsList.UpdateAllConfigurators(); UpdateLists(); }
public void RemoveCurrent(int weapon) { DeckInfo deckInfo = new DeckInfo().FillEmptySlotsCopy(); deckInfo.Name = RuntimeData.FormattedText(92537); deckInfo.God = (int)PlayerData.instance.god; deckInfo.Weapon = weapon; DeckSlot value = m_selectedSlot = new DeckSlot(deckInfo); m_deck.SetValue(value); m_eventController.OnDeckSlotSelectionChange(m_selectedSlot); }
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(); }
public void SetValue(DeckSlot selectedValue) { m_selectedSlot = selectedValue; m_deck.SetValue(selectedValue); }
private void OnDeckSlotSelectionChangedRequest(DeckSlot obj) { eventController?.OnDeckSlotSelectionChange(obj); }
public void OnCloneValidate(DeckSlot newSlot) { this.StartCoroutine(CloneAnimation(newSlot)); }
private void OnSlotModification(DeckSlot obj) { UpdateAllChildren(instant: false); UpdateCompanionList(); }
public void SetSlot(DeckSlot slot) { m_slot = slot; }
public void OnDeckSlotSelectionChange(DeckSlot slot) { this.OnDeckSlotSelectionChanged?.Invoke(slot); }