public GUIStyleDescription(GUIStyleDescription other) { Alignment = other.Alignment; Border = other.Border; Margin = other.Margin; Padding = other.Padding; Overflow = other.Overflow; Clipping = other.Clipping; Font = other.Font; FixedWidth = other.FixedWidth; FixedHeight = other.FixedHeight; ContentOffset = other.ContentOffset; FontSize = other.FontSize; FontStyle = other.FontStyle; ImagePosition = other.ImagePosition; RichText = other.RichText; StretchWidth = other.StretchWidth; StretchHeight = other.StretchHeight; WordWrap = other.WordWrap; TextColor = other.TextColor; Normal = other.Normal != null ? new GUIStyleState { background = other.Normal.background, scaledBackgrounds = other.Normal.scaledBackgrounds.ToArray(), textColor = other.Normal.textColor } : null; Active = other.Active != null ? new GUIStyleState { background = other.Active.background, scaledBackgrounds = other.Active.scaledBackgrounds.ToArray(), textColor = other.Active.textColor } : null; Focused = other.Focused != null ? new GUIStyleState { background = other.Focused.background, scaledBackgrounds = other.Focused.scaledBackgrounds.ToArray(), textColor = other.Focused.textColor } : null; Hover = other.Hover != null ? new GUIStyleState { background = other.Hover.background, scaledBackgrounds = other.Hover.scaledBackgrounds.ToArray(), textColor = other.Hover.textColor } : null; OnNormal = other.OnNormal != null ? new GUIStyleState { background = other.OnNormal.background, scaledBackgrounds = other.OnNormal.scaledBackgrounds.ToArray(), textColor = other.OnNormal.textColor } : null; OnActive = other.OnActive != null ? new GUIStyleState { background = other.OnActive.background, scaledBackgrounds = other.OnActive.scaledBackgrounds.ToArray(), textColor = other.OnActive.textColor } : null; OnFocused = other.OnFocused != null ? new GUIStyleState { background = other.OnFocused.background, scaledBackgrounds = other.OnFocused.scaledBackgrounds.ToArray(), textColor = other.OnFocused.textColor } : null; OnHover = other.OnHover != null ? new GUIStyleState { background = other.OnHover.background, scaledBackgrounds = other.OnHover.scaledBackgrounds.ToArray(), textColor = other.OnHover.textColor } : null; }
internal GUIStyleCombine([NotNull] GUIStyleDescription description, bool important) { Description = description; Important = important; }