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

Commit

Permalink
fix: add a save button for action sequencer.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 24, 2023
1 parent a829b61 commit 4764ddd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion RotationSolver/RotationSolverPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public unsafe RotationSolverPlugin(DalamudPluginInterface pluginInterface)
Service.Interface.UiBuilder.Draw += OverlayWindow.Draw;

MajorUpdater.Enable();
ActionSequencerUpdater.Enable(pluginInterface.ConfigDirectory.FullName);
ActionSequencerUpdater.Enable(pluginInterface.ConfigDirectory.FullName + "\\Conditions");
IActionHelper.GetAnimationLockTimeAsync(pluginInterface.ConfigDirectory.FullName);
SocialUpdater.Enable();
_dis.Add(new Watcher());
Expand Down
12 changes: 9 additions & 3 deletions RotationSolver/Updaters/ActionSequencerUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,9 @@ public static void DrawHeader()

ImGui.Combo("##MajorConditionCombo", ref Service.Config.TimelineIndex, combos, combos.Length);

ImGui.SameLine();


if (hasSet)
{
ImGui.SameLine();
if (ImGuiHelper.IconButton(FontAwesomeIcon.Ban, "##DeleteTimelineConditionSet"))
{
Delete(set.Name);
Expand All @@ -119,6 +117,8 @@ public static void DrawHeader()
ImGui.SameLine();
}

ImGui.SameLine();

if (ImGuiHelper.IconButton(FontAwesomeIcon.Plus, "##AddNewTimelineConditionSet"))
{
AddNew();
Expand All @@ -129,5 +129,11 @@ public static void DrawHeader()
{
Process.Start("explorer.exe", _actionSequencerFolder);
}

ImGui.SameLine();
if (ImGuiHelper.IconButton(FontAwesomeIcon.Save, "##SaveTheConditions"))
{
SaveFiles();
}
}
}

0 comments on commit 4764ddd

Please sign in to comment.