introduce enums as map keys

This commit is contained in:
2023-07-07 00:56:33 +02:00
parent 415a564317
commit faa6f00891
15 changed files with 52 additions and 31 deletions

View File

@@ -2,7 +2,9 @@ package konstructor
import "image/color"
type MenuMap map[string]Menu
type MenuMapKey string
type MenuMap map[MenuMapKey]Menu
type MenuLayout struct {
MenuItemFont FontLayout