예제 #1
0
        public void AddItemSlot()
        {
            GameObject   gameObject = NGUITools.AddChild(this.gameObject, m_itemSlotPrefab);
            ItemSlotLoot component  = gameObject.GetComponent <ItemSlotLoot>();

            m_itemSlots.Add(component);
            component.Index  = m_itemSlots.Count - 1;
            component.Parent = this;
        }
예제 #2
0
 public void SelectItemSlot(ItemSlotLoot p_slot)
 {
     if (m_selectedItem != null)
     {
         m_selectedItem.SetSelected(false);
     }
     m_lootButton.isEnabled = (p_slot != null);
     m_lootButtonText.color = ((!(p_slot != null)) ? Color.gray : Color.white);
     if (p_slot != null)
     {
         p_slot.SetSelected(true);
     }
     m_selectedItem = p_slot;
 }
예제 #3
0
 public LootDragObject(ItemSlotLoot p_slot)
 {
     m_itemSlot = p_slot;
     m_item     = p_slot.Item;
 }
예제 #4
0
 public void ItemRightClick(ItemSlotLoot p_slot)
 {
     SelectItemSlot(p_slot);
     m_lootScreen.OnLootButtonClicked();
 }