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

Commit

Permalink
fix: add load for list.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchiDog1998 committed Apr 30, 2023
1 parent 20c8f8c commit 5893683
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RotationSolver.Basic/Configuration/OtherConfiguration.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Dalamud.Logging;
using Newtonsoft.Json.Linq;
using System.IO;
using System.Xml.Linq;

namespace RotationSolver.Basic.Configuration;
Expand Down
9 changes: 9 additions & 0 deletions RotationSolver/UI/RotationConfigWindow_List.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ public static StatusTexture[] AllInvStatus

private void DrawListTab()
{
if (ImGuiHelper.IconButton(FontAwesomeIcon.FileDownload, "##Load All"))
{
OtherConfiguration.Init();
}

ImGui.SameLine();
ImGuiHelper.Spacing();

ImGui.TextWrapped(LocalizationManager.RightLang.ConfigWindow_List_Description);

ImGui.PushStyleVar(ImGuiStyleVar.ItemSpacing, new Vector2(0f, 5f));
Expand Down Expand Up @@ -112,6 +120,7 @@ private void DrawListTab()
hostileNames = Array.Empty<string>();
OtherConfiguration.NoHostileNames[_territoryId] = hostileNames.Append(string.Empty).ToArray();
}

ImGui.SameLine();
ImGuiHelper.Spacing();
ImGui.TextWrapped(LocalizationManager.RightLang.ConfigWindow_List_NoHostileDesc);
Expand Down

0 comments on commit 5893683

Please sign in to comment.