diff --git a/ActionTimelineEx/Windows/SettingsWindow.cs b/ActionTimelineEx/Windows/SettingsWindow.cs index 22a69be..2c8547c 100644 --- a/ActionTimelineEx/Windows/SettingsWindow.cs +++ b/ActionTimelineEx/Windows/SettingsWindow.cs @@ -330,11 +330,10 @@ private bool DrawGeneralTab(DrawingSettings settings) ImGui.DragFloat("Size per second", ref settings.SizePerSecond, 0.3f, 20, 150); DrawHelper.SetTooltip("This is the width of every second drawn on the window."); - if (!settings.IsRotation) - { - ImGui.DragInt("Offset Time (seconds)", ref settings.TimeOffsetSetting, 0.1f, 0, 10); - DrawHelper.SetTooltip("This is the advanced time about action using"); - } + ImGui.DragInt("Offset Time (seconds)", ref settings.TimeOffsetSetting, 0.1f, 0, 1000); + DrawHelper.SetTooltip(settings.IsRotation ? "The Offset time of rotation." + : "This is the advanced time about action using"); + ImGui.DragFloat("Drawing Center offset", ref settings.CenterOffset, 0.3f, -500, 500); return result; diff --git a/ActionTimelineEx/Windows/TimelineWindow.cs b/ActionTimelineEx/Windows/TimelineWindow.cs index 6b5df6f..356fecd 100644 --- a/ActionTimelineEx/Windows/TimelineWindow.cs +++ b/ActionTimelineEx/Windows/TimelineWindow.cs @@ -52,7 +52,7 @@ private static void DrawContent(DrawingSettings setting) var pos = ImGui.GetWindowPos(); var size = ImGui.GetWindowSize(); - var now = setting.IsRotation ? TimelineManager.Instance?.EndTime ?? DateTime.Now : DateTime.Now; + var now = setting.IsRotation ? (TimelineManager.Instance?.EndTime ?? DateTime.Now - TimeSpan.FromSeconds(setting.TimeOffsetSetting)) : DateTime.Now; var endTime = now - TimeSpan.FromSeconds(size.X / setting.SizePerSecond - setting.TimeOffset);