From cf91cc03f849bba498cd8d91505bf8db04f8b1f9 Mon Sep 17 00:00:00 2001 From: Crystalwarrior Date: Sat, 30 Jul 2022 15:55:58 +0300 Subject: 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 Co-authored-by: oldmud0 --- src/text_file_functions.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/text_file_functions.cpp') 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() + .startsWith("true"); +} + bool AOApplication::get_evidence_double_click() { return configini->value("evidence_double_click", "true").value() -- cgit