ppforge/fieldadd.go

17 lines
278 B
Go
Raw Normal View History

2022-11-23 20:33:07 +01:00
package npc
import (
"fyne.io/fyne/v2/widget"
)
var fieldAdder *widget.Button
func GetAdder() *widget.Button {
if fieldAdder == nil {
fieldAdder = widget.NewButton("Add Field", func() {
2022-11-24 21:49:10 +01:00
protocolEditor.AddFieldCreator(CreateFieldCreator())
2022-11-23 20:33:07 +01:00
})
}
return fieldAdder
}