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

This commit is contained in:
2026-01-31 13:57:09 +02:00
parent ca4b87d43d
commit 4bb5df9c87
19 changed files with 645 additions and 306 deletions
+6
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() }