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

Commit

Permalink
fix: drawing fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jul 28, 2024
1 parent 35d3e81 commit a179c7a
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion ActionTimelineEx/Configurations/Actions/GCDAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public float Draw(ImDrawListPtr drawList, Vector2 point, bool pass, ActionSettin
if (Plugin.Settings.DrawTime)
{
var width = ImGui.CalcTextSize(time.GetString()).X + 5;
drawList.AddText(point, uint.MaxValue, time.GetString() + " ");
drawList.AddText(point, uint.MaxValue, time.GetString() + "s ");
point += Vector2.UnitX * width;
time += TimeSpan.FromSeconds(Gcd);
}
Expand Down
2 changes: 0 additions & 2 deletions ActionTimelineEx/Configurations/RotationSetting.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
using ActionTimelineEx.Configurations.Actions;
using ActionTimelineEx.Helpers;
using ExCSS;
using ImGuiNET;
using System;
using System.Numerics;
using XIVConfigUI.Attributes;

Expand Down
2 changes: 0 additions & 2 deletions ActionTimelineEx/Configurations/RotationsSetting.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ public class RotationsSetting

public List<RotationSetting> RotationSettings { get; set; } = [];

public float GcdTime { get; set; } = 2.5f;

[JsonIgnore]
public RotationSetting RotationSetting
{
Expand Down
9 changes: 0 additions & 9 deletions ActionTimelineEx/Configurations/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,6 @@ public int RotationChoice
[UI("Record Rotation", 2)]
public bool RecordRotation { get; set; } = false;

[JsonIgnore]
[UI("Gcd Time", 2)]
public float GcdTime
{
get => RotationHelper.GcdTime;
set => RotationHelper.GcdTime = value;
}


[JsonProperty]
private Dictionary<Job, RotationsSetting> _rotationHelpers = [];

Expand Down
2 changes: 1 addition & 1 deletion ActionTimelineEx/Helpers/ActionHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@ internal static bool IsInJob(this Action i)

internal static string GetString(this TimeSpan timespan)
{
return $"{(int)timespan.TotalMinutes}:{timespan.Seconds:D2}.{timespan.Milliseconds.ToString()[0]}";
return $"{(int)timespan.TotalMinutes}:{timespan.Seconds:D2}.{timespan.Milliseconds.ToString("000")[0..1]}";
}
}

0 comments on commit a179c7a

Please sign in to comment.