client: Add Widget Animation Smoothing

This commit is contained in:
Owain van Brakel
2019-07-10 23:32:24 +02:00
parent e7b15d9cfd
commit e85fc0e7d0
14 changed files with 325 additions and 187 deletions

View File

@@ -65,4 +65,14 @@ public interface AnimationSmoothingConfig extends Config
return true;
}
@ConfigItem(
keyName = "smoothWidgetAnimations",
name = "Smooth Widget Animations",
description = "Configures whether the widget animations are smooth or not",
position = 4
)
default boolean smoothWidgetAnimations()
{
return true;
}
}

View File

@@ -69,6 +69,7 @@ public class AnimationSmoothingPlugin extends Plugin
client.setInterpolatePlayerAnimations(false);
client.setInterpolateNpcAnimations(false);
client.setInterpolateObjectAnimations(false);
client.setInterpolateWidgetAnimations(false);
}
@Subscribe
@@ -85,5 +86,6 @@ public class AnimationSmoothingPlugin extends Plugin
client.setInterpolatePlayerAnimations(config.smoothPlayerAnimations());
client.setInterpolateNpcAnimations(config.smoothNpcAnimations());
client.setInterpolateObjectAnimations(config.smoothObjectAnimations());
client.setInterpolateWidgetAnimations(config.smoothWidgetAnimations());
}
}