Esempio n. 1
0
    public void NewDataLogger(string loggerName)
    {
        GetComponent <testDataGUI>().FetchAction("New Logger - " + loggerName);

        foreach (GameObject logger in dataLoggers)
        {
            logger.GetComponent <dataRecordingController>().enabled = false;
        }

        GameObject newDataLogger             = Instantiate <GameObject>(dataLoggerPrefab, Vector3.zero, Quaternion.identity, transform);
        dataRecordingController dataLogPrefs = newDataLogger.GetComponent <dataRecordingController>();

        newDataLogger.name = "DataLogger_" + loggerName;
        newDataLogger.GetComponent <dataRecordingController>().clippingCheckTime          = GetComponent <testDataGUI>().clippingCheckTime;
        newDataLogger.GetComponent <dataRecordingController>().testCateg.VisLtdLimit      = GetComponent <testDataGUI>().VisLtdRandom;
        newDataLogger.GetComponent <dataRecordingController>().testCateg.InvisLtdLimit    = GetComponent <testDataGUI>().InvisLtdRandom;
        newDataLogger.GetComponent <dataRecordingController>().testCateg.VisPresetLimit   = GetComponent <testDataGUI>().VisPresets;
        newDataLogger.GetComponent <dataRecordingController>().testCateg.InvisPresetLimit = GetComponent <testDataGUI>().InvisPresets;
        dataLogPrefs.filePath = textLog.path + loggerName + "/";
    }
Esempio n. 2
0
    public override void OnInspectorGUI()
    {
        DrawDefaultInspector();

        dataRecordingController dataRecControl = (dataRecordingController)target;

        if (GUILayout.Button("Create Regular Test"))
        {
            dataRecControl.NewTest(false);
        }
        if (GUILayout.Button("Create Zero Test"))
        {
            dataRecControl.NewTest(true);
        }

        if (GUILayout.Button("New Dock Shape"))
        {
            dataRecControl.NewDockShape();
        }
        if (GUILayout.Button("Zero Dock Shape"))
        {
            dataRecControl.ZeroDockShape();
        }

        if (GUILayout.Button("Summarize Results (Final Report)"))
        {
            dataRecControl.FinalReport();
        }

        if (GUILayout.Button("Delete All Tests"))
        {
            dataRecControl.ClearTests();
        }
        if (GUILayout.Button("Delete All Reports"))
        {
            fileEditor.ClearDir(dataRecControl.filePath);
        }
    }