summaryrefslogtreecommitdiff
path: root/button.go
diff options
context:
space:
mode:
Diffstat (limited to 'button.go')
-rw-r--r--button.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/button.go b/button.go
index 24dcd49..825b79b 100644
--- a/button.go
+++ b/button.go
@@ -68,7 +68,7 @@ func CreateButton(box *GuiBox, custom func(*GuiButton), name string, values inte
Data.AllButtons = append(Data.AllButtons, newB)
- box.UiBox.Append(newB.B, false)
+ box.Append(newB.B, false)
return newB
}
@@ -110,6 +110,6 @@ func CreateColorButton(box *GuiBox, custom func(*GuiButton), name string, values
Data.MouseClick(&newCB)
}
})
- box.UiBox.Append(newCB.CB, false)
+ box.Append(newCB.CB, false)
return &newCB
}