diff options
| author | Jeff Carr <[email protected]> | 2019-06-01 01:20:20 -0700 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2019-06-01 01:20:20 -0700 |
| commit | bf9b5bd49d65dae7868d74d5f972510c2585ff7a (patch) | |
| tree | 6cbaf7e0b44a6054f91aa4307bb2ea41c75bdcb3 /gui.go | |
| parent | 133ed30192bce5e2b10a993aaa17d26a11bed93f (diff) | |
more control panel code removal
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gui.go')
| -rw-r--r-- | gui.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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) +} |
