示例#1
0
        public void OnSkillScrollItemClick(LTChallengeInstanceBagCell cell)
        {
            if (string.IsNullOrEmpty(cell.CellData.Id))
            {
                return;
            }
            FusionAudio.PostEvent("UI/General/ButtonClick", true);
            if (CurrentSelected != null)
            {
                CurrentSelected.CellData.IsSelect = false;
                CurrentSelected.SetItemSelect(false);
            }

            CurrentSelected = cell;
            CurrentSelected.CellData.IsSelect = true;
            CurrentSelected.SetItemSelect(true);

            SetSkillTipInfo(CurrentSelected.CellData);
        }
示例#2
0
        public void OnBagCellClick(LTChallengeInstanceBagCell bagCell)
        {
            //FusionAudio.PostEvent("UI/General/ButtonClick", true);
            if (string.IsNullOrEmpty(bagCell.CellData.Id))
            {
                return;
            }
            FusionAudio.PostEvent("UI/General/ButtonClick", true);
            //FusionAudio.PostEvent("UI/General/ButtonClick");
            if (curBagCell != null)
            {
                curBagCell.CellData.IsSelect = false;
                curBagCell.SetItemSelect(false);
            }

            curBagCell = bagCell;
            curBagCell.CellData.IsSelect = true;
            curBagCell.SetItemSelect(true);

            SkillTips.Init(curBagCell.ShowItem.LTItemData);
        }