Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entrust to single retainer #107

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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