Rework keyframe tracks

This commit is contained in:
Moulberry committed 2024-11-14 22:56:17 +08:00
1 parent ad6cc38ed4
commit a3c36e27b3
14 files changed
+234 -43

No files matched your search

@@ -10,6 +10,7 @@ import com.moulberry.flashback.keyframe.impl.TimelapseKeyframe;
import com.moulberry.flashback.keyframe.interpolation.InterpolationType;
import com.moulberry.flashback.keyframe.interpolation.SidedInterpolationType;
import com.moulberry.flashback.keyframe.types.TimelapseKeyframeType;
import imgui.type.ImString;
import java.util.Map;
import java.util.TreeMap;
@@ -19,6 +20,11 @@ public class KeyframeTrack {
public final KeyframeType<?> keyframeType;
public TreeMap<Integer, Keyframe> keyframesByTick = new TreeMap<>();
public boolean enabled = true;
public String customName = null;
public transient ImString nameEditField = null;
public transient boolean forceFocusTrack = false;
public transient float animatedOffsetInUi = 0.0f;
public KeyframeTrack(KeyframeType<?> keyframeType) {
this.keyframeType = keyframeType;