From bf9b5bd49d65dae7868d74d5f972510c2585ff7a Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 1 Jun 2019 01:20:20 -0700 Subject: more control panel code removal Signed-off-by: Jeff Carr --- gui.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gui.go') 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) +} -- cgit v1.2.3