diff options
| author | shedaniel <daniel@shedaniel.me> | 2021-03-20 16:40:39 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2021-03-20 16:40:39 +0800 |
| commit | 2cd3f0737b2008e37f8eaadf479312c60d36e7bc (patch) | |
| tree | 94766ef4f9f33c66d28678e052cfb27d48f4094a /runtime/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java | |
| parent | dae95200cbb2eb3b8851ca955ffd770e0892dedd (diff) | |
| download | RoughlyEnoughItems-2cd3f0737b2008e37f8eaadf479312c60d36e7bc.tar.gz RoughlyEnoughItems-2cd3f0737b2008e37f8eaadf479312c60d36e7bc.tar.bz2 RoughlyEnoughItems-2cd3f0737b2008e37f8eaadf479312c60d36e7bc.zip | |
Allow customizing what part of REI should animate, disable config screen animation by default
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'runtime/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java')
| -rw-r--r-- | runtime/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java b/runtime/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java index ad1ea29b3..9c019f19a 100644 --- a/runtime/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java +++ b/runtime/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java @@ -101,8 +101,18 @@ public class ConfigObjectImpl implements ConfigObject, ConfigData { } @Override - public boolean isReducedMotion() { - return basics.reducedMotion; + public boolean isConfigScreenAnimated() { + return basics.motion.configScreenAnimation; + } + + @Override + public boolean isCreditsScreenAnimated() { + return basics.motion.creditsScreenAnimation; + } + + @Override + public boolean isFavoritesAnimated() { + return basics.motion.favoritesAnimation; } @Override @@ -400,7 +410,14 @@ public class ConfigObjectImpl implements ConfigObject, ConfigData { @Comment("Declares whether REI is visible.") @ConfigEntry.Gui.Excluded private boolean overlayVisible = true; @ConfigEntry.Gui.EnumHandler(option = ConfigEntry.Gui.EnumHandler.EnumDisplayOption.BUTTON) private ItemCheatingStyle cheatingStyle = ItemCheatingStyle.GRAB; - private boolean reducedMotion = false; + @ConfigEntry.Gui.CollapsibleObject + private Motion motion = new Motion(); + } + + public static class Motion { + private boolean configScreenAnimation = false; + private boolean creditsScreenAnimation = true; + private boolean favoritesAnimation = true; } public static class KeyBindings { |
