Ejemplo n.º 1
0
    void OnGUI()
    {
        if (browse && fb.draw())
        {
            if (fb.outputFile == null)
            {
                Debug.Log("Cancel hit");
                browse = false;
            }
            else
            {
                Debug.Log("Ouput File = \"" + fb.outputFile.ToString() + "\"");
                filename = fb.outputFile.ToString();
                browse   = false;
                loadFile();
            }
        }
        System.TimeSpan ts = System.TimeSpan.FromMilliseconds(current);
        currentText.text = string.Format("{0:00}:{1:00}:{2:00}:{3:00}", ts.Hours, ts.Minutes, ts.Seconds, ts.Milliseconds);

        settings.drawGUI();

        if (setupAnnotation.isSetupTiersActive)
        {
            setupAnnotation.drawSetupTiers();
        }

        if (setupAnnotation.isSetupActionActive)
        {
            setupAnnotation.drawSetupActions();
        }


        if (fb.outputFile != null && fileLoaded)
        {
            loadedFileText.text = "Loaded File: " + fb.outputFile.ToString();
        }
    }