From b040449f7fd6ddf404e81d4b44c1726827959aa9 Mon Sep 17 00:00:00 2001 From: Crystalwarrior Date: Wed, 27 Jan 2021 18:20:56 +0300 Subject: Redesign the text display speed delay to be more modular by introducing a "base display speed" variable --- include/courtroom.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/courtroom.h b/include/courtroom.h index bf33581..d20c580 100644 --- a/include/courtroom.h +++ b/include/courtroom.h @@ -336,7 +336,8 @@ private: bool message_is_centered = false; int current_display_speed = 3; - int message_display_speed[7] = {5, 10, 25, 40, 50, 70, 90}; + int base_display_speed = 40; + double message_display_mult[7] = {0.125, 0.25, 0.65, 1, 1.25, 1.75, 2.25}; // The character ID of the character this user wants to appear alongside with. int other_charid = -1; -- cgit From 423fe3d3fe5b7bce2c3879d332d5ba5e08ccd954 Mon Sep 17 00:00:00 2001 From: Crystalwarrior Date: Wed, 27 Jan 2021 19:18:43 +0300 Subject: Add the setting for the text scrawl --- include/aoapplication.h | 3 +++ include/aooptionsdialog.h | 2 ++ include/courtroom.h | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/aoapplication.h b/include/aoapplication.h index c217dad..9fe1d40 100644 --- a/include/aoapplication.h +++ b/include/aoapplication.h @@ -229,6 +229,9 @@ public: // Current wait time between messages for the queue system int stay_time(); + // Returns the letter display speed during text scrawl in in-character messages + int get_text_scrawl(); + // Returns Minimum amount of time (in miliseconds) that must pass before the next Enter key press will send your IC message. (new behaviour) int get_chat_ratelimit(); diff --git a/include/aooptionsdialog.h b/include/aooptionsdialog.h index 74fc9af..423b88e 100644 --- a/include/aooptionsdialog.h +++ b/include/aooptionsdialog.h @@ -58,6 +58,8 @@ private: QCheckBox *ui_desync_logs_cb; QLabel *ui_instant_objection_lbl; QCheckBox *ui_instant_objection_cb; + QLabel *ui_text_scrawl_lbl; + QSpinBox *ui_text_scrawl_spinbox; QLabel *ui_chat_ratelimit_lbl; QSpinBox *ui_chat_ratelimit_spinbox; QLabel *ui_log_ic_actions_lbl; diff --git a/include/courtroom.h b/include/courtroom.h index d20c580..52a6cde 100644 --- a/include/courtroom.h +++ b/include/courtroom.h @@ -336,7 +336,7 @@ private: bool message_is_centered = false; int current_display_speed = 3; - int base_display_speed = 40; + int text_scrawl = 40; double message_display_mult[7] = {0.125, 0.25, 0.65, 1, 1.25, 1.75, 2.25}; // The character ID of the character this user wants to appear alongside with. -- cgit From d1e7b2920b8ab0a1ae1488ea79db0d4a5a3173da Mon Sep 17 00:00:00 2001 From: Crystalwarrior Date: Wed, 27 Jan 2021 20:05:06 +0300 Subject: Refactor "text scrawl" to "text crawl" (sounds more simple to understand than scrawl tbh) --- include/aoapplication.h | 4 ++-- include/aooptionsdialog.h | 4 ++-- include/courtroom.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/aoapplication.h b/include/aoapplication.h index 9fe1d40..8b248cc 100644 --- a/include/aoapplication.h +++ b/include/aoapplication.h @@ -229,8 +229,8 @@ public: // Current wait time between messages for the queue system int stay_time(); - // Returns the letter display speed during text scrawl in in-character messages - int get_text_scrawl(); + // Returns the letter display speed during text crawl in in-character messages + int get_text_crawl(); // Returns Minimum amount of time (in miliseconds) that must pass before the next Enter key press will send your IC message. (new behaviour) int get_chat_ratelimit(); diff --git a/include/aooptionsdialog.h b/include/aooptionsdialog.h index 423b88e..908d918 100644 --- a/include/aooptionsdialog.h +++ b/include/aooptionsdialog.h @@ -58,8 +58,8 @@ private: QCheckBox *ui_desync_logs_cb; QLabel *ui_instant_objection_lbl; QCheckBox *ui_instant_objection_cb; - QLabel *ui_text_scrawl_lbl; - QSpinBox *ui_text_scrawl_spinbox; + QLabel *ui_text_crawl_lbl; + QSpinBox *ui_text_crawl_spinbox; QLabel *ui_chat_ratelimit_lbl; QSpinBox *ui_chat_ratelimit_spinbox; QLabel *ui_log_ic_actions_lbl; diff --git a/include/courtroom.h b/include/courtroom.h index 52a6cde..fe3a171 100644 --- a/include/courtroom.h +++ b/include/courtroom.h @@ -336,7 +336,7 @@ private: bool message_is_centered = false; int current_display_speed = 3; - int text_scrawl = 40; + int text_crawl = 40; double message_display_mult[7] = {0.125, 0.25, 0.65, 1, 1.25, 1.75, 2.25}; // The character ID of the character this user wants to appear alongside with. -- cgit