Add the F1 ECS inspector overlay to the world scene

Bump the engine submodule to 09dbdfa (MrGameEng.Inspector) and wire the
new DevTools-style ECS debugger into WorldScene via UseInspector(renderer),
before UseDevConsole so the console still draws on top. The HUD controls
hint now mentions F1.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Leonid Pershin
2026-06-12 12:46:15 +03:00
co-authored by Claude Opus 4.8
parent 1030f27c50
commit d0f8fec273
4 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"hud.world": "LittleSim | seed {0} | day {1} | {2} FPS", "hud.world": "LittleSim | seed {0} | day {1} | {2} FPS",
"hud.controls": "WASD — camera, wheel — zoom, ` — console ('help' lists commands)", "hud.controls": "WASD — camera, wheel — zoom, ` — console, F1 — inspector",
"hud.paused": "PAUSED", "hud.paused": "PAUSED",
"menu.title": "LittleSim", "menu.title": "LittleSim",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"hud.world": "LittleSim | сид {0} | день {1} | {2} FPS", "hud.world": "LittleSim | сид {0} | день {1} | {2} FPS",
"hud.controls": "WASD — камера, колесо — зум, ` — консоль ('help' — список команд)", "hud.controls": "WASD — камера, колесо — зум, ` — консоль, F1 — инспектор",
"hud.paused": "ПАУЗА", "hud.paused": "ПАУЗА",
"menu.title": "LittleSim", "menu.title": "LittleSim",
+1 -1
Submodule engine updated: f791ee6c95...09dbdfad79
+2
View File
@@ -12,6 +12,7 @@ using MrGameEng.Core;
using MrGameEng.DevConsole; using MrGameEng.DevConsole;
using MrGameEng.Graphics; using MrGameEng.Graphics;
using MrGameEng.Input; using MrGameEng.Input;
using MrGameEng.Inspector;
using MrGameEng.Tilemaps; using MrGameEng.Tilemaps;
using MrGameEng.UI; using MrGameEng.UI;
using Myra.Graphics2D; using Myra.Graphics2D;
@@ -92,6 +93,7 @@ public sealed class WorldScene : Scene
); );
desktop.Root = Ui.Screen(hudLabel, speedBar, _pause.Root); desktop.Root = Ui.Screen(hudLabel, speedBar, _pause.Root);
this.UseInspector(renderer);
var console = this.UseDevConsole(); var console = this.UseDevConsole();
RegisterCommands(console, content, atlases); RegisterCommands(console, content, atlases);