Compare commits

...

4 Commits

Author SHA1 Message Date
Anna 58779026f4
chore: fix repo url 2021-12-08 06:19:21 -05:00
Anna 5f3a37a749
chore: bump version to 1.7.8 2021-12-07 02:11:57 -05:00
Anna 1c8772b3ec
chore: update dependencies 2021-12-07 02:11:48 -05:00
Anna 884bd18488
chore: remove debug section 2021-12-07 02:11:39 -05:00
3 changed files with 5 additions and 40 deletions

View File

@ -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"/>

View File

@ -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

View File

@ -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();
}