Exemple #1
0
        public override void _Ready()
        {
            ControlUtil.ApplyDefaults(this);
            //this.MarginTop = height;
            //this.MarginRight = width;


            scrollGraph = GetTree().Root.FindNode("ScrollGraph", true, false) as ScrollContainer;
            //ControlUtil.ApplyAnchorFull(scrollGraph);
            scrollGraph.RectMinSize = new Vector2(width, height);

            graph = ControlUtil.FindNode <ProfilerMetricsViewerGraph>(GetTree());

            legendY             = ControlUtil.FindNode <LegendY>(GetTree());
            legendY.RectMinSize = new Vector2(labelContainerWidth, height);
            legendY.color       = SYSTEM_LINE;

            graph.MaxYChange += Graph_MaxYChange;

            setProjection(0);
        }