xrforge-v2/src/plugin/global.lua

63 lines
1.4 KiB
Lua
Raw Normal View History

2026-08-04 12:17:33 +02:00
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)
end)
-- this registers the plugin UI
local plugin = {
name = "Global settings",
info = '',
opts = {
{
key='app.opts.plugin_global_title',
title='Title',
info='Preferably dot-style domain-notation for easy recollection',
default = "your.xr.forge",
values=''
},
{
key='app.opts.plugin_global_subtitle',
title='Subtitle',
info='Slogan here',
default = "Portable XR experiences for Phone, VRheadset & desktop.",
values=''
},
{
key='app.opts.plugin_global_topmenu_mapname',
title='Overview link',
info='Top-right link <img class="icon list-tree" src="/img/list-tree.svg"> (overview page)',
default = "map",
values=''
},
{
key='app.opts.plugin_global_topmenu_html',
title='Menu html',
info='Add extra menu items here',
default = '<a href="/about">about</a>',
control='textarea',
values=''
},
{
key='app.opts.plugin_global_headertags',
title='Header html',
info='Add extra header tags here',
default = [[
<!--
<link rel="stylesheet" type="text/css" href="https://my.org/foo.css" media="all" />
-->
]],
control='textarea',
values=''
},
}
}
return plugin