コード例 #1
0
        // Called when the node enters the scene tree for the first time.
        public override void _Ready()
        {
            graphControl = GetTree().Root.FindNode("ProfilerMetricsViewerGraph", true, false) as ProfilerMetricsViewerGraph;

            this.Columns = this.columns;
            ProfilingCollection.NewMetric += NewMetric;
        }
コード例 #2
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);
        }