コード例 #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);
        }
コード例 #2
0
        public override MenuElement DuplicateSelf(bool fromEditor, bool ignoreUnityUI)
        {
            MenuInteraction newElement = CreateInstance <MenuInteraction>();

            newElement.Declare();
            newElement.CopyInteraction(this, ignoreUnityUI);
            return(newElement);
        }
コード例 #3
0
        /**
         * <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);
        }
コード例 #4
0
		public void CopyInteraction (MenuInteraction _element)
		{
			displayType = _element.displayType;
			anchor = _element.anchor;
			textEffects = _element.textEffects;
			iconID = _element.iconID;
			
			base.Copy (_element);
		}
コード例 #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);
        }
コード例 #6
0
ファイル: MenuInteraction.cs プロジェクト: IJkeB/Ekster_Final
        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);
        }
コード例 #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);
        }
コード例 #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;
            }
        }
コード例 #9
0
ファイル: MenuInteraction.cs プロジェクト: mcbodge/eidolon
        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);
        }