using System; using UnityEngine; using UnityEngine.EventSystems; // Token: 0x0200097E RID: 2430 public class DragPanel : MonoBehaviour, IPointerDownHandler, IDragHandler, IEventSystemHandler { // Token: 0x06012426 RID: 74790 RVA: 0x0053D558 File Offset: 0x0053B758 private void IJPHAFDKCPI() { Vector3 localPosition = this.IKDMCPCPKDK.localPosition; Vector3 vector = this.NONIOOCPODL.rect.min - this.IKDMCPCPKDK.rect.min; Vector3 vector2 = this.NONIOOCPODL.rect.max - this.IKDMCPCPKDK.rect.max; localPosition.x = Mathf.Clamp(this.IKDMCPCPKDK.localPosition.x, vector.x, vector2.x); localPosition.y = Mathf.Clamp(this.IKDMCPCPKDK.localPosition.y, vector.y, vector2.y); this.IKDMCPCPKDK.localPosition = localPosition; } // Token: 0x06012427 RID: 74791 RVA: 0x0053D640 File Offset: 0x0053B840 public void FDFPEIPGLBJ(PointerEventData AOAILGGFDHJ) { this.CDGOAMPCFNK = this.IKDMCPCPKDK.localPosition; RectTransformUtility.ScreenPointToLocalPointInRectangle(this.NONIOOCPODL, AOAILGGFDHJ.position, AOAILGGFDHJ.pressEventCamera, out this.EGANEAJNPPI); } // Token: 0x06012428 RID: 74792 RVA: 0x0053D674 File Offset: 0x0053B874 public void OnPointerDown(PointerEventData AOAILGGFDHJ) { this.CDGOAMPCFNK = this.IKDMCPCPKDK.localPosition; RectTransformUtility.ScreenPointToLocalPointInRectangle(this.NONIOOCPODL, AOAILGGFDHJ.position, AOAILGGFDHJ.pressEventCamera, out this.EGANEAJNPPI); } // Token: 0x06012429 RID: 74793 RVA: 0x0053D6A8 File Offset: 0x0053B8A8 private void Awake() { this.IKDMCPCPKDK = base.transform.parent as RectTransform; this.NONIOOCPODL = this.IKDMCPCPKDK.parent as RectTransform; } // Token: 0x0601242A RID: 74794 RVA: 0x0053D6D8 File Offset: 0x0053B8D8 public void OnDrag(PointerEventData AOAILGGFDHJ) { if (this.IKDMCPCPKDK == null || this.NONIOOCPODL == null) { return; } Vector2 vector; if (RectTransformUtility.ScreenPointToLocalPointInRectangle(this.NONIOOCPODL, AOAILGGFDHJ.position, AOAILGGFDHJ.pressEventCamera, out vector)) { Vector3 vector2 = vector - this.EGANEAJNPPI; this.IKDMCPCPKDK.localPosition = this.CDGOAMPCFNK + vector2; } this.LMFNAJKDDKD(); } // Token: 0x0601242B RID: 74795 RVA: 0x0053D758 File Offset: 0x0053B958 public void GKPCHKKPCPJ(PointerEventData AOAILGGFDHJ) { this.CDGOAMPCFNK = this.IKDMCPCPKDK.localPosition; RectTransformUtility.ScreenPointToLocalPointInRectangle(this.NONIOOCPODL, AOAILGGFDHJ.position, AOAILGGFDHJ.pressEventCamera, out this.EGANEAJNPPI); } // Token: 0x0601242D RID: 74797 RVA: 0x0053D794 File Offset: 0x0053B994 private void OOFMHEICGJD() { Vector3 localPosition = this.IKDMCPCPKDK.localPosition; Vector3 vector = this.NONIOOCPODL.rect.min - this.IKDMCPCPKDK.rect.min; Vector3 vector2 = this.NONIOOCPODL.rect.max - this.IKDMCPCPKDK.rect.max; localPosition.x = Mathf.Clamp(this.IKDMCPCPKDK.localPosition.x, vector.x, vector2.x); localPosition.y = Mathf.Clamp(this.IKDMCPCPKDK.localPosition.y, vector.y, vector2.y); this.IKDMCPCPKDK.localPosition = localPosition; } // Token: 0x0601242E RID: 74798 RVA: 0x0053D87C File Offset: 0x0053BA7C private void AHLMADACOLB() { this.IKDMCPCPKDK = base.transform.parent as RectTransform; this.NONIOOCPODL = this.IKDMCPCPKDK.parent as RectTransform; } // Token: 0x0601242F RID: 74799 RVA: 0x0053D8AC File Offset: 0x0053BAAC private void OEHDEPBJFAB() { this.IKDMCPCPKDK = base.transform.parent as RectTransform; this.NONIOOCPODL = this.IKDMCPCPKDK.parent as RectTransform; } // Token: 0x06012430 RID: 74800 RVA: 0x0053D8DC File Offset: 0x0053BADC private void PAKPLLPDIOG() { this.IKDMCPCPKDK = base.transform.parent as RectTransform; this.NONIOOCPODL = this.IKDMCPCPKDK.parent as RectTransform; } // Token: 0x06012431 RID: 74801 RVA: 0x0053D90C File Offset: 0x0053BB0C private void IDFGKJHJBLA() { this.IKDMCPCPKDK = base.transform.parent as RectTransform; this.NONIOOCPODL = this.IKDMCPCPKDK.parent as RectTransform; } // Token: 0x06012432 RID: 74802 RVA: 0x0053D93C File Offset: 0x0053BB3C public void NFOONLIHABJ(PointerEventData AOAILGGFDHJ) { this.CDGOAMPCFNK = this.IKDMCPCPKDK.localPosition; RectTransformUtility.ScreenPointToLocalPointInRectangle(this.NONIOOCPODL, AOAILGGFDHJ.position, AOAILGGFDHJ.pressEventCamera, out this.EGANEAJNPPI); } // Token: 0x06012433 RID: 74803 RVA: 0x0053D970 File Offset: 0x0053BB70 private void BACNJJKPEOO() { this.IKDMCPCPKDK = base.transform.parent as RectTransform; this.NONIOOCPODL = this.IKDMCPCPKDK.parent as RectTransform; } // Token: 0x06012434 RID: 74804 RVA: 0x0053D9A0 File Offset: 0x0053BBA0 private void NHFIEHHNAPA() { Vector3 localPosition = this.IKDMCPCPKDK.localPosition; Vector3 vector = this.NONIOOCPODL.rect.min - this.IKDMCPCPKDK.rect.min; Vector3 vector2 = this.NONIOOCPODL.rect.max - this.IKDMCPCPKDK.rect.max; localPosition.x = Mathf.Clamp(this.IKDMCPCPKDK.localPosition.x, vector.x, vector2.x); localPosition.y = Mathf.Clamp(this.IKDMCPCPKDK.localPosition.y, vector.y, vector2.y); this.IKDMCPCPKDK.localPosition = localPosition; } // Token: 0x06012435 RID: 74805 RVA: 0x0053DA88 File Offset: 0x0053BC88 public void MDNGGNKKHOI(PointerEventData AOAILGGFDHJ) { if (this.IKDMCPCPKDK == null || this.NONIOOCPODL == null) { return; } Vector2 vector; if (RectTransformUtility.ScreenPointToLocalPointInRectangle(this.NONIOOCPODL, AOAILGGFDHJ.position, AOAILGGFDHJ.pressEventCamera, out vector)) { Vector3 vector2 = vector - this.EGANEAJNPPI; this.IKDMCPCPKDK.localPosition = this.CDGOAMPCFNK + vector2; } this.NHFIEHHNAPA(); } // Token: 0x06012436 RID: 74806 RVA: 0x0053DB08 File Offset: 0x0053BD08 private void FIDMEJHMGJI() { this.IKDMCPCPKDK = base.transform.parent as RectTransform; this.NONIOOCPODL = this.IKDMCPCPKDK.parent as RectTransform; } // Token: 0x06012437 RID: 74807 RVA: 0x0053DB38 File Offset: 0x0053BD38 public void OFIFOFIIKJP(PointerEventData AOAILGGFDHJ) { this.CDGOAMPCFNK = this.IKDMCPCPKDK.localPosition; RectTransformUtility.ScreenPointToLocalPointInRectangle(this.NONIOOCPODL, AOAILGGFDHJ.position, AOAILGGFDHJ.pressEventCamera, out this.EGANEAJNPPI); } // Token: 0x06012438 RID: 74808 RVA: 0x0053DB6C File Offset: 0x0053BD6C private void CCOHCCEHNIC() { this.IKDMCPCPKDK = base.transform.parent as RectTransform; this.NONIOOCPODL = this.IKDMCPCPKDK.parent as RectTransform; } // Token: 0x06012439 RID: 74809 RVA: 0x0053DB9C File Offset: 0x0053BD9C private void LMFNAJKDDKD() { Vector3 localPosition = this.IKDMCPCPKDK.localPosition; Vector3 vector = this.NONIOOCPODL.rect.min - this.IKDMCPCPKDK.rect.min; Vector3 vector2 = this.NONIOOCPODL.rect.max - this.IKDMCPCPKDK.rect.max; localPosition.x = Mathf.Clamp(this.IKDMCPCPKDK.localPosition.x, vector.x, vector2.x); localPosition.y = Mathf.Clamp(this.IKDMCPCPKDK.localPosition.y, vector.y, vector2.y); this.IKDMCPCPKDK.localPosition = localPosition; } // Token: 0x04003307 RID: 13063 private Vector2 EGANEAJNPPI; // Token: 0x04003308 RID: 13064 private Vector3 CDGOAMPCFNK; // Token: 0x04003309 RID: 13065 private RectTransform IKDMCPCPKDK; // Token: 0x0400330A RID: 13066 private RectTransform NONIOOCPODL; }