|
|
@@ -1,9 +1,24 @@
|
|
|
+
|
|
|
+-- If not debug then returning a blank class.
|
|
|
+if not _G.ENABLE_DEBUG_OVERLAY then
|
|
|
+ local void = {}
|
|
|
+ local mt = {
|
|
|
+ __index = function(self, key) return self end,
|
|
|
+ __newindex = function(self, key) return self end,
|
|
|
+ __metatable = {},
|
|
|
+ __call = function() return void end
|
|
|
+ }
|
|
|
+ setmetatable(void, mt)
|
|
|
+ print(void)
|
|
|
+ return void
|
|
|
+end
|
|
|
+
|
|
|
+require("imgui")
|
|
|
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")
|
|
|
|
|
|
-require("imgui")
|
|
|
|
|
|
local Debug = class(object)
|
|
|
|