public void AddPanel(Panel p) { panels.Add(p); panelTextures.Add(null); if (hasLaoded) { p.LoadContent(Game.Content); } }
public Camera2D(Vector2 pos, Panel p) { this.panel = p; Resize(p.Width, p.Height); view = Matrix.CreateLookAt(new Vector3(pos.X, pos.Y, 1), new Vector3(pos.X, pos.Y, 0), Vector3.Up); this.pos = new Vector3(0, 0, 1); this.vel = Vector3.Zero; maxVel = 100f; maxZoom = 1000f; dampingFactor = 0.85f; accFactor = 10f; zoomFactor = 15f; zoomAmount = 1f; }
public void RemovePanel(Panel p) { panels.Remove(p); }