示例#1
0
        private void LoadSkinAttributes()
        {
            if (doc["Skin"]["Attributes"] == null)
            {
                return;
            }

            XmlNodeList l = doc["Skin"]["Attributes"].GetElementsByTagName("Attribute");

            if (l != null && l.Count > 0)
            {
                foreach (XmlElement e in l)
                {
                    SkinAttribute sa = new SkinAttribute();
                    sa.Name  = ReadAttribute(e, "Name", null, true);
                    sa.Value = ReadAttribute(e, "Value", null, true);
                    attributes.Add(sa);
                }
            }
        }
示例#2
0
        private void LoadLayerAttributes(SkinLayer sl, XmlNodeList l)
        {
            foreach (XmlElement e in l)
            {
                string        name = ReadAttribute(e, "Name", null, true);
                SkinAttribute sa   = sl.Attributes[name];
                bool          inh  = true;

                if (sa == null)
                {
                    sa  = new SkinAttribute();
                    inh = false;
                }

                sa.Name = name;
                ReadAttribute(ref sa.Value, inh, e, "Value", null, true);

                if (!inh)
                {
                    sl.Attributes.Add(sa);
                }
            }
        }
示例#3
0
 public SkinAttribute(SkinAttribute source)
     : base(source)
 {
     this.Value = source.Value;
 }
示例#4
0
		public SkinAttribute(SkinAttribute source)
			: base(source) {
			this.Value = source.Value;
		}
示例#5
0
文件: Skin.cs 项目: GodLesZ/svn-dump
		private void LoadLayerAttributes(SkinLayer sl, XmlNodeList l) {
			foreach (XmlElement e in l) {
				string name = ReadAttribute(e, "Name", null, true);
				SkinAttribute sa = sl.Attributes[name];
				bool inh = true;

				if (sa == null) {
					sa = new SkinAttribute();
					inh = false;
				}

				sa.Name = name;
				ReadAttribute(ref sa.Value, inh, e, "Value", null, true);

				if (!inh)
					sl.Attributes.Add(sa);
			}
		}
示例#6
0
文件: Skin.cs 项目: GodLesZ/svn-dump
		private void LoadSkinAttributes() {
			if (doc["Skin"]["Attributes"] == null)
				return;

			XmlNodeList l = doc["Skin"]["Attributes"].GetElementsByTagName("Attribute");

			if (l != null && l.Count > 0) {
				foreach (XmlElement e in l) {
					SkinAttribute sa = new SkinAttribute();
					sa.Name = ReadAttribute(e, "Name", null, true);
					sa.Value = ReadAttribute(e, "Value", null, true);
					attributes.Add(sa);
				}
			}
		}