Split GuiEditKeyframe into multiple classes depending on Keyframe type

This commit is contained in:
johni0702
2015-07-19 15:07:07 +02:00
parent c309929276
commit 4f718ab302
3 changed files with 201 additions and 154 deletions

View File

@@ -61,7 +61,7 @@ public class GuiKeyframeTimeline extends GuiTimeline {
long currentTime = System.currentTimeMillis();
if(closest != null) {
if(currentTime - clickTime < 500) { // if double clicked then open GUI instead
mc.displayGuiScreen(new GuiEditKeyframe(closest));
mc.displayGuiScreen(GuiEditKeyframe.create(closest));
this.clickedKeyFrame = null;
} else {
this.clickedKeyFrame = closest;

View File

@@ -52,7 +52,7 @@ public class GuiMarkerTimeline extends GuiTimeline {
long currentTime = System.currentTimeMillis();
if(closest != null) {
if(currentTime - clickTime < 500) { // if double clicked then open GUI instead
mc.displayGuiScreen(new GuiEditKeyframe(closest));
mc.displayGuiScreen(GuiEditKeyframe.create(closest));
this.clickedKeyFrame = null;
} else {
this.clickedKeyFrame = closest;