Marker Keyframes are now being saved in a KeyframeList in the ReplayHandler
Made MarkerKeyframes names editable in GuiEditKeyframe Shows "Unnamed Marker" if Marker name is empty
This commit is contained in:
@@ -2,11 +2,13 @@ package eu.crushedpixel.replaymod.interpolation;
|
||||
|
||||
import eu.crushedpixel.replaymod.holders.Keyframe;
|
||||
import eu.crushedpixel.replaymod.holders.KeyframeComparator;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
@NoArgsConstructor
|
||||
public class KeyframeList<K extends KeyframeValue> extends ArrayList<Keyframe<K>> {
|
||||
|
||||
private static final KeyframeComparator KEYFRAME_COMPARATOR = new KeyframeComparator();
|
||||
@@ -15,6 +17,12 @@ public class KeyframeList<K extends KeyframeValue> extends ArrayList<Keyframe<K>
|
||||
|
||||
private Interpolation<K> interpolation;
|
||||
|
||||
public KeyframeList(List<Keyframe<K>> initial) {
|
||||
for(Keyframe<K> kf : initial) {
|
||||
add(kf);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean add(Keyframe<K> t) {
|
||||
//remove keyframes that have same timestamp
|
||||
|
||||
Reference in New Issue
Block a user