From 04cf1abdb28062aa7743f61dbaa5dd2f2b19b849 Mon Sep 17 00:00:00 2001 From: Anna Date: Tue, 7 Dec 2021 02:11:39 -0500 Subject: [PATCH] chore: remove debug section --- Peeping Tom/PluginUi.cs | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/Peeping Tom/PluginUi.cs b/Peeping Tom/PluginUi.cs index 75b2a57..9665d1b 100644 --- a/Peeping Tom/PluginUi.cs +++ b/Peeping Tom/PluginUi.cs @@ -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(); - 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(); }