public void OnExitItem(BaseEventData data) { if (null != onExitItemEvt) { onExitItemEvt(this); } this.ImageColor = ImageBinding.GetColorFormatString(Color.blue); }
public void OnHoverItem(BaseEventData data) { if (null != onHoverItemEvt) { onHoverItemEvt(this); } this.ImageColor = ImageBinding.GetColorFormatString(Color.yellow); }
public void OnAddItemClick(BaseEventData data) { ItemInCollectionContext item = new ItemInCollectionContext(); item.Name = UnityEngine.Random.Range(1, 1000).ToString(); item.ImageColor = ImageBinding.GetColorFormatString(Color.blue); item.IsClickedEnable = false; item.onClickItemEvt += this.OnSubItemClicked; this.OneCollection.Add(item); this.Msg = "add item done"; }