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

Commit

Permalink
fix: changed the way of saving gcd recast override data.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Jul 19, 2024
1 parent e6c642c commit c0a088f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 6 additions & 1 deletion ActionTimelineEx/Configurations/Actions/GCDAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,14 @@ public class GCDAction : ActionSetting
{
internal override ActionSettingType Type => ActionSettingType.Action;

[JsonIgnore]
[Range(0, 20, ConfigUnitType.Seconds)]
[UI("Recast time override")]
public float GcdOverride { get; set; } = 0;
public float GcdOverride
{
get => Plugin.Settings.ActionRecast.TryGetValue(ActionId, out var v) ? v : 0f;
set => Plugin.Settings.ActionRecast[ActionId] = value;
}

[UI]
public List<oGCDAction> oGCDs { get; set; } = [];
Expand Down
2 changes: 2 additions & 0 deletions ActionTimelineEx/Configurations/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ internal RotationsSetting RotationHelper

private static readonly RotationsSetting EmptyHolder = new();

public Dictionary<uint, float> ActionRecast { get; set; } = [];

public int Version { get; set; } = 6;

public void Save()
Expand Down
2 changes: 1 addition & 1 deletion XIVConfigUI

0 comments on commit c0a088f

Please sign in to comment.