Ejemplo n.º 1
0
        private void CopyLabel(MenuTMPText _element, bool ignoreUnityUI)
        {
            if (ignoreUnityUI)
            {
                uiTMP = null;
            }
            else
            {
                uiTMP = _element.uiTMP;
            }

            label                 = _element.label;
            anchor                = _element.anchor;
            textEffects           = _element.textEffects;
            outlineSize           = _element.outlineSize;
            labelType             = _element.labelType;
            variableID            = _element.variableID;
            useCharacterColour    = _element.useCharacterColour;
            autoAdjustHeight      = _element.autoAdjustHeight;
            updateIfEmpty         = _element.updateIfEmpty;
            newLabel              = "";
            inventoryPropertyType = _element.inventoryPropertyType;
            itemPropertyID        = _element.itemPropertyID;
            itemSlotNumber        = _element.itemSlotNumber;

            base.Copy(_element);
        }
Ejemplo n.º 2
0
        public override MenuElement DuplicateSelf(bool fromEditor, bool ignoreUnityUI)
        {
            MenuTMPText newElement = CreateInstance <MenuTMPText>();

            newElement.Declare();
            newElement.CopyLabel(this, ignoreUnityUI);
            return(newElement);
        }