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; }
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; }
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; }
/** * 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 = ""; }
/** * <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(); }
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; }