diff --git a/ActionTimelineEx/Configurations/Actions/GCDAction.cs b/ActionTimelineEx/Configurations/Actions/GCDAction.cs index 44fb9e1..4b07773 100644 --- a/ActionTimelineEx/Configurations/Actions/GCDAction.cs +++ b/ActionTimelineEx/Configurations/Actions/GCDAction.cs @@ -1,5 +1,6 @@ using ActionTimelineEx.Helpers; using ECommons.DalamudServices; +using FFXIVClientStructs.FFXIV.Client.Game; using ImGuiNET; using System.ComponentModel; using System.Numerics; @@ -13,7 +14,6 @@ public class GCDAction : ActionSetting { internal override ActionSettingType Type => ActionSettingType.Action; - internal float Gcd { get diff --git a/ActionTimelineEx/Configurations/Settings.cs b/ActionTimelineEx/Configurations/Settings.cs index a13e2da..47f490f 100644 --- a/ActionTimelineEx/Configurations/Settings.cs +++ b/ActionTimelineEx/Configurations/Settings.cs @@ -3,6 +3,7 @@ using ECommons.ExcelServices; using ECommons.GameHelpers; using System.Numerics; +using XIVConfigUI; using XIVConfigUI.Attributes; namespace ActionTimelineEx.Configurations; @@ -153,6 +154,6 @@ internal RotationsSetting RotationHelper public void Save() { - Svc.PluginInterface.SavePluginConfig(this); + File.WriteAllText(Svc.PluginInterface.ConfigFile.FullName, JsonHelper.SerializeObject(this)); } } diff --git a/ActionTimelineEx/Localization/Localization.json b/ActionTimelineEx/Localization/Localization.json index 8f73d62..72de8ae 100644 --- a/ActionTimelineEx/Localization/Localization.json +++ b/ActionTimelineEx/Localization/Localization.json @@ -1,5 +1,5 @@ { - "ActionTimelineEx.DescriptionAboutCommand": "Opens the ActionTimelineEx configuration window.\n\"/atle reset\" to reset the rotation helper count.\n\"/atle toggle\" to toggle the rotation helper's visibility.", + "ActionTimelineEx.DescriptionAboutCommand": "Opens the ActionTimelineEx configuration window.\n\"/atle reset\" to reset the rotation helper count.", "ActionTimelineEx.Punchline": "Show your actions in real-time.", "XIVConfigUI.LocalString.Searching": "Search... ", "ActionTimelineEx.Windows.RotationHelperItem": "Rotation Helper", diff --git a/ActionTimelineEx/Plugin.cs b/ActionTimelineEx/Plugin.cs index 77524b8..bb5b609 100644 --- a/ActionTimelineEx/Plugin.cs +++ b/ActionTimelineEx/Plugin.cs @@ -78,7 +78,7 @@ public Plugin(IDalamudPluginInterface pluginInterface) try { - Settings = pluginInterface.GetPluginConfig() as Settings ?? new Settings(); + Settings = JsonHelper.DeserializeObject(File.ReadAllText(pluginInterface.ConfigFile.FullName)) ?? new Settings(); } catch(Exception ex) {