コード例 #1
0
ファイル: MenuLabel.cs プロジェクト: careybrenda/Dunedin
        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);
        }
コード例 #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();
                    }
                }
            }
        }
コード例 #3
0
ファイル: MenuLabel.cs プロジェクト: careybrenda/Dunedin
        public override MenuElement DuplicateSelf(bool fromEditor, bool ignoreUnityUI)
        {
            MenuLabel newElement = CreateInstance <MenuLabel>();

            newElement.Declare();
            newElement.CopyLabel(this, ignoreUnityUI);
            return(newElement);
        }
コード例 #4
0
ファイル: MenuLabel.cs プロジェクト: IJkeB/Ekster1
        public override MenuElement DuplicateSelf()
        {
            MenuLabel newElement = CreateInstance <MenuLabel>();

            newElement.Declare();
            newElement.CopyLabel(this);
            return(newElement);
        }
コード例 #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);
		}
コード例 #6
0
ファイル: MenuLabel.cs プロジェクト: IJkeB/Ekster1
        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);
        }
コード例 #7
0
ファイル: MenuLabel.cs プロジェクト: mcbodge/eidolon
        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);
        }
コード例 #8
0
ファイル: MenuLabel.cs プロジェクト: mcbodge/eidolon
        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);
        }