56 lines
1.9 KiB
Java
56 lines
1.9 KiB
Java
package org.saturnclient.config;
|
|
|
|
import org.saturnclient.config.manager.ConfigManager;
|
|
import org.saturnclient.config.manager.Property;
|
|
|
|
public class AnimationConfig {
|
|
public static ConfigManager config;
|
|
|
|
// Logo
|
|
public static final AnimationConfig logo = new AnimationConfig(true, 700, 0);
|
|
|
|
// Main menu
|
|
public static final AnimationConfig mainMenu = new AnimationConfig(true, 700, 120);
|
|
|
|
// Mod menu
|
|
public static final AnimationConfig modMenu = new AnimationConfig(true, 700, 20);
|
|
|
|
// Shift menu
|
|
public static final AnimationConfig shiftMenu = new AnimationConfig(true, 700, 100);
|
|
|
|
// Cosmetics menu
|
|
public static final AnimationConfig cosmeticsMenu = new AnimationConfig(true, 700, 40);
|
|
|
|
// Emote wheel
|
|
public static final AnimationConfig emoteWheel = new AnimationConfig(true, 700, 40);
|
|
|
|
public static void init(ConfigManager parent) {
|
|
config = new ConfigManager(parent, "Animations");
|
|
|
|
logo.init("Logo");
|
|
mainMenu.init("Main Menu");
|
|
modMenu.init("Mod Menu");
|
|
shiftMenu.init("Shift Menu");
|
|
cosmeticsMenu.init("Cosmetics Menu");
|
|
emoteWheel.init("Emote Wheel");
|
|
}
|
|
|
|
// Animation properties
|
|
public final Property<Integer> duration;
|
|
public final Property<Integer> stagger;
|
|
public final Property<Integer> curve;
|
|
|
|
public AnimationConfig(boolean enabled, int delay, int stagger) {
|
|
this.duration = Property.integer(delay);
|
|
this.stagger = Property.integer(stagger);
|
|
this.curve = Property.select(1, "Ease In Out Cubic", "Ease Out Cubic", "Ease In Out Back");
|
|
}
|
|
|
|
public void init(String name) {
|
|
// config.property("Enable " + name + " Animations", this.enabled);
|
|
config.property(name + " Duration", this.duration);
|
|
config.property(name + " Stagger", this.stagger);
|
|
config.property(name + " Curve", this.curve);
|
|
}
|
|
}
|