public EndGameMenu(Game1 game, AssetManager assetManager) : base(game, assetManager) { _lblHeader.Text = "Match Over!"; _lblList = new List <label>(); for (int i = 0; i < 8; i++) { _lblList.Add(new label(assetManager.FontLib["SegoeUI"])); } foreach (label lbl in _lblList) { lbl.isClickable = false; lbl.Text = ""; } // May wish to make this IEnumerable.... _lblList[0].TextColor = Color.Sienna; _lblList[0].Position = new Point(250, 100); _lblList[0].isClickable = false; _lblList[1].Text = "has won the match!"; _lblList[1].Position = new Point(_lblList[0].Position.X + 100, _lblList[0].Position.Y); _lblList[1].isClickable = false; _listBox = new Listbox(assetManager, 650, 500); _listBox.Add("EXIT"); }
public MainMenu(AssetManager AssetManager) { m_assetManager = AssetManager; buttonList = new List <Button>(); labelList = new List <label>(); backRect = new Rectangle(0, 0, 800, 600); lblFound = new label(m_assetManager.FontLib["UIHeader"]); lblNew = new label(m_assetManager.FontLib["UIHeader"]); lblMatch = new label(m_assetManager.FontLib["UIHeader"]); m_delay = 20; m_sleepCounter = m_delay; txrBackGround = AssetManager.SpriteLib["BackGround_" + (Game1.RNG.Next(1, 7)).ToString()]; createButtons(); listBoxMap = new Listbox(m_assetManager, 400, 100); listBoxSession = new Listbox(m_assetManager, 400, 200); listBoxMatch = new Listbox(m_assetManager, 400, 350); getMapList(); listBoxMap.Visible = false; listBoxSession.Visible = false; createHeadings(); setTitleScreen(); }
public inGameMenu(Game1 game, AssetManager assetManager) { _game = game; _assetmanager = assetManager; _menuRect = new Rectangle(0, 0, game.ScreenRes_X, game.ScreenRes_Y); _lBox = new Listbox(assetManager, game.ScreenRes_X / 3, game.ScreenRes_Y / 3); _Backtint = new Color(255, 255, 255, 100); _lBox.Font = assetManager.FontLib["SegoeUI"]; _lblHeader = new label(assetManager.FontLib["UIHeader"]); _lBox.Spacing = 80; _lBox.Visible = true; _closed = true; }