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:
co-authored by
Claude Opus 4.8
parent
1030f27c50
commit
d0f8fec273
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"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",
|
||||
|
||||
"menu.title": "LittleSim",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"hud.world": "LittleSim | сид {0} | день {1} | {2} FPS",
|
||||
"hud.controls": "WASD — камера, колесо — зум, ` — консоль ('help' — список команд)",
|
||||
"hud.controls": "WASD — камера, колесо — зум, ` — консоль, F1 — инспектор",
|
||||
"hud.paused": "ПАУЗА",
|
||||
|
||||
"menu.title": "LittleSim",
|
||||
|
||||
+1
-1
Submodule engine updated: f791ee6c95...09dbdfad79
@@ -12,6 +12,7 @@ using MrGameEng.Core;
|
||||
using MrGameEng.DevConsole;
|
||||
using MrGameEng.Graphics;
|
||||
using MrGameEng.Input;
|
||||
using MrGameEng.Inspector;
|
||||
using MrGameEng.Tilemaps;
|
||||
using MrGameEng.UI;
|
||||
using Myra.Graphics2D;
|
||||
@@ -92,6 +93,7 @@ public sealed class WorldScene : Scene
|
||||
);
|
||||
desktop.Root = Ui.Screen(hudLabel, speedBar, _pause.Root);
|
||||
|
||||
this.UseInspector(renderer);
|
||||
var console = this.UseDevConsole();
|
||||
RegisterCommands(console, content, atlases);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user