|
|
@@ -2,7 +2,6 @@ local class, object = require("class"), require("class.object")
|
|
|
local Console = require("debug_overlay.console")
|
|
|
local Graphs = require("debug_overlay.graphs")
|
|
|
local Watch = require("debug_overlay.watch")
|
|
|
-local ECSDebug = require("debug_overlay.ecs")
|
|
|
|
|
|
require("imgui")
|
|
|
|
|
|
@@ -14,13 +13,16 @@ function Debug:init()
|
|
|
Console = Console:new(),
|
|
|
Watch = Watch:new(),
|
|
|
Graphs = Graphs:new(),
|
|
|
- },
|
|
|
- ECS = {
|
|
|
- ECS = ECSDebug:new()
|
|
|
}
|
|
|
}
|
|
|
self.console = self.debug_menus.Debug.Console
|
|
|
self.watch = self.debug_menus.Debug.Watch
|
|
|
+
|
|
|
+end
|
|
|
+
|
|
|
+function Debug:register_menu(menu_name, windows)
|
|
|
+ assert(not self.debug_menus[menu_name])
|
|
|
+ self.debug_menus[menu_name] = windows
|
|
|
end
|
|
|
|
|
|
function Debug:render()
|