diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 25 |
1 files changed, 14 insertions, 11 deletions
@@ -14,7 +14,6 @@ import ( "go.wit.com/dev/alexflint/arg" "go.wit.com/log" - "go.wit.com/toolkits/tree" "github.com/faiface/pixel/pixelgl" // "github.com/gookit/config" @@ -24,6 +23,8 @@ import ( var VERSION string var BUILDTIME string +var PLUGIN string = "pixelgl" + //go:embed resources/* var resources embed.FS @@ -32,21 +33,23 @@ var pp *arg.Parser // the glsl file var glslFile string -func init() { +func initPlugin() { pp = arg.MustParse(&argv) log.Log(INFO, "Init()") - me.myTree = tree.New() - me.myTree.PluginName = "nocui" - // me.myTree.ActionFromChannel = doAction + me.myTree = initTree() + /* + me.myTree.PluginName = "nocui" + // me.myTree.ActionFromChannel = doAction - me.myTree.NodeAction = newaction - me.myTree.Add = Add - me.myTree.SetTitle = SetTitle - me.myTree.SetLabel = SetLabel - me.myTree.SetText = SetText - me.myTree.AddText = AddText + me.myTree.NodeAction = newaction + me.myTree.Add = Add + me.myTree.SetTitle = SetTitle + me.myTree.SetLabel = SetLabel + me.myTree.SetText = SetText + me.myTree.AddText = AddText + */ me.exit = false |
