Exemplo n.º 1
0
        public virtual void Copy(MenuElement _element)
        {
            linkedUiID   = _element.linkedUiID;
            ID           = _element.ID;
            isEditing    = false;
            title        = _element.title;
            slotSize     = _element.slotSize;
            sizeType     = _element.sizeType;
            positionType = _element.positionType;
            relativeRect = _element.relativeRect;
            numSlots     = _element.numSlots;
            lineID       = _element.lineID;
            slotSpacing  = _element.slotSpacing;

            font               = _element.font;
            fontScaleFactor    = _element.fontScaleFactor;
            fontColor          = _element.fontColor;
            fontHighlightColor = _element.fontHighlightColor;
            highlightTexture   = _element.highlightTexture;

            isVisible   = _element.isVisible;
            isClickable = _element.isClickable;
            orientation = _element.orientation;
            gridWidth   = _element.gridWidth;

            backgroundTexture = _element.backgroundTexture;

            hoverSound = _element.hoverSound;
            clickSound = _element.clickSound;

            relativePosition = _element.relativePosition;
            dragOffset       = Vector2.zero;
        }
Exemplo n.º 2
0
		public virtual void Declare ()
		{
			fontScaleFactor = 2f;
			fontColor = Color.white;
			fontHighlightColor = Color.white;
			highlightTexture = null;
			orientation = ElementOrientation.Vertical;
			positionType = AC_PositionType2.Aligned;
			sizeType = AC_SizeType.Automatic;
			gridWidth = 3;
			lineID = -1;
			hoverSound = null;
			clickSound = null;
			dragOffset = Vector2.zero;
		}
Exemplo n.º 3
0
 public virtual void Declare()
 {
     linkedUiID         = 0;
     fontScaleFactor    = 2f;
     fontColor          = Color.white;
     fontHighlightColor = Color.white;
     highlightTexture   = null;
     orientation        = ElementOrientation.Vertical;
     positionType       = AC_PositionType2.Aligned;
     sizeType           = AC_SizeType.Automatic;
     gridWidth          = 3;
     lineID             = -1;
     hoverSound         = null;
     clickSound         = null;
     dragOffset         = Vector2.zero;
 }
Exemplo n.º 4
0
 /**
  * Initialises the MenuElement when it is created within MenuManager.
  */
 public virtual void Declare()
 {
     linkedUiID             = 0;
     fontScaleFactor        = 2f;
     fontColor              = Color.white;
     fontHighlightColor     = Color.white;
     highlightTexture       = null;
     orientation            = ElementOrientation.Vertical;
     positionType           = AC_PositionType2.Aligned;
     sizeType               = AC_SizeType.Automatic;
     gridWidth              = 3;
     lineID                 = -1;
     hoverSound             = null;
     clickSound             = null;
     dragOffset             = Vector2.zero;
     changeCursor           = false;
     cursorID               = 0;
     uiHideStyle            = UIHideStyle.DisableObject;
     alternativeInputButton = "";
 }
Exemplo n.º 5
0
        /**
         * <summary>Copies the values of another MenuElement onto itself.</summary>
         * <param name = "_element">The MenuElement to copy values from</param>
         */
        public virtual void Copy(MenuElement _element)
        {
            linkedUiID   = _element.linkedUiID;
            ID           = _element.ID;
            title        = _element.title;
            slotSize     = _element.slotSize;
            sizeType     = _element.sizeType;
            positionType = _element.positionType;
            relativeRect = _element.relativeRect;
            numSlots     = _element.numSlots;
            lineID       = _element.lineID;
            slotSpacing  = _element.slotSpacing;

            font               = _element.font;
            fontScaleFactor    = _element.fontScaleFactor;
            fontColor          = _element.fontColor;
            fontHighlightColor = _element.fontHighlightColor;
            highlightTexture   = _element.highlightTexture;

            isVisible   = _element.isVisible;
            isClickable = _element.isClickable;
            orientation = _element.orientation;
            gridWidth   = _element.gridWidth;

            backgroundTexture     = _element.backgroundTexture;
            singleSlotBackgrounds = _element.singleSlotBackgrounds;

            hoverSound = _element.hoverSound;
            clickSound = _element.clickSound;

            relativePosition = _element.relativePosition;
            dragOffset       = Vector2.zero;

            changeCursor           = _element.changeCursor;
            cursorID               = _element.cursorID;
            alternativeInputButton = _element.alternativeInputButton;
            maxAutoWidthFactor     = _element.maxAutoWidthFactor;

            idString = ID.ToString();
        }
Exemplo n.º 6
0
		public virtual void Copy (MenuElement _element)
		{
			ID = _element.ID;
			isEditing = false;
			title = _element.title;
			slotSize = _element.slotSize;
			sizeType = _element.sizeType;
			positionType = _element.positionType;
			relativeRect = _element.relativeRect;
			numSlots = _element.numSlots;
			lineID = _element.lineID;
			slotSpacing = _element.slotSpacing;
		
			font = _element.font;
			fontScaleFactor = _element.fontScaleFactor;
			fontColor = _element.fontColor;
			fontHighlightColor = _element.fontHighlightColor;
			highlightTexture = _element.highlightTexture;

			isVisible = _element.isVisible;
			isClickable = _element.isClickable;
			orientation = _element.orientation;
			gridWidth = _element.gridWidth;

			backgroundTexture = _element.backgroundTexture;

			hoverSound = _element.hoverSound;
			clickSound = _element.clickSound;

			relativePosition = _element.relativePosition;
			dragOffset = Vector2.zero;
		}