aboutsummaryrefslogtreecommitdiff
path: root/src/courtroom.h
diff options
context:
space:
mode:
authorin1tiate <32779090+in1tiate@users.noreply.github.com>2025-02-09 09:53:36 -0600
committerGitHub <noreply@github.com>2025-02-09 16:53:36 +0100
commita8156ed1b962df23736a8e315b5033036650b941 (patch)
treeab6867b166e83a571eeae4a7206179b56da02f09 /src/courtroom.h
parent494eb6ca1bc6e19084d831e9cf75d2e60f1f4e92 (diff)
Fix shownames toggle not being respected in several places, clean up implementation (#1080)
* Move showname switch to settings and fix it * let the append function handle shownames
Diffstat (limited to 'src/courtroom.h')
-rw-r--r--src/courtroom.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/courtroom.h b/src/courtroom.h
index 7c075b9d..dc8cdf3a 100644
--- a/src/courtroom.h
+++ b/src/courtroom.h
@@ -252,7 +252,7 @@ public:
// this function keeps the chatlog scrolled to the top unless there's text
// selected
// or the user isn't already scrolled to the top
- void append_ic_text(QString p_text, QString p_name = QString(), QString action = QString(), int color = 0, bool selfname = false, QDateTime timestamp = QDateTime::currentDateTime(), bool ghost = false);
+ void append_ic_text(QString p_text, QString p_name = QString(), QString p_char = QString(), QString action = QString(), int color = 0, bool selfname = false, QDateTime timestamp = QDateTime::currentDateTime(), bool ghost = false);
// clear sent messages that appear on the IC log but haven't been delivered
// yet to other players
@@ -409,6 +409,9 @@ private:
// format string for aforementioned log timestamp
QString log_timestamp_format;
+ // True, if the log and in-character display should use custom shownames.
+ bool custom_shownames = true;
+
// How long in miliseconds should the objection wait before appearing.
int objection_threshold = 1500;
@@ -939,8 +942,6 @@ private Q_SLOTS:
void focus_ic_input();
void on_additive_clicked();
- void on_showname_enable_clicked();
-
void on_evidence_button_clicked();
void on_evidence_context_menu_requested(const QPoint &pos);