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 }; }
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); }
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); }