Implemented/fixed Time Keyframes

Some optimization to follow!
This commit is contained in:
Marius Metzger
2015-01-13 15:01:03 +01:00
parent 25c4f85a4c
commit 1afdd6df2b
4 changed files with 67 additions and 45 deletions

View File

@@ -33,6 +33,8 @@ public class ReplayHandler {
private static ReplaySender replaySender;
private static OpenEmbeddedChannel channel;
private static int realTimelinePosition = 0;
private static Keyframe selectedKeyframe;
private static boolean isReplaying = false;
@@ -232,7 +234,13 @@ public class ReplayHandler {
public static void setReplayPos(int pos) {
if(replaySender != null) {
replaySender.jumpToTime(pos);
replaySender.jumpToTime(pos, false);
}
}
public static void forceReplayPos(int pos) {
if(replaySender != null) {
replaySender.jumpToTime(pos, true);
}
}
@@ -358,4 +366,12 @@ public class ReplayHandler {
public static Keyframe getSelected() {
return selectedKeyframe;
}
public static int getRealTimelineCursor() {
return realTimelinePosition;
}
public static void setRealTimelineCursor(int pos) {
realTimelinePosition = pos;
}
}