summaryrefslogtreecommitdiff
path: root/textbox.go
blob: 376b75d7b2c4df248d64bd4f26cc4a2a6358d97c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package gui

func (n *Node) NewTextbox(name string) *Node {
	newNode := n.New(name, "Textbox")

	newNode.Widget.Custom = func() {
		log(debugGui, "wit/gui clicker()NewTextBox BUT IS EMPTY. FIXME", newNode.Widget)
	}

	for _, aplug := range allPlugins {
		log(debugGui, "gui.NewTextbox() aplug =", aplug.name, "name =", newNode.Widget.Name)
		if (aplug.NewTextbox == nil) {
			log(debugGui, "\tgui.NewTextbox() aplug.NewTextbox = nil", aplug.name)
			continue
		}
		aplug.NewTextbox(&n.Widget, &newNode.Widget)
	}

	return newNode
}