Plugins are now properly loaded woohoo

This commit is contained in:
2023-04-30 19:00:20 -04:00
parent b479ba8f0f
commit 8e5ad8f385
4 changed files with 31 additions and 16 deletions

21
examples/test/main.go Normal file
View File

@@ -0,0 +1,21 @@
package main
import "git.tebibyte.media/sashakoshka/tomo"
import "git.tebibyte.media/sashakoshka/tomo/nasin"
import "git.tebibyte.media/sashakoshka/tomo/elements/testing"
func main () {
nasin.Run(Application { })
}
type Application struct { }
func (Application) Init () error {
window, err := nasin.NewWindow(tomo.Bounds(0, 0, 0, 0))
if err != nil { return err }
window.SetTitle("Mouse Test")
window.Adopt(testing.NewMouse())
window.OnClose(nasin.Stop)
window.Show()
return nil
}