Markers can now be removed using the M key (in the replay)

This commit is contained in:
CrushedPixel
2015-06-09 23:20:47 +02:00
parent d891436427
commit 0390533f9b
2 changed files with 8 additions and 5 deletions

View File

@@ -181,10 +181,13 @@ public class ReplayHandler {
Collections.sort(keyframes, new KeyframeComparator());
}
public static void addMarker() {
Position pos = new Position(mc.getRenderViewEntity());
int timestamp = ReplayMod.replaySender.currentTimeStamp();
addKeyframe(new MarkerKeyframe(pos, timestamp, null));
public static void toggleMarker() {
if(selectedKeyframe instanceof MarkerKeyframe) removeKeyframe(selectedKeyframe);
else {
Position pos = new Position(mc.getRenderViewEntity());
int timestamp = ReplayMod.replaySender.currentTimeStamp();
addKeyframe(new MarkerKeyframe(pos, timestamp, null));
}
}
public static void addKeyframe(Keyframe keyframe) {