public ResolutionScreen() { rm = new ResolutionManager(); SpriteFont font = Engine.Instance.Game.Content.Load<SpriteFont>("Arial"); List<Vector2> tmpList = rm.AvailableDisplayMode; list = new LinkedList<TextWidget>(); int tmpHeight = 0 ; int tmpWidth = 0; Engine.Instance.Game.IsMouseVisible = true; foreach(Vector2 tmp in tmpList) { Vector2 tmpPos = new Vector2(tmpWidth, tmpHeight); MyTextWidget tmpTxt = new MyTextWidget(font); list.AddFirst(tmpTxt); tmpTxt.Position = tmpPos; tmpHeight += 30; addComponent(tmpTxt); tmpTxt.Width = tmp.X; tmpTxt.Height = tmp.Y; if (tmpHeight -400 >rm.CurrentDisplayMode().X) { tmpHeight = 0; tmpWidth += 100; } } }
private Engine(Game game) : base(game) { _graphics = new GraphicsDeviceManager(game); _library = Library.Instance; _resolutionManager = new ResolutionManager(); // Set Graphic Profile to minimum requirements _graphics.GraphicsProfile = GraphicsProfile.Reach; _graphics.ApplyChanges(); }