Add macro chain is missing error
This commit is contained in:
@@ -446,9 +446,8 @@ internal static class ImGuiUtils
|
|||||||
|
|
||||||
public static bool IconButtonSized(FontAwesomeIcon icon, Vector2 size)
|
public static bool IconButtonSized(FontAwesomeIcon icon, Vector2 size)
|
||||||
{
|
{
|
||||||
ImGui.PushFont(UiBuilder.IconFont);
|
using var font = ImRaii.PushFont(UiBuilder.IconFont);
|
||||||
var ret = ImGui.Button(icon.ToIconString(), size);
|
var ret = ImGui.Button(icon.ToIconString(), size);
|
||||||
ImGui.PopFont();
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,10 +1,13 @@
|
|||||||
using Craftimizer.Solver;
|
using Craftimizer.Solver;
|
||||||
|
using Dalamud.Interface;
|
||||||
|
using Dalamud.Interface.Colors;
|
||||||
using Dalamud.Interface.Utility;
|
using Dalamud.Interface.Utility;
|
||||||
using Dalamud.Interface.Utility.Raii;
|
using Dalamud.Interface.Utility.Raii;
|
||||||
using Dalamud.Interface.Windowing;
|
using Dalamud.Interface.Windowing;
|
||||||
using FFXIVClientStructs.FFXIV.Client.UI;
|
using FFXIVClientStructs.FFXIV.Client.UI;
|
||||||
using ImGuiNET;
|
using ImGuiNET;
|
||||||
using System;
|
using System;
|
||||||
|
using System.Linq;
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
|
|
||||||
namespace Craftimizer.Plugin.Windows;
|
namespace Craftimizer.Plugin.Windows;
|
||||||
@@ -252,7 +255,7 @@ public sealed class Settings : Window, IDisposable
|
|||||||
}
|
}
|
||||||
|
|
||||||
DrawOption(
|
DrawOption(
|
||||||
"Use MacroChain's /nextmacro",
|
"Use Macro Chain's /nextmacro",
|
||||||
"Replaces the last step with /nextmacro to run the next macro\n" +
|
"Replaces the last step with /nextmacro to run the next macro\n" +
|
||||||
"automatically. Overrides Add End Notification except for the\n" +
|
"automatically. Overrides Add End Notification except for the\n" +
|
||||||
"last macro.",
|
"last macro.",
|
||||||
@@ -261,6 +264,18 @@ public sealed class Settings : Window, IDisposable
|
|||||||
ref isDirty
|
ref isDirty
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (Config.MacroCopy.UseNextMacro && !Service.PluginInterface.InstalledPlugins.Any(p => p.IsLoaded && string.Equals(p.InternalName, "MacroChain", StringComparison.Ordinal)))
|
||||||
|
{
|
||||||
|
ImGui.SameLine();
|
||||||
|
using (var color = ImRaii.PushColor(ImGuiCol.Text, ImGuiColors.DalamudOrange))
|
||||||
|
{
|
||||||
|
using var font = ImRaii.PushFont(UiBuilder.IconFont);
|
||||||
|
ImGui.Text(FontAwesomeIcon.ExclamationCircle.ToIconString());
|
||||||
|
}
|
||||||
|
if (ImGui.IsItemHovered())
|
||||||
|
ImGui.SetTooltip("Macro Chain is not installed");
|
||||||
|
}
|
||||||
|
|
||||||
DrawOption(
|
DrawOption(
|
||||||
"Add Macro Lock",
|
"Add Macro Lock",
|
||||||
"Adds /mlock to the beginning of every macro. Prevents other\n" +
|
"Adds /mlock to the beginning of every macro. Prevents other\n" +
|
||||||
|
|||||||
Reference in New Issue
Block a user