Created GuiMarkerTimeline to display Markers again

Created helper methods in ReplayHandler to provide information about MarkerKeyframes
This commit is contained in:
CrushedPixel
2015-07-08 04:46:44 +02:00
parent 5100b63964
commit 901b175efe
6 changed files with 205 additions and 34 deletions

View File

@@ -390,6 +390,12 @@ public class ReplayHandler {
selectedKeyframe = kf;
}
public static boolean isSelected(MarkerKeyframe kf) {
return kf == selectedMarkerKeyframe;
}
public static void selectMarkerKeyframe(MarkerKeyframe kf) { selectedMarkerKeyframe = kf; }
public static boolean isInReplay() {
return inReplay;
}
@@ -456,7 +462,7 @@ public class ReplayHandler {
ReplayMod.overlay.resetUI(true);
} catch(Exception e) {
e.printStackTrace();
// TODO: Fix exceptionsudo
// TODO: Fix exception
}
//Load lighting and trigger update
@@ -544,6 +550,8 @@ public class ReplayHandler {
return selectedKeyframe;
}
public static MarkerKeyframe getSelectedMarkerKeyframe() { return selectedMarkerKeyframe; }
public static int getRealTimelineCursor() {
return realTimelinePosition;
}