Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }