forked from aly/qstbak
muffin v7.5.12
This commit is contained in:
parent
3102923ce2
commit
911ed68baa
65 changed files with 2356 additions and 1539 deletions
|
|
@ -43,6 +43,8 @@ internal sealed class QuestJournalUtils
|
|||
|
||||
private long _nextAvailableCountRefreshMs;
|
||||
|
||||
public Action? OpenJournal { get; set; }
|
||||
|
||||
public QuestJournalUtils(QuestController questController, FateController fateController, SeasonalDutyController seasonalDutyController, CustomDeliveryController customDeliveryController, AttunementController attunementController, QuestFunctions questFunctions, QuestData questData, QuestRegistry questRegistry, QuestChainComponent questChainComponent, IChatGui chatGui, ILogger<QuestJournalUtils> logger)
|
||||
{
|
||||
_questController = questController;
|
||||
|
|
@ -89,12 +91,7 @@ internal sealed class QuestJournalUtils
|
|||
{
|
||||
if (ImGui.MenuItem("Start as next quest"))
|
||||
{
|
||||
_fateController.Stop("Quest journal start");
|
||||
_seasonalDutyController.Stop("Quest journal start");
|
||||
_customDeliveryController.Stop("Quest journal start");
|
||||
_attunementController.Stop("Quest journal start");
|
||||
_questController.SetNextQuest(quest);
|
||||
_questController.Start(label);
|
||||
StartQuestAsNext(quest, label);
|
||||
}
|
||||
}
|
||||
if (ImGui.IsItemHovered(ImGuiHoveredFlags.AllowWhenDisabled))
|
||||
|
|
@ -138,12 +135,24 @@ internal sealed class QuestJournalUtils
|
|||
}
|
||||
if (label != "QuestChainComponent" && ImGui.MenuItem("View in Quest Chain"))
|
||||
{
|
||||
OpenJournal?.Invoke();
|
||||
_questChainComponent.SelectQuest(questInfo.QuestId);
|
||||
_questChainComponent.SelectTabAction?.Invoke("Quest Chain");
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public void StartQuestAsNext(Quest quest, string label)
|
||||
{
|
||||
string label2 = label + " start";
|
||||
_fateController.Stop(label2);
|
||||
_seasonalDutyController.Stop(label2);
|
||||
_customDeliveryController.Stop(label2);
|
||||
_attunementController.Stop(label2);
|
||||
_questController.SetNextQuest(quest);
|
||||
_questController.Start(label);
|
||||
}
|
||||
|
||||
public unsafe List<ElementId> GetIncompletePrerequisiteQuests(IQuestInfo questInfo)
|
||||
{
|
||||
List<ElementId> list = new List<ElementId>();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue