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

Commit

Permalink
feat: (sequencer) Added load files button
Browse files Browse the repository at this point in the history
So that if someone has downloaded a shared json it can get picked up.
  • Loading branch information
RiotNOR committed Apr 26, 2023
1 parent 8cab427 commit 9055c9e
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion RotationSolver/Updaters/ActionSequencerUpdater.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using RotationSolver.Timeline;
using FFXIVClientStructs.FFXIV.Client.Game.InstanceContent;

using RotationSolver.Timeline;
using RotationSolver.UI;
using System.Diagnostics;

Expand Down Expand Up @@ -67,6 +69,11 @@ public static void SaveFiles()
}
}

public static void LoadFiles()
{
_conditionSet = MajorConditionSet.Read(_actionSequencerFolder);
}

private static void AddNew()
{
const string conditionName = "Unnamed";
Expand Down Expand Up @@ -135,5 +142,11 @@ public static void DrawHeader()
{
SaveFiles();
}

ImGui.SameLine();
if (ImGuiHelper.IconButton(FontAwesomeIcon.Download, "##LoadTheConditions"))
{
LoadFiles();
}
}
}

0 comments on commit 9055c9e

Please sign in to comment.