summaryrefslogtreecommitdiff
path: root/basicLabel.go
diff options
context:
space:
mode:
Diffstat (limited to 'basicLabel.go')
-rw-r--r--basicLabel.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/basicLabel.go b/basicLabel.go
index fc410d3..468c44e 100644
--- a/basicLabel.go
+++ b/basicLabel.go
@@ -27,6 +27,7 @@ type BasicLabel struct {
Custom func()
}
+/*
func (n *BasicLabel) Get() string {
return n.value
}
@@ -39,6 +40,7 @@ func (n *BasicLabel) Set(value string) *BasicLabel {
n.value = value
return n
}
+*/
func (ngui *Node) NewBasicLabel(name string) *BasicLabel {
var n *gui.Node
@@ -52,7 +54,7 @@ func (ngui *Node) NewBasicLabel(name string) *BasicLabel {
d.l = n.NewLabel(name)
d.v = n.NewLabel("")
d.v.Custom = func() {
- d.value = d.v.GetText()
+ d.value = d.v.String()
log.Log(INFO, "BasicLabel.Custom() user changed value to =", d.value)
}