move GetFontFace into FontLayout struct

This commit is contained in:
2023-07-05 22:55:37 +02:00
parent 607cf0d44f
commit 41a32a8fe5
4 changed files with 20 additions and 17 deletions

View File

@@ -25,7 +25,7 @@ func (e *Engine) MenuUpdate() {
func (e *Engine) MenuDraw(screen *ebiten.Image) {
menu := e.Domain.GetMenu(e.KContext.ScreenValue)
face := GetFontFace(menu.Layout.MenuItemFont)
face := menu.Layout.MenuItemFont.GetFontFace()
for i, menu_item := range menu.MenuItems {
color := menu.GetMenuItemColor(i)