feat(tracker): enum-style values and menus to choose one option

This commit is contained in:
5684185+vsariola@users.noreply.github.com
2026-01-27 23:26:13 +02:00
parent ca4b87d43d
commit 4bb5df9c87
19 changed files with 645 additions and 306 deletions

View File

@ -182,6 +182,12 @@ func (v *playSyntherIndex) SetValue(value int) bool {
TrySend(v.broker.ToPlayer, any(v.synthers[value]))
return true
}
func (v *playSyntherIndex) StringOf(value int) string {
if value < 0 || value >= len(v.synthers) {
return ""
}
return v.synthers[value].Name()
}
// SyntherName returns the name of the currently selected synther.
func (v *Play) SyntherName() string { return v.synthers[v.syntherIndex].Name() }