|
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() {
|
|
fieldEditor.AddFieldCreator(CreateFieldCreator())
|
|
})
|
|
}
|
|
return fieldAdder
|
|
}
|