void CreateMemoryGraph() { var minSize = new Vector2(100, 16); var size = Vector2.Max(minSize, Config.MemoryGraphConfig.Size); MemoryGraph = new MemoryGraph(this, Config.MemoryGraphConfig, size) { Visible = Config.MemoryGraphConfig.Visible }; MemoryGraph.VisibleChanged += (sender, args) => { Config.MemoryGraphConfig.Visible = MemoryGraph.Visible; }; MemoryGraph.TitleBar.Dragged += (object sender, ref Vector2 args) => { Config.MemoryGraphConfig.Position = MemoryGraph.Position; }; MemoryGraph.Dragged += (object sender, ref Vector2 args) => { Config.MemoryGraphConfig.Position = MemoryGraph.Position; }; MemoryGraph.ScaleNob.Dragged += (object sender, ref Vector2 args) => { Config.MemoryGraphConfig.Size = MemoryGraph.Size; }; }
public override void Draw(GameTime gameTime) { MemoryGraph.Draw(_internalLabeler); }