muffin v6.35 with old pdb
This commit is contained in:
parent
ac85599236
commit
b5d2cc6708
31 changed files with 958 additions and 958 deletions
|
|
@ -74,8 +74,8 @@ internal sealed class DebugOverlay : Window
|
|||
{
|
||||
return;
|
||||
}
|
||||
IClientState clientState = _clientState;
|
||||
if (clientState != null && clientState.IsLoggedIn && clientState.LocalPlayer != null && !clientState.IsPvPExcludingDen && _questController.IsQuestWindowOpen)
|
||||
IClientState clipboardItems = _clientState;
|
||||
if (clipboardItems != null && clipboardItems.IsLoggedIn && clipboardItems.LocalPlayer != null && !clipboardItems.IsPvPExcludingDen && _questController.IsQuestWindowOpen)
|
||||
{
|
||||
DrawCurrentQuest();
|
||||
DrawHighlightedQuest();
|
||||
|
|
@ -88,22 +88,22 @@ internal sealed class DebugOverlay : Window
|
|||
|
||||
private void DrawCurrentQuest()
|
||||
{
|
||||
QuestController.QuestProgress currentQuest = _questController.CurrentQuest;
|
||||
if (currentQuest == null)
|
||||
QuestController.QuestProgress priorityQuests = _questController.CurrentQuest;
|
||||
if (priorityQuests == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
QuestSequence questSequence = currentQuest.Quest.FindSequence(currentQuest.Sequence);
|
||||
if (questSequence == null)
|
||||
QuestSequence itemToRemove = priorityQuests.Quest.FindSequence(priorityQuests.Sequence);
|
||||
if (itemToRemove == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
for (int i = currentQuest.Step; i <= questSequence.Steps.Count; i++)
|
||||
for (int itemToAdd = priorityQuests.Step; itemToAdd <= itemToRemove.Steps.Count; itemToAdd++)
|
||||
{
|
||||
QuestStep questStep = questSequence.FindStep(i);
|
||||
if (questStep != null && TryGetPosition(questStep, out var position))
|
||||
QuestStep indexToAdd = itemToRemove.FindStep(itemToAdd);
|
||||
if (indexToAdd != null && TryGetPosition(indexToAdd, out var width))
|
||||
{
|
||||
DrawStep(i.ToString(CultureInfo.InvariantCulture), questStep, position.Value, (Vector3.Distance(_clientState.LocalPlayer.Position, position.Value) < questStep.CalculateActualStopDistance()) ? 4278255360u : 4278190335u);
|
||||
DrawStep(itemToAdd.ToString(CultureInfo.InvariantCulture), indexToAdd, width.Value, (Vector3.Distance(_clientState.LocalPlayer.Position, width.Value) < indexToAdd.CalculateActualStopDistance()) ? 4278255360u : 4278190335u);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -129,11 +129,11 @@ internal sealed class DebugOverlay : Window
|
|||
|
||||
private void DrawStep(string counter, QuestStep step, Vector3 position, uint color)
|
||||
{
|
||||
if (!step.Disabled && step.TerritoryId == _clientState.TerritoryType && _gameGui.WorldToScreen(position, out var screenPos))
|
||||
if (!step.Disabled && step.TerritoryId == _clientState.TerritoryType && _gameGui.WorldToScreen(position, out var clipboardItems))
|
||||
{
|
||||
ImGui.GetWindowDrawList().AddCircleFilled(screenPos, 3f, color);
|
||||
ImDrawListPtr windowDrawList = ImGui.GetWindowDrawList();
|
||||
Vector2 pos = screenPos + new Vector2(10f, -8f);
|
||||
ImGui.GetWindowDrawList().AddCircleFilled(clipboardItems, 3f, color);
|
||||
ImDrawListPtr prefixToRemove = ImGui.GetWindowDrawList();
|
||||
Vector2 pos = clipboardItems + new Vector2(10f, -8f);
|
||||
ImU8String text = new ImU8String(7, 5);
|
||||
text.AppendFormatted(counter);
|
||||
text.AppendLiteral(": ");
|
||||
|
|
@ -144,7 +144,7 @@ internal sealed class DebugOverlay : Window
|
|||
text.AppendFormatted((position - _clientState.LocalPlayer.Position).Length(), "N2");
|
||||
text.AppendLiteral("]\n");
|
||||
text.AppendFormatted(step.Comment);
|
||||
windowDrawList.AddText(pos, color, text);
|
||||
prefixToRemove.AddText(pos, color, text);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue