@@ -121,6 +121,9 @@ class Courtroom : public QMainWindow {
121121
122122 void character_loading_finished ();
123123
124+ //
125+ void set_courtroom_size ();
126+
124127 // sets position of widgets based on theme ini files
125128 void set_widgets ();
126129
@@ -140,18 +143,15 @@ class Courtroom : public QMainWindow {
140143 void set_fonts (QString p_char = " " );
141144
142145 // sets dropdown menu stylesheet
143- void set_dropdown (QWidget *widget);
146+ void set_stylesheet (QWidget *widget);
144147
145148 // helper funciton that call above function on the relevant widgets
146- void set_dropdowns ();
149+ void set_stylesheets ();
147150
148151 void set_window_title (QString p_title);
149152
150- // reads theme inis and sets size and pos based on the identifier
151- void set_size_and_pos (QWidget *p_widget, QString p_identifier);
152-
153- // reads theme and char inis and sets size and pos based on the identifier
154- void set_size_and_pos (QWidget *p_widget, QString p_identifier, QString p_char);
153+ // reads theme and sets size and pos based on the identifier (using p_misc if provided)
154+ void set_size_and_pos (QWidget *p_widget, QString p_identifier, QString p_misc=" " );
155155
156156 // reads theme inis and returns the size and pos as defined by it
157157 QPoint get_theme_pos (QString p_identifier);
@@ -165,7 +165,7 @@ class Courtroom : public QMainWindow {
165165 void set_background (QString p_background, bool display = false );
166166
167167 // sets the local character pos/side to use.
168- void set_side (QString p_side, bool block_signals= true );
168+ void set_side (QString p_side);
169169
170170 // sets the pos dropdown
171171 void set_pos_dropdown (QStringList pos_dropdowns);
@@ -576,10 +576,6 @@ class Courtroom : public QMainWindow {
576576 int evidence_rows = 3 ;
577577 int max_evidence_on_page = 18 ;
578578
579- // is set to true if the bg folder contains defensedesk.png,
580- // prosecutiondesk.png and stand.png
581- bool is_ao2_bg = false ;
582-
583579 // whether the ooc chat is server or master chat, true is server
584580 bool server_ooc = true ;
585581
@@ -826,7 +822,7 @@ private slots:
826822 void music_random ();
827823 void music_list_expand_all ();
828824 void music_list_collapse_all ();
829- void music_stop ();
825+ void music_stop (bool no_effects = false );
830826 void on_area_list_double_clicked (QTreeWidgetItem *p_item, int column);
831827
832828 void select_emote (int p_id);
@@ -838,6 +834,7 @@ private slots:
838834
839835 void on_emote_dropdown_changed (int p_index);
840836 void on_pos_dropdown_changed (int p_index);
837+ void on_pos_dropdown_changed (QString p_text);
841838 void on_pos_remove_clicked ();
842839
843840 void on_iniswap_dropdown_changed (int p_index);
0 commit comments