Exemplo n.º 1
0
 public override void OnBegin()
 {
     BuildPanel = new BuildMenu(PlayState.GUI, PlayState.GUI.RootComponent, Player)
     {
         LocalBounds = new Rectangle(PlayState.Game.GraphicsDevice.Viewport.Width - 750, PlayState.Game.GraphicsDevice.Viewport.Height - 512, 700, 350),
         IsVisible = true
     };
 }
Exemplo n.º 2
0
 public override void OnBegin()
 {
     if (BuildPanel != null)
     {
         BuildPanel.Destroy();
     }
     BuildPanel = new BuildMenu(PlayState.GUI, PlayState.GUI.RootComponent, Player)
     {
         LocalBounds = new Rectangle(PlayState.Game.GraphicsDevice.Viewport.Width - 750, PlayState.Game.GraphicsDevice.Viewport.Height - 512, 700, 350),
         IsVisible   = true,
         DrawOrder   = 2
     };
     BuildPanel.TweenIn(Drawer2D.Alignment.Right, 0.25f);
 }
Exemplo n.º 3
0
 public override void OnBegin()
 {
     if (BuildPanel != null)
     {
         BuildPanel.Destroy();
     }
     BuildPanel = new BuildMenu(PlayState.GUI, PlayState.GUI.RootComponent, Player)
     {
         LocalBounds = new Rectangle(PlayState.Game.GraphicsDevice.Viewport.Width - 750, PlayState.Game.GraphicsDevice.Viewport.Height - 512, 700, 350),
         IsVisible = true,
         DrawOrder = 2
     };
     BuildPanel.TweenIn(Drawer2D.Alignment.Right, 0.25f);
 }
Exemplo n.º 4
0
        public override void OnBegin()
        {
            if (BuildPanel != null)
            {
                BuildPanel.Destroy();
            }
            int w = 600;
            int h = 350;

            BuildPanel = new BuildMenu(PlayState.GUI, PlayState.GUI.RootComponent, Player, BuildType)
            {
                LocalBounds = new Rectangle(PlayState.Game.GraphicsDevice.Viewport.Width / 2 - w / 2, PlayState.Game.GraphicsDevice.Viewport.Height / 2 - h / 2, w, h),
                IsVisible   = true,
                DrawOrder   = 2
            };
            BuildPanel.TweenIn(Drawer2D.Alignment.Right, 0.25f);
        }