Add PluginUISoundEffectsEnabled to UiBuilder

This commit is contained in:
Haselnussbomber 2025-12-07 15:55:43 +01:00
parent 9fd59f736d
commit 8a5f1fd96d
No known key found for this signature in database
GPG key ID: BB905BB49E7295D1

View file

@ -219,6 +219,12 @@ public interface IUiBuilder
/// </summary>
bool ShouldUseReducedMotion { get; }
/// <summary>
/// Gets a value indicating whether the user has enabled the "Enable sound effects for plugin windows" setting.<br />
/// This setting is effected by the in-game "System Sounds" option and volume.
/// </summary>
bool PluginUISoundEffectsEnabled { get; }
/// <summary>
/// Loads an ULD file that can load textures containing multiple icons in a single texture.
/// </summary>
@ -560,6 +566,9 @@ public sealed class UiBuilder : IDisposable, IUiBuilder
/// </summary>
public bool ShouldUseReducedMotion => Service<DalamudConfiguration>.Get().ReduceMotions ?? false;
/// <inheritdoc />
public bool PluginUISoundEffectsEnabled => Service<DalamudConfiguration>.Get().EnablePluginUISoundEffects;
/// <summary>
/// Gets or sets a value indicating whether statistics about UI draw time should be collected.
/// </summary>