aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCrystalwarrior <Varsash@Gmail.com>2020-07-04 00:34:09 +0300
committerGitHub <noreply@github.com>2020-07-03 16:34:09 -0500
commit0a31a20266adcbd9afd6ef54abe4123f5f1708a3 (patch)
tree279abf8f10cdaf12c587f5596e8b59a6e2cd5e6b /include
parent5cd9da37063bccab1d00931091df3f8b71225540 (diff)
Add a setting to turn on/off custom character-defined chatboxes (#166)
* Add a new "Custom Chatboxes" settings option to enable/disable char.ini setting custom chat box designs per-character * Fix chat_arrow being incorrectly updated between character messages if the custom chatbox modified the chat arrow positioning/size in any way * brackets matter
Diffstat (limited to 'include')
-rw-r--r--include/aoapplication.h5
-rw-r--r--include/aooptionsdialog.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/include/aoapplication.h b/include/aoapplication.h
index 18f6ef24..af357d0c 100644
--- a/include/aoapplication.h
+++ b/include/aoapplication.h
@@ -200,6 +200,11 @@ public:
// from the config.ini.
bool is_stickypres_enabled();
+ // Returns the value of whether custom chatboxes should be a thing.
+ // from the config.ini.
+ // I am increasingly maddened by the lack of dynamic auto-generation system for settings.
+ bool is_customchat_enabled();
+
// Returns the value of the maximum amount of lines the IC chatlog
// may contain, from config.ini.
int get_max_log_size();
diff --git a/include/aooptionsdialog.h b/include/aooptionsdialog.h
index 7e983a3f..06684ef4 100644
--- a/include/aooptionsdialog.h
+++ b/include/aooptionsdialog.h
@@ -78,6 +78,9 @@ private:
QLabel *ui_stickypres_lbl;
QCheckBox *ui_stickypres_cb;
+ QLabel *ui_customchat_lbl;
+ QCheckBox *ui_customchat_cb;
+
QWidget *ui_callwords_tab;
QWidget *ui_callwords_widget;
QVBoxLayout *ui_callwords_layout;