public override void Initialize() { Menu = new MenuComponent(Game, Renderer.Singleton.batch, Renderer.Singleton.Content.Load<SpriteFont>("Font"), new string[] { "New Game", "Load Game", "Back" }); Background = Renderer.Singleton.Content.Load<Texture2D>("MainMenuBackground"); BackgroundLight = Renderer.Singleton.Content.Load<Texture2D>("MainMenuLight"); Foreground = Renderer.Singleton.Content.Load<Texture2D>("MainMenuForeground"); base.Initialize(); }
public override void Initialize() { IpTextBox = new TextBox(Game, Renderer.Singleton.batch); Menu = new MenuComponent(Game, Renderer.Singleton.batch, Renderer.Singleton.Content.Load<SpriteFont>("Font"), new string[] { "Server Ip:", "Back" }); IpTextBox.Initialize(); IpTextBox.Rect.X = (int)Menu.position.X; IpTextBox.Rect.Y = (int)Menu.position.Y + (int)Menu.Spacing + Menu.spriteFont.LineSpacing; IpTextBox.Rect.Width = 100; IpTextBox.Rect.Height = 100; Menu.Spacing = Menu.spriteFont.LineSpacing + 2 * Menu.Spacing; base.Initialize(); }
public override void Initialize() { Menu = new MenuComponent(Game, Renderer.Singleton.batch, Renderer.Singleton.Content.Load<SpriteFont>("Font"), new string[] { "Host", "Join", "Back" }); base.Initialize(); }
public override void Initialize() { Menu = new MenuComponent(Game, Renderer.Singleton.batch, Renderer.Singleton.Content.Load<SpriteFont>("Font"), new string[] { "Back to Game", "Options", "Save Game", "Quit Game" }); base.Initialize(); }