public override void LoadContent(ContentManager content) { _hostGameButton = new Button(_game, "ButtonMenu", "ButtonMenuHovered", "ButtonFont") { Position = new Vector2(250, 125), Size = new Rectangle(0, 0, 500, 50), Text = "Host a local multiplayer game" }; _joinGameButton = new Button(_game, "ButtonMenu", "ButtonMenuHovered", "ButtonFont") { Position = new Vector2(250, 200), Size = new Rectangle(0, 0, 500, 50), Text = "Join a local multiplayer game" }; _hostGameButton.OnClick += HostGame; _joinGameButton.OnClick += JoinGame; _registeredControls.Add(_hostGameButton); _registeredControls.Add(_joinGameButton); }
public override void LoadContent(ContentManager content) { _hostGameButton = new Button(_game, "ButtonMenu", "ButtonMenuHovered", "ButtonFont") { Position = new Vector2(250, 125), Size = new Rectangle(0, 0, 500, 50), Text = "Host a local multiplayer game" }; _joinGameButton = new Button(_game, "ButtonMenu", "ButtonMenuHovered", "ButtonFont") { Position = new Vector2(250, 200), Size = new Rectangle(0, 0, 500, 50), Text = "Join a local multiplayer game" }; _hostGameButton.OnClick += HostGame; _joinGameButton.OnClick += JoinGame; _registeredControls.Add(_hostGameButton); _registeredControls.Add(_joinGameButton); }