diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -132,9 +132,9 @@ func dropdownWindow(p *gui.Node) { var mapWindows map[string]*gui.Node mapWindows = make(map[string]*gui.Node) - dd := p.NewDropdown("Window Dropdown") + dd := p.NewDropdown() dd.Custom = func() { - name := dd.GetText() + name := dd.String() activeWidget = mapWindows[name] setActiveWidget(activeWidget) log.Log(INFO, "The Window was set to", name) @@ -149,7 +149,7 @@ func dropdownWindow(p *gui.Node) { // var last = "" for _, child := range p.Children() { log.Log(INFO, "\t\t", child.GetProgName()) - dd.AddDropdownName(child.GetProgName()) + dd.AddText(child.GetProgName()) // last = child.Name mapWindows[child.GetProgName()] = child if (activeWidget == nil) { @@ -163,9 +163,9 @@ func dropdownWindowWidgets(p *gui.Node) { var mapWindows map[string]*gui.Node mapWindows = make(map[string]*gui.Node) - dd := p.NewDropdown("Window Widgets Dropdown") + dd := p.NewDropdown() dd.Custom = func() { - name := dd.GetText() + name := dd.String() activeWidget = mapWindows[name] setActiveWidget(activeWidget) } @@ -177,7 +177,7 @@ func dropdownWindowWidgets(p *gui.Node) { addDropdowns = func (n *gui.Node) { // s := n.dumpWidget(true) s := n.GetProgName() - dd.AddDropdownName(s) + dd.AddText(s) mapWindows[s] = n for _, child := range n.Children() { |
