mirror of
https://github.com/darksaid98/Flashback.git
synced 2026-12-01 22:16:01 +00:00
Remove unused position recording because it was bad
This commit is contained in:
1 parent
8f95f1b005
commit
959144e227
4 files changed
-107
No files matched your search
@@ -97,7 +97,6 @@ public class ReplayUI {
|
||||
|
||||
private static String infoOverlayText = null;
|
||||
private static long infoOverlayEndMillis = 0;
|
||||
public static boolean recordCameraMovement = false;
|
||||
|
||||
private static UUID selectedEntity = null;
|
||||
private static boolean openSelectedEntityPopup = false;
|
||||
@@ -656,9 +655,6 @@ public class ReplayUI {
|
||||
showText = infoOverlayText;
|
||||
showTextBorderColour = 0xFF00FFFF;
|
||||
}
|
||||
} else if (recordCameraMovement) {
|
||||
showText = "Recording Movement as Keyframes...";
|
||||
showTextBorderColour = 0xFF0000FF;
|
||||
}
|
||||
|
||||
if (showText != null) {
|
||||
|
||||
@@ -977,18 +977,6 @@ public class TimelineWindow {
|
||||
if (screen != null && screen.isPauseScreen()) {
|
||||
Minecraft.getInstance().setScreen(null);
|
||||
}
|
||||
|
||||
if (ReplayUI.recordCameraMovement) {
|
||||
editorState.recordingCameraMovementTrack = -1;
|
||||
|
||||
for (int i = 0; i < editorState.keyframeTracks.size(); i++) {
|
||||
KeyframeTrack keyframeTrack = editorState.keyframeTracks.get(i);
|
||||
if (keyframeTrack.enabled && keyframeTrack.keyframeType == CameraKeyframeType.INSTANCE) {
|
||||
editorState.recordingCameraMovementTrack = i;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1384,13 +1372,6 @@ public class TimelineWindow {
|
||||
}
|
||||
}
|
||||
|
||||
if (editorState.recordingCameraMovementTrack == trackIndex && editorState.recordingCameraMovementMinTick >= 0 && editorState.recordingCameraMovementMaxTick >= 0) {
|
||||
float fromX = x + replayTickToTimelineX(editorState.recordingCameraMovementMinTick);
|
||||
float toX = x + replayTickToTimelineX(editorState.recordingCameraMovementMaxTick);
|
||||
float topY = y + 2 + trackIndex * lineHeight;
|
||||
drawList.addRectFilled(fromX, topY, toX, topY + lineHeight, 0xFF4040FF);
|
||||
}
|
||||
|
||||
for (int tick = minTicks - 10; tick <= minTicks + availableTicks + 10; tick++) {
|
||||
var entry = keyframeTimes.ceilingEntry(tick);
|
||||
if (entry == null || entry.getKey() > minTicks + availableTicks + 10) {
|
||||
|
||||
Reference in new issue
Block a user