rstrst
This commit is contained in:
parent
9dd8262c82
commit
e9fe33e7b8
|
@ -1,5 +1,6 @@
|
|||
using System.Numerics;
|
||||
using Dalamud.Game;
|
||||
using Dalamud.Logging;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace OrangeGuidanceTomestone;
|
||||
|
@ -38,7 +39,9 @@ internal class Messages : IDisposable {
|
|||
return;
|
||||
}
|
||||
|
||||
PluginLog.Log($"spawning vfx for {message.Id}");
|
||||
if (this.Plugin.Vfx.SpawnStatic(VfxPath, message.Position) == null) {
|
||||
PluginLog.Log("trying again");
|
||||
this.SpawnQueue.Enqueue(message);
|
||||
}
|
||||
}
|
||||
|
@ -91,7 +94,7 @@ internal class Messages : IDisposable {
|
|||
var nearby = this.Current
|
||||
.Values
|
||||
.Where(msg => Math.Abs(msg.Position.Y - position.Y) < 1f)
|
||||
.Where(msg => Vector3.Distance(msg.Position, position) < 5f)
|
||||
.Where(msg => Vector3.Distance(msg.Position, position) < 2f)
|
||||
.ToList();
|
||||
this.CurrentMutex.Release();
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@ using System.Net.Http.Headers;
|
|||
using System.Numerics;
|
||||
using System.Text;
|
||||
using Dalamud.Interface;
|
||||
using Dalamud.Logging;
|
||||
using ImGuiNET;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
|
@ -223,7 +222,7 @@ public class PluginUi : IDisposable {
|
|||
|
||||
if (this.Plugin.ClientState.LocalPlayer is { } player2) {
|
||||
foreach (var msg in this.Plugin.Messages.Nearby()) {
|
||||
PluginLog.Log($"{msg.Text}: {Vector3.Distance(msg.Position, player2.Position):N2}");
|
||||
ImGui.TextUnformatted($"{msg.Text}: {Vector3.Distance(msg.Position, player2.Position):N2}");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue