protected override void PopulateFromXML(XElement element) { base.PopulateFromXML(element); _overlayStartColor = GloColor.FromHexString((string)element.Element("overlay-start") ?? "ffffff"); _overlayEndColor = GloColor.FromHexString((string)element.Element("overlay-end") ?? "ffffff"); foreach (XElement childElem in element.ElementOrEmpty("children").Elements("block")) { _children.Add(Block.FromXML(timeline, childElem)); } CompatibilityHooks.GroupBlockFromXML(this); }
protected override void PopulateFromXML(XElement element) { base.PopulateFromXML(element); _startColor = GloColor.FromHexString((string)element.Element("start-color")); _endColor = GloColor.FromHexString((string)element.Element("end-color")); }
protected override void PopulateFromXML(XElement element) { base.PopulateFromXML(element); _color = GloColor.FromHexString((string)element.Element("color")); }