//Data should be brought down from the SERVER, more specifically from the PLAYERLIST. Four slots, one for each of the four players. //If no data available, say N/A (Not Applicable) //If possible, display in order of score/health, so that pausing the game shows who's 'winning' or 'losing' at that time. public DisplayMenu(Texture2D bttnContinueSprite) { bttnContinue = new MenuButton(bttnContinueSprite, new Point(700, 570)); HubConnection connection = new HubConnection("http://localhost:56859"); proxy = connection.CreateHubProxy("UserInputHub"); connection.Start().Wait(); }
public MainMenu(Texture2D sprBtnPlay, Texture2D sprBtnReg, Texture2D sprBtnLogin) { bttnLogin = new MenuButton(sprBtnLogin, new Microsoft.Xna.Framework.Point(250, 50)); bttnRegister = new MenuButton(sprBtnReg, new Microsoft.Xna.Framework.Point(250, 250)); bttnPlay = new MenuButton(sprBtnPlay, new Microsoft.Xna.Framework.Point(250, 450)); }