Skip to content

Commit

Permalink
Hide mention of XivEsp when not installed
Browse files Browse the repository at this point in the history
We just got an official feedback asking how to install XivEsp, which is a third-party plugin. I'm removing mention of it unless it's already installed.
  • Loading branch information
PrincessRTFM committed Jul 18, 2024
1 parent 302631d commit d0e6cab
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions HuntBuddy/Windows/ConfigurationWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,20 @@ public override void PreOpenCheck() {
public override void Draw() {
bool save = false;

ImGui.BeginDisabled(Plugin.EspConsumer?.IsAvailable == false);
if (Plugin.EspConsumer?.IsAvailable == true) { // probably shouldn't name a 3pp if it's not installed

save |= ImGui.Checkbox("Enable XivEsp plugin integration?", ref Plugin.Instance.Configuration.EnableXivEspIntegration);
save |= ImGui.Checkbox("Enable XivEsp plugin integration?", ref Plugin.Instance.Configuration.EnableXivEspIntegration);

ImGui.Indent();
save |= ImGui.Checkbox("Set XivEsp search when using '/phb next' command?", ref Plugin.Instance.Configuration.AutoSetEspSearchOnNextHuntCommand);
ImGui.Unindent();
if (ImGui.IsItemHovered()) {
InterfaceUtil.DrawWrappedTooltip(ImGuiHelpers.GlobalScale * BaseTooltipWidth,
"If enabled and XivEsp is available, the '/phb next' command will automatically set XivEsp's search"
+ "to the name of the chosen mark, EVEN IF you already have a custom search active.");
}
ImGui.Indent();
save |= ImGui.Checkbox("Set XivEsp search when using '/phb next' command?", ref Plugin.Instance.Configuration.AutoSetEspSearchOnNextHuntCommand);
ImGui.Unindent();
if (ImGui.IsItemHovered()) {
InterfaceUtil.DrawWrappedTooltip(ImGuiHelpers.GlobalScale * BaseTooltipWidth,
"If enabled and XivEsp is available, the '/phb next' command will automatically set XivEsp's search"
+ "to the name of the chosen mark, EVEN IF you already have a custom search active.");
}

ImGui.EndDisabled();
}

ImGui.Spacing();

Expand Down

0 comments on commit d0e6cab

Please sign in to comment.