示例#1
0
 private void ShowTooltip(BaseItemSlot itemSlot)
 {
     if (itemSlot.Item != null)
     {
         itemTooltip.ShowTooltip(itemSlot.Item);
     }
 }
示例#2
0
 private void ShowTooltip(ItemSlot slot)
 {
     if (slot.Item != null)
     {
         itemTooltip.ShowTooltip(slot.Item);
     }
 }
示例#3
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     if (Item != null)
     {
         itemTooltip.ShowTooltip(Item);
     }
 }
示例#4
0
        /// <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;
        }
示例#5
0
 private void ShowTooltip(InventorySlotUI itemSlot)
 {
     if (itemSlot.item != null)
     {
         itemTooltip.ShowTooltip(itemSlot.item);
     }
 }
示例#6
0
 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);
        }
    }
示例#9
0
        public void OnPointerEnter(PointerEventData eventData)
        {
            OnPointerEnterEvent(this);

            if (item is EquippableItem)
            {
                itemTooltip.ShowTooltip((EquippableItem)item);
            }
        }
示例#10
0
    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);
        }
    }
示例#11
0
    public void ShowTooltip(GameObject go)
    {
        if (go.GetComponent <ItemDrop>() == null)
        {
            _itemTooltip.HideTooltip();
        }

        if (this.gameObject != go)
        {
            return;
        }

        _itemTooltip.ShowTooltip(_item);
    }
示例#12
0
    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);
        }
    }
示例#13
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     tooltip.ShowTooltip(Item, transform.position);
     Grow();
 }
示例#14
0
 //Inventory Drag Events
 public void ShowTooltip(InventorySlot inventorySlot)
 {
     itemTooltip.ShowTooltip(inventorySlot.Item);
 }
示例#15
0
 public void OnPointerEnter(PointerEventData eventData)
 {
     tooltip.ShowTooltip(item);
 }
示例#16
0
 private void ShowTooltip(ItemSlot pItemSlot)
 {
     _itemTooltip.ShowTooltip(pItemSlot.Item);
 }