Chatterer.chatterer.draw_GUI C# (CSharp) Method

draw_GUI() protected method

protected draw_GUI ( ) : void
return void
        protected void draw_GUI()
        {
            //Apply a skin
            if (skin_index == 0) GUI.skin = null;
            else GUI.skin = g_skin_list[skin_index - 1];

            if (gui_styles_set == false) set_gui_styles();  //run this once to set a few GUIStyles

            int window_id = window_base_id;

            //main window
            if (hide_all_windows == false) main_window_pos = GUILayout.Window(window_id, main_window_pos, main_gui, main_window_title + this_version, GUILayout.Height(10f), GUILayout.Width(280f));

            //probe sample selector
            probe_sample_selector_window_id = ++window_id;
            if (hide_all_windows == false && show_probe_sample_selector) probe_sample_selector_window_pos = GUILayout.Window(probe_sample_selector_window_id, probe_sample_selector_window_pos, probe_sample_selector_gui, "Sample Selector", GUILayout.Height(350f), GUILayout.Width(280f));

            //Background sample
            AAE_background_sample_selector_window_id = ++window_id;
            if (hide_all_windows == false && show_AAE_background_sample_selector) AAE_background_sample_selector_window_pos = GUILayout.Window(AAE_background_sample_selector_window_id, AAE_background_sample_selector_window_pos, AAE_background_sample_selector_gui, "Background Sample Selector", GUILayout.Height(350f), GUILayout.Width(280f));

            //lab window
            lab_window_id = ++window_id;
            if (hide_all_windows == false && show_lab_gui) lab_window_pos = GUILayout.Window(lab_window_id, lab_window_pos, testing_gui, "The Lab", GUILayout.Height(10f), GUILayout.Width(300f));

            //chatter filters
            chatter_filter_settings_window_id = ++window_id;
            if (hide_all_windows == false && show_chatter_filter_settings)
            {
                chatter_filter_settings_window_pos = GUILayout.Window(chatter_filter_settings_window_id, chatter_filter_settings_window_pos, chatter_filter_settings_gui, "Chatter Filters", GUILayout.Height(10f), GUILayout.Width(280f));
            }

            //beep filters
            foreach (BeepSource source in beepsource_list)
            {
                source.settings_window_id = ++window_id;
                if (hide_all_windows == false && source.show_settings_window) source.settings_window_pos = GUILayout.Window(source.settings_window_id, source.settings_window_pos, beep_filter_settings_gui, "Beep " + source.beep_name + " Filters", GUILayout.Height(10f), GUILayout.Width(280f));
            }
        }
chatterer