aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/cc/polyfrost/oneconfig/gui/animations/DummyAnimation.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/cc/polyfrost/oneconfig/gui/animations/DummyAnimation.java')
-rw-r--r--src/main/java/cc/polyfrost/oneconfig/gui/animations/DummyAnimation.java12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/main/java/cc/polyfrost/oneconfig/gui/animations/DummyAnimation.java b/src/main/java/cc/polyfrost/oneconfig/gui/animations/DummyAnimation.java
index dc5bc26..7363ed6 100644
--- a/src/main/java/cc/polyfrost/oneconfig/gui/animations/DummyAnimation.java
+++ b/src/main/java/cc/polyfrost/oneconfig/gui/animations/DummyAnimation.java
@@ -1,15 +1,23 @@
package cc.polyfrost.oneconfig.gui.animations;
public class DummyAnimation extends Animation {
+ protected final float value;
+
/**
* @param value The value that is returned
*/
public DummyAnimation(float value) {
super(value, value, value, false);
+ this.value = value;
+ }
+
+ @Override
+ public float get(float deltaTime) {
+ return value;
}
@Override
- protected float animate(float timePassed, float duration, float start, float change) {
- return start;
+ protected float animate(float x) {
+ return x;
}
}