implementing more plugin functionality

This commit is contained in:
SpookyDervish
2025-10-27 21:27:50 +11:00
parent 155cff8b43
commit 63614988f2
2 changed files with 33 additions and 16 deletions

View File

@@ -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