예제 #1
0
        public static void loadViewToScene(String path, RenderScene scene)
        {
            scene.removeAllChild();
            String   absPath = UIProject.Instance().GetRealFile(path);
            String   content = FileHelper.GetFullContent(absPath);
            XElement xml     = XmlHelper.Parse(content);

            if (xml == null)
            {
                return;
            }
            scene.getAttrByXml(xml);
            scene.Refresh();
        }
예제 #2
0
 public static void loadViewToScene(XElement xml, RenderScene scene)
 {
     scene.removeAllChild();
     scene.getAttrByXml(xml);
     scene.Refresh();
 }