plugin defined settings!!!!
This commit is contained in:
14
plugins/test/lua/main.lua
Normal file
14
plugins/test/lua/main.lua
Normal file
@@ -0,0 +1,14 @@
|
||||
local plugin = {}
|
||||
|
||||
function test(newValue)
|
||||
berry.ui.notify(tostring(newValue))
|
||||
end
|
||||
|
||||
function plugin.run()
|
||||
berry.config.defineSetting("Test Plugin", "test setting", "this is a description", "string", "hi, this is the default value", test)
|
||||
berry.config.defineSetting("Test Plugin", "another setting!", "woah!", "boolean", "1", test)
|
||||
berry.config.defineSetting("Test Plugin", "integer setting", "i love integers :O", "integer", "123", test)
|
||||
berry.config.defineSetting("Test Plugin", "float setting", "i love floating point numbers :O", "float", "123.456", test)
|
||||
end
|
||||
|
||||
return plugin
|
||||
6
plugins/test/plugin.json
Normal file
6
plugins/test/plugin.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"name": "Test Plugin",
|
||||
"version": "1.0.0",
|
||||
"author": "SpookyDervish",
|
||||
"dependencies": []
|
||||
}
|
||||
Reference in New Issue
Block a user