Exemplo n.º 1
0
    private void OnGUI()
    {
        // Draw the title.
        GuiHelpers.DrawText("CALIBRATION", new Vector2(10, 10), 36, GuiHelpers.Magenta);

        if (IsSupportedEngineVersion())
        {
            // Draw the "Recalibrate" button.
            if (GUI.Button(new Rect(10, 70, 150, 30), "Recalibrate"))
            {
                StartWaitingForCalibration();

                _host.LaunchRecalibration();
            }

            // Draw the "Test calibration" button.
            if (GUI.Button(new Rect(10, 110, 150, 30), "Test calibration"))
            {
                _host.LaunchCalibrationTesting();
            }
        }
        else
        {
            // The current engine is not supported.
            GuiHelpers.DrawRequiredEngineVersionError("1.1");
        }
    }
Exemplo n.º 2
0
    private void OnGUI()
    {
        // Draw the title.
        GuiHelpers.DrawText("PROFILES", new Vector2(10, 10), 36, GuiHelpers.Magenta);

        if (!IsSupportedEngineVersion())
        {
            // The current engine is not supported.
            GuiHelpers.DrawRequiredEngineVersionError("1.3");
            return;
        }

        UpdateProfiles(
            _host.UserProfileNames,
            _host.UserProfileName);
    }