public JoinLobby(ContentManager Content) { buttons = new List <IButton>(); title = new CenteredTitle(Content.Load <SpriteFont>(@"Fonts\largeFont"), new Vector2(0, 100), "Lobby", false, Color.Black); setColor = new SetColor(Content, new Vector2(50, 180)); buttons.Add(new GameButton(Content.Load <Texture2D>(@"Textures\Buttons\Button1"), Content.Load <SpriteFont>(@"Fonts\font"), new Vector2(0, 180), "Disconnect", 0.03f)); }
public Profile(ContentManager Content) { buttons = new List <IButton>(); title = new CenteredTitle(Content.Load <SpriteFont>(@"Fonts\largeFont"), new Vector2(0, 100), "Profile", false, Color.Black); buttons.Add(new MenuButton(Content.Load <Texture2D>(@"Textures\Buttons\Button1"), Content.Load <SpriteFont>(@"Fonts\font"), new Vector2(50, 270), "Load Avatar", 0.03f)); buttons.Add(new MenuButton(Content.Load <Texture2D>(@"Textures\Buttons\Button1"), Content.Load <SpriteFont>(@"Fonts\font"), new Vector2(50, 360), "Back", 0.03f)); textBox = new TextBox(Content.Load <SpriteFont>(@"Fonts\font"), Content.Load <Texture2D>(@"Textures\Buttons\layout"), Vector2.Zero, 200, 30); setColor = new SetColor(Content, new Vector2(50, 180)); SetTextBoxLocation(); LoadInfoFromDatabase(); }