feat(gioui): add buttons to save and load instrument

This commit is contained in:
vsariola
2021-04-17 23:08:12 +03:00
parent 2a9284473a
commit 485b783341
3 changed files with 63 additions and 0 deletions

View File

@ -46,6 +46,8 @@ type Tracker struct {
SongLength *NumberInput
PanicBtn *widget.Clickable
CopyInstrumentBtn *widget.Clickable
SaveInstrumentBtn *widget.Clickable
LoadInstrumentBtn *widget.Clickable
ParameterList *layout.List
ParameterScrollBar *ScrollBar
Parameters []*ParameterWidget
@ -145,6 +147,8 @@ func New(audioContext sointu.AudioContext, synthService sointu.SynthService, syn
ClearUnitBtn: new(widget.Clickable),
PanicBtn: new(widget.Clickable),
CopyInstrumentBtn: new(widget.Clickable),
SaveInstrumentBtn: new(widget.Clickable),
LoadInstrumentBtn: new(widget.Clickable),
TrackHexCheckBox: new(widget.Bool),
Menus: make([]Menu, 2),
MenuBar: make([]widget.Clickable, 2),