From d2a48a7782650b969fc699f0162faa72116eb60e Mon Sep 17 00:00:00 2001 From: Mister_Nebula <41904486+misternebula@users.noreply.github.com> Date: Mon, 25 Jul 2022 17:17:54 +0100 Subject: [PATCH] Revert "add index/count for W.O filter gui" This reverts commit fcce492acbc855a15a5858dcbcce8b490dd06144. --- QSB/Utility/DebugGUI.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/QSB/Utility/DebugGUI.cs b/QSB/Utility/DebugGUI.cs index d1d6a5cd..9adaf12d 100644 --- a/QSB/Utility/DebugGUI.cs +++ b/QSB/Utility/DebugGUI.cs @@ -6,7 +6,6 @@ using QSB.ShipSync.TransformSync; using QSB.ShipSync.WorldObjects; using QSB.TimeSync; using QSB.WorldSync; -using System; using System.Linq; using UnityEngine; @@ -135,9 +134,7 @@ internal class DebugGUI : MonoBehaviour, IAddComponentOnStart WriteLine(1, $"TimeLoop IsTimeLoopEnabled : {TimeLoop.IsTimeLoopEnabled()}"); } - var allWorldObjects = typeof(IWorldObject).GetDerivedTypes().ToArray(); - var selection = DebugActions.WorldObjectSelection; - WriteLine(1, $"W.O Filter : {(selection == null ? "All" : $"{selection.Name} ({Array.IndexOf(allWorldObjects, selection) + 1}/{allWorldObjects.Length})")}"); + WriteLine(1, $"Selected WorldObject : {(DebugActions.WorldObjectSelection == null ? "All" : DebugActions.WorldObjectSelection.Name)}"); } #endregion