private void ShowTooltip(BaseItemSlot itemSlot) { if (itemSlot.Item != null) { itemTooltip.ShowTooltip(itemSlot.Item); } }
private void ShowTooltip(ItemSlot slot) { if (slot.Item != null) { itemTooltip.ShowTooltip(slot.Item); } }
public void OnPointerEnter(PointerEventData eventData) { if (Item != null) { itemTooltip.ShowTooltip(Item); } }
/// <summary> /// Callback for highlighting a new item. /// Updates the text box on the main form. /// </summary> /// <param name="sender">sender object</param> /// <param name="e">SackPanelEventArgs data</param> private void NewItemHighlightedCallback(object sender, SackPanelEventArgs e) { Item item = e.Item; SackCollection sack = e.Sack; SackPanel sackPanel = (SackPanel)sender; if (item == null) { // Only do something if this sack is the "owner" of the current item highlighted. if (sack == this.lastSackHighlighted) { this.itemText.Text = string.Empty; // hide the tooltip ItemTooltip.HideTooltip(); } } else { var itt = ItemTooltip.ShowTooltip(this.ServiceProvider, item, sackPanel); this.itemText.ForeColor = itt.Data.Item.GetColor(itt.Data.BaseItemInfoDescription); this.itemText.Text = itt.Data.FullNameBagTooltipClean; } this.lastSackHighlighted = sack; this.lastSackPanelHighlighted = sackPanel; }
private void ShowTooltip(InventorySlotUI itemSlot) { if (itemSlot.item != null) { itemTooltip.ShowTooltip(itemSlot.item); } }
public void OnPointerEnter(PointerEventData eventData) { if (Item is EquippableItem) { tooltip.ShowTooltip((EquippableItem)Item); } }
private void ShowToolTip(ItemSlot itemSlot) { EquippableItem equippableItem = itemSlot.Item as EquippableItem; if (equippableItem != null) { itemTooltip.ShowTooltip(equippableItem); } }
private void ShowTooltip(ItemSlot itemSlot) { sEquipment equippableItem = itemSlot.item as sEquipment; if (equippableItem != null) { itemTooltip.ShowTooltip(equippableItem); } }
public void OnPointerEnter(PointerEventData eventData) { OnPointerEnterEvent(this); if (item is EquippableItem) { itemTooltip.ShowTooltip((EquippableItem)item); } }
private void ShowTooltip(ItemSlot itemSlot) { EquippableItem equippableItem = itemSlot.Item as EquippableItem; if (equippableItem != null) { itemTooltip.transform.position = Input.mousePosition; itemTooltip.ShowTooltip(equippableItem); } //新增補助道具顯示功能 20190222 RestorableItem restorableItem = itemSlot.Item as RestorableItem; if (restorableItem != null) { itemTooltip.transform.position = Input.mousePosition; itemTooltip.ShowTooltip(restorableItem); } }
public void ShowTooltip(GameObject go) { if (go.GetComponent <ItemDrop>() == null) { _itemTooltip.HideTooltip(); } if (this.gameObject != go) { return; } _itemTooltip.ShowTooltip(_item); }
private void ShowTooltip(ItemSlot itemSlot) { EquippableItem equippableItem = itemSlot.Item as EquippableItem; if (equippableItem != null) { itemTooltip.transform.position = Input.mousePosition; itemTooltip.ShowTooltip(equippableItem); } //新增補助道具顯示功能 20190222 RestorableItem restorableItem = itemSlot.Item as RestorableItem; if (restorableItem != null) { itemTooltip.transform.position = Input.mousePosition; itemTooltip.ShowTooltip(restorableItem); } MagicalcardItem magicalcardItem = itemSlot.Item as MagicalcardItem; if (magicalcardItem != null) { itemTooltip.transform.position = Input.mousePosition; itemTooltip.ShowTooltip(magicalcardItem); } //新增任務道具顯示功能 20190407 MissionItem missionItem = itemSlot.Item as MissionItem; if (missionItem != null) { itemTooltip.transform.position = Input.mousePosition; itemTooltip.ShowTooltip(missionItem); } }
public void OnPointerEnter(PointerEventData eventData) { tooltip.ShowTooltip(Item, transform.position); Grow(); }
//Inventory Drag Events public void ShowTooltip(InventorySlot inventorySlot) { itemTooltip.ShowTooltip(inventorySlot.Item); }
public void OnPointerEnter(PointerEventData eventData) { tooltip.ShowTooltip(item); }
private void ShowTooltip(ItemSlot pItemSlot) { _itemTooltip.ShowTooltip(pItemSlot.Item); }