aboutsummaryrefslogtreecommitdiff
path: root/src/text_file_functions.cpp
diff options
context:
space:
mode:
authorLeifa♥ <26681464+TrickyLeifa@users.noreply.github.com>2022-06-24 01:58:17 +0200
committerGitHub <noreply@github.com>2022-06-23 18:58:17 -0500
commit7b4b297a22e97046a3fca860ad3faf08438c6a8c (patch)
tree9e8630a6b27ac82b0162163860ab87718f013f7a /src/text_file_functions.cpp
parent0be8d0f5aeb64ae9abae24c2669bb45d440d9ca6 (diff)
Added penalty effects (#786)
Themes can be configured to play an SFX and/or effect when the HP bar increases or decreases. Effects can be any defined effect, or a built-in effect such as "screenshake" or "flash". Resolves AttorneyOnline/AO2-Client#743
Diffstat (limited to 'src/text_file_functions.cpp')
-rw-r--r--src/text_file_functions.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/text_file_functions.cpp b/src/text_file_functions.cpp
index 4073c054..5f3de175 100644
--- a/src/text_file_functions.cpp
+++ b/src/text_file_functions.cpp
@@ -521,6 +521,13 @@ QColor AOApplication::get_chat_color(QString p_identifier, QString p_chat)
return return_color;
}
+QString AOApplication::get_penalty_value(QString p_identifier)
+{
+ return get_config_value(p_identifier, "penalty/penalty.ini", current_theme,
+ get_subtheme(), default_theme, "");
+}
+
+
QString AOApplication::get_court_sfx(QString p_identifier, QString p_misc)
{
QString value = get_config_value(p_identifier, "courtroom_sounds.ini", current_theme, get_subtheme(), default_theme, p_misc);