public void EditMember(AUIGroupInfo.Mode mode) { //button.interactable = (mode == AUIGroupInfo.Mode.Deletable); iTween.Stop(this.gameObject); if (this.gameObject.activeInHierarchy) { if (mode == AUIGroupInfo.Mode.Deletable) { iTween.ValueTo(this.gameObject, iTween.Hash("from", pivotRectTransform.anchoredPosition.x, "to", slidePosDeleteX, "time", slideDuration, "easetype", easetype, "onupdate", "OnSlideUpdate")); iTween.ValueTo(this.gameObject, iTween.Hash("from", deleteIcon.sizeDelta, "to", iconSize, "time", slideDuration, "easetype", easetype, "onupdate", "OnIconSizeUpdate")); } else { iTween.ValueTo(this.gameObject, iTween.Hash("from", pivotRectTransform.anchoredPosition.x, "to", slidePosNormalX, "time", slideDuration, "easetype", easetype, "onupdate", "OnSlideUpdate")); iTween.ValueTo(this.gameObject, iTween.Hash("from", deleteIcon.sizeDelta, "to", Vector2.zero, "time", slideDuration, "easetype", easetype, "onupdate", "OnIconSizeUpdate")); } } else { if (mode == AUIGroupInfo.Mode.Deletable) { pivotRectTransform.anchoredPosition = new Vector2(slidePosDeleteX, pivotRectTransform.anchoredPosition.y); deleteIcon.sizeDelta = iconSize; } else { pivotRectTransform.anchoredPosition = new Vector2(slidePosNormalX, pivotRectTransform.anchoredPosition.y); deleteIcon.sizeDelta = Vector2.zero; } } }
public void SetMember(Fresvii.AppSteroid.Models.Member member, AUIGroupInfo parentPage) { this.Member = member; this.parentPage = parentPage; userName.text = member.Name; userIcon.Set(member.ProfileImageUrl); }