Add autocomplete to dev console

This commit is contained in:
Ben Calegari 2026-07-28 21:26:37 -07:00
parent 726af6d379
commit 650cef7bfd
2 changed files with 540 additions and 24 deletions

View file

@ -52,6 +52,11 @@ namespace TD.Dev
if (NetworkManager.Singleton == null || !NetworkManager.Singleton.IsServer)
return;
// IMGUI draws after every runtime UI Toolkit panel, so this box would cover the
// debug console's autocomplete list no matter what sorting order the console's
// PanelSettings uses. Yield to the console while it's open.
if (DebugConsole.IsOpen) return;
// Anchored below the top HUD bar so it doesn't overlap gold/wave/lives.
const float topOffset = 90f;
GUI.Box(new Rect(10, topOffset, 180, 95), "Dev: Wave Controls");