Compare commits
4 Commits
5ca8dcc490
...
58779026f4
Author | SHA1 | Date |
---|---|---|
Anna | 58779026f4 | |
Anna | 5f3a37a749 | |
Anna | 1c8772b3ec | |
Anna | 884bd18488 |
|
@ -3,7 +3,7 @@
|
|||
<PropertyGroup>
|
||||
<TargetFramework>net5-windows</TargetFramework>
|
||||
<RootNamespace>PeepingTom</RootNamespace>
|
||||
<Version>1.7.7</Version>
|
||||
<Version>1.7.8</Version>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<Nullable>enable</Nullable>
|
||||
<AssemblyName>PeepingTom</AssemblyName>
|
||||
|
@ -41,11 +41,11 @@
|
|||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="DalamudPackager" Version="2.1.2"/>
|
||||
<PackageReference Include="Fody" Version="6.5.2" PrivateAssets="all"/>
|
||||
<PackageReference Include="DalamudPackager" Version="2.1.5"/>
|
||||
<PackageReference Include="Fody" Version="6.6.0" PrivateAssets="all"/>
|
||||
<PackageReference Include="NAudio" Version="2.0.1"/>
|
||||
<PackageReference Include="Resourcer.Fody" Version="1.8.0" PrivateAssets="all"/>
|
||||
<PackageReference Include="XivCommon" Version="3.0.1"/>
|
||||
<PackageReference Include="XivCommon" Version="4.0.0-alpha.1"/>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Peeping Tom.Ipc\Peeping Tom.Ipc.csproj"/>
|
||||
|
|
|
@ -2,4 +2,4 @@
|
|||
name: Peeping Tom
|
||||
punchline: Shows who is currently or was previously targeting you.
|
||||
description: Shows who is currently or was previously targeting you.
|
||||
repo_url: https://sr.ht/~jkcclemens/PeepingTom
|
||||
repo_url: https://git.annaclemens.io/ascclemens/PeepingTom
|
||||
|
|
|
@ -370,41 +370,6 @@ namespace PeepingTom {
|
|||
ImGui.EndTabItem();
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
if (ImGui.BeginTabItem("Debug")) {
|
||||
if (ImGui.Button("Log targeting you")) {
|
||||
var player = this.Plugin.Interface.ClientState.LocalPlayer;
|
||||
if (player != null) {
|
||||
// loop over all players looking at the current player
|
||||
var actors = this.Plugin.Interface.ClientState.Actors
|
||||
.Where(actor => actor.TargetActorID == player.ActorId && actor is PlayerCharacter)
|
||||
.Cast<PlayerCharacter>();
|
||||
foreach (var actor in actors) {
|
||||
var payload = new PlayerPayload(this.Plugin.Interface.Data, actor.Name.TextValue, actor.HomeWorld.Id);
|
||||
Payload[] payloads = {payload};
|
||||
this.Plugin.Interface.Framework.Gui.Chat.PrintChat(new XivChatEntry {
|
||||
Message = new SeString(payloads),
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (ImGui.Button("Log your target")) {
|
||||
var target = this.GetCurrentTarget();
|
||||
|
||||
if (target != null) {
|
||||
var payload = new PlayerPayload(this.Plugin.Interface.Data, target.Name.TextValue, target.HomeWorld.Id);
|
||||
Payload[] payloads = {payload};
|
||||
this.Plugin.Interface.Framework.Gui.Chat.PrintChat(new XivChatEntry {
|
||||
Message = new SeString(payloads),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
ImGui.EndTabItem();
|
||||
}
|
||||
#endif
|
||||
|
||||
ImGui.EndTabBar();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue