/// <summary> /// 更新加载栏状态 /// </summary> /// <param name="item"></param> void UpdateLoadingTip(LoopListViewItem2 item) { if (item == null) { return; } ListItem0 itemScript0 = item.GetComponent <ListItem0>(); if (itemScript0 == null) { return; } if (mLoadingTipStatus == LoadingTipStatus.None) { itemScript0.mRoot.SetActive(false); item.CachedRectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, 0); } else if (mLoadingTipStatus == LoadingTipStatus.WaitRelease) { itemScript0.mRoot.SetActive(true); itemScript0.mText.text = "Release to Load More"; itemScript0.mArrow.SetActive(true); itemScript0.mWaitingIcon.SetActive(false); item.CachedRectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, mLoadingTipItemHeight); } else if (mLoadingTipStatus == LoadingTipStatus.WaitLoad) { itemScript0.mRoot.SetActive(true); itemScript0.mArrow.SetActive(false); itemScript0.mWaitingIcon.SetActive(true); itemScript0.mText.text = "Loading ..."; item.CachedRectTransform.SetSizeWithCurrentAnchors(RectTransform.Axis.Vertical, mLoadingTipItemHeight); } }
private void UpdateLoadingTip1(LoopListViewItem2 item) { if (Object.op_Equality((Object)item, (Object)null)) { return; } ListItem0 component = (ListItem0)((Component)item).GetComponent <ListItem0>(); if (Object.op_Equality((Object)component, (Object)null)) { return; } if (this.mLoadingTipStatus1 == LoadingTipStatus.None) { component.mRoot.SetActive(false); item.CachedRectTransform.SetSizeWithCurrentAnchors((RectTransform.Axis) 1, 0.0f); } else if (this.mLoadingTipStatus1 == LoadingTipStatus.WaitRelease) { component.mRoot.SetActive(true); component.mText.set_text("Release to Refresh"); component.mArrow.SetActive(true); component.mWaitingIcon.SetActive(false); item.CachedRectTransform.SetSizeWithCurrentAnchors((RectTransform.Axis) 1, this.mLoadingTipItemHeight1); } else if (this.mLoadingTipStatus1 == LoadingTipStatus.WaitLoad) { component.mRoot.SetActive(true); component.mArrow.SetActive(false); component.mWaitingIcon.SetActive(true); component.mText.set_text("Loading ..."); item.CachedRectTransform.SetSizeWithCurrentAnchors((RectTransform.Axis) 1, this.mLoadingTipItemHeight1); } else { if (this.mLoadingTipStatus1 != LoadingTipStatus.Loaded) { return; } component.mRoot.SetActive(true); component.mArrow.SetActive(false); component.mWaitingIcon.SetActive(false); component.mText.set_text("Refreshed Success"); item.CachedRectTransform.SetSizeWithCurrentAnchors((RectTransform.Axis) 1, this.mLoadingTipItemHeight1); } }