private bool IsEnableSelect(SortCompareData item) { if (item == null) { return(false); } return(!item.IsFavorite() && item.GetUniqID() != skillItem.uniqueID); }
protected override bool IsRequiredIconGrayOut(SortCompareData _data) { if (_data.GetNum() == 0) { return(true); } if (_data.IsFavorite()) { return(true); } if (_data.IsEquipping() && tab == TAB_MODE.EQUIP) { return(true); } return(false); }
protected override void ToDetail() { SaveCurrentScrollPosition(); int num = (int)GameSection.GetEventData(); sellItemData.Clear(); SortCompareData sortCompareData = inventories[(int)tab].datas[num]; if (!sortCompareData.CanSale()) { if (sortCompareData.IsFavorite()) { GameSection.ChangeEvent("NOT_SELL_FAVORITE", null); } else if (sortCompareData.IsEquipping()) { GameSection.ChangeEvent("NOT_SELL_EQUIPPING", null); } else { GameSection.ChangeEvent("CAN_NOT_SELL", null); } } else if (!MonoBehaviourSingleton <UserInfoManager> .I.CheckTutorialBit(TUTORIAL_MENU_BIT.SKILL_EQUIP) && sortCompareData.GetTableID() == 10000000) { GameSection.ChangeEvent("NOT_SELL_DEFAULT_WEAPON", null); } else if (tab == TAB_MODE.MATERIAL) { GameSection.ChangeEvent("SELECT", sortCompareData); } else { sellItemData.Add(inventories[(int)tab].datas[num]); GameSection.ChangeEvent("EQUIP_SELECT", null); OnQuery_SELL(); } }