diff options
| author | Crystalwarrior <Varsash@Gmail.com> | 2022-07-30 15:55:58 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-30 14:55:58 +0200 |
| commit | cf91cc03f849bba498cd8d91505bf8db04f8b1f9 (patch) | |
| tree | 9be4fcd65a824bdd95cd9d884957a12f99b60e22 /src/text_file_functions.cpp | |
| parent | d9bdb7e6bca8c5168d1b280fce4ee60c894a9a7e (diff) | |
Add settings option for "sfx_on_idle" which allows you to play a custom SFX alongside an Idle emote (#744)
* Add an "sfx_on_idle" FL packet flag, UNFORTUNATELY servers have to go out of their way to support this feature due to clients below 2.10 fucking spamming sfx for 2.10 otherwise
* Revert feature flag, implement a method that works regardless of server instead
* Revert "Revert feature flag, implement a method that works regardless of server instead"
This reverts commit c14b4fb2a1bbf2796db4a26e83609ba743826655.
* Stop using FL packet, but make SFX on Idle a client-side setting to reduce confusion and reliance on servers for a client feature to a minimum.
This reverts commit 687e64e37839b77923c93d13f971ee6750bd4330.
* Update src/aooptionsdialog.cpp
Co-authored-by: stonedDiscord <Tukz@gmx.de>
Co-authored-by: oldmud0 <oldmud0@users.noreply.github.com>
Diffstat (limited to 'src/text_file_functions.cpp')
| -rw-r--r-- | src/text_file_functions.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/text_file_functions.cpp b/src/text_file_functions.cpp index 48e13592..74a8ab46 100644 --- a/src/text_file_functions.cpp +++ b/src/text_file_functions.cpp @@ -1228,6 +1228,12 @@ bool AOApplication::get_player_count_optout() .startsWith("true"); } +bool AOApplication::get_sfx_on_idle() +{ + return configini->value("sfx_on_idle", "false").value<QString>() + .startsWith("true"); +} + bool AOApplication::get_evidence_double_click() { return configini->value("evidence_double_click", "true").value<QString>() |
