Beispiel #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);
        }
        public override MenuElement DuplicateSelf(bool fromEditor, bool ignoreUnityUI)
        {
            MenuGraphic newElement = CreateInstance <MenuGraphic>();

            newElement.Declare();
            newElement.CopyGraphic(this, ignoreUnityUI);
            return(newElement);
        }
Beispiel #3
0
        public void CopyGraphic(MenuGraphic _element)
        {
            uiImage = _element.uiImage;

            graphicType = _element.graphicType;
            graphic = _element.graphic;
            base.Copy (_element);
        }
Beispiel #4
0
        public void CopyGraphic(MenuGraphic _element)
        {
            uiImage = _element.uiImage;

            graphicType = _element.graphicType;
            graphic     = _element.graphic;
            base.Copy(_element);
        }
Beispiel #5
0
        private void CopyGraphic(MenuGraphic _element)
        {
            uiImage = _element.uiImage;

            graphicType = _element.graphicType;
            graphic     = new CursorIconBase();
            graphic.Copy(_element.graphic);
            base.Copy(_element);
        }
        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);
        }
        private void CopyGraphic(MenuGraphic _element)
        {
            uiImage = _element.uiImage;

            graphicType = _element.graphicType;
            graphic = new CursorIconBase ();
            graphic.Copy (_element.graphic);
            base.Copy (_element);
        }
		public void CopyGraphic (MenuGraphic _element)
		{
			graphic = _element.graphic;
			base.Copy (_element);
		}