GuiReplayOverlay: The Keyframe Timeline should be zoomed in more initially

Do not reset Timeline whenever resetUI is called, only if "deep" reset
This commit is contained in:
CrushedPixel
2015-07-21 03:44:11 +02:00
parent d3b07e6679
commit 91399301f7

View File

@@ -354,15 +354,16 @@ public class GuiReplayOverlay extends Gui {
/**
* Resets the UI.
* @param slider {@code true} if the speed-slider should be reset as well
* @param resetElements Whether the timeline and Speed Slider should be reset as well
*/
public void resetUI(boolean slider) {
public void resetUI(boolean resetElements) {
if(FMLClientHandler.instance().isGUIOpen(GuiMouseInput.class)) {
mc.displayGuiScreen(null);
}
timelineReal.zoom = 0.1f;
timelineReal.timeStart = 0;
if (slider) {
if (resetElements) {
timelineReal.zoom = 0.033f;
timelineReal.timeStart = 0;
ReplayHandler.setRealTimelineCursor(0);
speedSlider.reset();
}