示例#1
0
        private void CopyCrafting(MenuCrafting _element, bool ignoreUnityUI)
        {
            if (ignoreUnityUI)
            {
                uiSlots = null;
            }
            else
            {
                uiSlots = new UISlot[_element.uiSlots.Length];
                for (int i = 0; i < uiSlots.Length; i++)
                {
                    uiSlots[i] = new UISlot(_element.uiSlots[i]);
                }
            }

            isClickable  = _element.isClickable;
            textEffects  = _element.textEffects;
            outlineSize  = _element.outlineSize;
            numSlots     = _element.numSlots;
            craftingType = _element.craftingType;
            displayType  = _element.displayType;
            uiHideStyle  = _element.uiHideStyle;
            actionListOnWrongIngredients = _element.actionListOnWrongIngredients;
            linkUIGraphic             = _element.linkUIGraphic;
            autoCreate                = _element.autoCreate;
            inventoryItemCountDisplay = _element.inventoryItemCountDisplay;

            PopulateList(MenuSource.AdventureCreator);

            base.Copy(_element);
        }
示例#2
0
        private void CopyCrafting(MenuCrafting _element, bool ignoreUnityUI)
        {
            if (ignoreUnityUI)
            {
                uiSlots = null;
            }
            else
            {
                uiSlots = _element.uiSlots;
            }

            isClickable  = _element.isClickable;
            textEffects  = _element.textEffects;
            outlineSize  = _element.outlineSize;
            numSlots     = _element.numSlots;
            craftingType = _element.craftingType;
            displayType  = _element.displayType;
            uiHideStyle  = _element.uiHideStyle;
            actionListOnWrongIngredients = _element.actionListOnWrongIngredients;
            linkUIGraphic = _element.linkUIGraphic;

            PopulateList(MenuSource.AdventureCreator);

            base.Copy(_element);
        }
示例#3
0
        public override MenuElement DuplicateSelf()
        {
            MenuCrafting newElement = CreateInstance <MenuCrafting>();

            newElement.Declare();
            newElement.CopyCrafting(this);
            return(newElement);
        }
示例#4
0
        /**
         * <summary>Creates and returns a new MenuCrafting that has the same values as itself.</summary>
         * <param name = "fromEditor">If True, the duplication was done within the Menu Manager and not as part of the gameplay initialisation.</param>
         * <returns>A new MenuCrafting with the same values as itself</returns>
         */
        public override MenuElement DuplicateSelf(bool fromEditor, bool ignoreUnityUI)
        {
            MenuCrafting newElement = CreateInstance <MenuCrafting>();

            newElement.Declare();
            newElement.CopyCrafting(this, ignoreUnityUI);
            return(newElement);
        }
		public void CopyCrafting (MenuCrafting _element)
		{
			isClickable = _element.isClickable;
			textEffects = _element.textEffects;
			numSlots = _element.numSlots;
			craftingType = _element.craftingType;
			PopulateList ();
			
			base.Copy (_element);
		}
示例#6
0
        public void CopyCrafting(MenuCrafting _element)
        {
            uiSlots      = _element.uiSlots;
            isClickable  = _element.isClickable;
            textEffects  = _element.textEffects;
            numSlots     = _element.numSlots;
            craftingType = _element.craftingType;
            displayType  = _element.displayType;

            PopulateList(MenuSource.AdventureCreator);

            base.Copy(_element);
        }
示例#7
0
        public void CopyCrafting(MenuCrafting _element)
        {
            uiSlots = _element.uiSlots;
            isClickable = _element.isClickable;
            textEffects = _element.textEffects;
            numSlots = _element.numSlots;
            craftingType = _element.craftingType;
            displayType = _element.displayType;

            PopulateList (MenuSource.AdventureCreator);

            base.Copy (_element);
        }
示例#8
0
        private void CopyCrafting(MenuCrafting _element)
        {
            uiSlots      = _element.uiSlots;
            isClickable  = _element.isClickable;
            textEffects  = _element.textEffects;
            outlineSize  = _element.outlineSize;
            numSlots     = _element.numSlots;
            craftingType = _element.craftingType;
            displayType  = _element.displayType;
            uiHideStyle  = _element.uiHideStyle;

            PopulateList(MenuSource.AdventureCreator);

            base.Copy(_element);
        }
 /**
  * <summary>Sets the item currently being hovered over by the mouse cursor.</summary>
  * <param name = "item">The item to set</param>
  * <param name = "menuCrafting">The MenuInventoryBox that the item is displayed within</param>
  */
 public void SetHoverItem(InvItem item, MenuCrafting menuCrafting)
 {
     hoverItem = item;
     if (menuCrafting.displayType == ConversationDisplayType.IconOnly)
     {
         showHoverLabel = true;
     }
     else
     {
         showHoverLabel = false;
     }
 }