protected void DrawAdd()
        {
            GUILayout.BeginHorizontal();
            GUILayout.Label("Controller name");
            newControllerName = GUILayout.TextArea(newControllerName);
            GUILayout.EndHorizontal();
            GUILayout.Label("Controller type");
            int controllerFlagChanged = GUILayout.SelectionGrid(controllerFlag, controllerTypes, Mathf.Min(controllerTypes.Length, 4), GUIResources.GetStyle("radio_text_button"));

            if (controllerFlagChanged != controllerFlag)
            {
                controllerFlag = controllerFlagChanged;
            }

            DrawControllerOptions();

            if (GUILayout.Button("Add"))
            {
                fxMod.AddController(CreateNewController());
                showWindow = false;
            }
            if (GUILayout.Button("Cancel"))
            {
                showWindow = false;
            }
        }
        protected void DrawAdd()
        {
            GUILayout.BeginHorizontal();
            GUILayout.Label("Controller name");
            newControllerName = GUILayout.TextArea(newControllerName);
            GUILayout.EndHorizontal();
            GUILayout.Label("Controller type");

            UpdateControllerSelection();
            DrawControllerOptions();

            if (GUILayout.Button("Add"))
            {
                fxMod.AddController(CreateNewController());
                showWindow = false;
            }

            if (GUILayout.Button("Cancel"))
            {
                showWindow = false;
            }
        }