From a2f1a79bc948effbfd76c882f81479f519806007 Mon Sep 17 00:00:00 2001 From: in1tiate <32779090+in1tiate@users.noreply.github.com> Date: Sun, 8 Mar 2020 05:44:49 -0500 Subject: add theme support --- include/courtroom.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/courtroom.h') diff --git a/include/courtroom.h b/include/courtroom.h index 41e88e74..30c3b948 100644 --- a/include/courtroom.h +++ b/include/courtroom.h @@ -209,6 +209,9 @@ public: void append_ms_chatmessage(QString f_name, QString f_message); void append_server_chatmessage(QString p_name, QString p_message, QString p_colour); + //check whether or not current theme has images for buttons with fallback text + void detect_fallback_text(); + //these functions handle chatmessages sequentially. //The process itself is very convoluted and merits separate documentation //But the general idea is objection animation->pre animation->talking->idle @@ -412,6 +415,15 @@ private: //is set to true if the bg folder contains defensedesk.png, prosecutiondesk.png and stand.png bool is_ao2_bg = false; + // whether or not to use text for buttons instead of images, true is text + bool change_char_fallback = true; + bool reload_theme_fallback = true; + bool settings_fallback = true; + bool call_mod_fallback = true; + bool casing_fallback = true; + bool amswap_fallback = true; + bool ooc_toggle_fallback = true; + //whether the ooc chat is server or master chat, true is server bool server_ooc = true; -- cgit