Exemplo n.º 1
0
        ////////////////////////////////////////////////////////////////////////////

        ////////////////////////////////////////////////////////////////////////////
        public SkinCursor(SkinCursor source)
            : base(source)
        {
#if (!XBOX && !XBOX_FAKE)
            this.Resource = source.Resource;
#endif

            this.Asset = source.Asset;
        }
Exemplo n.º 2
0
        ////////////////////////////////////////////////////////////////////////////

        ////////////////////////////////////////////////////////////////////////////
        private void LoadCursors(string addon)
        {
            if (doc.Root.Element("Cursors") == null)
            {
                return;
            }

            var l = doc.Root.Element("Cursors").Elements("Cursor");

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