public GUI(string path) { Labels = new List<Text>(); Buttons = new List<Button>(); pathToFont = path; cursor = new Cursor(); }
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); }