コード例 #1
0
        /**
         * <summary>Creates and returns a new MenuGraphic that has the same values as itself.</summary>
         * <returns>A new MenuGraphic with the same values as itself</returns>
         */
        public override MenuElement DuplicateSelf()
        {
            MenuGraphic newElement = CreateInstance <MenuGraphic>();

            newElement.Declare();
            newElement.CopyGraphic(this);
            return(newElement);
        }
コード例 #2
0
        public override MenuElement DuplicateSelf(bool fromEditor, bool ignoreUnityUI)
        {
            MenuGraphic newElement = CreateInstance <MenuGraphic>();

            newElement.Declare();
            newElement.CopyGraphic(this, ignoreUnityUI);
            return(newElement);
        }
コード例 #3
0
ファイル: MenuGraphic.cs プロジェクト: IJkeB/Ekster_Final
        public void CopyGraphic(MenuGraphic _element)
        {
            uiImage = _element.uiImage;

            graphicType = _element.graphicType;
            graphic = _element.graphic;
            base.Copy (_element);
        }
コード例 #4
0
ファイル: MenuGraphic.cs プロジェクト: IJkeB/Ekster1
        public void CopyGraphic(MenuGraphic _element)
        {
            uiImage = _element.uiImage;

            graphicType = _element.graphicType;
            graphic     = _element.graphic;
            base.Copy(_element);
        }
コード例 #5
0
ファイル: MenuGraphic.cs プロジェクト: UniSpark/speechGame
        private void CopyGraphic(MenuGraphic _element)
        {
            uiImage = _element.uiImage;

            graphicType = _element.graphicType;
            graphic     = new CursorIconBase();
            graphic.Copy(_element.graphic);
            base.Copy(_element);
        }
コード例 #6
0
        private void CopyGraphic(MenuGraphic _element, bool ignoreUnityUI)
        {
            if (ignoreUnityUI)
            {
                uiImage = null;
            }
            else
            {
                uiImage = _element.uiImage;
            }
            uiRawImage  = _element.uiRawImage;
            uiImageType = _element.uiImageType;

            graphicType = _element.graphicType;
            graphic     = new CursorIconBase();
            graphic.Copy(_element.graphic);
            base.Copy(_element);
        }
コード例 #7
0
        private void CopyGraphic(MenuGraphic _element)
        {
            uiImage = _element.uiImage;

            graphicType = _element.graphicType;
            graphic = new CursorIconBase ();
            graphic.Copy (_element.graphic);
            base.Copy (_element);
        }
コード例 #8
0
		public void CopyGraphic (MenuGraphic _element)
		{
			graphic = _element.graphic;
			base.Copy (_element);
		}