aboutsummaryrefslogtreecommitdiff
path: root/include/aoapplication.h
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 /include/aoapplication.h
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 'include/aoapplication.h')
-rw-r--r--include/aoapplication.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/aoapplication.h b/include/aoapplication.h
index 4c3a83f3..cf9eb2b2 100644
--- a/include/aoapplication.h
+++ b/include/aoapplication.h
@@ -361,6 +361,10 @@ public:
// Returns the color from the misc folder.
QColor get_chat_color(QString p_identifier, QString p_chat);
+ // Returns the value with p_identifier from penalty/penalty.ini in the current
+ // theme path
+ QString get_penalty_value(QString p_identifier);
+
// Returns the sfx with p_identifier from courtroom_sounds.ini in the current theme path
QString get_court_sfx(QString p_identifier, QString p_misc="");