コード例 #1
0
        private static string GetPlotCubeDataGroupLabel(ILPlotCubeDataGroup source, ILPanel panel)
        {
            if (panel.Scene.Find<ILPlotCubeDataGroup>().Count() == 1)
                return "DataGroup";

            return BuildDefaultName(panel, source, "DataGroup");
        }
コード例 #2
0
        public ILPlotCubeDataGroupWrapper(ILPlotCubeDataGroup source, ILPanelEditor editor, string path, string name = null, string label = null)
            : base(source, editor, path, BuildName(name, editor.Panel, source, ILPlotCubeScaleGroup.PlotsTag),
                   String.IsNullOrEmpty(label) ? GetPlotCubeDataGroupLabel(source, editor.Panel) : label)
        {
            this.source = source;

            scaleModes = new ILScaleModesWrapper(source.ScaleModes, editor, Path);
            limits = new ILLimitsWrapper(source.Limits, GetSyncNode(source).Limits, editor, Path);
        }