17 lines
275 B
Go
17 lines
275 B
Go
|
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
|
||
|
}
|