spaceconquest.TelescopeMenu.TelescopeMenu C# (CSharp) Method

TelescopeMenu() public method

public TelescopeMenu ( Rectangle r, Player p ) : System
r Microsoft.Xna.Framework.Rectangle
p Player
return System
        public TelescopeMenu(Rectangle r, Player p)
        {
            plyr = p;
            area = r;
            texture = new Texture2D(MenuManager.batch.GraphicsDevice, 1, 1, true, SurfaceFormat.Color);
            texture.SetData(new[] { Color.White });
            planets = new TextLine(new Rectangle(area.Left + 5, area.Top + 30, 200, 20), "dummy1");
            asteroids = new TextLine(new Rectangle(area.Left + 5, area.Top + 50, 200, 20), "dummy2");
            ships = new TextLine(new Rectangle(area.Left + 5, area.Top + 70, 200, 20), "dummy3");
            header = new TextLine(new Rectangle(area.Left + 5, area.Top + 10, 200, 20), "Object:    Friend Foe Total");

            menucomponents.Add(header);
            menucomponents.Add(planets);
            //add healthBar before health Line
            menucomponents.Add(asteroids);
            menucomponents.Add(ships);
        }