protected override void LoadContent() { ContentManager Content = _gameRef.Content; backgroundImage = Content.Load<Texture2D>(@"Background.png"); base.LoadContent(); startLabel = new LinkLabel(); startLabel.Position = new Vector2(50, 50); startLabel.Text = "Map Editor"; startLabel.Color = Color.White; startLabel.TabStop = true; startLabel.HasFocus = true; startLabel.Selected += new EventHandler(startLabel_Selected); exitLabel = new LinkLabel(); exitLabel.Position = new Vector2(50, 125); exitLabel.Text = "EXIT"; exitLabel.Color = Color.White; exitLabel.TabStop = true; exitLabel.HasFocus = false; exitLabel.Selected += new EventHandler(exitLabel_Selected); _controlManager.Add(startLabel); _controlManager.Add(exitLabel); }
protected override void LoadContent() { ContentManager Content = _gameRef.Content; backgroundImage = Content.Load<Texture2D>(@"GameScreenBackground.png"); map = new Map(_gameRef); grid = new Grid(_gameRef,38, 21, 25); Components.Add(map); Components.Add(grid); base.LoadContent(); startLabel = new LinkLabel(); startLabel.Position = new Vector2(350, 600); startLabel.Text = "Pinch to begin"; startLabel.Color = Color.Blue; startLabel.TabStop = true; startLabel.HasFocus = true; startLabel.Selected += new EventHandler(startLabel_Selected); _controlManager.Add(startLabel); }