Exemplo n.º 1
0
    /// <summary>
    /// Shows the <see cref="PopupWindow"/> telling you that you should fix all errors before exporting the <see cref="ClickableElement"/>
    /// </summary>
    private void ShowExportPopup()
    {
        EditorGUILayout.LabelField("Fix all the errors before exporting code", Styles.WarningLabel, GUILayout.Width(this.position.width - 10), GUILayout.ExpandHeight(true));

        GUILayout.Space(30);

        //GUI.backgroundColor = Color.grey;
        if (GUILayout.Button("Ok"))
        {
            this.Close();
        }

        GUI.backgroundColor = Color.grey;
        if (GUILayout.Button("Export anyway"))
        {
            this.Close();
            NodeEditorUtilities.GenerateElemScript(exportingElem);
        }
    }