Using the DELETE Key, selected Keyframes can now be removed

Added StaticKeybindings to provide non-changeable KeyBindings
This commit is contained in:
CrushedPixel
2015-07-13 22:27:14 +02:00
parent 0f024a9de9
commit a58e06703c
5 changed files with 42 additions and 8 deletions

View File

@@ -227,7 +227,7 @@ public class ReplayHandler {
}
public static void toggleMarker() {
if(selectedKeyframe.getValue() instanceof Marker) markerKeyframes.remove(selectedKeyframe);
if(selectedKeyframe != null && selectedKeyframe.getValue() instanceof Marker) markerKeyframes.remove(selectedKeyframe);
else {
AdvancedPosition pos = new AdvancedPosition(mc.getRenderViewEntity(), false);
int timestamp = ReplayMod.replaySender.currentTimeStamp();
@@ -281,6 +281,8 @@ public class ReplayHandler {
positionKeyframes.remove(keyframe);
} else if(keyframe.getValue() instanceof TimestampValue) {
timeKeyframes.remove(keyframe);
} else if(keyframe.getValue() instanceof Marker) {
markerKeyframes.remove(keyframe);
}
if(keyframe == selectedKeyframe) {