示例#1
0
 private void MoveContentRange()
 {
     if (!this.UseMoveRange || Object.op_Equality((Object) this.get_content(), (Object) null))
     return;
       ScrollContentsInfo component = (ScrollContentsInfo) ((Component) this.get_content()).GetComponent<ScrollContentsInfo>();
       if (Object.op_Equality((Object) component, (Object) null))
     return;
       this.get_content().set_anchoredPosition(component.SetRangePos(this.get_content().get_anchoredPosition()));
 }
示例#2
0
 private bool CheckSetScrollPos()
 {
     if (!this.UseMoveRange || Object.op_Equality((Object) this.get_content(), (Object) null))
     return false;
       ScrollContentsInfo component = (ScrollContentsInfo) ((Component) this.get_content()).GetComponent<ScrollContentsInfo>();
       if (Object.op_Equality((Object) component, (Object) null))
     return false;
       return component.CheckRangePos((float) this.get_content().get_anchoredPosition().x);
 }
示例#3
0
 private float GetNearIconPos()
 {
     float num = (float) this.GetCurrent() * this.ItemScale + this.Offset;
       if (!this.UseMoveRange || Object.op_Equality((Object) this.get_content(), (Object) null))
     return num;
       ScrollContentsInfo component = (ScrollContentsInfo) ((Component) this.get_content()).GetComponent<ScrollContentsInfo>();
       if (Object.op_Equality((Object) component, (Object) null))
     return num;
       return component.GetNearIconPos((float) this.get_content().get_anchoredPosition().x);
 }