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); } } }
protected override void DoStateTransition(SelectionState state, bool instant) { //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_0060: Expected I4, but got Unknown //IL_00c4: 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_0100: Unknown result type (might be due to invalid IL or missing references) //IL_011e: Unknown result type (might be due to invalid IL or missing references) //IL_013c: Unknown result type (might be due to invalid IL or missing references) //IL_015a: Unknown result type (might be due to invalid IL or missing references) //IL_017b: Unknown result type (might be due to invalid IL or missing references) //IL_01b0: Unknown result type (might be due to invalid IL or missing references) //IL_01ef: Unknown result type (might be due to invalid IL or missing references) //IL_022f: Unknown result type (might be due to invalid IL or missing references) //IL_026e: Unknown result type (might be due to invalid IL or missing references) //IL_02ae: Unknown result type (might be due to invalid IL or missing references) //IL_02ed: Unknown result type (might be due to invalid IL or missing references) //IL_032c: Unknown result type (might be due to invalid IL or missing references) if (!this.get_gameObject().get_activeInHierarchy()) { return; } if (m_style == null) { Log.Error("AnimatedImageButton " + this.get_name() + " doesn't have a style defined !", 84, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\UI\\Components\\AnimatedGraphicButton.cs"); return; } AnimatedImageButtonState animatedImageButtonState = m_style.disable; switch ((int)state) { case 0: animatedImageButtonState = m_style.normal; break; case 1: animatedImageButtonState = m_style.highlight; break; case 2: animatedImageButtonState = m_style.pressed; break; case 3: animatedImageButtonState = m_style.disable; break; } Sequence tweenSequence = m_tweenSequence; if (tweenSequence != null) { TweenExtensions.Kill(tweenSequence, false); } if (instant) { if (Object.op_Implicit(m_image)) { m_image.set_color(animatedImageButtonState.imageColor); } if (Object.op_Implicit(m_imageRectTransform)) { m_imageRectTransform.set_sizeDelta(animatedImageButtonState.imageSizeDelta); } if (Object.op_Implicit(m_background)) { m_background.set_color(animatedImageButtonState.backgroundColor); } if (Object.op_Implicit(m_backgroundRectTransform)) { m_backgroundRectTransform.set_sizeDelta(animatedImageButtonState.backgroundSizeDelta); } if (Object.op_Implicit(m_border)) { m_border.set_color(animatedImageButtonState.borderColor); } if (Object.op_Implicit(m_outline)) { m_outline.set_color(animatedImageButtonState.outlineColor); } if (Object.op_Implicit(m_outlineRectTransform)) { m_outlineRectTransform.set_sizeDelta(animatedImageButtonState.outlineSizeDelta); } return; } m_tweenSequence = DOTween.Sequence(); if (Object.op_Implicit(m_image)) { TweenSettingsExtensions.Insert(m_tweenSequence, 0f, DOTweenModuleUI.DOColor(m_image, animatedImageButtonState.imageColor, m_style.baseButtonStyle.transitionDuration)); } if (Object.op_Implicit(m_imageRectTransform)) { TweenSettingsExtensions.Insert(m_tweenSequence, 0f, DOTweenModuleUI.DOSizeDelta(m_imageRectTransform, animatedImageButtonState.imageSizeDelta, m_style.baseButtonStyle.transitionDuration, false)); } if (Object.op_Implicit(m_background)) { TweenSettingsExtensions.Insert(m_tweenSequence, 0f, DOTweenModuleUI.DOBlendableColor(m_background, animatedImageButtonState.backgroundColor, m_style.baseButtonStyle.transitionDuration)); } if (Object.op_Implicit(m_backgroundRectTransform)) { TweenSettingsExtensions.Insert(m_tweenSequence, 0f, DOTweenModuleUI.DOSizeDelta(m_backgroundRectTransform, animatedImageButtonState.backgroundSizeDelta, m_style.baseButtonStyle.transitionDuration, false)); } if (Object.op_Implicit(m_border)) { TweenSettingsExtensions.Insert(m_tweenSequence, 0f, DOTweenModuleUI.DOBlendableColor(m_border, animatedImageButtonState.borderColor, m_style.baseButtonStyle.transitionDuration)); } if (Object.op_Implicit(m_outline)) { TweenSettingsExtensions.Insert(m_tweenSequence, 0f, DOTweenModuleUI.DOBlendableColor(m_outline, animatedImageButtonState.outlineColor, m_style.baseButtonStyle.transitionDuration)); } if (Object.op_Implicit(m_outlineRectTransform)) { TweenSettingsExtensions.Insert(m_tweenSequence, 0f, DOTweenModuleUI.DOSizeDelta(m_outlineRectTransform, animatedImageButtonState.outlineSizeDelta, m_style.baseButtonStyle.transitionDuration, false)); } }
protected override void DoStateTransition(SelectionState state, bool instant) { //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_0060: Expected I4, but got Unknown //IL_00c5: Unknown result type (might be due to invalid IL or missing references) //IL_00da: Unknown result type (might be due to invalid IL or missing references) //IL_00e5: Unknown result type (might be due to invalid IL or missing references) //IL_0106: Unknown result type (might be due to invalid IL or missing references) //IL_016a: Unknown result type (might be due to invalid IL or missing references) //IL_01ca: Unknown result type (might be due to invalid IL or missing references) //IL_020d: Unknown result type (might be due to invalid IL or missing references) if (!this.get_gameObject().get_activeInHierarchy()) { return; } if (m_style == null) { Log.Error("AnimatedTextButton " + this.get_name() + " doesn't have a style defined !", 69, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Demo\\Code\\UI\\GameSelection\\GameSelectionButton.cs"); return; } GameSelectionButtonState gameSelectionButtonState = m_style.disable; switch ((int)state) { case 0: gameSelectionButtonState = ((!m_anotherButtonIsHightlighted) ? m_style.normal : m_style.normalButAnotherIsHighlighted); break; case 1: gameSelectionButtonState = m_style.highlight; break; case 2: gameSelectionButtonState = m_style.pressed; break; case 3: gameSelectionButtonState = m_style.disable; break; } if (instant) { if (Object.op_Implicit(m_image)) { m_image.set_color(gameSelectionButtonState.imageColor); m_image.get_transform().set_localScale(Vector3.get_one() * gameSelectionButtonState.scale); } if (Object.op_Implicit(m_outline)) { m_outline.set_color(gameSelectionButtonState.outlineColor); } return; } int i = 0; for (int count = m_currentTweens.Count; i < count; i++) { Tweener val = m_currentTweens[i]; if (TweenExtensions.IsActive(val)) { TweenExtensions.Kill(val, false); } } m_currentTweens.Clear(); if (Object.op_Implicit(m_image)) { m_currentTweens.Add(DOTweenModuleUI.DOColor(m_image, gameSelectionButtonState.imageColor, m_style.transitionDuration)); m_currentTweens.Add(ShortcutExtensions.DOScale(m_image.get_transform(), gameSelectionButtonState.scale, m_style.transitionDuration)); } if (Object.op_Implicit(m_outline)) { m_currentTweens.Add(DOTweenModuleUI.DOBlendableColor(m_outline, gameSelectionButtonState.outlineColor, m_style.transitionDuration)); } int j = 0; for (int count2 = m_currentTweens.Count; j < count2; j++) { Tweener val2 = m_currentTweens[j]; TweenSettingsExtensions.SetEase <Tweener>(val2, m_style.ease); if (m_delayAnim) { TweenSettingsExtensions.SetDelay <Tweener>(val2, m_style.fromNormalAndUnHighlightedDelay); } } }
protected override void DoStateTransition(SelectionState state, bool instant) { //IL_004a: Unknown result type (might be due to invalid IL or missing references) //IL_0060: Expected I4, but got Unknown //IL_0100: Unknown result type (might be due to invalid IL or missing references) //IL_0121: Unknown result type (might be due to invalid IL or missing references) //IL_0156: Unknown result type (might be due to invalid IL or missing references) //IL_0190: Unknown result type (might be due to invalid IL or missing references) if (!this.get_gameObject().get_activeInHierarchy()) { return; } if (m_style == null) { Log.Error("TabButton " + this.get_name() + " doesn't have a style defined !", 70, "C:\\BuildAgents\\AgentB\\work\\cub_client_win64_develop\\client\\DofusCube.Unity\\Assets\\Core\\Code\\UI\\Components\\TabButton.cs"); return; } TabStyle.TabState tabState = m_style.disable; switch ((int)state) { case 0: tabState = (this.get_isOn() ? m_style.selected : m_style.normal); break; case 1: tabState = (this.get_isOn() ? m_style.selected : m_style.highlight); break; case 2: tabState = (this.get_isOn() ? m_style.selected : m_style.pressed); break; case 3: tabState = m_style.disable; break; } Sequence tweenSequence = m_tweenSequence; if (tweenSequence != null) { TweenExtensions.Kill(tweenSequence, false); } if (instant) { if (Object.op_Implicit(m_background)) { m_background.set_color(tabState.backgroundColor); } if (Object.op_Implicit(m_border)) { m_border.set_color(tabState.borderColor); } return; } m_tweenSequence = DOTween.Sequence(); if (Object.op_Implicit(m_background)) { TweenSettingsExtensions.Insert(m_tweenSequence, 0f, DOTweenModuleUI.DOBlendableColor(m_background, tabState.backgroundColor, m_style.transitionDuration)); } if (Object.op_Implicit(m_border)) { TweenSettingsExtensions.Insert(m_tweenSequence, 0f, DOTweenModuleUI.DOBlendableColor(m_border, tabState.borderColor, m_style.transitionDuration)); } }