summaryrefslogtreecommitdiff
path: root/gui.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-06-01 01:20:20 -0700
committerJeff Carr <[email protected]>2019-06-01 01:20:20 -0700
commitbf9b5bd49d65dae7868d74d5f972510c2585ff7a (patch)
tree6cbaf7e0b44a6054f91aa4307bb2ea41c75bdcb3 /gui.go
parent133ed30192bce5e2b10a993aaa17d26a11bed93f (diff)
more control panel code removal
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui.go')
-rw-r--r--gui.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/gui.go b/gui.go
index 45b61f3..c78439b 100644
--- a/gui.go
+++ b/gui.go
@@ -209,6 +209,10 @@ func AddButton(b *GuiButton, name string) *ui.Button {
return newB
}
+func AddButtonToBox(box *GuiBox, button *GuiButton) {
+ box.UiBox.Append(button.B, false)
+}
+
func CreateButton(box *GuiBox, a *pb.Account, vm *pb.Event_VM, name string, action string, custom func(*GuiButton)) *GuiButton {
newUiB := ui.NewButton(name)
newUiB.OnClicked(defaultButtonClick)
@@ -317,3 +321,7 @@ func MakeEntryHbox(box *GuiBox, a string, startValue string, edit bool, action s
return e
}
+
+func NewLabel(box *GuiBox, text string) {
+ box.UiBox.Append(ui.NewLabel(text), false)
+}