示例#1
0
        public SkinCursor(SkinCursor source) : base(source)
        {
#if (!XBOX && !XBOX_FAKE)
            Resource = source.Resource;
#endif

            Asset = source.Asset;
        }
示例#2
0
        /// <param name="archive"></param>
        /// <param name="addon"></param>
        /// </summary>
        /// </summary>
        private void LoadCursors(string addon, bool archive)
        {
            if (doc["Skin"]["Cursors"] == null)
            {
                return;
            }

            var l = doc["Skin"]["Cursors"].GetElementsByTagName("Cursor");

            if (l != null && l.Count > 0)
            {
                foreach (XmlElement e in l)
                {
                    var sc = new SkinCursor();
                    sc.Name    = ReadAttribute(e, "Name", null, true);
                    sc.Archive = archive;
                    sc.Asset   = ReadAttribute(e, "Asset", null, true);
                    sc.Addon   = addon;
                    cursors.Add(sc);
                }
            }
        }