From 7b4b297a22e97046a3fca860ad3faf08438c6a8c Mon Sep 17 00:00:00 2001 From: Leifa♥ <26681464+TrickyLeifa@users.noreply.github.com> Date: Fri, 24 Jun 2022 01:58:17 +0200 Subject: 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 --- include/aoapplication.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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=""); -- cgit