private void OnClickItem() { if (curId != 0) { LTResToolTipController.Show(LTShowItemType.TYPE_GAMINVENTORY, curId.ToString()); } }
public void OnItemBtnClick() { if (Data == null || Data.Num - delGoodsCount <= 0 || JudgeExp()) { IsPressItemBtn = false; IsPressRemoveBtn = false; return; } if (!LTResToolTipController.isOpen) { LTResToolTipController.Show(LTShowItemType.TYPE_GAMINVENTORY, Data.ECid); } delGoodsCount++; LTPartnerEquipDataManager.Instance.addEquipUpItemNum(Data.ECid); ShowGoodsCount(); SelectEquipEven.ChooseEquipment(); }
static public void PopToolTip(LTShowItemData itemData, bool isDescription = false) { if (itemData.type == LTShowItemType.TYPE_GAMINVENTORY) { Hotfix_LT.Data.EconemyItemTemplate eit = Hotfix_LT.Data.EconemyTemplateManager.Instance.GetItem(itemData.id); if (eit == null) { return; } string system = ""; if (eit is Hotfix_LT.Data.EquipmentItemTemplate) { system = "Equipment"; } else { system = "Generic"; } //以下判断显示物品来源Tip还是描述Tip,由物品bool ToolTipIsDesc字段决定 if (!isDescription) { UITooltipManager.Instance.DisplayTooltipSrc(itemData.id, system, "default");//来源 } else { LTResToolTipController.Show(itemData.type, itemData.id);//描述 } } else if (itemData.type == LTShowItemType.TYPE_HERO) { Vector2 screenPos = UICamera.lastEventPosition; var ht = Johny.HashtablePool.Claim(); ht.Add("id", itemData.id); ht.Add("screenPos", screenPos); GlobalMenuManager.Instance.Open("LTHeroToolTipUI", ht); } else { LTResToolTipController.Show(itemData.type, itemData.id); } }