31 lines
584 B
Lua
31 lines
584 B
Lua
|
|
local util = require('util')
|
||
|
|
|
||
|
|
app.on('scan_experience', function(exp)
|
||
|
|
--print_r(exp)
|
||
|
|
end)
|
||
|
|
|
||
|
|
app.on('scan_experience_file', function(exp)
|
||
|
|
end)
|
||
|
|
|
||
|
|
app.on('set', function(k,v)
|
||
|
|
print("content was updated")
|
||
|
|
end)
|
||
|
|
|
||
|
|
|
||
|
|
-- this registers the plugin UI
|
||
|
|
local plugin = {
|
||
|
|
name = 'Federation',
|
||
|
|
info = '',
|
||
|
|
opts = { -- TODO populate this based on xrforge-federation.json
|
||
|
|
{
|
||
|
|
key='app.opts.plugin_xrforges_xrforge_isvery_ninja',
|
||
|
|
title='xrforge.isvery.ninja',
|
||
|
|
info='',
|
||
|
|
default="enabled",
|
||
|
|
values={enabled='enabled',disabled='disabled'}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
return plugin
|