Exemplo n.º 1
0
        private void CopyInteraction(MenuInteraction _element, bool ignoreUnityUI)
        {
            if (ignoreUnityUI)
            {
                uiButton = null;
            }
            else
            {
                uiButton = _element.uiButton;
            }

            uiPointerState = _element.uiPointerState;
            uiText         = null;

            displayType           = _element.displayType;
            anchor                = _element.anchor;
            textEffects           = _element.textEffects;
            outlineSize           = _element.outlineSize;
            iconID                = _element.iconID;
            overrideTexture       = _element.overrideTexture;
            activeTexture         = _element.activeTexture;
            uiSelectableHideStyle = _element.uiSelectableHideStyle;

            base.Copy(_element);
        }
Exemplo n.º 2
0
        public override MenuElement DuplicateSelf(bool fromEditor, bool ignoreUnityUI)
        {
            MenuInteraction newElement = CreateInstance <MenuInteraction>();

            newElement.Declare();
            newElement.CopyInteraction(this, ignoreUnityUI);
            return(newElement);
        }
        /**
         * <summary>Creates and returns a new MenuInteraction that has the same values as itself.</summary>
         * <returns>A new MenuInteraction with the same values as itself</returns>
         */
        public override MenuElement DuplicateSelf()
        {
            MenuInteraction newElement = CreateInstance <MenuInteraction>();

            newElement.Declare();
            newElement.CopyInteraction(this);
            return(newElement);
        }
Exemplo n.º 4
0
		public void CopyInteraction (MenuInteraction _element)
		{
			displayType = _element.displayType;
			anchor = _element.anchor;
			textEffects = _element.textEffects;
			iconID = _element.iconID;
			
			base.Copy (_element);
		}
Exemplo n.º 5
0
        public void CopyInteraction(MenuInteraction _element)
        {
            uiButton    = _element.uiButton;
            uiText      = null;
            displayType = _element.displayType;
            anchor      = _element.anchor;
            textEffects = _element.textEffects;
            iconID      = _element.iconID;

            base.Copy(_element);
        }
Exemplo n.º 6
0
        public void CopyInteraction(MenuInteraction _element)
        {
            uiButton = _element.uiButton;
            uiText = null;
            displayType = _element.displayType;
            anchor = _element.anchor;
            textEffects = _element.textEffects;
            iconID = _element.iconID;

            base.Copy (_element);
        }
Exemplo n.º 7
0
        private void CopyInteraction(MenuInteraction _element)
        {
            uiButton        = _element.uiButton;
            uiText          = null;
            displayType     = _element.displayType;
            anchor          = _element.anchor;
            textEffects     = _element.textEffects;
            iconID          = _element.iconID;
            overrideTexture = _element.overrideTexture;
            activeTexture   = _element.activeTexture;

            base.Copy(_element);
        }
Exemplo n.º 8
0
        private void CopyInteraction(MenuInteraction _element, bool ignoreUnityUI)
        {
            if (ignoreUnityUI)
            {
                uiButton = null;
                uiSlots  = null;
            }
            else
            {
                uiButton = _element.uiButton;

                uiSlots = new UISlot[_element.uiSlots.Length];
                for (int i = 0; i < uiSlots.Length; i++)
                {
                    uiSlots[i] = new UISlot(_element.uiSlots[i]);
                }
            }

            uiPointerState = _element.uiPointerState;
            uiText         = null;
            uiImage        = null;

            maxSlots              = _element.maxSlots;
            displayType           = _element.displayType;
            anchor                = _element.anchor;
            textEffects           = _element.textEffects;
            outlineSize           = _element.outlineSize;
            iconID                = _element.iconID;
            overrideTexture       = _element.overrideTexture;
            activeTexture         = _element.activeTexture;
            uiSelectableHideStyle = _element.uiSelectableHideStyle;
            linkUIGraphic         = _element.linkUIGraphic;
            fixedIcon             = _element.fixedIcon;

            base.Copy(_element);

            if (!fixedIcon)
            {
                alternativeInputButton = string.Empty;
            }
        }
Exemplo n.º 9
0
        private void CopyInteraction(MenuInteraction _element)
        {
            uiButton = _element.uiButton;
            uiText = null;
            displayType = _element.displayType;
            anchor = _element.anchor;
            textEffects = _element.textEffects;
            iconID = _element.iconID;
            overrideTexture = _element.overrideTexture;
            activeTexture = _element.activeTexture;

            base.Copy (_element);
        }