示例#1
0
        public override void UpdateObjectProperties(object Input, PropertyGrid Properties, ListView Scene)
        {
            XSkyBox sky = (XSkyBox)Input;

            if (!string.IsNullOrEmpty(sky.SkyCubeMap))
            {
                sky.Load(X.Content);
            }

            base.UpdateObjectProperties(Input, Properties, Scene);
        }
示例#2
0
        public override void LoadFromXML(System.Xml.XmlNode node, ListView scene, ref Dictionary <uint, List <uint> > Depends)
        {
            XSkyBox sky = new XSkyBox(ref X, node.Attributes["SkyCubeMap"].InnerText);

            sky.AutoDraw    = bool.Parse(node.Attributes["AutoDraw"].InnerText);
            sky.DrawOrder   = int.Parse(node.Attributes["DrawOrder"].InnerText);
            sky.ComponentID = uint.Parse(node.Attributes["ComponentID"].InnerText);
            sky.Name        = node.Attributes["Name"].InnerText;

            sky.Load(X.Content);

            X_Editor.Tools.AddXComponentToSceneList(scene, sky, group);
        }