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:
@@ -354,15 +354,16 @@ public class GuiReplayOverlay extends Gui {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Resets the UI.
|
* 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)) {
|
if(FMLClientHandler.instance().isGUIOpen(GuiMouseInput.class)) {
|
||||||
mc.displayGuiScreen(null);
|
mc.displayGuiScreen(null);
|
||||||
}
|
}
|
||||||
timelineReal.zoom = 0.1f;
|
if (resetElements) {
|
||||||
timelineReal.timeStart = 0;
|
timelineReal.zoom = 0.033f;
|
||||||
if (slider) {
|
timelineReal.timeStart = 0;
|
||||||
|
|
||||||
ReplayHandler.setRealTimelineCursor(0);
|
ReplayHandler.setRealTimelineCursor(0);
|
||||||
speedSlider.reset();
|
speedSlider.reset();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user