public GUIWindow(InputManager inputManager, SpriteBatch spriteBatch, SpriteFont spriteFont, Rectangle rectangle) : base() { inputManager.MouseEvent += this.MouseEvent; this.Rectangle = rectangle; this.SpriteBtch = spriteBatch; this.Font = spriteFont; this.DisabledColor = new Color(210, 210, 210, 230); }
protected override void LoadContent() { this.graphics.PreferredBackBufferWidth = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Width - 100; this.graphics.PreferredBackBufferHeight = GraphicsAdapter.DefaultAdapter.CurrentDisplayMode.Height - 100; this.graphics.ApplyChanges(); this.spriteBatch = new SpriteBatch(this.GraphicsDevice); BFContent.Load(this.Content); this.inputManager = new InputManager(); this.inputManager.StartListenInput(); cursor = new Cursor(); //Localization.Language = Language.English; InitGameLogic(); InitGui(); }