59 lines
1.6 KiB
Plaintext
59 lines
1.6 KiB
Plaintext
-- Bundled by luabundle {"version":"1.6.0"}
|
|
local __bundle_require, __bundle_loaded, __bundle_register, __bundle_modules = (function(superRequire)
|
|
local loadingPlaceholder = {[{}] = true}
|
|
|
|
local register
|
|
local modules = {}
|
|
|
|
local require
|
|
local loaded = {}
|
|
|
|
register = function(name, body)
|
|
if not modules[name] then
|
|
modules[name] = body
|
|
end
|
|
end
|
|
|
|
require = function(name)
|
|
local loadedModule = loaded[name]
|
|
|
|
if loadedModule then
|
|
if loadedModule == loadingPlaceholder then
|
|
return nil
|
|
end
|
|
else
|
|
if not modules[name] then
|
|
if not superRequire then
|
|
local identifier = type(name) == 'string' and '\"' .. name .. '\"' or tostring(name)
|
|
error('Tried to require ' .. identifier .. ', but no such module has been registered')
|
|
else
|
|
return superRequire(name)
|
|
end
|
|
end
|
|
|
|
loaded[name] = loadingPlaceholder
|
|
loadedModule = modules[name](require, loaded, register, modules)
|
|
loaded[name] = loadedModule
|
|
end
|
|
|
|
return loadedModule
|
|
end
|
|
|
|
return require, loaded, register, modules
|
|
end)(nil)
|
|
__bundle_register("__root", function(require, _LOADED, __bundle_register, __bundle_modules)
|
|
require("chaosbag/ChaosBagStatTracker")
|
|
end)
|
|
__bundle_register("chaosbag/ChaosBagStatTracker", function(require, _LOADED, __bundle_register, __bundle_modules)
|
|
-- button calls respective function in "Global"
|
|
function onLoad()
|
|
self.createButton({
|
|
click_function = "handleStatTrackerClick",
|
|
tooltip = "Left-Click: Print stats\nRight-Click: Reset stats",
|
|
height = 1250,
|
|
width = 1250,
|
|
color = { 0, 0, 0, 0 }
|
|
})
|
|
end
|
|
end)
|
|
return __bundle_require("__root") |