In the GuiObjectManager, Keyframes can be deleted using the DELETE Key on the Keyboard
This commit is contained in:
@@ -21,6 +21,7 @@ import net.minecraft.client.Minecraft;
|
|||||||
import net.minecraft.client.gui.GuiScreen;
|
import net.minecraft.client.gui.GuiScreen;
|
||||||
import net.minecraft.client.renderer.GlStateManager;
|
import net.minecraft.client.renderer.GlStateManager;
|
||||||
import net.minecraft.client.resources.I18n;
|
import net.minecraft.client.resources.I18n;
|
||||||
|
import org.lwjgl.input.Keyboard;
|
||||||
import org.lwjgl.util.Point;
|
import org.lwjgl.util.Point;
|
||||||
|
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
@@ -421,6 +422,12 @@ public class GuiObjectManager extends GuiScreen {
|
|||||||
selectedObject.setName(nameInput.getText().trim());
|
selectedObject.setName(nameInput.getText().trim());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(keyCode == Keyboard.KEY_DELETE) {
|
||||||
|
if(objectKeyframeTimeline.getSelectedKeyframe() != null) {
|
||||||
|
objectKeyframeTimeline.removeKeyframe(objectKeyframeTimeline.getSelectedKeyframeRow());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
super.keyTyped(typedChar, keyCode);
|
super.keyTyped(typedChar, keyCode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user