Revert "add index/count for W.O filter gui"

This reverts commit fcce492acb.
This commit is contained in:
Mister_Nebula 2022-07-25 17:17:54 +01:00
parent a99b48f988
commit d2a48a7782

View File

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