summaryrefslogtreecommitdiff
path: root/button.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-06-02 22:22:04 -0700
committerJeff Carr <[email protected]>2019-06-02 22:22:04 -0700
commit5336ee2444a831e10600f8573d4460e7d7e3f9e8 (patch)
treeb4839dbc86267fbf46ef2bbbe04fa62be1d6391b /button.go
parent4c76bfac47ff1ac0a9901e489e11c97b537168d7 (diff)
make a buttonMap
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'button.go')
-rw-r--r--button.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/button.go b/button.go
index d605fd9..bf36f23 100644
--- a/button.go
+++ b/button.go
@@ -50,7 +50,7 @@ func guiButtonClick(button *GuiButton) {
}
}
-func NewCreateButton(box *GuiBox, custom func(*GuiButton), name string, values interface {}) *GuiButton {
+func CreateButton(box *GuiBox, custom func(*GuiButton), name string, values interface {}) *GuiButton {
newUiB := ui.NewButton(name)
newUiB.OnClicked(defaultButtonClick)