Skip to content

Commit

Permalink
Entrust to single retainer (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
Taurenkey authored Jan 7, 2025
1 parent 5794a3c commit c2c0e6c
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions AutoRetainer/UI/MainWindow/MultiModeTab/RetainerTable.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using AutoRetainerAPI;
using AutoRetainer.Scheduler.Handlers;
using AutoRetainer.Scheduler.Tasks;
using AutoRetainerAPI;
using AutoRetainerAPI.Configuration;
using ECommons.GameHelpers;

Expand Down Expand Up @@ -44,7 +46,20 @@ public static void Draw(OfflineCharacterData data, List<OfflineRetainerData> ret
if(!C.EnableEntrustManager) c = ImGuiColors.DalamudRed;
ImGuiEx.Text(c, Lang.IconDuplicate);
ImGui.PopFont();
ImGuiEx.Tooltip($"Entrust plan \"{plan.Name}\" is active." + (plan.ManualPlan ? "\nThis is manual processing plan" : ""));
ImGuiEx.Tooltip($"Entrust plan \"{plan.Name}\" is active." + (plan.ManualPlan ? "\nThis is manual processing plan" : "") + (Utils.GetReachableRetainerBell(false) != null ? "\nClick to Entrust." : ""));
if (ImGui.IsItemClicked())
{
if (!Svc.Condition[Dalamud.Game.ClientState.Conditions.ConditionFlag.OccupiedSummoningBell])
TaskInteractWithNearestBell.Enqueue();

P.TaskManager.Enqueue(() => RetainerListHandlers.SelectRetainerByName(ret.Name.ToString()));
TaskEntrustDuplicates.EnqueueNew(plan);
if (C.RetainerMenuDelay > 0)
{
TaskWaitSelectString.Enqueue(C.RetainerMenuDelay);
}
P.TaskManager.Enqueue(RetainerHandlers.SelectQuit);
}
}
}
if(adata.WithdrawGil)
Expand Down

0 comments on commit c2c0e6c

Please sign in to comment.