Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Merge pull request #10 from ArchiDog1998/main
Browse files Browse the repository at this point in the history
RP
  • Loading branch information
ArchiDog1998 authored Jul 19, 2023
2 parents 4676c8c + b6ada1e commit d1dec64
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ActionTimelineEx/ActionTimelineEx.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<Authors>ArchiTed</Authors>
<PlatformTarget>x64</PlatformTarget>
<Platforms>AnyCPU</Platforms>
<Version>1.2.1</Version>
<Version>1.2.2</Version>
<Nullable>enable</Nullable>
<DalamudLibPath>$(AppData)\XIVLauncher\addon\Hooks\dev\</DalamudLibPath>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
Expand Down
9 changes: 6 additions & 3 deletions ActionTimelineEx/Timeline/TimelineManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,12 @@ private void AddItem(TimelineItem item)
_items.Dequeue();
}
_items.Enqueue(item);
if (item.Type != TimelineItemType.AutoAttack) _lastItem = item;
_lastTime = DateTime.Now;
UpdateEndTime(item.EndTime);
if (item.Type != TimelineItemType.AutoAttack)
{
_lastItem = item;
_lastTime = DateTime.Now;
UpdateEndTime(item.EndTime);
}
}

private void UpdateEndTime(DateTime endTime)
Expand Down
6 changes: 3 additions & 3 deletions ActionTimelineEx/Windows/SettingsWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ private void DrawGeneralSetting()
ImGui.SameLine();
ImGui.NewLine();

ImGui.Text("Don't show these status.");
ImGui.Text("Don't record these status.");

if (ImGui.BeginChild("ExceptStatus", new Vector2(0f, -1f), true))
{
Expand Down Expand Up @@ -306,8 +306,8 @@ private bool RemoveValue(string name)

private bool DrawGeneralTab(DrawingSettings settings)
{
ImGui.InputText("Name: ", ref settings.Name, 32);
var result = Plugin.Settings.TimelineSettings.Any() ? RemoveValue(settings.Name) : false;
ImGui.InputText("Name", ref settings.Name, 32);
var result = Plugin.Settings.TimelineSettings.Count > 1 ? RemoveValue(settings.Name) : false;

ImGui.Checkbox("Enable", ref settings.Enable);
ImGui.Checkbox("Is Rotation", ref settings.IsRotation);
Expand Down
1 change: 0 additions & 1 deletion ActionTimelineEx/Windows/TimelineWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ private static void DrawGrid(Vector2 pos, Vector2 size, DrawingSettings setting)
drawList.AddLine(new Vector2(start, pos.Y), new Vector2(start, pos.Y + height), lineColor, setting.GridLineWidth);
}

if (setting.IsRotation) time -= setting.TimeOffsetSetting;
if (setting.GridShowSecondsText)
{
drawList.AddText(new Vector2(start + 2, pos.Y), lineColor, $" {time}s");
Expand Down

0 comments on commit d1dec64

Please sign in to comment.