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 --- include/aoapplication.h | 3 +++ include/aooptionsdialog.h | 3 +++ 2 files changed, 6 insertions(+) (limited to 'include') diff --git a/include/aoapplication.h b/include/aoapplication.h index 5367400..ce74215 100644 --- a/include/aoapplication.h +++ b/include/aoapplication.h @@ -535,6 +535,9 @@ public: // Get whether to opt out of player count metrics sent to the master server bool get_player_count_optout(); + // Get if sfx can be sent to play on idle + bool get_sfx_on_idle(); + // Whether opening evidence requires a single or double click bool get_evidence_double_click(); diff --git a/include/aooptionsdialog.h b/include/aooptionsdialog.h index a5b1e4d..d78f8e9 100644 --- a/include/aooptionsdialog.h +++ b/include/aooptionsdialog.h @@ -112,6 +112,9 @@ private: QLabel *ui_category_stop_lbl; QCheckBox *ui_category_stop_cb; + QLabel *ui_sfx_on_idle_lbl; + QCheckBox *ui_sfx_on_idle_cb; + QWidget *ui_callwords_tab; QWidget *ui_callwords_widget; QVBoxLayout *ui_callwords_layout; -- cgit