removed default plugin and made a tiny change to the ui
This commit is contained in:
@@ -1,14 +0,0 @@
|
|||||||
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
|
|
||||||
@@ -1,6 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "Test Plugin",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"author": "SpookyDervish",
|
|
||||||
"dependencies": []
|
|
||||||
}
|
|
||||||
@@ -144,7 +144,7 @@ class SettingsScreen(ModalScreen):
|
|||||||
yield Input(value=self.app.config_handler.get("plugins", "log_timeout"), id="log-timeout", type="integer")
|
yield Input(value=self.app.config_handler.get("plugins", "log_timeout"), id="log-timeout", type="integer")
|
||||||
|
|
||||||
yield Static("Plugin-defined Settings", classes="thingy")
|
yield Static("Plugin-defined Settings", classes="thingy")
|
||||||
yield Rule(line_style="thick")
|
yield Rule(line_style="double")
|
||||||
|
|
||||||
for plugin_section, plugin_settings in self.app.config_handler.plugin_defined_settings.items():
|
for plugin_section, plugin_settings in self.app.config_handler.plugin_defined_settings.items():
|
||||||
yield Static(f"{plugin_section}", classes="thingy")
|
yield Static(f"{plugin_section}", classes="thingy")
|
||||||
|
|||||||
Reference in New Issue
Block a user