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); }
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(); } } } }
public override MenuElement DuplicateSelf(bool fromEditor, bool ignoreUnityUI) { MenuLabel newElement = CreateInstance <MenuLabel>(); newElement.Declare(); newElement.CopyLabel(this, ignoreUnityUI); return(newElement); }
public override MenuElement DuplicateSelf() { MenuLabel newElement = CreateInstance <MenuLabel>(); newElement.Declare(); newElement.CopyLabel(this); return(newElement); }
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); }
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); }
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); }
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); }