예제 #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);
        }
예제 #5
0
		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;
     }
 }