From c80c561c557e1ae4bfc7c991749bcbb4694ea0de Mon Sep 17 00:00:00 2001 From: goaaats Date: Wed, 27 Mar 2024 22:33:30 +0100 Subject: [PATCH] expose UiBuilder.ShouldUseReducedMotion --- Dalamud/Interface/UiBuilder.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dalamud/Interface/UiBuilder.cs b/Dalamud/Interface/UiBuilder.cs index 2c2ca9725..b80fe0b82 100644 --- a/Dalamud/Interface/UiBuilder.cs +++ b/Dalamud/Interface/UiBuilder.cs @@ -347,6 +347,12 @@ public sealed class UiBuilder : IDisposable /// public IFontAtlas FontAtlas { get; } + /// + /// 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. + /// + public bool ShouldUseReducedMotion => Service.Get().ReduceMotions ?? false; + /// /// Gets or sets a value indicating whether statistics about UI draw time should be collected. ///