SetupGUI() public static method

public static SetupGUI ( ) : void
return void
        protected override void DrawWindowContents(int windowID)
        {
            GUIResources.SetupGUI();
            GUILayout.BeginVertical();
            behaviour.currentReplayTime = GUILayout.HorizontalSlider((float)behaviour.currentReplayTime, 0, (float)behaviour.totalReplayTime);

            GUILayout.BeginHorizontal(); // BEGIN outer container
            if (GUILayout.Button(playTex))
            {
                behaviour.isOffRails     = false;
                behaviour.playbackFactor = 1;
            }
            if (GUILayout.Button(ffTex))
            {
                behaviour.isOffRails      = false;
                behaviour.playbackFactor += 1;
            }
            if (GUILayout.Button(pauseTex))
            {
                behaviour.isOffRails     = false;
                behaviour.playbackFactor = 0;
            }
            if (GUILayout.Button(stopTex))
            {
                behaviour.isOffRails        = false;
                behaviour.playbackFactor    = 0;
                behaviour.currentReplayTime = 0;
            }
            GUILayout.EndHorizontal();

            GUILayout.EndVertical();
        }
        protected override void DrawWindowContents(int windowID)
        {
            GUIResources.SetupGUI();

            GUILayout.BeginVertical(); // BEGIN outer container
            GUILayout.BeginHorizontal();

            GUI.enabled = TrackManager.Instance.isRecordingAllowed();
            string recordText = "create new Track";

            if (!GUI.enabled)
            {
                recordText = "[ - NO SIGNAL! -]";
            }

            if (GUILayout.Button(recordText))
            {
                TrackManager.Instance.startNewTrack();
            }
            GUI.enabled = true;

            if (GUILayout.Button("Stop recording"))
            {
                TrackManager.Instance.stopRecording();
            }

            GUILayout.EndHorizontal();

            if (GUILayout.Button("Add Log Entry to current Path"))
            {
                if (TrackManager.Instance.IsRecording)
                {
                    ExplorerTrackBehaviour.Instance.logEntryWindow = new LogEntryWindow(TrackManager.Instance);
                    ExplorerTrackBehaviour.Instance.logEntryWindow.SetVisible(true);
                }
                else
                {
                    Debug.Log("Cannot add a Log Entry - no track is active/beeing recorded");
                }
            }


            createTrackList();

            GUILayout.BeginHorizontal();
            if (GUILayout.Button("Save Tracks"))
            {
                TrackManager.Instance.saveTracks();
                Save(new ConfigNode(GetConfigNodeName()));
            }
            if (GUILayout.Button("Restore from Files"))
            {
                TrackManager.Instance.restoreTracksFromFile();
            }

            GUILayout.EndHorizontal();

            GUILayout.BeginHorizontal();
            if (GUILayout.Button("High Precision", (mainBehaviour.RecordingInterval == 0.2f) ? GUIResources.ButtonToggledStyle : GUIResources.ButtonStyle))
            {
                mainBehaviour.RecordingInterval        = 0.2f;
                TrackManager.Instance.ChangeThresholds = new RecordingThresholds(2, 2, 0.05f);
            }
            if (GUILayout.Button("Medium Precision", (mainBehaviour.RecordingInterval == 1) ? GUIResources.ButtonToggledStyle : GUIResources.ButtonStyle))
            {
                mainBehaviour.RecordingInterval        = 1.0f;
                TrackManager.Instance.ChangeThresholds = new RecordingThresholds(10, 10, 0.1f);
            }
            if (GUILayout.Button("Low Precision", (mainBehaviour.RecordingInterval == 5) ? GUIResources.ButtonToggledStyle : GUIResources.ButtonStyle))
            {
                mainBehaviour.RecordingInterval        = 5.0f;
                TrackManager.Instance.ChangeThresholds = new RecordingThresholds(20, 20, 0.25f);
            }
            GUILayout.EndHorizontal();

            GUILayout.EndVertical();

            SetTooltipText();
            DrawToolTip();
        }