Remove Plugin.CopyMacro redundancy
This commit is contained in:
@@ -149,9 +149,6 @@ public sealed class Plugin : IDalamudPlugin
|
||||
ClipboardWindow = new(macros);
|
||||
}
|
||||
|
||||
public void CopyMacro(IReadOnlyList<ActionType> actions) =>
|
||||
MacroCopy.Copy(actions);
|
||||
|
||||
public IActiveNotification DisplayNotification(Notification notification)
|
||||
{
|
||||
var ret = Service.NotificationManager.AddNotification(notification);
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Craftimizer.Plugin;
|
||||
using Craftimizer.Plugin.Utils;
|
||||
using ExdSheets;
|
||||
using System.Collections.Frozen;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -6,8 +6,10 @@ using FFXIVClientStructs.FFXIV.Client.UI.Misc;
|
||||
using ExdSheets;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using Craftimizer.Plugin;
|
||||
|
||||
namespace Craftimizer.Utils;
|
||||
|
||||
namespace Craftimizer.Plugin.Utils;
|
||||
public static unsafe class Gearsets
|
||||
{
|
||||
public record struct GearsetStats(int CP, int Craftsmanship, int Control);
|
||||
|
||||
@@ -1288,7 +1288,7 @@ public sealed class MacroEditor : Window, IDisposable
|
||||
}
|
||||
ImGui.SameLine();
|
||||
if (ImGuiUtils.IconButtonSquare(FontAwesomeIcon.Paste))
|
||||
Service.Plugin.CopyMacro(Macro.Actions.ToArray());
|
||||
MacroCopy.Copy(Macro.Actions.ToArray());
|
||||
if (ImGui.IsItemHovered())
|
||||
ImGuiUtils.Tooltip("Copy to Clipboard");
|
||||
ImGui.SameLine();
|
||||
|
||||
@@ -248,7 +248,7 @@ public sealed class MacroList : Window, IDisposable
|
||||
ImGuiUtils.Tooltip("Rename");
|
||||
|
||||
if (ImGuiUtils.IconButtonSquare(FontAwesomeIcon.Paste, miniRowHeight))
|
||||
Service.Plugin.CopyMacro(macro.Actions);
|
||||
MacroCopy.Copy(macro.Actions);
|
||||
if (ImGui.IsItemHovered())
|
||||
ImGuiUtils.Tooltip("Copy to Clipboard");
|
||||
ImGui.SameLine(0, spacing);
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Craftimizer.Plugin;
|
||||
using Craftimizer.Plugin.Utils;
|
||||
using Craftimizer.Simulator;
|
||||
using Craftimizer.Simulator.Actions;
|
||||
using Craftimizer.Solver;
|
||||
@@ -11,7 +10,6 @@ using Dalamud.Interface.Colors;
|
||||
using Dalamud.Interface.Components;
|
||||
using Dalamud.Interface.GameFonts;
|
||||
using Dalamud.Interface.ManagedFontAtlas;
|
||||
using Dalamud.Interface.Textures;
|
||||
using Dalamud.Interface.Utility;
|
||||
using Dalamud.Interface.Utility.Raii;
|
||||
using Dalamud.Interface.Windowing;
|
||||
@@ -987,7 +985,7 @@ public sealed unsafe class RecipeNote : Window, IDisposable
|
||||
if (ImGui.IsItemHovered())
|
||||
ImGuiUtils.Tooltip("Open in Macro Editor");
|
||||
if (ImGuiUtils.IconButtonSquare(FontAwesomeIcon.Paste, miniRowHeight))
|
||||
Service.Plugin.CopyMacro(actions);
|
||||
MacroCopy.Copy(actions);
|
||||
if (ImGui.IsItemHovered())
|
||||
ImGuiUtils.Tooltip("Copy to Clipboard");
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Craftimizer.Plugin;
|
||||
using Craftimizer.Plugin.Utils;
|
||||
using Craftimizer.Simulator;
|
||||
using Craftimizer.Simulator.Actions;
|
||||
using Craftimizer.Utils;
|
||||
|
||||
Reference in New Issue
Block a user