implementing more plugin functionality
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
local plugin = {}
|
||||
|
||||
function testAction()
|
||||
function plugin.run()
|
||||
local window = berry.ui.createWindow("test window")
|
||||
end
|
||||
berry.ui.app.mount(window)
|
||||
berry.ui.runOnEvent(window.Initialized, function()
|
||||
local test = berry.ui.createWidget("Static", "the absolute minimal experience")
|
||||
window.mount_in_window(test)
|
||||
end)
|
||||
|
||||
function plugin.init()
|
||||
berry.ui.createAction("test", testAction)
|
||||
berry.ui.addBind("test", "ctrl+d", "Test")
|
||||
|
||||
end
|
||||
|
||||
return plugin
|
||||
Reference in New Issue
Block a user