diff options
| author | Crystalwarrior <varsash@gmail.com> | 2019-09-17 23:50:01 +0300 |
|---|---|---|
| committer | Crystalwarrior <varsash@gmail.com> | 2019-09-17 23:50:01 +0300 |
| commit | e151964785301269500b96ecfd25dbdf227f55f8 (patch) | |
| tree | 5dae9431d3a1b66a6be29a41e1d0b8b422a90919 /include | |
| parent | 8409b71611d8c213fd7286359d4404f2a181e59b (diff) | |
Add a sfx list that allows you to choose custom sfx from a list. Allows the same amount of customization as the iniswap list.
It tries to read soundlist.ini in the character folder first. If it can't find it, it will fall back to the theme's character_soundlist.ini.
It will only save the soundlist.ini if it differs from the character.soundlist.ini.
There is currently no way to dynamically change sound delay atm but the function for it is there.
Add more tooltips, my favorite!
Diffstat (limited to 'include')
| -rw-r--r-- | include/courtroom.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/courtroom.h b/include/courtroom.h index 91f1f9ac..8d1588e9 100644 --- a/include/courtroom.h +++ b/include/courtroom.h @@ -467,6 +467,9 @@ private: QComboBox *ui_iniswap_dropdown; AOButton *ui_iniswap_remove; + QComboBox *ui_sfx_dropdown; + AOButton *ui_sfx_remove; + AOImage *ui_defense_bar; AOImage *ui_prosecution_bar; @@ -608,11 +611,18 @@ private slots: void on_emote_dropdown_changed(int p_index); void on_pos_dropdown_changed(int p_index); - void on_iniswap_dropdown_changed(int p_index); + void on_iniswap_dropdown_changed(int p_index); void set_iniswap_dropdown(); void on_iniswap_remove_clicked(); + void on_sfx_dropdown_changed(int p_index); + void set_sfx_dropdown(); + void on_sfx_remove_clicked(); + + QString get_char_sfx(); + int get_char_sfx_delay(); + void on_evidence_name_edited(QString text); void on_evidence_image_name_edited(); void on_evidence_image_button_clicked(); |
