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) DialogUpdate() {
func (e *Engine) DialogDraw(screen *ebiten.Image) {
dialog := e.Domain.GetDialog(e.KContext.ScreenValue)
face := GetFontFace(dialog.Layout.ChoiceFont)
face := dialog.Layout.ChoiceFont.GetFontFace()
for i, choice := range dialog.Choices {
offset := int(dialog.Layout.ChoiceFont.Size) * (i + 1)