ImGui.Text(_questController.ToStatString());
//ImGui.EndDisabled();
- DrawQuestIcons(currentQuest, currentStep, questWork);
+ DrawQuestButtons(currentQuest, currentStep, questWork);
DrawSimulationControls();
}
{
ImGui.Text("No active quest");
ImGui.TextColored(ImGuiColors.DalamudGrey, $"{_questRegistry.Count} quests loaded");
+
+ if (ImGuiComponents.IconButton(FontAwesomeIcon.Stop))
+ {
+ _movementController.Stop();
+ _questController.Stop("Manual (no active quest)");
+ }
}
}
return questWork;
}
- private void DrawQuestIcons(QuestController.QuestProgress currentQuest, QuestStep? currentStep,
+ private void DrawQuestButtons(QuestController.QuestProgress currentQuest, QuestStep? currentStep,
QuestWork? questWork)
{
ImGui.BeginDisabled(_questController.IsRunning);
}
}
- ImGui.SameLine();
-
- using (var unused = ImRaii.Disabled(!_movementController.IsPathRunning))
- {
- if (ImGuiComponents.IconButtonWithText(FontAwesomeIcon.StopCircle, "Stop"))
- {
- _movementController.Stop();
- _questController.Stop("Manual");
- }
- }
-
if (_commandManager.Commands.ContainsKey("/vnav"))
{
ImGui.SameLine();