Show warning if first keyframe is not placed at 00:00 (closes #352)

This commit is contained in:
Jonas Herzig
2020-11-06 14:56:05 +01:00
parent 577e59fd41
commit 4bff201307
2 changed files with 8 additions and 1 deletions

View File

@@ -615,6 +615,13 @@ public class GuiPathing {
int time = timeline.getCursorPosition();
SPTimeline timeline = mod.getCurrentTimeline();
if (timeline.getPositionPath().getKeyframes().isEmpty() &&
timeline.getTimePath().getKeyframes().isEmpty() &&
time > 1000) {
String text = I18n.translate("replaymod.gui.ingame.first_keyframe_not_at_start_warning");
GuiInfoPopup.open(overlay, text.split("\\\\n"));
}
switch (path) {
case TIME:
if (mod.getSelectedPath() == path) {