Exemplo n.º 1
0
    /// <summary>
    /// Provide controls for calling CamController functions
    /// </summary>
    void CameraControlsWindow(int windowID)
    {
        float lw = 200f;

        // camera perspective controls
        GUILayout.BeginHorizontal(GUILayout.Width(UI_Toolbar.I.innerWidth));
        GUILayout.Label("Camera Perspective: ", GUILayout.Width(lw));
        if (GUILayout.Button(CamController.viewMode.ToString()))
        {
            CamController.CycleViewMode();
        }
        GUILayout.EndHorizontal();

        // camera render mode controls
        GUILayout.BeginHorizontal(GUILayout.Width(UI_Toolbar.I.innerWidth));
        GUILayout.Label("Render Mode: ", GUILayout.Width(lw));
        if (GUILayout.Button(CamController.renderMode.ToString()))
        {
            CamController.CycleRenderMode();
        }
        GUILayout.EndHorizontal();

        // camera areas of interest
        GUILayout.BeginHorizontal(GUILayout.Width(UI_Toolbar.I.innerWidth));
        GUILayout.Label("Observing: ", GUILayout.Width(lw));
        if (GUILayout.Button(CamController.area.name))
        {
            CamController.CycleAreaOfInterest();
        }
        GUILayout.EndHorizontal();
    }