From ba4fe04be4696ddd901252a7ecd52f85e630b50b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A7=8B=E6=B0=B4?= <1123993881@qq.com> Date: Thu, 20 Jul 2023 10:22:08 +0800 Subject: [PATCH] fix: drag speed about offset. --- ActionTimelineEx/Windows/SettingsWindow.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ActionTimelineEx/Windows/SettingsWindow.cs b/ActionTimelineEx/Windows/SettingsWindow.cs index f93a946..b330173 100644 --- a/ActionTimelineEx/Windows/SettingsWindow.cs +++ b/ActionTimelineEx/Windows/SettingsWindow.cs @@ -151,7 +151,7 @@ private void DrawGeneralSetting() ImGui.SameLine(); ImGui.NewLine(); - ImGui.Text("Don't record these status."); + ImGui.Text("Don't record these statuses."); if (ImGui.BeginChild("ExceptStatus", new Vector2(0f, -1f), true)) { @@ -307,7 +307,7 @@ private bool RemoveValue(string name) private bool DrawGeneralTab(DrawingSettings settings) { ImGui.InputText("Name", ref settings.Name, 32); - var result = Plugin.Settings.TimelineSettings.Count > 1 ? RemoveValue(settings.Name) : false; + var result = Plugin.Settings.TimelineSettings.Count > 1 && RemoveValue(settings.Name); ImGui.Checkbox("Enable", ref settings.Enable); ImGui.Checkbox("Is Rotation", ref settings.IsRotation); @@ -343,7 +343,7 @@ private void DrawIconsTab(DrawingSettings settings) { ImGui.Indent(); ImGui.DragInt("Off GCD Icon Size", ref settings.OGCDIconSize, 0.2f, 1, 100); - ImGui.DragFloat("Iff GCD Vertical Offset", ref settings.OGCDOffset, 0.1f, 0, 1); + ImGui.DragFloat("Iff GCD Vertical Offset", ref settings.OGCDOffset, 0.01f, 0, 1); ImGui.Unindent(); }