Esempio n. 1
0
        private void CopyLabel(MenuLabel _element, bool ignoreUnityUI)
        {
            if (ignoreUnityUI)
            {
                uiText = null;
            }
            else
            {
                uiText = _element.uiText;
            }

            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;
            showPendingWhileMovingToHotspot = _element.showPendingWhileMovingToHotspot;
            newLabel = "";
            inventoryPropertyType = _element.inventoryPropertyType;
            itemPropertyID        = _element.itemPropertyID;
            itemSlotNumber        = _element.itemSlotNumber;

            base.Copy(_element);
        }
Esempio n. 2
0
        private void UpdatePreviewMenu(Menu menu, bool isSubtitlesPreview = false)
        {
            if (menu == null || menu.IsUnityUI())
            {
                return;
            }

            foreach (MenuElement element in menu.visibleElements)
            {
                for (int i = 0; i < element.GetNumSlots(); i++)
                {
                    if (menuManager.GetSelectedElement() == element && element.isClickable && i == 0)
                    {
                        element.PreDisplay(i, 0, false);
                    }
                    else
                    {
                        element.PreDisplay(i, 0, false);
                    }

                    if (isSubtitlesPreview && element is MenuLabel)
                    {
                        MenuLabel menuLabel = element as MenuLabel;
                        menuLabel.UpdateLabelText();
                    }
                }
            }
        }
Esempio n. 3
0
        public override MenuElement DuplicateSelf(bool fromEditor, bool ignoreUnityUI)
        {
            MenuLabel newElement = CreateInstance <MenuLabel>();

            newElement.Declare();
            newElement.CopyLabel(this, ignoreUnityUI);
            return(newElement);
        }
Esempio n. 4
0
        public override MenuElement DuplicateSelf()
        {
            MenuLabel newElement = CreateInstance <MenuLabel>();

            newElement.Declare();
            newElement.CopyLabel(this);
            return(newElement);
        }
Esempio n. 5
0
		public void CopyLabel (MenuLabel _element)
		{
			label = _element.label;
			anchor = _element.anchor;
			textEffects = _element.textEffects;
			labelType = _element.labelType;
			variableID = _element.variableID;
			variableNumber = _element.variableNumber;
			useCharacterColour = _element.useCharacterColour;
			autoAdjustHeight = _element.autoAdjustHeight;
			newLabel = "";

			base.Copy (_element);
		}
Esempio n. 6
0
        public void CopyLabel(MenuLabel _element)
        {
            uiText             = _element.uiText;
            label              = _element.label;
            anchor             = _element.anchor;
            textEffects        = _element.textEffects;
            labelType          = _element.labelType;
            variableID         = _element.variableID;
            variableNumber     = _element.variableNumber;
            useCharacterColour = _element.useCharacterColour;
            autoAdjustHeight   = _element.autoAdjustHeight;
            updateIfEmpty      = _element.updateIfEmpty;
            newLabel           = "";

            base.Copy(_element);
        }
Esempio n. 7
0
        private void CopyLabel(MenuLabel _element)
        {
            uiText                = _element.uiText;
            label                 = _element.label;
            anchor                = _element.anchor;
            textEffects           = _element.textEffects;
            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);
        }
Esempio n. 8
0
        private void CopyLabel(MenuLabel _element)
        {
            uiText = _element.uiText;
            label = _element.label;
            anchor = _element.anchor;
            textEffects = _element.textEffects;
            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);
        }