Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        public override MenuElement DuplicateSelf(bool fromEditor, bool ignoreUnityUI)
        {
            MenuGraphic newElement = CreateInstance <MenuGraphic>();

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

            graphicType = _element.graphicType;
            graphic = _element.graphic;
            base.Copy (_element);
        }
Ejemplo n.º 4
0
        public void CopyGraphic(MenuGraphic _element)
        {
            uiImage = _element.uiImage;

            graphicType = _element.graphicType;
            graphic     = _element.graphic;
            base.Copy(_element);
        }
Ejemplo n.º 5
0
        private void CopyGraphic(MenuGraphic _element)
        {
            uiImage = _element.uiImage;

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

            graphicType = _element.graphicType;
            graphic = new CursorIconBase ();
            graphic.Copy (_element.graphic);
            base.Copy (_element);
        }
Ejemplo n.º 8
0
		public void CopyGraphic (MenuGraphic _element)
		{
			graphic = _element.graphic;
			base.Copy (_element);
		}