public void UIDestroyAction(EventMultiArgs args) { _bg.alpha = 1f; tAlpha = TweenAlpha.Begin(_bg.gameObject, _fadeOutTime, 0f); tAlpha.RemoveOnFinished(_fadeInDel); tAlpha.AddOnFinished(_fadeOutDel); Invoke("OnDestroyActoinComplete", _fadeOutTime + 0.2f); }
public void CloseWindow(Callback varCallback) { mCallback = varCallback; if (mTween0 != null) { mTween0.RemoveOnFinished(TweenEndCallback); mTween0.ResetToBeginning(); TweenEndCallback = new EventDelegate(CallbackColseWindow0); mTween0.SetOnFinished(TweenEndCallback); mTween0.Toggle(); } else { CallbackColseWindow(); } }
public void SetItemText(Transform item_prefab, string[] texts, bool[] button_enable) { //IL_0063: 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_0091: Unknown result type (might be due to invalid IL or missing references) //IL_0096: Unknown result type (might be due to invalid IL or missing references) //IL_009b: Unknown result type (might be due to invalid IL or missing references) //IL_00b2: 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_00c8: 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_00e6: Unknown result type (might be due to invalid IL or missing references) //IL_0113: Unknown result type (might be due to invalid IL or missing references) //IL_0118: 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_0166: Unknown result type (might be due to invalid IL or missing references) //IL_016b: Unknown result type (might be due to invalid IL or missing references) //IL_0170: Unknown result type (might be due to invalid IL or missing references) //IL_0197: Unknown result type (might be due to invalid IL or missing references) //IL_019c: Unknown result type (might be due to invalid IL or missing references) //IL_019e: 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_01b5: Unknown result type (might be due to invalid IL or missing references) if (isFinished || isUpdateTween) { ClosePopupCallBack(); } else { textItem = texts; buttonEnable = button_enable; int num = SetGridItem(item_prefab); int num2 = (int)(((float)Mathf.Min(textItem.Length, maxItemNum) + 0.5f) * (float)itemHeight); Vector4 baseClipRegion = scroll.panel.baseClipRegion; scroll.panel.SetRect(baseClipRegion.x, baseClipRegion.y, (float)num, (float)num2); Vector3 localPosition = scroll.get_transform().get_localPosition(); localPosition.y = 0f - (float)num2 * 0.5f; scroll.get_transform().set_localPosition(localPosition); Vector2 clipOffset = scroll.panel.clipOffset; clipOffset.y = 0f; scroll.panel.clipOffset = clipOffset; selectFrameSprite.width = num - 10; selectFrameSprite.height = itemHeight; selectFrameSprite.get_transform().set_localScale(Vector3.get_one()); tw.to = num2; UIWidget component = tw.GetComponent <UIWidget>(); component.width = num; expandTarget_A.height = num2; expandTarget_B.height = num2; Vector2 val = Vector2.op_Implicit(expandTarget_A.get_transform().get_localPosition()); val.x = (float)num * 0.5f; val.y = (float)(-num2) * 0.5f; expandTarget_A.get_transform().set_localPosition(Vector2.op_Implicit(val)); expandTarget_B.get_transform().set_localPosition(Vector2.op_Implicit(val)); twAlpha.RemoveOnFinished(del); objRoot.SetActive(true); scroll.ResetPosition(); Transform gridChild = GetGridChild(selectIndex); ClickItem(selectIndex, gridChild); StartTween(); } }