public Player_Select_Popup(Game_State manager, ContentManager content, Input_Handler[] inputs, Rectangle bounds, GraphicsDevice graphicsDevice) : base(content, bounds) { this.manager = manager; this.inputs = inputs; this.ClientBounds = bounds; soundMenuA = content.Load <SoundEffect>("Sounds/MenuA"); soundMenuC = content.Load <SoundEffect>("Sounds/MenuC"); soundMenuD = content.Load <SoundEffect>("Sounds/MenuD"); font = content.Load <SpriteFont>("Menu/menufont"); for (int i = 0; i < 4; i++) { // Hook up input listener inputs[i].OnKeyRelease += HandleInput; // Set positions playerMenuBounds[i] = new Rectangle(((i) * ClientBounds.Width / 4), 0, ClientBounds.Width / 4, ClientBounds.Height); // Initialize the meus menus[i] = new Player_Select_Menu(content, this, font, playerMenuBounds[i]); } populateColors(content, graphicsDevice); }
public Player_Select_Popup(Game_State manager, ContentManager content, Input_Handler[] inputs, Rectangle bounds, GraphicsDevice graphicsDevice) : base(content, bounds) { this.manager = manager; this.inputs = inputs; this.ClientBounds = bounds; soundMenuA = content.Load<SoundEffect>("Sounds/MenuA"); soundMenuC = content.Load<SoundEffect>("Sounds/MenuC"); soundMenuD = content.Load<SoundEffect>("Sounds/MenuD"); font = content.Load<SpriteFont>("Menu/menufont"); for (int i = 0; i < 4; i++) { // Hook up input listener inputs[i].OnKeyRelease += HandleInput; // Set positions playerMenuBounds[i] = new Rectangle(((i) * ClientBounds.Width / 4), 0, ClientBounds.Width / 4, ClientBounds.Height); // Initialize the meus menus[i] = new Player_Select_Menu(content, this, font, playerMenuBounds[i]); } populateColors(content, graphicsDevice); }