This repository has been archived by the owner on Aug 28, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e63e51d
commit 82df403
Showing
7 changed files
with
97 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
using Dalamud.Interface.Colors; | ||
using Dalamud.Utility; | ||
using ImGuiNET; | ||
using RotationSolver.Basic; | ||
using RotationSolver.Localization; | ||
using RotationSolver.Updaters; | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace RotationSolver.Windows.RotationConfigWindow; | ||
|
||
internal partial class RotationConfigWindow | ||
{ | ||
private void DrawRotationDevTab() | ||
{ | ||
ImGui.TextWrapped(LocalizationManager.RightLang.ConfigWindow_RotationDev_Description); | ||
|
||
if (ImGui.Button("Load Rotations")) | ||
{ | ||
RotationUpdater.GetAllCustomRotations(); | ||
} | ||
|
||
ImGui.SameLine(); | ||
if (ImGui.Button("Dev Wiki")) | ||
{ | ||
Util.OpenLink("https://archidog1998.github.io/RotationSolver/#/RotationDev/"); | ||
} | ||
|
||
ImGui.SameLine(); | ||
|
||
DrawCheckBox(LocalizationManager.RightLang.ConfigWindow_Param_InDebug, | ||
ref Service.Config.InDebug); | ||
|
||
if (Service.Config.InDebug) | ||
{ | ||
ImGui.TextColored(ImGuiColors.DalamudRed, | ||
LocalizationManager.RightLang.ConfigWindow_Param_InDebugWarning); | ||
} | ||
|
||
int removeIndex = -1; | ||
for (int i = 0; i < Service.Config.OtherLibs.Length; i++) | ||
{ | ||
ImGui.InputText($"##OtherLib{i}", ref Service.Config.OtherLibs[i], 1024); | ||
ImGui.SameLine(); | ||
if (ImGui.Button($"X##Remove{i}")) | ||
{ | ||
removeIndex = i; | ||
} | ||
} | ||
if(removeIndex > -1) | ||
{ | ||
var list = Service.Config.OtherLibs.ToList(); | ||
list.RemoveAt(removeIndex); | ||
Service.Config.OtherLibs = list.ToArray(); | ||
} | ||
|
||
string str = string.Empty; | ||
if(ImGui.InputText($"##OtherLibExtra", ref str, 1024)) | ||
{ | ||
Service.Config.OtherLibs = Service.Config.OtherLibs.Append(str).ToArray(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters