Exemple #1
0
        public static XmlNodeList fromXML(XmlNode node, out UIWidget ui, UIWidget p)
        {
            uint fc = 0;
            XmlNode ret = node.Attributes.GetNamedItem("color");
            string strRet = (ret == null) ? UIRoot.Instance.getPropertyInTable("color") : ((ret.Value == "NA") ? null : ret.Value);
            if (strRet != null)
            {
                fc = strRet.castHex(0xff888888);
                UIRoot.Instance.setPropertyInTable("color", ref strRet);
            }

            var m = new UIMap();
            m.color = fc;
            ui = m;
            ui.fromXML(node);
            ui.paresent = p;
            return node.ChildNodes;
        }