Chatterer.chatterer.beep_filter_settings_gui C# (CSharp) Method

beep_filter_settings_gui() private method

private beep_filter_settings_gui ( int window_id ) : void
window_id int
return void
        private void beep_filter_settings_gui(int window_id)
        {
            GUILayout.BeginVertical();

            BeepSource source = null;

            foreach (BeepSource bm in beepsource_list)
            {
                if (bm.settings_window_id == window_id)
                {
                    source = bm;
                    break;
                }
            }

            if (source != null)
            {

                string[] filters = { "Chorus", "Dist", "Echo", "HiPass", "LoPass", "Reverb" };

                source.sel_filter = GUILayout.SelectionGrid(source.sel_filter, filters, 3, GUILayout.ExpandWidth(true));

                source.reverb_preset_index = combined_filter_settings_gui(source.sel_filter, source.chorus_filter, source.distortion_filter, source.echo_filter, source.highpass_filter, source.lowpass_filter, source.reverb_filter, source.reverb_preset_index);

                GUILayout.BeginHorizontal(GUILayout.ExpandWidth(true));

                GUIContent _content = new GUIContent();
                _content.text = "Copy all";
                _content.tooltip = "Copy all filter values to clipboard";
                if (GUILayout.Button(_content, GUILayout.ExpandWidth(false)))
                {
                    copy_all_beep_filters(source);
                }
                if (filters_clipboard != null)
                {
                    _content.text = "Paste all";
                    _content.tooltip = "Paste all filter values from clipboard";
                    if (GUILayout.Button(_content, GUILayout.ExpandWidth(false)))
                    {
                        paste_all_beep_filters(source);
                    }
                }
                GUILayout.Label(" ", GUILayout.ExpandWidth(true));  //spacer

                if (GUILayout.Button("Close", GUILayout.ExpandWidth(false))) source.show_settings_window = false;
                GUILayout.EndHorizontal();

                if (show_tooltips && GUI.tooltip != "") tooltips(source.settings_window_pos);
                //{
                //    float w = 5.5f * GUI.tooltip.Length;
                //    float x = (Event.current.mousePosition.x < source.settings_window_pos.width / 2) ? Event.current.mousePosition.x + 10 : Event.current.mousePosition.x - 10 - w;
                //    GUI.Box(new Rect(x, Event.current.mousePosition.y, w, 25f), GUI.tooltip, gs_tooltip);
                //}

                GUILayout.EndVertical();
                GUI.DragWindow();
            }
        }
chatterer