Add autocomplete to dev console
This commit is contained in:
parent
726af6d379
commit
650cef7bfd
2 changed files with 540 additions and 24 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue