aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorin1tiate <32779090+in1tiate@users.noreply.github.com>2021-01-09 09:09:18 -0600
committerGitHub <noreply@github.com>2021-01-09 18:09:18 +0300
commit079c45e298e4198b9c6828603a3e9a71b07a08a7 (patch)
tree7224ab4d441fbe4ad1c8837b8dd0d347c6fc1fae /include
parentb36263934cc3d1ed911235df27744fc591be6a70 (diff)
Define IC Log colors independent of character, define message colors according to character (#323)
* IC Log colors now defined independent of character * Fix regression causing incorrect colors in the viewport * fix goof that broke chat scrolling * Only regenerate color vector when it's needed
Diffstat (limited to 'include')
-rw-r--r--include/courtroom.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/courtroom.h b/include/courtroom.h
index eb33fd8..6a00bdc 100644
--- a/include/courtroom.h
+++ b/include/courtroom.h
@@ -412,6 +412,17 @@ private:
// List of associated RGB colors for this color index
QVector<QColor> color_rgb_list;
+ // Same as above but populated from misc/default's config
+ QVector<QColor> default_color_rgb_list;
+
+ // Get a color index from an arbitrary misc config
+ void gen_char_rgb_list(QString p_char);
+ QVector<QColor> char_color_rgb_list;
+
+ // Misc we used for the last message, and the one we're using now. Used to avoid loading assets when it's not needed
+ QString current_misc;
+ QString last_misc;
+
// List of markdown start characters, their index is tied to the color index
QStringList color_markdown_start_list;