Ejemplo n.º 1
0
    static void ShowWindow()
    {
        Rect rect = new Rect(0, 0, 500, 650);

        _window = (MachineTestEditorWindow)EditorWindow.GetWindowWithRect(typeof(MachineTestEditorWindow), rect, true);
        _window.Show();
    }
Ejemplo n.º 2
0
    void OnGUI()
    {
        _scrollPosition = EditorGUILayout.BeginScrollView(_scrollPosition, false, true);

        MachineTestEditorWindow.ShowSingleUserConfig(_testConfig);

        GUILayout.Space(10);

        MachineTestEditorWindow.ShowAllUsersConfig(_testConfig);

        _engine.UpdateTestConfigToGenConfig(_testConfig, _genConfig);

        GUILayout.Space(10);

        _genConfig._machineName = EditorGUILayout.TextField("Machine name", _genConfig._machineName);

        GUILayout.Space(10);

        ShowLimitationConfig(_genConfig);

        GUILayout.Space(10);

        ShowOtherConfig(_genConfig);

        GUILayout.Space(10);

        if (GUILayout.Button("Save config", GUILayout.Width(160.0f)))
        {
            SaveConfigButtonDown();
        }

        if (GUILayout.Button("Run test", GUILayout.Width(160.0f)))
        {
            RunButtonDown();
        }

        EditorGUILayout.EndScrollView();
    }