Merge pull request #972 from sdburns1998/smoothboyinc
client: Add Widget Animation Smoothing
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user