public YAMLNode ExportYAML(IExportContainer container) { YAMLMappingNode node = new YAMLMappingNode(); node.Add(BackgroundName, Background.ExportYAML(container)); node.Add(ScaledBackgroundsName, ScaledBackgrounds.ExportYAML(container)); node.Add(TextColorName, TextColor.ExportYAML(container)); return(node); }
public YAMLNode ExportYAML(IExportContainer container) { YAMLMappingNode node = new YAMLMappingNode(); GUIStyleStateLayout layout = container.ExportLayout.Serialized.GUIStyle.GUIStyleState; node.Add(layout.BackgroundName, Background.ExportYAML(container)); if (layout.HasScaledBackgrounds) { node.Add(layout.ScaledBackgroundsName, ScaledBackgrounds.ExportYAML(container)); } node.Add(layout.TextColorName, TextColor.ExportYAML(container)); return(node); }