Пример #1
0
 public GUI(string path)
 {
     Labels = new List<Text>();
     Buttons = new List<Button>();
     pathToFont = path;
     cursor = new Cursor();
 }
Пример #2
0
        public void LoadContent(ContentManager content)
        {
            Font = content.Load<SpriteFont>(pathToFont);

            XmlManager<Cursor> manager = new XmlManager<Cursor>();
            manager.type = typeof(Cursor);
            cursor = manager.Load(@"Content\Xml\Cursor.xml");
            cursor.LoadContent(content);
        }