expose UiBuilder.ShouldUseReducedMotion

This commit is contained in:
goaaats 2024-03-27 22:33:30 +01:00
parent b2df6e2a2b
commit c80c561c55

View file

@ -347,6 +347,12 @@ public sealed class UiBuilder : IDisposable
/// </summary>
public IFontAtlas FontAtlas { get; }
/// <summary>
/// Gets a value indicating whether or not to use "reduced motion". This usually means that you should use less
/// intrusive animations, or disable them entirely.
/// </summary>
public bool ShouldUseReducedMotion => Service<DalamudConfiguration>.Get().ReduceMotions ?? false;
/// <summary>
/// Gets or sets a value indicating whether statistics about UI draw time should be collected.
/// </summary>