Beispiel #1
0
    public void ApplyChanges()
    {
        string Scope = ProfileManager.Instance.currentEvaluationScope;

        if (!CheckLimitations())
        {
            return;
        }
        GLPlayerPrefs.SetInt(Scope, objectName + "Test", testDropdown.value);
        GLPlayerPrefs.SetString(Scope, objectName + "Prefix", prefixInput.text);
        GLPlayerPrefs.SetString(Scope, objectName + "Sufix", sufixInput.text);
        GLPlayerPrefs.SetString(Scope, objectName + "FolderPath", folderPath);
        GLPlayerPrefs.SetString(Scope, objectName + "GroupFilePath", groupPath);
        GLPlayerPrefs.SetString(Scope, objectName + "Amount", imagesAmount.text);
    }
    public void SelectThisVisualization()
    {
        string Scope = ProfileManager.Instance.currentEvaluationScope;

        GLPlayerPrefs.SetString(Scope, "CurrentVisualization", visualizationName);
        visualizationController.UpdateCurrentSelectedVisualizationText();
        ActionManager.Instance.UpdateVisualizationActionNames(sphereVisualizationActionsNames);
        //DELETE THIS
        GLPlayerPrefs.SetBool(Scope, "BGIIESMode", false);
        GLPlayerPrefs.SetBool(Scope, "TIIESMode", false);
        bool wea  = GLPlayerPrefs.GetBool(Scope, "BGIIESMode");
        bool wea2 = GLPlayerPrefs.GetBool(Scope, "TIIESMode");

        Debug.Log("el booleano de bgiiesMode es:" + wea);
        Debug.Log("el booleano de tiiesmode es:" + wea2);
    }
    public void UpdateBitalinoConfig()
    {
        //VALIDATE
        if (!ValidateInput())
        {
            return;
        }
        else
        {
            string comPort      = m_comPort.text;
            int    baudRate     = int.Parse(m_baudRate.text);
            int    samplingRate = int.Parse(m_samplingRate.text);
            int    buffSize     = int.Parse(m_buffSize.text);

            GLPlayerPrefs.SetString(scope, "BITalino ComPort", comPort);
            GLPlayerPrefs.SetInt(scope, "BITalino BaudRate", baudRate);
            GLPlayerPrefs.SetInt(scope, "BITalino SamplingRate", samplingRate);
            GLPlayerPrefs.SetInt(scope, "BITalino BuffSize", buffSize);
        }
    }
    public void StartSimulation()
    {
        GLPlayerPrefs.SetBool(Scope, "UseLeapMotion", useLeapMotionToggle.isOn);
        GLPlayerPrefs.SetBool(Scope, "UsePitchGrab", usePitchGrabToggle.isOn);
        GLPlayerPrefs.SetBool(Scope, "UseHapticGlove", useHapticGloveToggle.isOn);
        GLPlayerPrefs.SetBool(Scope, "UseJoystic", useJoystickToggle.isOn);

        GLPlayerPrefs.SetString(Scope, "DataOutput", dataOutputText.text);

        GLPlayerPrefs.SetString(Scope, "LeftCom", leftComText.text);
        GLPlayerPrefs.SetString(Scope, "RightCom", rightComText.text);

        GLPlayerPrefs.SetInt(Scope, "UserID", Convert.ToInt32(userIdText.text));

        GLPlayerPrefs.SetString(Scope, "Images", imagesText.text);
        GLPlayerPrefs.SetString(Scope, "FolderImageAssetText", folderImageAssetText.text);
        GLPlayerPrefs.SetString(Scope, "FolderSmallText", folderSmallText.text);
        GLPlayerPrefs.SetString(Scope, "FileName", fileNameText.text);
        GLPlayerPrefs.SetString(Scope, "GroupPath", groupPathText.text);

        GLPlayerPrefs.SetInt(Scope, "Test", testDropdown.value);

        SceneManager.LoadScene(sceneName);
    }
Beispiel #5
0
 public void savePathEyeTribe()
 {
     GLPlayerPrefs.SetString(ProfileManager.Instance.currentEvaluationScope, "TheEyeTribeDataPath", eyeTribeDataPath.text);
 }
Beispiel #6
0
 public void savePathNeuroSky()
 {
     GLPlayerPrefs.SetString(ProfileManager.Instance.currentEvaluationScope, "NeuroSkyMindwaveDataPath", neuroskyDataPath.text);
 }
Beispiel #7
0
 public void savePathEmotiv()
 {
     GLPlayerPrefs.SetString(ProfileManager.Instance.currentEvaluationScope, "EmotivInsightDataPath", emotivDataPath.text);
 }
Beispiel #8
0
 void SetEvaluationDefaultValues()
 {
     GLPlayerPrefs.SetString(currentEvaluationScope, "CurrentVisualization", "Sphere");
     GLPlayerPrefs.SetString(currentEvaluationScope, "CurrentInformationObject", "PlaneImage");
 }