From 079c45e298e4198b9c6828603a3e9a71b07a08a7 Mon Sep 17 00:00:00 2001 From: in1tiate <32779090+in1tiate@users.noreply.github.com> Date: Sat, 9 Jan 2021 09:09:18 -0600 Subject: 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 --- include/courtroom.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include') 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 color_rgb_list; + // Same as above but populated from misc/default's config + QVector default_color_rgb_list; + + // Get a color index from an arbitrary misc config + void gen_char_rgb_list(QString p_char); + QVector 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; -- cgit